定期删除oracle归档

定时器执行

export ORACLE_SID=SID
#按实际情况指定SID
$ORACLE_HOME/bin/rman <<EOF
connect target /
crosscheck archivelog all;
delete force noprompt archivelog until time 'sysdate-2';
#按需求执定时间,现在是两天以后。
exit;
EOF

猜你喜欢

转载自azmgd.iteye.com/blog/1428696
今日推荐