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