ORACLE逻辑备份的SH文件 :

完全备份的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

当然这个时间表可以根据不同的需求来改变的,这只是一个例子。

相关文章:

  • 2021-05-16
  • 2021-10-03
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-26
  • 2021-10-01
  • 2022-02-25
  • 2022-12-23
  • 2021-06-08
  • 2021-07-17
  • 2021-10-25
相关资源
相似解决方案