您好,登錄后才能下訂單哦!
這篇文章主要講解了“數(shù)據(jù)庫中RMAN刪除歸檔日志出現(xiàn)RMAN-0813錯(cuò)誤的處理方法是什么”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“數(shù)據(jù)庫中RMAN刪除歸檔日志出現(xiàn)RMAN-0813錯(cuò)誤的處理方法是什么”吧!
數(shù)據(jù)庫備份日志報(bào)錯(cuò):RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process,DB版本為11.2.0.4,根據(jù)備策略,每天備份歸檔,并且自動刪除檔,保留一個(gè)星期的歸檔,手功執(zhí)如下命令:
delete noprompt archivelog until time 'sysdate-7';
依然報(bào)錯(cuò),信息如下:
archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_24/thread_1_seq_2328.1241.1027887401 thread=1 sequence=2328 RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_24/thread_1_seq_2329.1242.1027887719 thread=1 sequence=2329 RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_24/thread_1_seq_2330.1243.1027887813 thread=1 sequence=2330 RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_24/thread_1_seq_2331.1244.1027887873 thread=1 sequence=2331 RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_25/thread_1_seq_2332.1245.1027902623 thread=1 sequence=2332 RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_25/thread_1_seq_2333.1246.1027902719 thread=1 sequence=2333 RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_25/thread_1_seq_2334.1247.1027908493 thread=1 sequence=2334 RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_25/thread_1_seq_2335.1248.1027911721 thread=1 sequence=2335 RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_26/thread_1_seq_2336.1249.1027989005 thread=1 sequence=2336 RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_26/thread_1_seq_2337.1250.1027989067 thread=1 sequence=2337 RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_26/thread_1_seq_2338.1251.1027990617 thread=1 sequence=2338 RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_26/thread_1_seq_2339.1252.1028041713 thread=1 sequence=2339 RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_27/thread_1_seq_2340.1253.1028075413 thread=1 sequence=2340 ...............
在MOS搜索發(fā)現(xiàn)這是11g中的一個(gè)bug,描述的原因是在11g中,RMAN查看的是v$database中的MIN_REQUIRED_CAPTURE_CHANGE#,而不是DBA_CAPTURE。默認(rèn)情況下,該值每6小時(shí)更新一次。因此,在默認(rèn)情況下,v$database中的值將比當(dāng)前值晚6個(gè)小時(shí)。
給出的解決方法是需要在delete 后面加上force。
手動執(zhí)行delete noprompt force archivelog until time 'sysdate-7', 成功將歸檔刪除。
deleted archived log archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_24/thread_1_seq_2330.1243.1027887813 RECID=18420 STAMP=1027887814 deleted archived log archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_24/thread_1_seq_2331.1244.1027887873 RECID=18421 STAMP=1027887875 deleted archived log archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_25/thread_1_seq_2332.1245.1027902623 RECID=18422 STAMP=1027902628 deleted archived log archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_25/thread_1_seq_2333.1246.1027902719 RECID=18423 STAMP=1027902721 deleted archived log archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_25/thread_1_seq_2334.1247.1027908493 RECID=18424 STAMP=1027908500 deleted archived log archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_25/thread_1_seq_2335.1248.1027911721 RECID=18425 STAMP=1027911722 deleted archived log archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_26/thread_1_seq_2336.1249.1027989005 RECID=18426 STAMP=1027989010 deleted archived log archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_26/thread_1_seq_2337.1250.1027989067 RECID=18427 STAMP=1027989069 deleted archived log archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_26/thread_1_seq_2338.1251.1027990617 RECID=18428 STAMP=1027990618 deleted archived log archived log file name=+CWDATA/sjjhdg/archivelog/2019_12_26/thread_1_seq_2339.1252.1028041713 RECID=18429 STAMP=1028041715 ........... Deleted 800 objects
感謝各位的閱讀,以上就是“數(shù)據(jù)庫中RMAN刪除歸檔日志出現(xiàn)RMAN-0813錯(cuò)誤的處理方法是什么”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對數(shù)據(jù)庫中RMAN刪除歸檔日志出現(xiàn)RMAN-0813錯(cuò)誤的處理方法是什么這一問題有了更深刻的體會,具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是億速云,小編將為大家推送更多相關(guān)知識點(diǎn)的文章,歡迎關(guān)注!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。