Oracle数据库教程:完全备份的SH文件_Oracle数据库_黑客防线网安服务器维护基地--Powered by WWW.RONGSEN.COM.CN

Oracle教程:完全备份的SH文件

作者:黑客防线网安Oracle维护基地 来源:黑客防线网安Oracle维护基地 浏览次数:0

黑客防线网安网讯: 完全备份的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文件:e...

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

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

    黑客防线网安服务器维护方案本篇连接:http://www.rongsen.com.cn/show-12667-1.html
网站维护教程更新时间:2012-03-23 00:44:34  【打印此页】  【关闭
我要申请本站N点 | 黑客防线官网 |  
专业服务器维护及网站维护手工安全搭建环境,网站安全加固服务。黑客防线网安服务器维护基地招商进行中!QQ:29769479

footer  footer  footer  footer