rman 中delete 與delete force 的區別
假設你的備份集被OS命令刪掉了,
這時候delete這個備份集是刪不掉的,必須用delete 刪除的話,先要用crosscheck 一下,標識expired 才可以
但delete force可以省略crosscheck 這一步 直接刪除
delete obsolete 是根據策略來刪除過期的備份 這個前天條件必須在對應介質中能找到 才可刪除成功
而delete force obsolete 是強制刪除 如果對應介質也找不到 也可刪除成功
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
-------------------- ------ ------------------ --------------------
Backup Set 88 02-JUN-08
Backup Piece 88 02-JUN-08 D:BACKUP2SJHUB4S_1_1
Backup Set 89 02-JUN-08
Backup Piece 89 02-JUN-08 D:BACKUPC-799229701-20080602-0D
Backup Set 90 04-JUN-08
Backup Piece 90 04-JUN-08 D:BACKUP2UJI2QFK_1_1
Backup Set 91 04-JUN-08
Backup Piece 91 04-JUN-08 D:BACKUPC-799229701-20080604-00
Archive Log 255 03-JUN-08 D:ARCHPAULPUBTEST_1_14.DBF
Archive Log 256 04-JUN-08 D:ARCHPAULPUBTEST_1_15.DBF
Do you really want to delete the above objects (enter YES or NO)? yes
deleted backup piece
backup piece handle=D:BACKUP2UJI2QFK_1_1 recid=90 stamp=656501236
deleted backup piece
backup piece handle=D:BACKUPC-799229701-20080604-00 recid=91 stamp=656501281
deleted archive log
archive log filename=D:ARCHPAULPUBTEST_1_14.DBF recid=255 stamp=656415230
deleted archive log
archive log filename=D:ARCHPAULPUBTEST_1_15.DBF recid=256 stamp=656498131
Deleted 4 objects
RMAN-06207: WARNING: 2 objects could not be deleted for DISK channel(s) due
RMAN-06208: to mismatched status. Use CROSSCHECK command to fix status
List of Mismatched objects
==========================
Object Type Filename/Handle
--------------- ---------------------------------------------------
Backup Piece D:BACKUP2SJHUB4S_1_1
Backup Piece D:BACKUPC-799229701-20080602-0D
RMAN> delete force 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
-------------------- ------ ------------------ --------------------
Backup Set 88 02-JUN-08
Backup Piece 88 02-JUN-08 D:BACKUP2SJHUB4S_1_1
Backup Set 89 02-JUN-08
Backup Piece 89 02-JUN-08 D:BACKUPC-799229701-20080602-0D
Do you really want to delete the above objects (enter YES or NO)? yes
deleted backup piece
backup piece handle=D:BACKUP2SJHUB4S_1_1 recid=88 stamp=656354460
deleted backup piece
backup piece handle=D:BACKUPC-799229701-20080602-0D recid=89 stamp=656354486
Deleted 2 objects
RMAN>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-331128/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- laravel中delete()方法和destroy()方法的區別Laraveldelete
- delete和truncate刪除的區別delete
- SQLSERVER 的 truncate 和 delete 有區別嗎?SQLServerdelete
- 資料庫:drop、truncate、delete的區別資料庫delete
- StringBuffer類的delete()方法和deleteCharAt()方法的區別delete
- 理解RMAN backup database plus archivelog delete all input命令DatabaseHivedelete
- FormData delete()ORMdelete
- JavaScript deleteJavaScriptdelete
- URLSearchParams delete()delete
- MySQL 中 DELETE 語句中可以使用別名麼?MySqldelete
- delete 語句帶別名問題.delete
- MySQL不支援DELETE使用表別名?MySqldelete
- git delete and revertGitdelete
- MySQL Delete PHPMySqldeletePHP
- Map delete() 方法delete
- WeakMap delete() 方法delete
- WeakSet delete() 方法delete
- SQL__DELETESQLdelete
- Set delete() 方法delete
- JavaScript delete用法JavaScriptdelete
- URLSearchParams delete() 方法delete
- 簡述六種請求方法,get、head、put、delete、post、options區別delete
- 面試題: 資料庫:delete和trancate刪除表記錄的區別面試題資料庫delete
- 740. Delete and Earndelete
- OUTLOOK - Unable to Delete Meetingsdelete
- 淺析c++11中的“=default“和“=delete“C++delete
- Mac電腦中delete鍵的七種用法!Macdelete
- mssql sqlserver update delete表別名用法簡介SQLServerdelete
- jemalloc delete 出現 segmentfaultdelete
- 如何提高MySQL DELETE 速度MySqldelete
- 記憶體(new delete )記憶體delete
- Sanic delete()方法/函式delete函式
- 450-Delete Node in a BSTdelete
- 資料庫Delete的多種用法資料庫delete
- 如何提升SQLServer Delete資料的效率SQLServerdelete
- How To Delete Unwanted Boot Menu Itemsdeleteboot
- [20190825]Join View and delete.txtViewdelete
- python--之np.deletePythondelete
- 【SQL】11 SQL DELETE 語句SQLdelete