【Vegas原创】定期删除archive档的方法
1,写一个批处理:
set ORACEL_SID=***
C:\oracle\product\10.2.0\db_1\bin\rman target / nocatalog @del_arc_daily.sql
C:\oracle\product\10.2.0\db_1\bin\rman target / nocatalog @del_arc_daily.sql
2,del_arc_daily.sql:
run{
allocate channel dev1 type disk;
delete noprompt archivelog until time "sysdate-1";
crosscheck archivelog all;
release channel dev1;
}
allocate channel dev1 type disk;
delete noprompt archivelog until time "sysdate-1";
crosscheck archivelog all;
release channel dev1;
}
3,添加一个计划任务即可。
Linux系统用crontab去添加即可。
喜欢请赞赏一下啦^_^赞赏后请加wx:weyocul,相关文章提到的的安装包稍后给到哦!没有收到赞赏直接加我的,直接无视哈!

浙公网安备 33010602011771号