Oracle邏輯備份中SH文件的實際操作
在Oracle邏輯備份的SH文件中可以分為完全備份的SH文件,還有累計備份的Oracle SH文件、以及增量備份的Oracle SH文件,以下的相關(guān)內(nèi)容就是對這些備份文件的實際操作的詳細(xì)描述,以下就是文章內(nèi)容。
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"
累計備份的Oracle 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)然這個Oracle SH文件時間表可以根據(jù)不同的需求來改變的,這只是一個例子。
以上的相關(guān)內(nèi)容就是對Oracle SH文件的介紹,望你能有所收獲。
【編輯推薦】