Why Does a Failed JDBC/Thin Connection Sometimes Fail with a "The Network Adapter could not establish the connection" Exception and Other Times Fail with a "Socket read timed out" Exception? (Doc ID 1117096.1)

Last updated on APRIL 29, 2017

Applies to:

JDBC - Version 10.2.0.4 and later
Oracle WebLogic Server - Version 11.1.1.5.0 and later
Information in this document applies to any platform.

Goal

When the value of oracle.net.CONNECT_TIMEOUT is purposefully set to a value low enough to cause a JDBC/Thin connection to fail, why does the failed connection sometimes fail with a "java.sql.SQLException: Io exception: The Network Adapter could not establish the connection" exception and other times fail with a "java.sql.SQLException: Io exception: Socket read timed out" exception.

Solution

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