今天做了一个bat文件来执行删除一周前oracle archive log的脚本,添加到操作系统的schedule job中,定期执行。
1.delelete_archivelog.bat:
rman cmdfile delete_archivelog.txt
exit
2.delete_archivelog.txt:
connect target .../...@...
delete archivelog until time 'sysdate-7';
今天做了一个bat文件来执行删除一周前oracle archive log的脚本,添加到操作系统的schedule job中,定期执行。
1.delelete_archivelog.bat:
rman cmdfile delete_archivelog.txt
exit
2.delete_archivelog.txt:
connect target .../...@...
delete archivelog until time 'sysdate-7';