問題現(xiàn)象: DG搭建完成后,主庫(kù)歸檔不能自動(dòng)同步到備庫(kù)。
在網(wǎng)站設(shè)計(jì)制作、網(wǎng)站設(shè)計(jì)中從網(wǎng)站色彩、結(jié)構(gòu)布局、欄目設(shè)置、關(guān)鍵詞群組等細(xì)微處著手,突出企業(yè)的產(chǎn)品/服務(wù)/品牌,幫助企業(yè)鎖定精準(zhǔn)用戶,提高在線咨詢和轉(zhuǎn)化,使成都網(wǎng)站營(yíng)銷成為有效果、有回報(bào)的無錫營(yíng)銷推廣。創(chuàng)新互聯(lián)專業(yè)成都網(wǎng)站建設(shè)10多年了,客戶滿意度97.8%,歡迎成都創(chuàng)新互聯(lián)客戶聯(lián)系。
問題排查: 主庫(kù)告警日志報(bào)錯(cuò):
PING[ARC2]: Heartbeat failed to connect to standby 'cjcdb02'. Error is 16058.
報(bào)錯(cuò)原因: 備庫(kù)故障,主庫(kù)無法連接備庫(kù),備庫(kù)恢復(fù)后,主庫(kù)沒有嘗試重連備庫(kù)。
解決方案: 主庫(kù)重新激活log_archive_dest_state_2
過程如下:
主庫(kù):
切換歸檔
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
備庫(kù):
沒有接收到歸檔日志
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
查看備庫(kù)告警日志,沒有報(bào)錯(cuò),RFS進(jìn)程已經(jīng)啟動(dòng)
RFS connections are allowed
主庫(kù):
主庫(kù)告警日志:
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
主庫(kù)連接一次備庫(kù)失敗后,沒有嘗試重連。
主庫(kù):
重新激活
SQL> alter system set log_archive_dest_state_2=defer; SQL> alter system set log_archive_dest_state_2=enable;
主庫(kù)告警日志:
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
備庫(kù)告警日志:
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
歡迎關(guān)注我的微信公眾號(hào)"IT小Chen",共同學(xué)習(xí),共同成長(zhǎng)?。?/strong> !
網(wǎng)站欄目:Oracledg歸檔同步失敗
轉(zhuǎn)載來源:http://aaarwkj.com/article46/gihehg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供標(biāo)簽優(yōu)化、微信小程序、移動(dòng)網(wǎng)站建設(shè)、微信公眾號(hào)、域名注冊(cè)、企業(yè)網(wǎng)站制作
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)
移動(dòng)網(wǎng)站建設(shè)知識(shí)