ITPub博客

首页 > Linux操作系统 > Linux操作系统 > crontab

crontab

原创 Linux操作系统 作者:guocun09 时间:2011-11-17 08:58:54 0 删除 编辑

[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 {} \;

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25583515/viewspace-711095/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: latch free等待
请登录后发表评论 登录
全部评论
DBA,掌握Oracle,SQLServer,MySQL,hadoop,casscandra等数据库。喜爱深入研究数据库技术原理,擅长管理和优化工作。

注册时间:2011-10-02

  • 博文量
    177
  • 访问量
    686667