偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

正確搭建Oracle exp的備份機(jī)步驟

數(shù)據(jù)庫 Oracle
我們今天主要介紹的是正確搭建Oracle exp的備份機(jī)的實(shí)際操作步驟,以及在實(shí)際操作中有哪些實(shí)際操作步驟是值得我們大家注意的。

以下的文章主要介紹的是如何正確的搭建Oracle exp的備份機(jī),我們大家知道Oracle服務(wù)端一般裝的是10.1版本,其相關(guān)IP地址是129.1.9.90,首先安裝oracle10.1在備份機(jī)上,配IP地址為129.1.9.91,關(guān)閉防火墻。

搭建Oracle exp備份機(jī):并修改tnsnames.ora文件,添加如下內(nèi)容:

 

  1. JMYBJS =  
  2. (DESCRIPTION =  
  3. (ADDRESS = (PROTOCOL = TCP)(HOST = 129.1.9.90)(PORT = 1521))  
  4. (CONNECT_DATA =  
  5. (SERVER = DEDICATED)  
  6. (SERVICE_NAME = jmybjs)  
  7. )  
  8. )  

 

在D盤新建文件夾:

 

  1. d:\backup\dmp  
  2. d:\backup\log  

 

用來存放dmp文件和備份的日志。

搭建Oracle exp備份機(jī):修改備份腳本如下:

 

  1. 'Nightly Bulk copy export for the customers table&veiw  
  2. 'Write output to clarentYYMMDD.txt and errors to ERRYYMMDD.txt  
  3. ''strssql="bcp demo.clrnuser.bill_recordview out c:\bibak\"+outfile+" -U jl_voip -P jlvoip -c -k -t,"  
  4. Dim outfile,aa,bb,stroption1,stroption2,A,B,C,strsql  
  5. set ws=WScript.CreateObject("WScript.shell")  
  6. A=cint(month(dateadd("d",0,date())))  
  7. B=cint(day(dateadd("d",0,date())))  
  8. C=cint(year(dateadd("d",0,date())))  
  9. if A<10 then aa=cstr(0)+cstr(A)  
  10. if A>=10 then aa=cstr(A)  
  11. if B<10 then bb=cstr(0)+cstr(B)  
  12. if B>=10 then bb=cstr(B)  
  13. outfile=cstr(C)+aa+bb  
  14. stroption1="D:\oracle_bf\product\10.1.0\Db_1\BIN\exp system/******@jmybjs 
    full=y buffer=900000 file=d:\backup\dmp\jmybjs"
    +outfile+" log=d:\backup\log\jmybjs"+outfile+".log"""  
  15. strsql=stroption1 
  16. ret=ws.Run(strsql)  

 

測試后,備份正常。

修改刪除腳本,使備份數(shù)據(jù)在備份機(jī)上保留30天

 

  1. 'Nightly Bulk copy export for the customers table&veiw  
  2. 'Write output to clarentYYMMDD.txt and errors to ERRYYMMDD.txt  
  3. ''strssql="bcp demo.clrnuser.bill_recordview out c:\bibak\"+outfile+" -U jl_voip -P jlvoip -c -k -t,"  
  4. Dim outfile,aa,bb,stroption1,stroption2,A,B,C,strsql  
  5. set ws=WScript.CreateObject("WScript.shell")  
  6. A=cint(month(dateadd("d",-30,date())))  
  7. B=cint(day(dateadd("d",-30,date())))  
  8. C=cint(year(dateadd("d",-30,date())))  
  9. if A<10 then aa=cstr(0)+cstr(A)  
  10. if A>=10 then aa=cstr(A)  
  11. if B<10 then bb=cstr(0)+cstr(B)  
  12. if B>=10 then bb=cstr(B)  
  13. outfile=cstr(C)+aa+bb  
  14. stroption1="C:\WINDOWS\system32\Delete d:\backup\dmp\jmybjs"+outfile+".dmp"  
  15. strsql=stroption1 
  16. ret=ws.Run(strsql)  

 

測試,提示不正確,檢查后,發(fā)現(xiàn)這個備份機(jī)中的sytem32文件夾下沒有delete.exe文件,從其他系統(tǒng)中拷貝delete.exe文件到這個備份機(jī)的system32下,測試正常。

***,添加到windows的定時任務(wù)中。 以上的相關(guān)內(nèi)容就是對搭建Oracle exp備份機(jī)的介紹,望你能有所收獲。

【編輯推薦】

  1. Oracle多條件查詢的分頁存儲如何操作?
  2. Oracle建立DBLINK的操作經(jīng)驗(yàn)總結(jié)
  3. Oracle數(shù)據(jù)復(fù)制如何正確操作?
  4. Oracle實(shí)現(xiàn)SELECT TOP N的步驟有哪些?
  5. Oracle Nvl函數(shù)的實(shí)際應(yīng)用有哪些?
責(zé)任編輯:佚名 來源: 互聯(lián)網(wǎng)
相關(guān)推薦

2010-10-26 11:39:51

Oracle EXPIMP備份

2010-03-29 15:57:07

Oracle exp備

2010-10-26 13:17:28

oracle備份策略

2010-04-08 13:26:39

Oracle安裝

2010-03-30 09:49:35

2010-03-29 16:34:09

Oracle exp備

2010-03-29 16:16:59

Oracle exp備

2010-05-06 09:52:11

Oracle發(fā)送郵件

2010-05-05 09:03:07

Oracle實(shí)現(xiàn)top

2010-03-30 10:34:08

Oracle exp備

2010-03-30 11:29:24

Oracle備份

2010-04-13 13:01:21

Oracle exp

2010-03-29 15:33:18

Oracle EXP

2010-04-19 17:39:04

Oracle導(dǎo)入

2010-04-06 10:11:11

Oracle備份

2010-08-17 09:18:29

DB2 備份

2010-04-29 10:22:11

Oracle exp

2010-04-30 17:58:55

Oracle trun

2010-08-12 17:14:25

DB2備份恢復(fù)數(shù)據(jù)庫步

2010-04-19 12:35:36

Oracle數(shù)據(jù)庫
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號