Quantcast
Channel: SCN : All Content - SAP NetWeaver Administrator
Viewing all articles
Browse latest Browse all 5139

SAP ECC6.0 cannot connect to SQL Server Database after recreating DB server

$
0
0

We had a disaster with our ECC 6.0 Development system a few days ago.  The system is called “DEV”.  The SQL Server database server got wiped out and we didn’t have a backup.  Luckily, we did have a backup of the database.  Our system engineers rebuilt the server and our DBA reinstalled SQL Server and restored the database.  The database came up fine, but when we try to start SAP, it fails.  “R3trans –d” also fails.  The database is SQL Server 2008R2 10.50.2769.  The OS is Windows Server 2008R2.

 

We verified that the “devadm” and “SAPServiceDEV” accounts have permissions on the on the server. We set the following Environment Variables for the devadm account on the database server:

DBMS_TYPE = mss

MSSQL_DBNAME = DEV

MSSQL_SCHEMA = dev

MSSQL_SERVER = <database server name>

SAPLOCALHOST = <database server name>

SAPSYSTEMNAME = DEV

 

We also set the following Registry Key:

HKEY_LOCAL_MACHINE/Software/SAP/DEV

Type:     REG_SZ

Value:   AdmUser

String:   <database server name>\devadm

 

We didn’t install any kind of SAP software on the database server.

 

Is there any kind of SAP components we need to install on the database server?  Do we need to run the SAP installer on the database server to get everything setup correctly?  I looked at another one of our SQL Server database servers and it has SAP Management Console installed and there is a C:\Program Files\SAP\hostcntl folder.  I don't know what that is or it has anything to do with SAP being able to connect to the database.

 

Here is the error message in the R3trans log file:

 

4 ETW000  [     dev trc,00000]  Wed Apr 29 09:44:39 2015 1501385  1.531756

4 ETW000  [     dev trc,00000]  ERROR: -1 in function ExecuteAndFlush (SQLExecDirect) [line 6702]         35  1.531791

4 ETW000  [     dev trc,00000]  (102) [42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near 'execute.'.

4 ETW000 22 1.531813

4 ETW000  [     dev trc,00000]  <if user_name() != 'dev' execute as login = suser_sname(suser_sid('dev')) with no revert> failed -- connect terminated

4 ETW000 38 1.531851

4 ETW000  [    dblink ,00000]  ***LOG BY2=>sql error 102    performing CON 56  1.531907

4 ETW000  [    dblink ,00000]  ***LOG BY0=>[Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near 'execute.'.

4 ETW000 30  1.531937

2EETW169 no connect possible: "DBMS = MSSQL ---  SERVER = '<db server name>' DBNAME = 'DEV'"

 

Please let me know what we need to do to get SAP to connect to the database.

 

Thanks,

Jerry


Viewing all articles
Browse latest Browse all 5139

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>