RMAN delete expired & delete obsolete

本文解析了RMAN中delete expired与delete obsolete两个命令的区别。expired用于移除已无法找到的备份记录,而obsolete则用于清理不再符合恢复需求的备份文件。
      看官方文档解释:
      

      delete exipired


If you run CROSSCHECK, and if RMAN cannot locate the files, then it updates their records in the RMAN repository to EXPIRED status. You can then use the DELETE EXPIRED command to remove records of expired backups and copies from the RMAN repository


      delete obsolete


The RMAN DELETE command supports an OBSOLETE option, which deletes backups that are no longer needed to satisfy specified recoverability requirements. You can delete files obsolete according to the configured default retention policy, or another retention policy that you specify as an option to the DELETE OBSOLETE command. As with other forms of the DELETE command, the files deleted are removed from backup media, deleted from the recovery catalog, and marked as DELETED in the control file


      简言之、就是“在不在”和“要不要”的区别
      
      expired 是不在了、obsolete 是不要了
      
      不在并不一定是不需要的
      不需要的也并不一定不在
      
      数据库管理的时候、痛苦的是不需要的还在、比这更痛苦的是、需要的已经不在了

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值