Reputation: 576
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
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