Oracle 日志归档 自动清理

时间:2015-10-30 15:22:35   收藏:0   阅读:272


exp emis/emis@orcl file=d:\backup\oracle\oracle%date:~0,10%.dmp owner=emis log=d:\backup\oracle\oracle%date:~0,10%.log


connect target emis/emis
run{
DELETE ARCHIVELOG ALL COMPLETED BEFORE ‘SYSDATE-2‘; //删除两天前的归档日志
crosscheck archivelog all; //检查
delete expired archivelog all; //删除过期日志
}

原文:http://www.cnblogs.com/mingjing/p/4923360.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!