My Oracle Support Banner

JDBC Driver 23.2 Is Evaluating Hosts In The Wrong Order When Data Guard Database is Secondary (Doc ID 2978750.1)

Last updated on OCTOBER 10, 2023

Applies to:

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

Symptoms


When attempting to run a JDBC application, the JDBC 23.2 attempts to connect to the 2nd host listed in the connect string of the JDBC URL that uses a primary database and data guard database as a secondary database, which causes the following error:

ORA-12514: Cannot connect to database. Service <service-name>is not registered with the listener at host <DR-Host> port <port>.

 

 

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.