Hello All,
We are facing an issue while doing a system restore on Windows 2003 / MS SQL 2005 / SAP 4.7D EXT 110. We followed the System copy option using SAPInst to do our system restore. When SAPinst prompted for DB import we stopped the SAPINST Tool and started our DB restore using our backup tool. Once the DB restore was successfully done , we restarted SAPINST and tried to continue with the import. However in the POST DB load step it is giving us an error as below;
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ERROR
MOS-01012 PROBLEM: 'C:\usr\sap\SID\SYS\exe\run/saplicense -R3Setup SID "S782KZCP" TRACE=2' returned with '-2' which is not a defined as a success code.
Creating file C:\Program Files\sapinst_instdir\R3E47X2\COPY\IMPORT\SYSTEM\ABAP\MSS\NUC\DB\saplicense.log.
Switched to user: sidadm.
Working directory changed to C:\Program Files\sapinst_instdir\R3E47X2\COPY\IMPORT\SYSTEM\ABAP\MSS\NUC\DB.
See 'C:\usr\sap\SID\SYS\exe\run/saplicense -R3Setup SID "6FJD2I4C" TRACE=2' output in 'C:\Program Files\sapinst_instdir\R3E47X2\COPY\IMPORT\SYSTEM\ABAP\MSS\NUC\DB\saplicense.log'.
ERROR
MOS-01012 PROBLEM: 'C:\usr\sap\SID\SYS\exe\run/saplicense -R3Setup SID "6FJD2I4C" TRACE=2' returned with '-2' which is not a defined as a success code.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
We upgraded the kernel to the latest version and have implemented the environment variables [ MSSQL_SCHEMA ; MSSQL_DBNAME; DIR_LIBRARY ; SAPLOCALHOST ; DBMS_TYPE etc ] . However that has not helped.
The id that we have used for the installation is not the sidadm id but an administrator id.
The saplicense.log simply reads as below;
-------------------------------------------
'Tue Apr 08 23:27:29 2014
MtxInit: 0 0 0'
-------------------------------------------
When we do a sapilcense -show using the administrator id it gives us the below results;
---------------------------------------------------------------------------------
C:\usr\sap\SP1\SYS\exe\run>saplicense -show
*** SAPLICENSE (Release 640) ERROR ***
ERROR: Connect to database failed
DETAILS: DbSlConnect failed with return code 99
SQL-ERROR 0 (check DB manual for explanation)
---------------------------------------------------------------------------------
So we logged in a separate session using sidadm and ran the same saplicense command. However we got the exact same output as above.
Then we ran a R3trans -d using the sidadm id and we got the below output;
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This is R3trans version 6.13 (release 640 - 17.09.12 - 20:12:05 ).
2EETW169 no connect possible: "DBMS = MSSQL --- SERVER = 'HOSTNAME' DBNAME = 'SID'"
R3trans finished (0012).
The trans.log read as below;
4 ETW000 [dev trc ,00000] OpenOledbConnection: line 23653. hr: 0x8000ffff Login failed for user 'DOMAIN\sidadm'.
4 ETW000 30451 0.038630
4 ETW000 [dev trc ,00000] sloledb.cpp [OpenOledbConnection,line 23653]: Error/Message: (err 18456, sev 0), Login failed for user 'DOMAIN\sidadm'.
4 ETW000 37 0.038667
4 ETW000 [dev trc ,00000] Procname: [OpenOledbConnection - no proc] 12 0.038679
4 ETW000 [dev trc ,00000] sloledb.cpp [OpenOledbConnection,line 23653]: Error/Message: (err 0, sev 0), Invalid connection string attribute
4 ETW000 109 0.038788
4 ETW000 [dev trc ,00000] Procname: [OpenOledbConnection - no proc] 14 0.038802
4 ETW000 [dev trc ,00000] Using Provider SQLNCLI 5268 0.044070
4 ETW000 [dev trc ,00000] OpenOledbConnection: MARS property was set successfully.
4 ETW000 146 0.044216
4 ETW000 [dev trc ,00000] OpenOledbConnection: line 23653. hr: 0x8000ffff Login failed for user 'DOMAIN\sidadm'.
4 ETW000 2978 0.047194
4 ETW000 [dev trc ,00000] sloledb.cpp [OpenOledbConnection,line 23653]: Error/Message: (err 18456, sev 0), Login failed for user 'DOMAIN\sidadm'.
4 ETW000 49 0.047243
4 ETW000 [dev trc ,00000] Procname: [OpenOledbConnection - no proc] 14 0.047257
4 ETW000 [dev trc ,00000] sloledb.cpp [OpenOledbConnection,line 23653]: Error/Message: (err 0, sev 0), Invalid connection string attribute
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Request you to kindly advise on how to resolve this issue. Is there an authentication mechanism ( similar to OPS$ in Oracle ) which is causing this issue in MSSQL.
Thanking you in advance,
Regards
Surajit