【Vegas原创】定期删除archive档的方法

1,写一个批处理:

set ORACEL_SID=***

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;

}

3,添加一个计划任务即可。

Linux系统用crontab去添加即可。

原文地址:https://www.cnblogs.com/amadeuslee/p/3744404.html