RMAN刪除歸檔日誌出現RMAN-0813錯誤的處理
資料庫備份日誌報錯:RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process,DB版本為11.2.0.4,根據備策略,每天備份歸檔,並且自動刪除檔,保留一個星期的歸檔,手功執如下命令:
delete noprompt archivelog until time 'sysdate-7';
依然報錯,資訊如下:
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搜尋發現這是11g中的一個bug,描述的原因是在11g中,RMAN檢視的是v$database中的MIN_REQUIRED_CAPTURE_CHANGE#,而不是DBA_CAPTURE。預設情況下,該值每6小時更新一次。因此,在預設情況下,v$database中的值將比當前值晚6個小時。
給出的解決方法是需要在delete 後面加上force。
手動執行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
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26015009/viewspace-2671891/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [20221121]rman刪除歸檔日誌問題.txt
- 配置rman來自動刪除應用過的歸檔日誌
- 通過RMAN設定standby接收日誌後主庫歸檔日誌才可刪除
- oracle 刪除過期的歸檔日誌Oracle
- 手工rm刪除歸檔日誌對備份歸檔日誌的影響
- oracle rman 刪除過期的歸檔Oracle
- Oralce資料庫關閉歸檔日誌並且刪除歸檔日誌資料庫
- node錯誤處理與日誌
- rman 還原歸檔日誌(restore archivelogRESTHive
- 在Oracle中,如何定時刪除歸檔日誌檔案?Oracle
- node專案錯誤處理與日誌
- MogDB/openGauss誤刪未歸檔的xlog日誌如何解決
- Oracle DataGuard歸檔日誌丟失處理方法Oracle
- RMAN備份整庫和歸檔日誌的方法
- find 命令刪除冗餘 Nginx 錯誤日誌並實現備份Nginx
- oracle rman備份歸檔日誌需要先切換日誌嗎Oracle
- RMAN正確地刪除Archivelog以及設定有備庫的歸檔刪除策略Hive
- 錯誤碼[-718]:收集到的歸檔日誌不連續
- 在ASM磁碟組中刪除歸檔日誌報ORA-15028ASM
- 達夢資料庫DM8之刪除歸檔日誌檔案資料庫
- oracle adg主庫通過rman無法刪除歸檔Oracle
- ORACLE NBU調取oracle rman指令碼備份歸檔不自動刪除歸檔Oracle指令碼
- 刪除歸檔
- 前端的水平線,錯誤處理和除錯前端除錯
- 【Oracle】歸檔日誌管理-設定歸檔日誌路徑以及歸檔日誌冗餘Oracle
- DG_保證歸檔日誌不能隨意被刪除的四種方法
- Qt處理中文編碼出現錯誤QT
- Oracle設定多個歸檔路徑生成多份歸檔日誌,Rman備份時也只備份其中的一份歸檔日誌Oracle
- 被誤刪的檔案正確處理方法,快速找回誤刪的檔案
- oracle刪除日誌Oracle
- 刪除表空間出現ORA-22868錯誤(一)
- 歸檔日誌挖掘
- PostgreSQL 歸檔日誌SQL
- oracle歸檔日誌Oracle
- Oracle歸檔日誌所在目錄時間不對&&Oracle叢集日誌時間顯示錯誤Oracle
- git刪除本地分支出現錯誤Git
- ELK 處理 Spring Boot 日誌,不錯!Spring Boot
- elasticsearch日誌刪除命令Elasticsearch