SAP Knowledge Base Article - Preview

3127116 - DB6: Wrong database access during JAVA system rename

Symptom

System rename of JAVA only system fails during installation of temporary license.

For example, source system is ABC and target system is DEF.

sapinst_dev.log

TRACE      2021-12-01 12:00:11.666 (root/sapinst) (startInstallation) com.sap.lm.services.jlauncher.impl.JLauncherImpl
   INFO: Loading tool launcher...
   INFO: [OS: AIX] [VM vendor: SAP AG] [VM version: 1.6.0_211] [VM type: SAP Java Server VM]
   INFO: Main class to start: "com.sap.inst.secstore.AdjustSecureStoreFS"
   INFO: Loading 40 JAR files: [/sapmnt/DEF/global/sltools/sharedlib/checkKeyPhrase.jar, /sapmnt/DEF/global/sltools/sharedlib/jdbc.jar,

<snipped>

/sapmnt/DEF/global/security/lib/tools/iaik_ssl.jar, /sapmnt/DEF/global/security/lib/tools/w3c_http.jar]
   INFO: Start
DB user password:
SecStore properties: /sapmnt/DEF/global/security/data/SecStore.properties
SecStore key: /sapmnt/DEF/global/security/data/SecStore.key
SID source: ABC
SID target: DEF
DB URL target: jdbc:db2://<hostname>:5912/ABC:currentSchema=SAPABCDB;deferPrepares=0;connectionCloseWithinFlightTransaction=2;
DB user target: sapdefdb
DB user password: XXXXXXXX
jdbc/pool/ABC: Url=jdbc:db2://<hostname>:5912/ABC:currentSchema\=SAPABCDB;deferPrepares\=0;connectionCloseWithinFlightTransaction\=2;
jdbc/pool/ABC: User=sapabcdb
DB URL already set to Url=jdbc:db2://<hostname>:5912/ABC:currentSchema\=SAPABCDB;deferPrepares\=0;connectionCloseWithinFlightTransaction\=2;.
Replace DB user name 'sapabcdb' by 'sapdefdb'.
Update SecureStore

<snipped>

TRACE      2021-12-01 12:00:22.666 (root/sapinst) (startInstallation) com.sap.sdt.ins.jsyslib.syslibconv.ChildApplication
/usr/sap/DEF/J00/exe/sapjvm_6/bin/java returned 12, output:
   INFO: Loading tool launcher...
   INFO: [OS: AIX] [VM vendor: SAP AG] [VM version: 1.6.0_211] [VM type: SAP Java Server VM]
   INFO: Main class to start: "com.sap.engine.tools.offlinelikeyinst.InstallFirstTempLicense"
   INFO: Loading 63 JAR files: [/sapmnt/DEF/global/security/lib/tools/iaik_jce.jar, /sapmnt/DEF/global/security/lib/tools/iaik_jsse.jar, /sapmnt/DEF/global/security/lib/tools/iaik_smime.jar, /sapmnt/DEF/global/security/lib/tools/iaik_ssl.jar, /sapmnt/DEF/global/security/lib/tools/w3c_http.jar, /tmp/sapinst_instdir/NW73/SBC/STANDARD/install/lib/jaas.jar, 

<snipped>

/tmp/sapinst_instdir/NW73/SBC/STANDARD/install/lib/tc~je~cl_deploy.jar, /usr/sap/DEF/J00/exe/db2jcc4.jar]
   INFO: Start
Problems installing the first temporary license
com.sap.engine.frame.core.configuration.ConfigurationException: Error while connecting to DB.
 at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPoolImpl.createConnection(DBConnectionPoolImpl.java:496)
 at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPoolImpl.<init>(DBConnectionPoolImpl.java:197)
 at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceHandlerImpl.<init>(PersistenceHandlerImpl.java:50)
 at com.sap.engine.core.configuration.impl.cache.ConfigurationController.<init>(ConfigurationController.java:139)
 at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.init(ConfigurationManagerBootstrapImpl.java:309)
 at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.<init>(ConfigurationManagerBootstrapImpl.java:59)
 at com.sap.engine.tools.offlinelikeyinst.Installer.<init>(Installer.java:53)
 at com.sap.engine.tools.offlinelikeyinst.InstallFirstTempLicense.start(InstallFirstTempLicense.java:91)
 at com.sap.engine.tools.offlinelikeyinst.InstallFirstTempLicense.main(InstallFirstTempLicense.java:59)
 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:597)
 at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:162)
Caused by: com.sap.sql.log.OpenSQLException: Exception of type com.ibm.db2.jcc.am.DisconnectNonTransientConnectionException caught: [jcc][t4][2057][11264][4.15.147]
The application server rejected establishment of the connection.
An attempt was made to access a database, ABC, which was either not found or does not support transactions. ERRORCODE=-4499, SQLSTATE=08004.

<snipped>

ERROR      2021-12-01 12:00:22.666 (root/sapinst) (startInstallation) id=ind-rel.ind-os.ind-db.j2ee-eng.tempLicense.sysTempNotAvailable errno=CJS-20020 com.sap.sdt.ins.component.import_temp_license_java.InstallTemporaryLicense
Error when installing temporary license.
DETAILS: External systems are temporarily unavailable.
SOLUTION: Ensure that the SCS instance (SAP Messaging Service) and the Java database are up and running.

 
OR

Problems installing the first temporary license
com.sap.engine.frame.core.configuration.ConfigurationException: Error during initialization of DBConnection.
 at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionImpl.<init>(DBConnectionImpl.java:57)
 at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPoolImpl.createConnection(DBConnectionPoolImpl.java:494)
 at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPoolImpl.<init>(DBConnectionPoolImpl.java:197)
 at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceHandlerImpl.<init>(PersistenceHandlerImpl.java:50)
 at com.sap.engine.core.configuration.impl.cache.ConfigurationController.<init>(ConfigurationController.java:139)
 at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.init(ConfigurationManagerBootstrapImpl.java:309)
 at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.<init>(ConfigurationManagerBootstrapImpl.java:59)
 at com.sap.engine.tools.offlinelikeyinst.Installer.<init>(Installer.java:53)
 at com.sap.engine.tools.offlinelikeyinst.InstallFirstTempLicense.start(InstallFirstTempLicense.java:91)
 at com.sap.engine.tools.offlinelikeyinst.InstallFirstTempLicense.main(InstallFirstTempLicense.java:59)
 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:597)
 at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:162)
Caused by: com.sap.sql.exception.OpenSQLSyntaxErrorException: DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, SQLERRMC=SAPDEFDB.J2EE_CONFIG, DRIVER=4.15.147 
 OpenSQLExceptionCategories: [NON_TRANSIENT, DB_OBJECT_UNKNOWN]


Read more...

Environment

  • Java only system
  • IBM Db2 for Linux, UNIX, and Windows

Keywords

rename, rejected establishment, attempt, access, database, not found , KBA , BC-DB-DB6-INS , Installation SAP System , BC-JAS-ADM-ADM , Administration , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.