SAP Knowledge Base Article - Preview

3463911 - saplikey: failed to read table SVERS after connecting to the database.

Symptom

When performing Primary Application Server installation during Installation/System Copy with Software Provisioning Manager (SWPM),

Scenario 1: you can see following entries in the sapinst_dev.log file:

TRACE      2024-04-30 12:10:46.258 (root/sapinst) (startInstallation) [SLPGuiEngine.cpp:214] SLPGuiEngine::showMessageBoxHandleButtonImpl()
<html> <head> </head> <body> <p> An error occurred while processing option <i> <Product> > <Database> > Installation > Application Server ABAP > Distributed System > Primary Application Server Instance (Last error reported by the step: Process call '/usr/sap/<SID>/SYS/exe/uc/linuxx86_64/saplikey pf=/usr/sap/<SID>/SYS/profile/<SID>_D<nr>_<hostname> -install_first_temp D0038054630 XXXXXX' exits with error code 2. For details see log file(s) saplikey.log, dev_slic)</i>. You can now: </p> <ul> <li> Choose <i>Retry</i><br>to repeat the current step. </li> <li> Choose <i>Log Files</i><br>to get more information about the error. </li> <li> Stop the option and continue later. 

You can also see following error entries in the respected log file:

saplikey.log:

saplikey: failed to read table SVERS after connecting to the database.

dev_likey.log:

 --------------- DatabaseMetaData ---------------
   where: /bas/793_REL/src/krn/dbi/metadata/dbi_metadata_database.cpp:104

Connection 0 'R/3' opened (DBSL handle 0) -> DBSL operation took 42 ms
*** ERROR =>   prepare() of C_0000, rc=1, rcSQL=259
 [dbsdbsql.cpp 2708]
*** ERROR => PREPARE C_0000 on connection 0, rc=259
 [dbslsdb.cpp  8262]
SQLCODE    : 259
SQLERRTEXT : invalid table name:  Could not find table/view SVERS in schema <Schemaname>: line 1 col 21 (at pos 20)
sc_p=5652937b4868,no=0,idc_p=(nil),con=0,hit=0,cnt=1,act=1,slen=25,smax=256,#vars=0,stmt=56529393cec8,#tabs=1,tables=SVERS
prepared=0,lastPrepareTime=,nativeSQL=0,ignoreStmtId=0
SELECT VERSION FROM SVERS;
***LOG BZA=> table SVERS does not exist on database [dblink 1497]
*** ERROR => saplikey: failed to read table SVERS after connecting to the database. [saplikey.c   836]

Scenario 2:

In sapinst_dev.log, there are following entries.

ERROR      <time stamp> (root/sapinst) (startInstallation) [CSiStepExecute.cpp:1105] id=controller.stepExecuted errno=FCO-00011 CSiStepExecute::execute()
The step createTempLicense with step key |NW_ABAP_CI|ind|ind|ind|ind|0|0|NW_CI_Instance|ind|ind|ind|ind|ci|0|NW_Temp_License_ABAP|ind|ind|ind|ind|lic|0|createTempLicense was executed with status ERROR (Last error reported by the step: Process call '/usr/sap/<SID>/SYS/exe/uc/linuxx86_64/saplikey pf=/usr/sap/<SID>/SYS/profile/<SID>_<Instance Number>_<hostname> -install_first_temp <XXX> XXXXXX' exits with error code 2. For details see log file(s) saplikey.log, dev_slic).

In saplikey.log, there are following entries.

saplikey: failed to connect to the database.

After executing "R3trans -d" via <SID>adm user, the following entries can be found (The following log sample is from oracle database) .

4 ETW000 R3trans version <release>.
4 ETW000 unicode enabled version
4 ETW000 ===============================================
4 ETW000 
4 ETW000 date&time   : <time stamp>
4 ETW000 control file: <no ctrlfile>
4 ETW000 R3trans was called as follows: R3trans -d
4 ETW000  trace at level 1 opened for a given file pointer
4 ETW000  [     dev trc,00000]  <time stamp>
4 ETW000  [     dev trc,00000]  Loading DB library '/usr/sap/<SID>/SYS/exe/run/dboraslib.so' ...
4 ETW000  [     dev trc,00000]  Library '/usr/sap/<SID>/SYS/exe/run/dboraslib.so' loaded
4 ETW000  [     dev trc,00000]  Version of '/usr/sap/<SID>/SYS/exe/run/dboraslib.so' is "<kernel version>", patchlevel (<patch level>)
4 ETW000  [dbsloci.c   ,00000]  *** ERROR => DbSlConnect(ci=NULL): missing connection info (vers=-1)
4 ETW000  [dbsloci.c   ,00000]  *** ERROR =>    DbSlConnect() failed with 18=DBSL_ERR_CONNECT
2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = '<SID>'"


Read more...

Environment

NetWeaver ABAP system.

Product

SAP BW/4HANA 2023 ; SAP NetWeaver all versions ; SAP S/4HANA all versions

Keywords

Distributed System, errno=FCO-00011, createTempLicense, errno=CJS-30023, table SVERS does not exist on database, SQLCODE 259, rcSQL=259,  exits with error code 2, failed to connect to the database, failed to read table SVERS after connecting to the database , KBA , BC-INS-SWPM , Installation with Software Provisioning Manager , Problem

About this page

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

Search for additional results

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