SAP Knowledge Base Article - Preview

2961140 - SQLERRTEXT : general error: database 'SID' not connected

Symptom

  • SAP System is not able to connect to the SAP HANA Database due to error: rc=1, rcSQL=2

  • In the dev_w* trace, you find these messages:

C *** ERROR => Connect to database failed, rc=1, rcSQL=2
[dbhdbsql.cpp 420]
C SQLCODE : 2
C SQLERRTEXT : general error: database 'SID' not connected
B ***LOG BY2=> sql error 2 performing CON
B ***LOG BY0=> general error: database 'SID' not connected
B ***LOG BY2=> sql error 2 performing CON
B ***LOG BY0=> general error: database 'SID' not connected
M ***LOG R19=> ThDbConnect, db_connect ()
M in_ThErrHandle: 1
M *** ERROR => ThInit: db_connect (step TH_INIT, thRc ERROR-DB-CONNECT_ERROR, action STOP_WP, level 1)

  • In the trans.log, you find these messages

4 ETW000 [dbhdbsql.cpp,00000] *** ERROR => Connect to database failed, rc=1, rcSQL=2
4 ETW000 [ dev trc,00000] SQLCODE : 2
4 ETW000 [ dev trc,00000] SQLERRTEXT : general error: database 'SID' not connected
4 ETW000 [ dblink ,00000] ***LOG BY2=>sql error 2 performing CON
4 ETW000 [ dblink ,00000] ***LOG BY0=>general error: database 'SID' not connected
2EETW169 no connect possible: "DBMS = HDB --- SERVER = '' PORT = ''"


Read more...

Environment

  • SAP HANA, platform edition
  • SAP NetWeaver

Product

SAP HANA, platform edition all versions ; SAP NetWeaver all versions

Keywords

hdbuserstore, application, server, host, port, tenant, tenantdb, secure, user, store,  default, abap , KBA , HAN-DB-SEC , SAP HANA Security & User Management , HAN-DB-CLI , SAP HANA Clients (JDBC, ODBC) , 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.