一 問題描述
客戶說RMAN備份腳本執行有的時候報錯,有的時候正常!!!
遠程登陸客戶環境,查詢最后一次備份的日志報錯信息,得到
RMAN-03002: failure of delete command at xxx
RMAN-06091: no channel allocated for maintenance (of an appropriate type)
二 參考鏈接
https://www.linuxidc.com/Linux/2013-01/78144.htm
Encountered RMAN-03002 and RMAN-06091 when Deleting Obsolete Backups (文檔 ID 567555.1)
根據上述信息,可以得到問題的原因,一般再刪除過期的備份腳本時,如果通道默認都是disk磁盤,如果存在sbt磁帶備份,則無法通過這個通道刪除它,因此需要轉換一下。
SOLUTION To implement the solution, please execute the following steps: Please run the following commands to delete obsolete backup sets on both disk and tape: RMAN> allocate channel for maintenance type disk; RMAN> allocate channel for maintenance device type 'sbt_tape' PARMS '...'; ==>Please contact your MML(Media Management Layer) vendor to get the actual tape parameters and repalce the '...' . RMAN> delete obsolete; If you want to delete obsolete backup sets on disk, you can use the following commands: RMAN> allocate channel for maintenance type disk; RMAN> delete obsolete device type disk;