Chinaunix首页 | 论坛 | 博客
  • 博客访问: 594023
  • 博文数量: 841
  • 博客积分: 5000
  • 博客等级: 大校
  • 技术积分: 5010
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-28 10:08
文章分类

全部博文(841)

文章存档

2011年(1)

2008年(840)

我的朋友

分类:

2008-10-28 10:12:18


  完全备份的SH文件:exp_comp.sh
  rq=` date +"%m%d" `
  su - oracle -c "exp system/manager full=y inctype=complete file=/oracle/export/db_comp$rq.dmp"
  累计备份的SH文件:exp_cumu.sh
  rq=` date +"%m%d" `
  su - oracle -c "exp system/manager full=y inctype=cumulative file=/oracle/export/db_cumu$rq.dmp"
  增量备份的SH文件: exp_incr.sh
  rq=` date +"%m%d" `
  su - oracle -c "exp system/manager full=y inctype=incremental file=/oracle/export/db_incr$rq.dmp"
  root用户crontab文件
  /var/spool/cron/crontabs/root增加以下内容
  0 2 1 * * /oracle/exp_comp.sh
  30 2 * * 0-5 /oracle/exp_incr.sh
  45 2 * * 6 /oracle/exp_cumu.sh
  当然这个时间表可以根据不同的需求来改变的,这只是一个例子。
  
【责编:admin】

--------------------next---------------------

阅读(230) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~