RMAN備份整個資料庫和歸檔日誌時報錯

來源:互聯網
上載者:User

RMAN備份整個資料庫和歸檔日誌時報錯

RMAN備份整個資料庫和歸檔日誌時報錯

Hi.
 I lost few previous archivelogs, and can't run "backup database plus archivelog;".
 That's what I got from rman:
 
RMAN> backup database plus archivelog;
 
Starting backup at 12-APR-09
 current log archived
 using channel ORA_DISK_1
 RMAN-00571: ===========================================================
 RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
 RMAN-00571: ===========================================================
 RMAN-03002: failure of backup plus archivelog command at 04/12/2009 13:06:14
 RMAN-06059: expected archived log not found, lost of archived log compromises recoverability
 ORA-19625: error identifying file /u01/app/Oracle/backup/ORCL/archivelog/2008_08_04/o1_mf_1_11_49f37bn1_.arc
 ORA-27037: unable to obtain file status
 Linux Error: 2: No such file or directory
 Additional information: 3
 
How to fix it ?
 
原因是到期和丟失的歸檔日誌找不到所以報錯,解決方案是執行下列兩個命令,將到期的歸檔日誌刪除
 Hi
 Run commands:
 
RMAN> CROSSCHECK ARCHIVELOG ALL;
 RMAN> DELETE NOPROMPT EXPIRED ARCHIVELOG ALL;
 
And then "backup database plus archivelog delete all input;"

--------------------------------------推薦閱讀 --------------------------------------

RMAN 配置歸檔日誌刪除策略

Oracle基礎教程之通過RMAN複製資料庫

RMAN備份策略制定參考內容

RMAN備份學習筆記

OracleDatabase Backup加密 RMAN加密

--------------------------------------分割線 --------------------------------------
 

 
如何手動刪除Oracle 歸檔記錄檔
 
 
問題描述
 
Oracle歸檔日誌把空間佔滿,導致資料庫不能正常使用,備份異常出錯。
 
分析問題
 
Oracle資料庫,如果客戶這邊沒有做歸檔日誌刪除策略或者每天的日誌量太大,又或者事物記錄備份沒有成功導致歸檔日誌不能被刪除的時候,需要手動刪除歸檔記錄檔。
 
解決方案
 
一、      對於windows和linux
 
#rman target使用者名稱/密碼@執行個體名
 
rman >DELETE ARCHIVELOG UNTIL TIME 'SYSDATE-7';刪除7前的所有歸檔日誌。
 rman >crosscheck archivelog all;
 rman >delete noprompt expired archivelog all;
 rman>crosscheck archivelog all;
 rman> delete expired archivelog all;
 
二、      對於UNIX
 
#rman target使用者名稱/密碼@執行個體名
 
Rman>find  ./(歸檔日誌路徑)  -xdev –mtime +7 –name “*.dbf” –exec rm –f {};

相關文章

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.