Quantcast
Channel: CodeSection,代码区,数据库(综合) - CodeSec
Viewing all articles
Browse latest Browse all 6262

RMAN-08137:WARNING:archivedlognotdeleted,neededforstandbyorupstreamcaptureproces ...

$
0
0

一生产环境,归档特别多,没有及时删除便会将文件系统撑满,于是写了定时删除归档的脚本。

命令类似:delete noprompt archivelog until time 'sysdate-2';

后来业务那边又说数据库连接不上, 排查问题发现原来是归档满了,导致数据库不可用。于是测试脚本,发现当时没有仔细看输出信息,原来报了一堆

RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process

在网上搜索了点资料,原来是11g上的bug,删除归档的时候需要添加force的命令,否则便会抛出上述错误。

即将命令改为:delete noprompt force archivelog until time 'sysdate-2';


Viewing all articles
Browse latest Browse all 6262

Trending Articles