在一次帮助客户解决归档满的过程中遭遇了此错误. 客户是新上线系统,11g版本.设置了归档清除脚本(脚本参考:http://www.ludatou.com/?p=766),结果发现以往没问题的脚本在此刻居然行不通,报了一对Rman-08517的错误,经查询发现是在11g里归档日志记录的一个机制导致的,必须加上force才可以.
命令如下:
delete noprompt force archivelog until time ‘sysdate – 7’;
经查询确认为Oracle 11g的归档日志记录机制导致的,需要在delete后加上force,metalink解释为:
RMAN-08137 When deleting archivelogs even when Streams CAPTURE does not require them [ID 1079953.1] | ||
修改时间 27-FEB-2011 类型 PROBLEM 状态 PUBLISHED |
In this Document
Symptoms
Changes
Cause
Solution
References
Symptoms
Applies To: 11gR1-11gR2
RMAN is unable to delete archive logs from database even though they are not needed by CAPTURE process anymore.
Changes
Cause
In 11g, RMAN looks at MIN_REQUIRED_CAPTURE_CHANGE# in v$database and not at DBA_CAPTURE. By default this value is updated every 6 hours. So by default the value in v$database will be six hours behind the current value.
Solution
Since changing frequency of update to MIN_REQUIRED_CAPTURE_CHANGE# in v$database can not be controlled, following workaround can be used:
Archive log which are not needed by capture process can be deleted using:
delete noprompt force archivelog all completed before ‘sysdate-10/1440’;