Oracle手動刪除歸檔日誌厚,出現ORA-19571錯誤

來源:互聯網
上載者:User

標籤:ora-19571

一、使用以下的命令清理了空間:

1.   cd /orabak2.   find . -type f -mtime +30 -exec rm -rf {} \;

二、然後開始使用rman備份的指令碼進行備份,備份到最後出現以下報錯

-------------------------------------------------------------------------------------------archive log filename=/oralog/1_20800_812554797.dbf recid=20799 stamp=839154512archive log filename=/oralog/1_20801_812554797.dbf recid=20800 stamp=839154513released channel: ch1RMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: =========================================================== RMAN-03009: failure of backup command on ch1 channel at 02/10/2014 10:33:46ORA-19571: archived-log recid 19009 stamp 837863118 not found in control file-------------------------------------------------------------------------------------------

三、分析及處理過程


1、當手工刪除了歸檔日誌以後,Rman備份會檢測到日誌缺失,從而無法進一步繼續執行。

所以此時需要手工執行crosscheck過程,之後Rman備份可以恢複正常。


2、Crosscheck日誌

$ rman target /RMAN> crosscheck archivelog all;#Oracle 9i及以後的版本用crosscheck archivelog all;RMAN> change archivelog all crosscheck; #Oracle 8i中用change archivelog all crosscheck;

3、再次運行備份指令碼

--archive log filename=/oralog/1_20887_812554797.dbf recid=20886 stamp=839198925 archive log filename=/oralog/1_20888_812554797.dbf recid=20887 stamp=839198982 archive log filename=/oralog/1_20889_812554797.dbf recid=20888 stamp=839199982 archive log filename=/oralog/1_20890_812554797.dbf recid=20889 stamp=839199982 Finished backup at 10-FEB-14Starting backup at 10-FEB-14channel ch1: starting full datafile backupset channel ch1: specifying datafile(s) in backupset including current control file in backupset channel ch1: starting piece 1 at 10-FEB-14 channel ch1: finished piece 1 at 10-FEB-14 piece handle=/orabak/control_11839200079688 tag=TAG20140210T230759 comment=NONE channel ch1: backup set complete, elapsed time: 00:00:01 Finished backup at 10-FEB-14released channel: ch1--完成

4、參考資料

http://www.eygle.com/archives/2004/12/rman_crosscheck.html


5、rman的備份指令碼

run{allocate channel ch1 device type DISK;backup full filesperset 50database format‘/orabak/full_%c_%p_%t_5s‘;sql ‘alter system archive log current‘;backup  filesperset 50 archivelog allformat ‘/orabak/arch%c%p%t%s‘ delete input;backup current controlfile format  ‘/orabak/control_%c%p%t%s‘;release channel ch1;}


本文出自 “冰凍vs西瓜” 部落格,請務必保留此出處http://molewan.blog.51cto.com/287340/1891365

Oracle手動刪除歸檔日誌厚,出現ORA-19571錯誤

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.