One Developer
One Developer

Reputation: 576

Unable to connect to the database using Hikari connection pool

I wish to use Hikari Connection Pool in my Spring application to connect to the Oracle Database

Below is the connection string

JDBC URL: jdbc:oracle:thin:@ldaps://abc-def-dmz.demo.com:876/SOM_APP,cn=oraclecontext,dc=demo,dc=com

Getting the following error

Error Message: Failed to initialize pool: IO Error: JNDI Package failure javax.naming.CommunicationException: localhost:876[Root exception is java.net.ConnectException: Connection refused: connect]

How do I fix this?

Upvotes: 0

Views: 2227

Answers (1)

pmdba
pmdba

Reputation: 7043

java.net.ConnectException: Connection refused: connect

The error implies that your connection is being blocked, most likely by a firewall. Check with your DBA and system or network administrators to make sure the network path to the server is open, and that you are using the right port numbers.

Upvotes: 0

Related Questions