码迷,mamicode.com
首页 > 其他好文 > 详细

RMAN备份脚本执行遇到RMAN-03002,06091问题处理

时间:2019-11-19 12:13:39      阅读:92      评论:0      收藏:0      [点我收藏+]

标签:command   根据   ack   https   The   failure   parameter   set   type   

 

一 问题描述

    客户说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; 

 

RMAN备份脚本执行遇到RMAN-03002,06091问题处理

标签:command   根据   ack   https   The   failure   parameter   set   type   

原文地址:https://www.cnblogs.com/lvcha001/p/11888225.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!