SWPM: saplikey: failed to connect to the database

You are in the midst of performing system copy activity with SAP software provisioning manager but end-up with below error message,

An error occurred while processing option SAP Business Suite 7i 2016 > 
EHP8 for SAP ERP 6.0 ABAP > MS SQL Server > System Copy > Target System > 
Distributed System > Based on AS ABAP > Primary Application Server Instance 
(Last error reported by the step: Process call 'E:\usr\sap\SID\SYS\exe\uc\NTAMD64\saplikey 
pf=\\HOSTNAME\sapmnt\SID\SYS\profile\SID_D00_HOSTNAME -install_first_temp W12345678 XXXXXX' exits with error code 2. 
For details see log file(s) saplikey.log,

From the saplikey.log file, you notice the following message,

saplikey: failed to connect to the database.

Solution

The are multiple causes related to this error, you might want to check the following resolutions,

  • The error could be possibly due to the missing environment variables. Focus specially in the environment variables DIR_LIBRARY and LD_LIBRARY_PATH. You may refer to the SAP note 2450399 – SWPM: saplikey returns error code 2 (temp license).

You May Also Like

Leave a Reply?