加入收藏 | 设为首页 | 会员中心 | 我要投稿 源码网 (https://www.900php.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 运营中心 > 网站设计 > 教程 > 正文

Oracle数据库逻辑保存的SH文件

发布时间:2021-12-29 10:29:24 所属栏目:教程 来源:互联网
导读:正在看的ORACLE教程是: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
正在看的ORACLE教程是: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
 
当然这个时间表可以根据不同的需求来改变的,这只是一个例子。

(编辑:源码网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读