Oracle數(shù)據(jù)庫(kù)邏輯備份的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"
累計(jì)備份的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增加以下內(nèi)容
0 2 1 * * /oracle/exp_comp.sh
30 2 * * 0-5 /oracle/exp_incr.sh
45 2 * * 6 /oracle/exp_cumu.sh
當(dāng)然這個(gè)時(shí)間表可以根據(jù)不同的需求來(lái)改變的,這只是一個(gè)例子。
相關(guān)文章
ORACLE應(yīng)用經(jīng)驗(yàn)(2)
ORACLE應(yīng)用經(jīng)驗(yàn)(2)...2007-03-03oracle創(chuàng)建刪除用戶示例分享(oracle刪除用戶命令及授權(quán))
這篇文章主要介紹了oracle創(chuàng)建刪除用戶示例還有oracle刪除用戶命令及授權(quán)的使用,需要的朋友可以參考下2014-03-03Win Oracle 監(jiān)聽(tīng)文件配置參考代碼實(shí)例
這篇文章主要介紹了Win Oracle 監(jiān)聽(tīng)文件配置參考代碼實(shí)例,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友可以參考下2019-10-10Oracle連接遠(yuǎn)程數(shù)據(jù)庫(kù)的四種方法
這篇文章主要為大家詳細(xì)介紹了Oracle連接遠(yuǎn)程數(shù)據(jù)庫(kù)的四種設(shè)置方法和注意事項(xiàng),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2017-05-05