Backup And Recovery User's Guide-從RMAN開始-維護RMAN備份-刪除過期的備份

LuiseDalian發表於2014-02-13

DELETE命令會從磁碟或磁帶刪除備份和拷貝,在控制檔案庫中更新檔案的狀態為DELETED

(如果使用catalog,還會從recovery catalog中刪除相應的記錄)

如果你是互動地執行RMAN,並且沒有指定NOMPROMPT選項,則DELETE命令會顯示檔案列表,在刪除之前要求確認。

RMAN> delete obsolete;

 

RMAN retention policy will be applied to the command

RMAN retention policy is set to redundancy 1

using channel ORA_DISK_1

Deleting the following obsolete backups and copies:

Type                 Key    Completion Time    Filename/Handle

-------------------- ------ ------------------ --------------------

Archive Log          1      06-JUL-13          /u01/app/oracle/fast_recovery_area/TESTDB12/archivelog/2013_07_06/o1_mf_1_9_8xkf4h9k_.arc

Backup Set           1      06-JUL-13        

  Backup Piece       1      06-JUL-13          /u01/app/oracle/fast_recovery_area/TESTDB12/backupset/2013_07_06/o1_mf_nnndf_TAG20130706T192144_8xk9n8of_.bkp

Backup Set           3      06-JUL-13        

  Backup Piece       3      06-JUL-13          /u01/app/oracle/fast_recovery_area/TESTDB12/backupset/2013_07_06/o1_mf_annnn_TAG20130706T202136_8xkf4jno_.bkp

 

Do you really want to delete the above objects (enter YES or NO)? y

deleted archived log

archived log file name=/u01/app/oracle/fast_recovery_area/TESTDB12/archivelog/2013_07_06/o1_mf_1_9_8xkf4h9k_.arc RECID=1 STAMP=820095695

deleted backup piece

backup piece handle=/u01/app/oracle/fast_recovery_area/TESTDB12/backupset/2013_07_06/o1_mf_nnndf_TAG20130706T192144_8xk9n8of_.bkp RECID=1 STAMP=820092104

deleted backup piece

backup piece handle=/u01/app/oracle/fast_recovery_area/TESTDB12/backupset/2013_07_06/o1_mf_annnn_TAG20130706T202136_8xkf4jno_.bkp RECID=3 STAMP=820095696

Deleted 3 objects

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17013648/viewspace-1081008/,如需轉載,請註明出處,否則將追究法律責任。

相關文章