ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 手工ftp拷贝归档及脚本自动恢复Standby方式

手工ftp拷贝归档及脚本自动恢复Standby方式

原创 Linux操作系统 作者:tolywang 时间:2009-12-30 08:10:47 0 删除 编辑

在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/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: linux时间调整
请登录后发表评论 登录
全部评论
Oracle , MySQL, SAP IQ, SAP HANA, PostgreSQL, Tableau 技术讨论,希望在这里一起分享知识,讨论技术,畅谈人生 。

注册时间:2007-12-10

  • 博文量
    5595
  • 访问量
    14695403