重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1326|回复: 0
打印 上一主题 下一主题

[参考文档] RMAN-08138: WARNING: archived log not deleted - must create more backups

[复制链接]
跳转到指定楼层
楼主
发表于 2022-12-18 13:32:07 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 刘泽宇 于 2022-12-18 13:33 编辑

在使用RMAN进行归档日志删除时出现报错:
Attempt to delete archive logs with RMAN delete command fails with error:
RMAN> delete archivelog from sequence 13086 until sequence 13088 thread 1 backed up 1 times to disk;

RMAN-08138: WARNING: archived log not deleted - must create more backups
RMAN-08515: archived log file name=<+DISKGROUP>/ARCHIVELOG/2018_02_24/thread_1_seq_13086.4370.963609939 thread=1 sequence=13086
RMAN-08138: WARNING: archived log not deleted - must create more backups
RMAN-08515: archived log file name=<+DISKGROUP>/ARCHIVELOG/2018_02_24/thread_1_seq_13087.4374.963610313 thread=1 sequence=13087
RMAN-08138: WARNING: archived log not deleted - must create more backups
RMAN-08515: archived log file name=+<+DISKGROUP>/ARCHIVELOG/2018_02_24/thread_1_seq_13088.4378.963610679 thread=1 sequence=13088

原因:
There is an RMAN backup of these archive logs taken to disk.
However, the RMAN backup script shows a KEEP attribute on the database backup.  The archive logs are required to meet the KEEP attribute for the database backup.
The backup of the archivelog has the KEEP attribute, it does not count towards the number of backups of this particular
archivelog, and so the backup directive '...backed up 1 times...' is not satisfied, and the archivelog is not deleted.
The RMAN backup script shows:
RUN {
ALLOCATE CHANNEL disk_level_1 DEVICE TYPE DISK format '/<Path>/%d/%d_daily_level_1_%T_%p_%u.DBP';
BACKUP AS COMPRESSED BACKUPSET INCREMENTAL LEVEL 1 database plus archivelog TAG daily_level_1 keep until time 'sysdate+45';
}

解决方法:
The RMAN backups will be marked as obsolete when the user defined backup policy of "keep until time 'sysdate+45' is met.
If you wish to delete the RMAN backups you may use the RMAN change command to change or remove the 'keep' parameter.
For example, specify RMAN>  CHANGE ... NOKEEP to remove the KEEP attributes for a backup

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-29 13:02 , Processed in 0.101685 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表