您好,登錄后才能下訂單哦!
一、使用以下的命令清理了空間:
1. cd /orabak 2. find . -type f -mtime +30 -exec rm -rf {} \;
二、然后開始使用rman備份的腳本進行備份,備份到最后出現以下報錯
------------------------------------------------------------------------------------------- archive log filename=/oralog/1_20800_812554797.dbf recid=20799 stamp=839154512 archive log filename=/oralog/1_20801_812554797.dbf recid=20800 stamp=839154513 released channel: ch2 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03009: failure of backup command on ch2 channel at 02/10/2014 10:33:46 ORA-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-14 Starting backup at 10-FEB-14 channel ch2: starting full datafile backupset channel ch2: specifying datafile(s) in backupset including current control file in backupset channel ch2: starting piece 1 at 10-FEB-14 channel ch2: finished piece 1 at 10-FEB-14 piece handle=/orabak/control_11839200079688 tag=TAG20140210T230759 comment=NONE channel ch2: backup set complete, elapsed time: 00:00:01 Finished backup at 10-FEB-14 released channel: ch2 -- 完成
4、參考資料
http://www.eygle.com/archives/2004/12/rman_crosscheck.html
5、rman的備份腳本
run{ allocate channel ch2 device type DISK; backup full filesperset 50 database format'/orabak/full_%c_%p_%t_5s'; sql 'alter system archive log current'; backup filesperset 50 archivelog all format '/orabak/arch%c%p%t%s' delete input; backup current controlfile format '/orabak/control_%c%p%t%s'; release channel ch2; }
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。