My Oracle Support Banner

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 MARCH 14, 2023

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

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.