My Oracle Support Banner

Failover Failure and The Network Adapter Could Not Establish The Connection Error When Using DESCRIPTION_LIST with JDBC 12.1.0.2 (Doc ID 2108614.1)

Last updated on AUGUST 19, 2019

Applies to:

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

Symptoms

Standalone test shows a connection attempt using the JDBC/thin 12.1.0.2 (ojdbc7.jar) fails with "The Network Adapter could not establish the connection".
The same test succeeds with JDBC 11.2.0.3 (ojdbc6.jar) or JDBC 12.1.0.1 (ojdbc7.jar).

The connect string is:

url=jdbc:oracle:thin:@(DESCRIPTION_LIST=(LOAD_BALANCE=off)(FAILOVER=on)(DESCRIPTION=(CONNECT_TIMEOUT=3)(RETRY_COUNT=3)(ADDRESS_LIST=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=<HOSTNAME1>)(PORT=<PORT>)))(CONNECT_DATA=(SERVICE_NAME=<SERVICE_NAME1>)))(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=<HOSTNAME2>)(PORT=<PORT>))) (CONNECT_DATA=(SERVICE_NAME=<SERVICE_NAME2>))))


If the <SERVICE_NAME1> is available on <HOSTNAME1>, the connection will be made successfully. If, however, the <SERVICE_NAME1> is not available on <HOSTNAME1>, but <SERVICE_NAME2> is available on  <HOSTNAME2>, the connection will still fail.

Changes

 

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
Changes
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.