JDBC Connection Failure: Network Adapter Could not Establish Connection When Using Shared Server (Doc ID 139775.1)

Last updated on JUNE 02, 2017

Applies to:

JDBC - Version 8.1.7.0 and later
Information in this document applies to any platform.

Symptoms

 You are attempting to connect to an Oracle instance using JDBC and you are receiving the following error.

java.sql.SQLException: Io exception:
The Network Adapter could not establish connection

SQLException: SQLState (null) vendor code (17002)

Any or all of the following conditions may also apply:

1) You are able to establish a SQL*Plus connection from the same client to the same Oracle instance.

2) You are able to establish a JDBC OCI connection, but not a Thin connection from the same client to the same Oracle instance.

3) The same JDBC application is able to connect from a different client to the same Oracle instance.

4) The same behavior applies whether the initial JDBC connection string specifies a hostname or an IP address.

Cause

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