oracle資料庫RMAN 下的 delete 命令如何使用?
阿新 • • 發佈:2018-12-09
1.刪除過期備份。當使用RMAN命令執行備份操作時,RMAN會根據備份冗餘策略確定備份是否過期。
RMAN> delete obsolete;
2.刪除無效備份。首先執行CROSSCHECK命令核對備份集,如果發現備份無效(比如備份對應的資料檔案損壞或丟失),RMAN會將該備份集標記為 EXPIRED狀態。要刪除相應的備份記錄,可以執行DELETE EXPIRED BACKUP命令:
RMAN> delete expired backup;
3.刪除EXPIRED副本:
RMAN> delete expired copy;
4.刪除特定備份集:
RMAN> delete backupset 19;
5.刪除特定備份片:
RMAN> delete backuppiece 'd:/backup/demo_19.bak';
6.刪除特定映像副本:
RMAN> delete datafile copy 'd:/backup/demo_19.bak';
7.刪除所有備份集:
RMAN> delete backup;
8.刪除所有映像副本:
RMAN> delete copy;
9.在備份後刪除輸入物件:
RMAN> backup archivelog all delete input;
RMAN> delete backupset 22 format = "d:/backup/%u.bak" delete input;