2017年(38)
分类: Oracle
2017-12-07 13:48:12
[root@DB ~]# crontab -l
0,30 * * * * sh /data/run/ntp 1>/data/run/log/ntp.log 2>>/data/run/log/ntp.bad
* * * * * sh /data/run/loadavg 1>/data/run/log/loadavg.log 2>>/data/run/log/loadavg.bad
[root@DB ~]# more /data/run/loadavg
# record cpu avg loading .
date >>/data/run/loadavg.txt
cat /proc/loadavg >>/data/run/loadavg.txt
DB<*DBSID*/home/oracle>$crontab -l
20 */6 * * * sh /data/run/del_arch 1>/data/run/log/del_arch.log 2>>/data/run/log/del_arch.bad
DB<*DBSID*/home/oracle>$more /data/run/del_arch
#!/bin/sh
find /u01/product/admin/epd/bdump/*.trc -mtime +31 -exec rm -f {} \;
find /u01/product/admin/epd/udump/*.trc -mtime +31 -exec rm -f {} \;
find /data/epd/arch/1_*.dbf -mmin +5760 -exec rm -f {} \;