SAP Knowledge Base Article - Preview

2450399 - SWPM: saplikey returns error code 2 (temp license)


During the execution of Software Provisioning Manager tool (SWPM) with Oracle database, in step createTempLicense, the tool stops with the following error:

WARNING <date> <time>
Execution of the command "/usr/sap/<SID>/SYS/exe/uc/<os>/saplikey pf=/usr/sap/<SID>/SYS/profile/<instance profile> -install_first_temp <nnnnnn> XXXXXX" finished with return code 2. Output:
saplikey: failed to load shared library when connecting to the database.
ERROR <date> <time>
Process call '/usr/sap/<SID>/SYS/exe/uc/<os>/saplikey pf=/usr/sap/<SID>/SYS/profile/<instance profile> -install_first_temp <nnnnnn> XXXXXX' exits with error code 2. For details see log file(s) saplikey.log, dev_slic.
ERROR <date> <time>
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

More details can be found in the file dev_likey:

Loading DB library '/usr/sap/<SID>/SYS/exe/run/' ...
*** ERROR => DlLoadLib()==DLENOACCESS - dlopen("/usr/sap/<SID>/SYS/exe/run/") FAILED
" saplikey: fatal: /usr/sap/<SID>/SYS/exe/run/ open failed: No such file or directory" [dlux.c 521]
*** ERROR => Couldn't load library '/usr/sap/<SID>/SYS/exe/run/'
[dbcon.c 6586]
*** ERROR => saplikey: failed to load shared library when connecting to the database. [saplikey.c 819]



  • Software Provisioning Manager (SWPM);
  • Systems based on SAP NetWeaver 7.1 or higher;
  • Unix-based Operating System;
  • Oracle Database.


SAP NetWeaver 7.1 ; SAP NetWeaver 7.2 ; SAP NetWeaver 7.3 ; SAP NetWeaver 7.4 ; SAP NetWeaver 7.5 ; SAP enhancement package 1 for SAP NetWeaver 7.3


Software Provisioining Manager, SWPM, SAPinst, Installer, Install, Installation, System Copy, Copying, Migration, Migrate, Migrating, OS/DB, OSDB, Homogeneous, Heterogeneous, HSC, NW, 7.1, 7.11, 7.2, 7.3, 7.31, 7.4, 7.5, 710, 711, 720, 730, 731, 740, 750, AS, Java, ABAP, Backup, Restore, Backup/Restore, Restoring, Export, Exporting, Import, Importing, Oracle, Ora, saplikey, templicense, temporary license, temp, DLL, library, lib , KBA , BC-INS , Installation Tools (SAP Note 1669327) , BC-DB-ORA , Oracle , BC-INS-MIG , OS/DB Migrations with SWPM and DB refresh , BC-INS-UNX , Installation Unix , BC-DB-ORA-INS , Installation SAP System , BC-SEC-LIK , Licence Key Administration , Problem

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.