cancel
Showing results for 
Search instead for 
Did you mean: 

Homogeneous system copy (error)

Former Member
0 Kudos

Hi, I have error apply the post homogeneous system copy. The system is dualstack. The stack ABAP running but stack Java not start.

Try start configtool but display message error:

rp3ds001:rp1adm 143> ./configtool.sh

PerfTimes : loadNativeLayer: loading jperflib failed. no jperflib in java.library.path

com.sap.engine.frame.core.configuration.ConfigurationException: Error while connecting to DB.

        at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.createConnection(DBConnectionPool.java:365)

        at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.<init>(DBConnectionPool.java:130)

        at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceHandler.<init>(PersistenceHandler.java:38)

        at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.<init>(ConfigurationCache.java:149)

        at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.init(ConfigurationManagerBootstrapImpl.java:236)

        at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.<init>(ConfigurationManagerBootstrapImpl.java:49)

        at com.sap.engine.configtool.visual.ConfigTool.loadClusterData(ConfigTool.java:153)

        at com.sap.engine.configtool.visual.ConfigTool.initScan(ConfigTool.java:135)

        at com.sap.engine.configtool.visual.ConfigTool.<init>(ConfigTool.java:124)

        at com.sap.engine.configtool.visual.ConfigTool.main(ConfigTool.java:1147)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:324)

        at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)

Caused by: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection

        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)

        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)

        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)

        at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)

        at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:420)

        at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)

        at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)

        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)

        at com.sap.sql.jdbc.NativeConnectionFactory.createNativeConnection(NativeConnectionFactory.java:215)

        at com.sap.sql.connect.OpenSQLDataSourceImpl.createPooledConnection(OpenSQLDataSourceImpl.java:608)

        at com.sap.sql.connect.OpenSQLDataSourceImpl.getPooledConnection(OpenSQLDataSourceImpl.java:285)

        at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.createConnection(DBConnectionPool.java:307)

Best Regards,

Eli Daniel Ramones

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

As it was already mentioned by Ruchit it looks like SS issue.

Probably configtool tries to connect to the old (previous) DB. Could you check config.properties file located in configtool folder in regard to host name?

May be it refers to old host?

Former Member
0 Kudos

Hi, I can modify this parameter?

#1.# #1343682245432#/System/Database/sql/jdbc##com.sap.sql.jdbc.NativeConnectionFactory#######Thread[main,5,main]##0#0#Error#1#com.sap.sql.jdbc.Nat

iveConnectionFactory#Java#com.sap.sql_0002#com.sap.sql.log.OpenSQLResourceBundle#SQL error occurred on connection {3}: code={0,number,integer}, sta

te="{1}", message="{2}".#5#17002#<null>#Io exception: The Network Adapter could not establish the connection#jdbc:oracle:thin:@rp1dbcl:1527:RP1#<nu

ll>#

The hostname is different.

Regards,

EDRS

Former Member
0 Kudos

Well this info is in secure store and to change this info you have got to login into config tool. This is your connection info.

I think what you need to do here is when configtool asks you to connect to default DB settings say no and then provide the correct string (with correct hostname/SID and all). Once inside the config tool try to change the connection string.

Regards.

Ruchit Khushu.

Former Member
0 Kudos

Hi Ruchit thanks for information. attach image the option configtool

Former Member
0 Kudos

Hi Ramones,

My bad. Actually I was focussing on the wrong thing. Have you taken the Java Central Instance export from the source system?

If yes you need to import that.

Dual stack/Java stack system copy isn't like ABAP. You need to run SAPinst and install SCS (may be optional) ,Database and Central Instances.

You may take backup of profiles and kernels and restore them at a later point but you have got to go through entire SAPinst cycle.

Regards.

Ruchit Khushu.

0 Kudos

Hi Ramones,

It looks rather strange...RP1 is the source system, isn't it?

Roughly speaking the system copy process goes as follows:

You prepare source system export via sapinst. Actually this export is the content of DB (ABAP part + Java part)

After that you need to install clean target system and upload prevuously prepared export to it.

All those steps are carried out via sapinst (via software life-cycle -> system copy option) smothly. And if everything goes well you don't need edit strings in configtool properties and the other places.

Could you describe the whole sequence of steps you carried out performing system copy?

How did you prepare source system export? Which option has been choosen (single ABAP, Single Java, ABAP +Java)? How did you insall the target system? Which option have you picked up?

Regards,

Ilya

Former Member
0 Kudos

Hello Ilya,

This is backup/restore so no DB export here.

Regards.

Ruchit

0 Kudos

Hello Ruchit,

Hmmm....I got it a little bit different.

From my understanding Ramones moved the system from one host to another.

And due to some reason connection parameters  (maybe something else) were not populated properly

I guess we can not do this via plain backup/restore...

But maybe i'm wrong. Let's wait for Ramones explanations....

Regards,

Ilya

Former Member
0 Kudos

Hi Ilya,

He did move from one host to another. Hardware migraton without SID change but using backup\restore.

Regards.

Ruchit

Former Member
0 Kudos

Yeps. Pretty much like that.

Regards.

Ruchit.

Former Member
0 Kudos

Thanks for information Ruchit and Ilya, certainly I used Backup/restore the system RP1 in other host with different hostname). I change value hostname in profile and stack ABAP start but no stack java.

Try the start configtool but display error attach in this message.

Now, I check the URL sent for Ilya but no can apply the change hostname in the configtool because no start configtool.sh

Former Member
0 Kudos

Hi Ruchit, you think I should the apply this recommendations?

"Delete source ops$ users and recreate for target server and change the password"

Regards,

EDRS

Former Member
0 Kudos

Ramones,

You got to do it again.. Dual stack system copy ain't simple backup/restore. There is at data at file system level for releases under NW 7.10. So a different approach is needed !!

Regards.

Ruchit.

0 Kudos

Hi Ramones,

brief question:

When configtoot fails to connect to db it should display SS content anyway. Is it the case with your setup?

In my case it looks as attached:

Just as workaround:

If it's the case you can change jdbc URL (i mean host name). It seems after that you can start configtool normally

Regards,

Ilya

Former Member
0 Kudos

Hi, I solved the problem. add the old hostname in the etc/host and startsap. Start configtool and change value hostname with the new hostname.

Thanks to all for you help.

Best Regards,

EDRS

Answers (3)

Answers (3)

former_member215345
Active Participant
0 Kudos

Hi Ramones,

Check the Java J2SDK/J2RE version installed, also check JAVA_HOME environment variable and path.

Regards,

Jayadeep

Former Member
0 Kudos

Hi Jayadeep, the java JDK is 1.4.17. This version is same for all systemlandscape.

Please, check the image.

rp3ds001:rp1adm 485> java -version

java version "1.4.2.17"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.17-071106-02:40)

Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.17-071106-08:12-IA64N IA64, mixed mode)

rp3ds001:rp1adm 486>

and envioronment variable for user SIDadm:

rp3ds001:rp1adm 486> env

USER=rp1adm

LOGNAME=rp1adm

HOME=/home/rp1adm

PATH=/oracle/RP1/102_64/bin:.:/home/rp1adm:/usr/sap/RP1/SYS/exe/run:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:/opt/gvsd/bin:/opt/ipf/bin:/opt/nettladm/bin:/opt/fcms/bin:/opt/wbem/bin:/opt/wbem/sbin:/opt/sas/bin:/opt/graphics/common/bin:/opt/atok/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/sec_mgmt/bastille/bin:/opt/caliper/bin:/opt/drd/bin:/opt/dsau/bin:/opt/dsau/sbin:/opt/resmon/bin:/opt/firefox:/opt/gnome/bin:/opt/propplus/bin:/usr/contrib/kwdb/bin:/opt/perl_32/bin:/opt/perl_64/bin:/opt/prm/bin:/opt/sfm/bin:/opt/swm/bin:/opt/sec_mgmt/spc/bin:/opt/ssh/bin:/opt/swa/bin:/opt/hpsmh/bin:/opt/thunderbird:/opt/sentinel/bin:/opt/langtools/bin:/opt/gwlm/bin:/opt/perf/bin:/opt/java1.4/bin:/opt/java1.4/bin:/opt/java1.4/bin:/opt/java1.4/bin

MAIL=/var/mail/rp1adm

SHELL=/usr/bin/csh

TZ=MST7MDT

SSH_CLIENT=10.64.28.209 4111 22

SSH_CONNECTION=10.64.28.209 4111 10.255.2.44 22

SSH_TTY=/dev/pts/0

TERM=xterm

SFTP_UMASK=

SFTP_PERMIT_CHMOD=1

SFTP_PERMIT_CHOWN=1

COLUMNS=147

LINES=62

MANPATH=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%L:/usr/local/man:/opt/VRTS/vxfs5.0/man:/opt/ldapux/share/man/%L:/opt/ldapux/share/man:/opt/ipf/man:/opt/ldapux/ypldapd/man:/opt/samba/man:/opt/samba/WTEC_Support_Tools/man:/opt/samba/cfsm_man:/opt/cifsclient/share/man:/opt/openssl/man:/opt/openssl/prngd/man:/opt/wbem/share/man/%L:/opt/wbem/share/man:/opt/graphics/common/man:/opt/amgr/man/%L:/opt/amgr/man:/opt/sec_mgmt/share/man:/opt/caliper/man/%L:/opt/caliper/man:/opt/drd/share/man/%L:/opt/drd/share/man:/opt/dsau/man:/opt/resmon/share/man/%L:/opt/resmon/share/man:/opt/gnome/man:/opt/propplus/share/man:/usr/contrib/kwdb/share/man:/opt/perl_32/man:/opt/perl_64/man:/opt/prm/man/%L:/opt/prm/man:/opt/psb/healthtest/share/man:/opt/sfm/share/man:/opt/swm/share/man/%L:/opt/swm/share/man:/opt/swa/share/man/%L:/opt/swa/share/man:/opt/ssh/share/man:/opt/sentinel/man/%L:/opt/sentinel/man:/opt/langtools/share/man/%L:/opt/langtools/share/man:/opt/openssl/fips/0.9.7/man:/opt/openssl/fips/0.9.8/man:/opt/gwlm/man/%L:/opt/gwlm/man:/opt/icod/man/%L:/opt/icod/man:/opt/iexpress/sudo/man:/opt/perf/man/%L:/opt/perf/man:/opt/ignite/share/man/%L:/opt/ignite/share/man

SAPSYSTEMNAME=RP1

DIR_LIBRARY=/usr/sap/RP1/SYS/exe/run

SHLIB_PATH=/usr/sap/RP1/SYS/exe/run:/oracle/client/10x_64/instantclient

JAVA_HOME=/opt/java1.4

THREAD=NOPS

dbms_type=ORA

dbs_ora_tnsname=RP1

dbs_ora_schema=SAPRP1

ORACLE_SID=RP1

DB_SID=RP1

ORACLE_BASE=/oracle

CPIC_MAX_CONV=5000

ORACLE_HOME=/oracle/RP1/102_64

NLS_LANG=AMERICAN_AMERICA.WE8DEC

SAPDATA_HOME=/oracle/RP1

DISPLAY=10.64.28.209:0.0

rp3ds001:rp1adm 487>

Regards,

EDRS

nicholas_chang
Active Contributor
0 Kudos

Hi Eli,

Are you using backup/restore method? If yes, do you export the java from source and import to target with sapinst?

Cheers,

Former Member
0 Kudos

Hi Nicholas, yes the using method backup/restore. The only difference is the name "hostname".

Regards,

EDRS

nicholas_chang
Active Contributor
0 Kudos

If that's the case, did you export java from source?

Former Member
0 Kudos

No, Only modify the SIDadm and start stack ABAP but JAVA no.

You have the procedure to start java after homogeneous system copy?

Regards,

EDRS

nicholas_chang
Active Contributor
0 Kudos

you need to use sapinst and perform the java export on your source system. You can export it online during the time when no changes on java instance. Once exported, you'll see some java application and sdmkit in the export folder. After that, run sapinst on target and import the java dump.

Former Member
0 Kudos

Hi Ramones,

This approach isn't gonna work. Check the system copy guide.JAVA export is needed

till system release<7.10. Even for higher releases other activities are needed.

Regards.

Ruchit.

Former Member
0 Kudos

Hi the log log_bootstrap_ID0077181.0.log display:

[Jul 27, 2012 12:06:25...] [Bootstrap module]> Problem occurred while performing synchronization.

[Jul 27, 2012 1:07:37 PM ] --------------------------------------------------

[Jul 27, 2012 1:07:37 PM ] Bootstrap MODE:

[Jul 27, 2012 1:07:37 PM ] <INSTANCE GLOBALS>

[Jul 27, 2012 1:07:37 PM ]  determined by parameter [ID0077181].

[Jul 27, 2012 1:07:37 PM ] --------------------------------------------------

[Jul 27, 2012 1:07:38 PM ] Exception occurred:

com.sap.engine.bootstrap.SynchronizationException: Database initialization failed! Check database properties!

        at com.sap.engine.bootstrap.Bootstrap.initDatabaseConnection(Bootstrap.java:476)

        at com.sap.engine.bootstrap.Bootstrap.<init>(Bootstrap.java:146)

        at com.sap.engine.bootstrap.Bootstrap.main(Bootstrap.java:971)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:324)

        at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)

----------==[ Caused by: ]==----------

com.sap.engine.frame.core.configuration.ConfigurationException: Error while connecting to DB.

        at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.createConnection(DBConnectionPool.java:365)

        at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.<init>(DBConnectionPool.java:130)

        at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceHandler.<init>(PersistenceHandler.java:38)

        at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.<init>(ConfigurationCache.java:149)

        at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.init(ConfigurationManagerBootstrapImpl.java:236)

        at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.<init>(ConfigurationManagerBootstrapImpl.java:49)

        at com.sap.engine.bootstrap.Synchronizer.<init>(Synchronizer.java:74)

        at com.sap.engine.bootstrap.Bootstrap.initDatabaseConnection(Bootstrap.java:473)

        at com.sap.engine.bootstrap.Bootstrap.<init>(Bootstrap.java:146)

        at com.sap.engine.bootstrap.Bootstrap.main(Bootstrap.java:971)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:324)

        at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)

Caused by: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection

        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)

        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)

        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)

        at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)

        at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:420)

        at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)

        at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)

        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)

        at com.sap.sql.jdbc.NativeConnectionFactory.createNativeConnection(NativeConnectionFactory.java:215)

        at com.sap.sql.connect.OpenSQLDataSourceImpl.createPooledConnection(OpenSQLDataSourceImpl.java:608)

        at com.sap.sql.connect.OpenSQLDataSourceImpl.getPooledConnection(OpenSQLDataSourceImpl.java:285)

        at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.createConnection(DBConnectionPool.java:307)

        ... 14 more

Former Member
0 Kudos

Hi Ramones,

Looks like secure store issue. How did you go ahead with the system copy? Please give the steps.I guess quite a few OSS notes for the issue.Also what is the SAP release in question here?

Regards.

Ruchit.,