Tuesday, July 1, 2014

ORA-16737 :the redo transport service for standby database

1.Error with log shipping to remote standby destination
DGMGRL> show database verbose 'dbrac2_new' 'statusreport';
STATUS REPORT
       INSTANCE_NAME   SEVERITY ERROR_TEXT
       new12cdb_rac2      ERROR ORA-16737: the redo transport service for standby database "dbrac1" has an error
Alert log of primary database:-
================================
Fatal NI connect error 12514, connecting to:
 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ol6-112-rac1)(PORT=1524))(CONNECT_DATA=(SERVER=DEDICATED)(Service_NAME=DBRAC1_DGMGRL)(CID=(PROGRAM=oracle)(HOST=ol6-112-rac2.localdomain)(USER=oracle))))

  VERSION INFORMATION:
        TNS for Linux: Version 12.1.0.1.0 - Production
        TCP/IP NT Protocol Adapter for Linux: Version 12.1.0.1.0 - Production
  Time: 02-JUL-2014 11:56:56
  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
Wed Jul 02 11:56:56 2014


2. Check the static listener configuration in the standby side.
LISTEN_FOR_NEW12CDB=
(DESCRIPTION_LIST =
        (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.111)(PORT = 1524))
        )
)
SID_LIST_LISTEN_FOR_NEW12CDB=
(SID_LIST=
        (SID_DESC=
        (global_dbname=DBRAC1_DGB)
        (ORACLE_HOME=/u03/app/oracle/product/12.1.0/dbhome_1)
        (SID_NAME=new12cdb)
        )
 )
 

3.There is a mismatch with global_dbname entry in the listener.ora of the standby database with that of the service name it is trying to ship log to the standby database. changing the global_dbname to dbrac1_dgmgrl in the listener.ora file in the standby side
[oracle@ol6-112-rac1 admin]$ lsnrctl reload LISTEN_FOR_NEW12CDB\
> ;

LSNRCTL for Linux: Version 12.1.0.1.0 - Production on 02-JUL-2014 12:04:40

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.111)(PORT=1524)                                                                                       ))
The command completed successfully
[oracle@ol6-112-rac1 admin]$ cat listener.ora
LISTEN_FOR_NEW12CDB=
(DESCRIPTION_LIST =
        (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.111)(PORT = 1524))
        )
)
SID_LIST_LISTEN_FOR_NEW12CDB=
(SID_LIST=
        (SID_DESC=
        (global_dbname=DBRAC1_DGMGRL)
        (ORACLE_HOME=/u03/app/oracle/product/12.1.0/dbhome_1)
        (SID_NAME=new12cdb)
        )
 )

[oracle@ol6-112-rac1 admin]$ lsnrctl status LISTEN_FOR_NEW12CDB

LSNRCTL for Linux: Version 12.1.0.1.0 - Production on 02-JUL-2014 12:05:00

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.111)(PORT=1524)))
STATUS of the LISTENER
------------------------
Alias                     LISTEN_FOR_NEW12CDB
Version                   TNSLSNR for Linux: Version 12.1.0.1.0 - Production
Start Date                01-JUL-2014 12:51:31
Uptime                    0 days 23 hr. 13 min. 28 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u03/app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora
Listener Log File         /u03/app/oracle/diag/tnslsnr/ol6-112-rac1/listen_for_new12cdb/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.111)(PORT=1524)))
Services Summary...
Service "DBRAC1_DGMGRL" has 1 instance(s).
  Instance "new12cdb", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@ol6-112-rac1 admin]$

4.Check the statusreport of the primary database for the errors
DGMGRL> show database verbose 'dbrac2_new' 'statusreport';
STATUS REPORT
       INSTANCE_NAME   SEVERITY ERROR_TEXT
DGMGRL> show database dbrac1

Database - dbrac1

  Role:              PHYSICAL STANDBY
  Intended State:    APPLY-ON
  Transport Lag:     0 seconds (computed 1 second ago)
  Apply Lag:         0 seconds (computed 1 second ago)
  Apply Rate:        146.00 KByte/s
  Real Time Query:   ON
  Instance(s):
    new12cdb

Database Status:
SUCCESS


No comments: