RMAN 中delete exipired 和 delete obsolete 的區別
delete expired
If you run CROSSCHECK, and if RMAN cannot locate the files, then it updates their records in the RMAN repository to EXPIRED status. You can then use the DELETE EXPIRED command to remove records of expired backups and copies from the RMAN repository.
delete obsolete
The RMAN DELETE command supports an OBSOLETE option, which deletes backups that are no longer needed to satisfy specified recoverability requirements. You can delete files obsolete according to the configured default retention policy, or another retention policy that you specify as an option to the DELETE OBSOLETE command. As with other forms of the DELETE command, the files deleted are removed from backup media, deleted from the recovery catalog, and marked as DELETED in the control file.
delete expired刪除的是那些本來RMAN以為存在但是實際上在磁碟或者磁帶上已經被刪除了的資訊,刪除的只是RMAN資料庫中的記錄;delete obsolete則刪除舊於備份保留策略定義的備份資料同時也更新RMAN資料庫以及控制檔案。
===============================================================
EG:
#delete obsolete and expired backup and archivelog
run {
delete noprompt obsolete;
crosscheck archivelog all;
delete noprompt expired archivelog all;
crosscheck backup;
delete noprompt expired backup;
}
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28389881/viewspace-2076338/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- rman 中delete 與delete force 的區別delete
- rman 中的 delete all input 和 delete input 的區別delete
- delete 和 delete [] 的真正區別delete
- delete OBSOLETE 與 delete expirieddelete
- Oracle中truncate和delete的區別Oracledelete
- truncate和delete 的區別delete
- Rman備份中obsolete和expired的區別
- laravel中delete()方法和destroy()方法的區別Laraveldelete
- Oracle中truncate和delete的區別(例項)Oracledelete
- truncate delete 的區別delete
- delete和truncate刪除的區別delete
- Rman 中的delete input的用法delete
- 原創 Rman備份中obsolete和expired的區別
- truncate與delete的區別delete
- SQLSERVER 的 truncate 和 delete 有區別嗎?SQLServerdelete
- malloc/free 和 new /delete 的區別 (轉)delete
- 10203 Rman執行delete obsolete報錯Segmentation faultdeleteSegmentation
- truncate delete drop 區別delete
- backup archivelog delete input 與delete all input 區別Hivedelete
- oracle truncate 與 delete 的區別Oracledelete
- malloc free與new delete的區別和聯絡delete
- SQL truncate 、delete與drop區別SQLdelete
- truncate和不帶where子句的delete, 以及drop區別delete
- RMAN Crosscheck 和 Delete 命令的 2 個例項ROSdelete
- RMAN Crosscheck 和 Delete 命令的2個例項ROSdelete
- 資料庫:drop、truncate、delete的區別資料庫delete
- zt_orafaq_delete與truncate的區別delete
- Oracle RMAN的show,list,crosscheck,deleteOracleROSdelete
- StringBuffer類的delete()方法和deleteCharAt()方法的區別delete
- EXPIRED和OBSOLETE的區別
- rman report list crosscheck deleteROSdelete
- new/delete 和malloc/free 的區別一般彙總delete
- rman備份的策略和croosschek delete基本命令delete
- Javascript中的deleteJavaScriptdelete
- rman備份OBSOLETE和EXPIRED引數來歷及區別
- rman會造成delete死鎖嗎delete
- Truncate table 詳解及與delete,drop 的區別delete
- Truncate table詳解及與delete,drop的區別delete