My Oracle Support Banner

"java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection" Connecting To A New RAC Installation (Doc ID 2758959.1)

Last updated on NOVEMBER 16, 2023

Applies to:

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

Symptoms

An application using the SCAN HOST to connect to a new Database RAC 19.3 installation is reporting the next error:

Could not establish connection using the URL: jdbc:oracle:thin:@(DESCRIPTION=(CONNECT_TIMEOUT=90) (RETRY_COUNT=20)(RETRY_DELAY=3) (TRANSPORT_CONNECT_TIMEOUT=3000)(ADDRESS=(PROTOCOL=TCP)(HOST=<SCAN>)(PORT=<PORT>))(CONNECT_DATA=(SERVICE_NAME=<SERVICE NAME>)))
java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
       at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:743)
       at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:666)
       at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
       at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:566)
       at java.sql.DriverManager.getConnection(DriverManager.java:571)
       at java.sql.DriverManager.getConnection(DriverManager.java:215)
       at ConnTest.main(ConnTest.java:18)
Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
       at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:470)
       at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:506)
       at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:595)
       at oracle.net.ns.NSProtocolStream.negotiateConnection(NSProtocolStream.java:220)
       at oracle.net.ns.NSProtocol.connect(NSProtocol.java:264)
       at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1452)
       at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:496)
       ... 6 more
Caused by: java.net.SocketTimeoutException: connect timed out
       at java.net.PlainSocketImpl.socketConnect(Native Method)
       at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:344)
       at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
       at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
       at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
       at java.net.Socket.connect(Socket.java:579)
       at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:161)
       at oracle.net.nt.ConnOption.connect(ConnOption.java:159)
       at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:428)
       ... 12 more

 

Cause

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
Symptoms
Cause
Solution
References


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