Oracle dg歸檔同步失敗
問題現象: DG搭建完成後,主庫歸檔不能自動同步到備庫。
問題排查: 主庫告警日誌報錯:
PING[ARC2]: Heartbeat failed to connect to standby 'cjcdb02'. Error is 16058.
報錯原因: 備庫故障,主庫無法連線備庫,備庫恢復後,主庫沒有嘗試重連備庫。
解決方案: 主庫重新啟用log_archive_dest_state_2
過程如下:
主庫:
切換歸檔
SQL> alter system switch logfile ; System altered. SQL> archive log list; Database log mode Archive Mode Automatic archival Enabled Archive destination /arch Oldest online log sequence 15 Next log sequence to archive 17 Current log sequence 17
備庫:
沒有接收到歸檔日誌
SQL> archive log list; Database log mode Archive Mode Automatic archival Enabled Archive destination /arch Oldest online log sequence 0 Next log sequence to archive 0 Current log sequence 0
檢視備庫告警日誌,沒有報錯,RFS程式已經啟動
RFS connections are allowed
主庫:
主庫告警日誌:
Use the following SQL commands on the standby database to create standby redo logfiles that match the primary database: ALTER DATABASE ADD STANDBY LOGFILE 'srl1.f' SIZE 52428800; ALTER DATABASE ADD STANDBY LOGFILE 'srl2.f' SIZE 52428800; ALTER DATABASE ADD STANDBY LOGFILE 'srl3.f' SIZE 52428800; ALTER DATABASE ADD STANDBY LOGFILE 'srl4.f' SIZE 52428800; Tue Aug 04 15:29:26 2020 ALTER SYSTEM SET log_archive_dest_state_2='ENABLE' SCOPE=MEMORY SID='*'; Tue Aug 04 15:29:26 2020 PING[ARC2]: Heartbeat failed to connect to standby 'cjcdb02'. Error is 16058. Tue Aug 04 15:29:28 2020
主庫連線一次備庫失敗後,沒有嘗試重連。
主庫:
重新啟用
SQL> alter system set log_archive_dest_state_2=defer; SQL> alter system set log_archive_dest_state_2=enable;
主庫告警日誌:
Tue Aug 04 15:33:58 2020 ALTER SYSTEM SET log_archive_dest_state_2='DEFER' SCOPE=BOTH; Tue Aug 04 15:34:22 2020 ALTER SYSTEM SET log_archive_dest_state_2='ENABLE' SCOPE=BOTH; Tue Aug 04 15:34:22 2020 Thread 1 cannot allocate new log, sequence 20 Checkpoint not complete Current log# 1 seq# 19 mem# 0: /oracle/oradata/cjcdb01/redo01.log Thread 1 cannot allocate new log, sequence 20 Private strand flush not complete Current log# 1 seq# 19 mem# 0: /oracle/oradata/cjcdb01/redo01.log Thread 1 advanced to log sequence 20 (LGWR switch) Current log# 2 seq# 20 mem# 0: /oracle/oradata/cjcdb01/redo02.log Tue Aug 04 15:34:29 2020 Archived Log entry 17 added for thread 1 sequence 19 ID 0x3995c964 dest 1: Tue Aug 04 15:34:29 2020 ARC0: Standby redo logfile selected for thread 1 sequence 19 for destination LOG_ARCHIVE_DEST_2 Tue Aug 04 15:34:29 2020 ****************************************************************** LGWR: Setting 'active' archival for destination LOG_ARCHIVE_DEST_2 ****************************************************************** LNS: Standby redo logfile selected for thread 1 sequence 20 for destination LOG_ARCHIVE_DEST_2
備庫告警日誌:
Tue Aug 04 15:34:21 2020 RFS[1]: Assigned to RFS process 11502 RFS[1]: Opened log for thread 1 sequence 14 dbid 966115684 branch 1047470758 Tue Aug 04 15:34:21 2020 RFS[2]: Assigned to RFS process 11504 RFS[2]: Opened log for thread 1 sequence 16 dbid 966115684 branch 1047470758 Tue Aug 04 15:34:21 2020 RFS[3]: Assigned to RFS process 11506 RFS[3]: Opened log for thread 1 sequence 15 dbid 966115684 branch 1047470758 Archived Log entry 1 added for thread 1 sequence 14 rlc 1047470758 ID 0x3995c964 dest 2: RFS[1]: Opened log for thread 1 sequence 17 dbid 966115684 branch 1047470758 Archived Log entry 2 added for thread 1 sequence 16 rlc 1047470758 ID 0x3995c964 dest 2: Archived Log entry 3 added for thread 1 sequence 17 rlc 1047470758 ID 0x3995c964 dest 2: Archived Log entry 4 added for thread 1 sequence 15 rlc 1047470758 ID 0x3995c964 dest 2: RFS[2]: Opened log for thread 1 sequence 18 dbid 966115684 branch 1047470758 Archived Log entry 5 added for thread 1 sequence 18 rlc 1047470758 ID 0x3995c964 dest 2: RFS[2]: Selected log 4 for thread 1 sequence 19 dbid 966115684 branch 1047470758 Tue Aug 04 15:34:28 2020 Archived Log entry 6 added for thread 1 sequence 19 ID 0x3995c964 dest 1: Tue Aug 04 15:34:28 2020 Primary database is in MAXIMUM PERFORMANCE mode RFS[4]: Assigned to RFS process 11514 RFS[4]: Selected log 4 for thread 1 sequence 20 dbid 966115684 branch 1047470758
歡迎關注我的微信公眾號"IT小Chen",共同學習,共同成長!! !
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29785807/viewspace-2709615/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle DG同步失敗故障處理(二)Oracle
- Oracle_dg歸檔丟失問題處理Oracle
- Oracle 10g DG 主庫丟失歸檔Oracle 10g
- DG 主庫丟失歸檔
- Oracle - AIX上NFS目錄歸檔失敗OracleAINFS
- dg 主庫丟失歸檔 解決方案
- dg丟失歸檔,使用rman增量備份恢復
- 利用增量備份恢復gap歸檔丟失DG
- oracle dg 歸檔日誌恢復情況Oracle
- oracle dg庫資料檔案建立失敗ORA-01111Oracle
- 都是crosscheck惹的禍,備份歸檔失敗ROS
- 誤刪歸檔日誌除導致備份歸檔日誌失敗
- 利用增量備份恢復因歸檔丟失造成的DG gap
- Oracle DG standby刪除歸檔的判斷指令碼Oracle指令碼
- 刪除歸檔物理檔案備份失敗!ORA-19625
- Oracle+Ogg 歸檔丟失 重新導資料建立ogg同步步驟Oracle
- DG歸檔日誌缺失恢復
- 物理DG刪除歸檔測試
- 刪除DG歸檔保留5個
- TSM備份時因歸檔日誌丟失而導致備份失敗
- 【DATAGUARD】物理dg在主庫丟失歸檔檔案的情況下的恢復(七)
- oracle 歸檔/非歸檔Oracle
- Oracle DataGuard歸檔日誌丟失處理方法Oracle
- ORACLE 11G 擴充套件表空間增加資料檔案導致DG日誌應用失敗Oracle套件
- Oracle歸檔檔案丟失導致OGG不用啟動Oracle
- 引入js檔案失敗JS
- 【DB2學習】由於TSM損壞導致歸檔失敗DB2
- 【故障處理】DG環境主庫丟失歸檔情況下資料檔案的恢復
- Oracle GoldenGate同步服務歸檔空間維護OracleGo
- oracle adg備庫歸檔滿了無法同步Oracle
- oracle歸檔Oracle
- ROSE HA切換節點導致DG失敗、恢復ROS
- dg歸檔沒有傳輸到備庫
- SHELL指令碼檢查Oracle DG備庫是否已經應用歸檔指令碼Oracle
- DG歸檔日誌斷檔時間過長如何處理(DG全庫恢復)
- rz檔案傳輸失敗
- RMAN-ERROR:因為找不到過期和丟失的歸檔日誌而備份失敗Error
- Oracle歸檔模式和非歸檔模式Oracle模式