oracle 數(shù)據(jù)庫(kù)備份的步驟是:
創(chuàng)新互聯(lián)建站是一家從事企業(yè)網(wǎng)站建設(shè)、成都網(wǎng)站設(shè)計(jì)、成都網(wǎng)站制作、行業(yè)門(mén)戶網(wǎng)站建設(shè)、網(wǎng)頁(yè)設(shè)計(jì)制作的專業(yè)網(wǎng)站建設(shè)公司,擁有經(jīng)驗(yàn)豐富的網(wǎng)站建設(shè)工程師和網(wǎng)頁(yè)設(shè)計(jì)人員,具備各種規(guī)模與類型網(wǎng)站建設(shè)的實(shí)力,在網(wǎng)站建設(shè)領(lǐng)域樹(shù)立了自己獨(dú)特的設(shè)計(jì)風(fēng)格。自公司成立以來(lái)曾獨(dú)立設(shè)計(jì)制作的站點(diǎn)上千多家。
直接通過(guò)exp命令備份需要內(nèi)容就可以了。可以參考下以下導(dǎo)出備份的方法:
1、將數(shù)據(jù)庫(kù)TEST完全導(dǎo)出,用戶名system 密碼manager 導(dǎo)出到D:\daochu.dmp中
exp system/manager@TEST file=d:\daochu.dmp full=y
2、將數(shù)據(jù)庫(kù)中system用戶與sys用戶的表導(dǎo)出
exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)
3、將數(shù)據(jù)庫(kù)中的表table1 、table2導(dǎo)出
exp system/manager@TEST file=d:\daochu.dmp tables=(table1,table2)
4、將數(shù)據(jù)庫(kù)中的表table1中的字段filed1以"00"打頭的數(shù)據(jù)導(dǎo)出
exp system/manager@TEST file=d:\daochu.dmp tables=(table1) query=\" where filed1 like ?'00%'\"
Oracle自動(dòng)備份的三種方法:\x0d\x0aOracle自動(dòng)備份數(shù)據(jù)庫(kù)不外乎以下三種方式:\x0d\x0aWINDOWS下的任務(wù)計(jì)劃(At命令)\x0d\x0aUNIX下的Crontab \x0d\x0a第三方工具如Viritas\x0d\x0a在以上三種方式中Viritas屬于第三方工具,很多人可能都沒(méi)有接觸,主要說(shuō)一下windows的任務(wù)計(jì)劃與unix的cron\x0d\x0a1、生成腳本文件,如backup.rcv 假定文件內(nèi)容如下:\x0d\x0a$cat backup.rcv connect target sys/password rcvcat rman/rman@localname; run{ allocate channel c1 type disk; allocate channel c2 type disk; allocate channel c3 type disk; backup fileaperset 3 format ‘/u01/oradata/backup/arch%u_%s_%p’ archivelog all delete input; release channel c1; release channel c2; release channel c3; }\x0d\x0a\x0d\x0a2、生成執(zhí)行文件在windows上生成backup_archive.bat,內(nèi)容包括rman cmdfile = backup.rcv 在unix下生成 backup_archive.sh,內(nèi)容包括oracle/ramn/rman cmdfile = backup.rcv\x0d\x0a3、加入調(diào)度在windows中用任務(wù)計(jì)劃向?qū)Ъ纯桑蚴褂胊t命令。在unix中,在目標(biāo)機(jī)器上編寫(xiě)一個(gè)文件,用以啟動(dòng)Oracle自動(dòng)備份進(jìn)程。假定文件名為ORACLE,文件將放在/var/spool/cron/crontabs目錄下\x0d\x0a$cat oracle \x0d\x0a0 23 * * 0 backup_archive.sh \x0d\x0a#表示星期天23點(diǎn)對(duì)數(shù)據(jù)庫(kù)備份 \x0d\x0a0 12,18 * * * backup_archive.sh \x0d\x0a #表示每天12點(diǎn),18點(diǎn)備份 \x0d\x0aCrontab文件的每一行由六個(gè)域(minutes,hours,day of month,month,day of week,command)組成,域之間用空格或Tab分隔開(kāi)來(lái)。
可以熱備份:\x0d\x0aSQL alter database begin backup\x0d\x0a然后退出SQL,將Oracle軟件和數(shù)據(jù)文件直接拷貝\x0d\x0a等都拷貝完了,再進(jìn)sqlplus 執(zhí)行:\x0d\x0aSQLalter database end backup\x0d\x0a然后將begin時(shí)刻到end時(shí)刻產(chǎn)生的歸檔也拷貝出來(lái),\x0d\x0a這就完成了全備\x0d\x0a\x0d\x0a如果你要在oracle下備份整個(gè)數(shù)據(jù)庫(kù):可以用expdp方便的進(jìn)行\(zhòng)x0d\x0aexpdp sys/XXX dumpfile=XXXX.dmp directory=XXXX\x0d\x0a其中directory是在oracle下建立的文件夾對(duì)象名\x0d\x0a假如你沒(méi)建立過(guò)\x0d\x0a那么首先執(zhí)行create directory dpdata1 as 'd:\test\dump';\x0d\x0a然后把expdp這樣寫(xiě)directory=dpdata1
文章題目:oracle如何備份文件 oracle備份文件名查詢
標(biāo)題路徑:http://chinadenli.net/article44/hgspee.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供Google、企業(yè)網(wǎng)站制作、手機(jī)網(wǎng)站建設(shè)、網(wǎng)站內(nèi)鏈、域名注冊(cè)、動(dòng)態(tài)網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)