Professional Documents
Culture Documents
Symptom
Error: "SAP DBTech JDBC: Cannot connect to jdbc:sap://<HOSTNAME>:<Port> [Cannot connect to host
<HOSTNAME>:<Port> [Connection refused: connect], -813.].
Environment
Cause
Using an invalid port number. Should use the proper port number for tenant DB.
Resolution
1. You can determine the ports used by a particular tenant database by querying the M_SERVICES
system view, either from the tenant database itself or from the system database.
From the system database: Exchange the <DBNAME> to your tenant DB SID in the following SQL.
2. Using the result of SQL_PORT as the port number for JDBC connection.
See Also
Keywords
Products