Oracle数据库逻辑备份的SH文件

前端之家收集整理的这篇文章主要介绍了Oracle数据库逻辑备份的SH文件前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

正在看的ORACLE教程是:Oracle数据库逻辑备份的SH文件。<P style="TEXT-INDENT: 2em">完全备份的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

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

猜你在找的Oracle相关文章