0
点赞
收藏
分享

微信扫一扫

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

鲤鱼打个滚 2022-09-08 阅读 102


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

举报

相关推荐

0 条评论