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 10, 2017

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=host1)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=service1)))(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=host2)(PORT=1521))) (CONNECT_DATA=(SERVICE_NAME=service2))))


If the service1 is available on host1 the connection will be made successfully. If, however, the service1 is not available on host1, but service2 is available on  host2 the connection will still fail

Changes

 

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