Cannot Establish Connection (Error Code: 17002) Randomly With JDBC Thin Driver
Last updated on DECEMBER 01, 2017
Applies to:JDBC - Version 10.2.0.1 and later
Information in this document applies to any platform.
***Checked for relevance on 09-Jan-2013***
When using the ORACLE JDBC thin driver to access a database server instance, it fails with the following Exception:
java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
This happens when looping on the following sequence :
- connect to the database server (DriverManager.getConnection() method)
- close JDBC connection
After executing N times (randomly) this sequence of code fails at connection time.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms