cancel
Showing results for 
Search instead for 
Did you mean: 

DBCDriverException: SAP DBTech JDBC: Cannot connect to jdbc

0 Kudos

DBCDriverException: SAP DBTech JDBC: Cannot connect to jdbc

DB in 20.172.x4x.xx8

Application in 20.x5.x7.xx

S/4 HANA installation JDBC Error. i am able to login HANA Studio. & if Application & DB in Same Host Means . No Error occur.

if Application and DB in different Host Means Error Occur .

Accepted Solutions (0)

Answers (1)

Answers (1)

prithviraj_ur
Discoverer
0 Kudos

Hi Sabari,

Can you check if you are able to connect the DB host from the application host on the particular port?

Try --> telnet <db hostname> 39015

Also, check if the port used is the right one by

From the tenant database: SELECT SERVICE_NAME, PORT, SQL_PORT, (PORT + 2) HTTP_PORT FROM SYS.M_SERVICES WHERE ((SERVICE_NAME='indexserver' and COORDINATOR_TYPE= 'MASTER') or (SERVICE_NAME='xsengine'))
From the system database: Replace the <DBNAME> with your tenant DB SID in the following SQL.SELECT DATABASE_NAME, SERVICE_NAME, PORT, SQL_PORT, (PORT + 2) HTTP_PORT FROM SYS_DATABASES.M_SERVICES WHERE DATABASE_NAME='<DBNAME>' and ((SERVICE_NAME='indexserver' and COORDINATOR_TYPE= 'MASTER') or (SERVICE_NAME='xsengine'))The value of SQL_PORT is the port number for the JDBC connection.

Hope this helps.
RegardsPrithviraj