Archive Log Shipping From Primary to Standby Fails With ORA-12514

(Doc ID 563801.1)

Last updated on JANUARY 17, 2018

Applies to:

Oracle Database - Enterprise Edition - Version 9.0.1.4 to 12.2.0.1 [Release 9.0.1 to 12.2]
Oracle Net Services - Version 9.2.0.5.0 to 12.2.0.1 [Release 9.2 to 12.2]
Information in this document applies to any platform.

Symptoms

You are unable to ship the archive log from the primary database to the standby.  The following error is being consistently thrown:  ORA-12514 TNS:listener could not resolve SERVICE_NAME given in connect descriptor

In this example, there are 3 nodes in RAC setup  database as Primary and 2 nodes in RAC setup as Standby.  While shipping logs from primary to standby the following error messages are thrown in the alert.log:

*** SESSION ID:(17.1) 2008-04-08 12:56:07.170
Error 12514 connecting to destination LOG_ARCHIVE_DEST_2 standby host '<tns_connect_string>'
Error 12514 attaching to destination LOG_ARCHIVE_DEST_2 standby host '<tns_connect_string>'

*** 2008-04-08 12:56:26.385
ARC0: Error 12514 Creating archive log file to '<tns_connect_string>' 
*** 2008-04-08 12:56:26.385
kcrrfail: dest:2 err:12514 force:0
ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor
*** 2008-04-08 13:02:07.235
Error 12514 connecting to destination LOG_ARCHIVE_DEST_2 standby host '<tns_connect_string>' 
Error 12514 attaching to destination LOG_ARCHIVE_DEST_2 standby host '<tns_connect_string>'
Heartbeat failed to connect to standby '<tns_connect_string>'. Error is 12514.

 

If using a SCAN listener address to connect to the target, (see HOST field) please change to VIP.
.

Fatal NI connect error 12514, connecting to: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=your_scan_host)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ORCL)(CID=(PROGRAM=oracle)(HOST=your_client)(USER=oracle))))

VERSION INFORMATION: TNS for Solaris: Version 11.2.0.3.0 - Production TCP/IP NT Protocol Adapter for Solaris: Version 11.2.0.3.0 - Production Time: 11-JAN-2018 08:24:01 Tracing not turned on. Tns error struct: ns main err code: 12564

TNS-12564: TNS:connection refused ns secondary err code: 0
nt main err code: 0 nt secondary err code: 0
nt OS err code: 0
Error 12514 received logging on to the standby PING[ARC1]: Heartbeat failed to connect to standby 'TPINDR'. Error is 12514.

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