千家信息网

RMAN 中delete exipired 和 delete obsolete 的区别

发表于:2026-11-01 作者:千家信息网编辑
千家信息网最后更新 2026年11月01日,delete expiredIf you run CROSSCHECK, and if RMAN cannot locate the files, then it updates their reco
千家信息网最后更新 2026年11月01日RMAN 中delete exipired 和 delete obsolete 的区别

delete expired
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.

delete expired删除的是那些本来RMAN以为存在但是实际上在磁盘或者磁带上已经被删除了的信息,删除的只是RMAN资料库中的记录;delete obsolete则删除旧于备份保留策略定义的备份数据同时也更新RMAN资料库以及控制文件。

=========================================================================================

EG:

#delete obsolete and expired backup and archivelog
run {
delete noprompt obsolete;
crosscheck archivelog all;
delete noprompt expired archivelog all;
crosscheck backup;
delete noprompt expired backup;
}


备份 资料 资料库 信息 只是 同时 实际 实际上 数据 文件 磁盘 策略 控制 更新 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 华服互联网科技靠谱吗 广州为想互联网科技有限公司 互联网科技工作委员会 金融科技创新监管互联网金融 互联网 科技公司 互联网科技的英文 凡科互联网科技 腾讯科技 互联网女皇 成都玖崟互联网科技有限公司乐商圈怎么样 深圳前海聚择互联网科技有限公司 互联网科技项目计划书材料类 互联网还是高科技吗 江阴互联网智能科技产品进口 成都互联网科技公司工作好不好 华夏恒生科技与互联网科技 科技互联网的核心竞争力 互联网第三次科技革命特征 张家口科技产业互联网平台 科技互联网专业工作会议发言稿 北京瑞云互联网科技有限公司 互联网佳科技有限公司 无线互联网科技 美国互联网前沿科技 深圳卡尔迅互联网科技有限公司怎么样 济南和联互联网科技有限公司 互联网科技创新的路径 智帮互联网科技公司最近动向 中国互联网有什么科技 广州三三互联网科技有限公司 上海旺乐尼互联网科技有限公司
0