RMAN備份腳本執行遇到RMAN-03002,06091問題處理


 

一 問題描述

    客戶說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; 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM