PING[ARC2]: Heartbeat failed to connect to standby 'DG'. Error is 12541
環境:
RAC 2節點:
alert日誌報錯:
RAC1:PING[ARC2]: Heartbeat failed to connect to standby 'DG'. Error is 12541
RAC2:PING[ARC2]: Heartbeat failed to connect to standby 'DG'. Error is 12541
DG:FAL[client, USER]: Error 12543 connecting to RAC for fetching gap sequence
檢視DG監聽有問題:
[oracle@dg ~]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 06-DEC-2017 02:00:40
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=dg)(PORT=1521))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
重新註冊監聽:
[oracle@dg ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Wed Dec 6 02:02:33 2017
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, OLAP, Data Mining and Real Application Testing options
SQL> select open_mode,database_role from v$database;
OPEN_MODE DATABASE_ROLE
-------------------- ----------------
MOUNTED PHYSICAL STANDBY
[oracle@dg ~]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 06-DEC-2017 02:03:42
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.3.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/dg/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dg)(PORT=1521)))
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=dg)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date 06-DEC-2017 02:03:42
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/dg/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dg)(PORT=1521)))
Services Summary...
Service "DG" has 1 instance(s).
Instance "DG", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@dg ~]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 06-DEC-2017 02:04:05
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=dg)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date 06-DEC-2017 02:03:42
Uptime 0 days 0 hr. 0 min. 22 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/dg/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dg)(PORT=1521)))
Services Summary...
Service "DG" has 2 instance(s).
Instance "DG", status UNKNOWN, has 1 handler(s) for this service...
Instance "DG", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@dg ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Wed Dec 6 02:04:17 2017
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, 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, OLAP, Data Mining and Real Application Testing options
[oracle@dg ~]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 06-DEC-2017 02:04:39
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=dg)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date 06-DEC-2017 02:03:42
Uptime 0 days 0 hr. 0 min. 56 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/dg/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dg)(PORT=1521)))
Services Summary...
Service "DG" has 2 instance(s).
Instance "DG", status UNKNOWN, has 1 handler(s) for this service...
Instance "DG", status READY, has 1 handler(s) for this service...
The command completed successfully
開啟DG應用同步:
[oracle@dg ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Wed Dec 6 02:05:05 2017
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, OLAP, Data Mining and Real Application Testing options
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION
*
ERROR at line 1:
ORA-01153: an incompatible media recovery is active
SQL> shutdown immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup nomount;
ORACLE instance started.
Total System Global Area 1.7103E+10 bytes
Fixed Size 2245480 bytes
Variable Size 2080378008 bytes
Database Buffers 1.4999E+10 bytes
Redo Buffers 21708800 bytes
SQL> alter database mount;
Database altered.
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;
Database altered.
SQL> select thread#, max(sequence#) from v$archived_log where applied='YES' group by thread#;
THREAD# MAX(SEQUENCE#)
---------- --------------
1 71127
2 83492
檢視RAC和DG的MAX(SEQUENCE#)已經同步。
SQL> select RECOVERY_MODE from v$archive_dest_status where rownum<5;
RECOVERY_MODE
-----------------------
MANAGED REAL TIME APPLY
IDLE
IDLE
IDLE
如果要把DG開啟為open狀態執行以下步驟:
SQL> alter database open read only;
alter database open read only
*
ERROR at line 1:
ORA-10456: cannot open standby database; media recovery session may be in
progress
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
Database altered.
SQL> alter database open read only;
Database altered.
SQL> select RECOVERY_MODE from v$archive_dest_status where rownum<5;
RECOVERY_MODE
-----------------------
IDLE
IDLE
IDLE
IDLE
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;
Database altered.
SQL> select RECOVERY_MODE from v$archive_dest_status where rownum<5;
RECOVERY_MODE
-----------------------
MANAGED REAL TIME APPLY
IDLE
IDLE
IDLE
SQL> select status from v$instance;
STATUS
------------
OPEN
SQL> select thread#, max(sequence#) from v$archived_log where applied='YES' group by thread#;
THREAD# MAX(SEQUENCE#)
---------- --------------
1 71129
2 83494
在RAC節點強制性的進行重做日誌切換檢查RAC和DG是否同步正常:
SQL> alter system switch logfile;
System altered.
測試下來RAC和DG日誌同步正常:
RAC1:
SQL> select thread#, max(sequence#) from v$archived_log where applied='YES' group by thread#;
THREAD# MAX(SEQUENCE#)
---------- --------------
1 71129
2 83495
RAC2:
SQL> select thread#, max(sequence#) from v$archived_log where applied='YES' group by thread#;
THREAD# MAX(SEQUENCE#)
---------- --------------
1 71129
2 83495
DG:
SQL> select thread#, max(sequence#) from v$archived_log where applied='YES' group by thread#;
THREAD# MAX(SEQUENCE#)
---------- --------------
1 71129
2 83495
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22996654/viewspace-2148314/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- PING[ARC2]: Heartbeat failed to connect to standby 'xyxdbs'. Error is 1605AIError
- PING[ARC2]: Heartbeat failed to connect to standby 'jzhddg'. Error is 16032.AIError
- PING[ARC5]: Heartbeat failed to connect to standby 'dghq'. Error is 12154.AIError
- 一天兩次,PING[ARC1]: Heartbeat failed to connect to standbyAI
- Oracle ADG Heartbeat failed to connect to standby故障案例OracleAI
- 主庫報 Error 12154 received logging on to the standby PING[ARC2]Error
- Ping:Transmit Failed, Error Code 65問題解決MITAIError
- 【DG】Data Guard搭建(physical standby)
- Oracle DG Standby Database型別OracleDatabase型別
- Oracle DG建立Physical Standby DatabaseOracleDatabase
- 【DG】之 Snapshot standby模式模式
- DG物理standby,switchover步驟
- DG物理standby,Failover之後原primary重回DGAI
- 【ERROR】OPatch failed with error code 73ErrorAI
- Oracle DG建立Logical Standby DatabaseOracleDatabase
- DG物理standby,failover步驟AI
- ORA-12541: TNS:no listener (DBD ERROR: OCIServerAttach) (轉)ErrorServer
- [ERROR] Failed to open logErrorAI
- OPatch failed with error code 73AIError
- DG -- READ ONLY模式開啟物理Standby模式
- RAC DG 物理standby ASM無法啟動ASM
- DG學習筆記(5)_Standby Redo Log筆記
- 【遠端除錯】Failed to connect to remote VM除錯AIREM
- [ CSSCLNT][1]clsssInitNative: connect failed, rc 9CSSAI
- Fatal NI connect error 12170Error
- Error: failed PB timebomb checkErrorAI
- Oracle RAC+DG 調整redo/standby log fileOracle
- Starting HEARTBEAT with WARNING: string2msg_ll: node [... ] failed authenticationAI
- Xtrabackup備份報錯Failed to connect to MySQL serverAIMySqlServer
- Fatal NI connect error 12170.Error
- 虛擬機器之間能夠ping通,但是建立tcp連線時卻顯示Failed in connect to TCP server: No route to host虛擬機TCPAIServer
- 在Oracle DG Standby庫上啟用flashback database功能OracleDatabase
- logical standby DG同步錯誤問題總結
- maridb Error 'Operation DROP USER failed forErrorAI
- Opiino: Attach Failed! Error=-1 Ifvp=0AIError
- Failed to connect to raw.githubusercontent.com port 443AIGithub
- psql: error: could not connect to server: No such file or directorySQLErrorServer
- Fatal NI connect error 12170 錯誤Error