My Oracle Support Banner

Intermittent TNS-12521 and ORA-12514 On RAC With DataGuard (Doc ID 2546305.1)

Last updated on APRIL 04, 2021

Applies to:

Universal Connection Pool - Version 12.1.0.2.0 and later
Information in this document applies to any platform.

Symptoms

JDBC application using JDBC/thin 12.2.0.1.0 and UCP 12.2.0.1.0 fails to connect with error ORA-12514  TNS:listener does not currently know of service requested in connect descriptor
when connecting to a DataGuard (DG) where the primary is the second address.

This issue occurs when trying to connect to DG standby. Also, this issue occurs only when DG is added to the JDBC URL.

TNS-12521 TNS:listener does not currently know of instance requested in connect descriptor errors are regularly seen in the listener logs. However, the connections can still succeed when there is no DG.
But, when the DG is added, connections fail with ORA-12514.

Exception stack

ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
at oracle.net.ns.NSProtocolNIO.negotiateConnection(NSProtocolNIO.java:264)
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:314)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1434)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:514)
::::::::::

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.