在Primary DB上自动删除归档的方式
mxrac01<*mxdell1*/u01/run>$cat autodel
#!/bin/sh
find /u01/product/admin/mxdell/bdump/*.trc -mmin +1440 -exec rm -f {} \;
find /u01/product/admin/mxdell/udump/*.trc -mmin +1440 -exec rm -f {} \;
find /ocfs_data/mxdell/arch/1_*.arc -mmin +720 -exec rm -f {} \;
自动crontab 脚本:
mxrac01<*mxdell1*/home/oracle>$crontab -l
#20 0 * * * sh /u01/run/autoexp 1>/u01/run/log/autoexp.log 2>/u01/run/log/autoexp.bad
0 0 * * 6 sh /u01/run/autoexp2 1>/u01/run/log/autoexp2.log 2>/u01/run/log/autoexp2.bad
10 * * * * sh /u01/run/autodel 1>/u01/run/log/autodel.log 2>/u01/run/log/autodel.bad
30 0 * * * sh /home/oracle/dba/awr 1>/u01/run/log/autoawr.log 2>/u01/run/log/autoawr.bad
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/35489/viewspace-623922/ ,如需转载,请注明出处,否则将追究法律责任。