DATAGUARD主庫重做日誌不能同步至備庫 alert日中報ORA-12170故障處理

yuntui發表於2016-11-03
DATAGURAD主庫
系統:solaris 10
資料庫:10.2.0.4   RAC ASM

備庫:
物理備庫
其註冊在11G的監聽上。
注:該備庫主機上有一套11GRAC還有10G的備庫。

以下是詳細處理過程:
1、重做日誌不能同步至備庫,ALERT日誌中報如下錯:
Tue May  6 09:34:50 2014
Errors in file /oracle/admin/dbrac/bdump/dbrac1_lns1_23898.trc:
ORA-12170: TNS:Connect timeout occurred
LNS: Failed to archive log 32 thread 1 sequence 206745 (12170)
Tue May  6 09:38:55 2014
Error 12170 received logging on to the standby
Tue May  6 09:38:55 2014
Errors in file /oracle/admin/dbrac/bdump/dbrac1_arc3_8899.trc:
ORA-12170: TNS:Connect timeout occurred
FAL[server, ARC3]: Error 12170 creating remote archivelog file 'dbrac_standby'
FAL[server, ARC3]: FAL archive failed, see trace file.


2、透過排查,備庫IP能通,TNS配置正常,由於備庫的監聽HANG住,
a、檢視備庫監聽狀態發現監聽HANG住
bash-3.00$ lsnrctl status


LSNRCTL for Solaris: Version 11.2.0.3.0 - Production on 06-MAY-2014 10:09:22


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


Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
^C                                     《《===========檢視監聽狀態一直卡住,只能CTRL+C
bash-3.00$ which lsnrctl
/oracle/app/db/product/11.2.0/db/bin/lsnrctl
bash-3.00$ lsnrctl stop


LSNRCTL for Solaris: Version 11.2.0.3.0 - Production on 06-MAY-2014 10:10:32


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


Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
^C                    《《===========停掉監聽一直卡住,只能CTRL+C
bash-3.00$ 

b、將監聽程式予以kill重啟後,重做日誌能正常同步至備庫。
bash-3.00$ ps -ef |grep lsnr
  oracle 22160     1   0   Apr 06 ?           1:56 /oracle/app/asm/11.2.0/grid/bin/tnslsnr LISTENER -inherit
  oracle 26696 23355   0 10:10:09 pts/5       0:00 grep lsnr
  oracle 13109     1   3   Apr 11 ?        2696:02 /oracle/app/db/product/11.2.0/db/bin/tnslsnr LISTENER -inherit
bash-3.00$ kill -9 13109
bash-3.00$ lsnrctl start


LSNRCTL for Solaris: Version 11.2.0.3.0 - Production on 06-MAY-2014 10:10:59


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


Starting /oracle/app/db/product/11.2.0/db/bin/tnslsnr: please wait...


TNSLSNR for Solaris: Version 11.2.0.3.0 - Production
Log messages written to /oracle/app/db/product/11.2.0/db/log/diag/tnslsnr/dbbak1/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dbbak1)(PORT=1521)))


Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Solaris: Version 11.2.0.3.0 - Production
Start Date                06-MAY-2014 10:10:59
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Log File         /oracle/app/db/product/11.2.0/db/log/diag/tnslsnr/dbbak1/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dbbak1)(PORT=1521)))
The listener supports no services
The command completed successfully
bash-3.00$ 
bash-3.00$ lsnrctl status


LSNRCTL for Solaris: Version 11.2.0.3.0 - Production on 06-MAY-2014 10:11:06


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


Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Solaris: Version 11.2.0.3.0 - Production
Start Date                06-MAY-2014 10:10:59
Uptime                    0 days 0 hr. 0 min. 7 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Log File         /oracle/app/db/product/11.2.0/db/log/diag/tnslsnr/dbbak1/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dbbak1)(PORT=1521)))
The listener supports no services
The command completed successfully
bash-3.00$ 
bash-3.00$ sqlplus / as sysdba


SQL*Plus: Release 11.2.0.3.0 Production on Tue May 6 10:11:19 2014


Copyright (c) 1982, 2011, Oracle.  All rights reserved.




Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options


SQL> alter system register;  


System altered.


SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
bash-3.00$ lsnrctl status


LSNRCTL for Solaris: Version 11.2.0.3.0 - Production on 06-MAY-2014 10:11:35


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


Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Solaris: Version 11.2.0.3.0 - Production
Start Date                06-MAY-2014 10:10:59
Uptime                    0 days 0 hr. 0 min. 36 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Log File         /oracle/app/db/product/11.2.0/db/log/diag/tnslsnr/dbbak1/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dbbak1)(PORT=1521)))
Services Summary...
Service "dbtest" has 1 instance(s).
  Instance "dbtest1", status READY, has 1 handler(s) for this service...
Service "dbtestXDB" has 1 instance(s).
  Instance "dbtest1", status READY, has 1 handler(s) for this service...
The command completed successfully
bash-3.00$ 
bash-3.00$ lsnrctl status


LSNRCTL for Solaris: Version 11.2.0.3.0 - Production on 06-MAY-2014 10:12:33


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


Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Solaris: Version 11.2.0.3.0 - Production
Start Date                06-MAY-2014 10:10:59
Uptime                    0 days 0 hr. 1 min. 34 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Log File         /oracle/app/db/product/11.2.0/db/log/diag/tnslsnr/dbbak1/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dbbak1)(PORT=1521)))
Services Summary...
Service "dbrac" has 1 instance(s).
  Instance "dbrac1", status READY, has 1 handler(s) for this service...
Service "dbrac" has 1 instance(s).
  Instance "dbrac1", status READY, has 1 handler(s) for this service...
Service "dbrac_standby" has 1 instance(s).
  Instance "dbrac1", status READY, has 1 handler(s) for this service...
Service "dbrac_standby_XPT" has 1 instance(s).
  Instance "dbrac1", status READY, has 1 handler(s) for this service...
Service "dbtest" has 1 instance(s).
  Instance "dbtest1", status READY, has 1 handler(s) for this service...
Service "dbtestXDB" has 1 instance(s).
  Instance "dbtest1", status READY, has 1 handler(s) for this service...
The command completed successfully

備庫監聽恢復正常,檢查主庫ALERT日誌,主庫重做日誌傳輸正常,詳細如下:
LNS: Standby redo logfile selected for thread 1 sequence 203309 for destination LOG_ARCHIVE_DEST_2

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30633755/viewspace-2127678/,如需轉載,請註明出處,否則將追究法律責任。

相關文章