RMAN 中delete exipired 和 delete obsolete 的区别
2017-02-08 16:17
483 查看
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 obsoleteThe 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;
}
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 obsoleteThe 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;
}
相关文章推荐
- 区别RMAN中EXPIRED和OBSOLETE两个状态
- Rman中expired和obsolete的区别
- rman备份中obsolete和expired的区别
- RMAN--obsolete 和 expired的区别
- Rman 中备份归档日志时archivelog delete all input 与delete input的区别
- 关于delete obsolete 对于 RMAN中 archivelog deletion policy的影响
- Rman备份中delete obsolete和delete expired的区别
- RMAN DELETE INPUT和DELETE ALL INPUT的区别
- RMAN命令delete noprompt obsolete,delete什么?
- RMAN命令delete noprompt obsolete,delete什么?
- 慎用delete expired 自动清理归档——obsolete 与expired 区别详解
- RMAN--obsolete 和 expired的区别
- Rman备份中obsolete和expired的区别
- RMAN--obsolete 和 expired的区别
- SQL Server 2000之DELETE和TRUNCATE的区别?
- 使用DELETE与TRUNCATE删除表所有行的区别
- malloc/free 与 new/delete 的区别
- DataRow的Delete,Remove,RemoveAt方法的用法和区别。
- rman备份中差异增量和累积增量的区别
- Oracle 中truncate与delete的区别