天天看點

【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去添加即可。