国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網(wǎng)站 > 建站經(jīng)驗 > 正文

Or!acle的exp備份機搭建步驟

2019-11-02 15:16:01
字體:
供稿:網(wǎng)友

  JMYBJS =

  (DESCRIPTION =

  (ADDRESS = (PROTOCOL = TCP)(HOST = 129.1.9.90)(PORT = 1521))

  (CONNECT_DATA =

  (SERVER = DEDICATED)

  (SERVICE_NAME = jmybjs)

  )

  )

  在D盤新建文件夾:

  d:backupdmp

  d:backuplog

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

  修改備份腳本如下:

  'Nightly Bulk copy export for the customers table&veiw

  'Write output to clarentYYMMDD.txt and errors to ERRYYMMDD.txt

  ''strssql="bcp demo.clrnuser.bill_recordview out c:bibak"+outfile+" -U jl_voip -P jlvoip -c -k -t,"

  Dim outfile,aa,bb,stroption1,stroption2,A,B,C,strsql

  set ws=WScript.CreateObject("WScript.shell")

  A=cint(month(dateadd("d",0,date())))

  B=cint(day(dateadd("d",0,date())))

  C=cint(year(dateadd("d",0,date())))

  if A<10 then aa=cstr(0)+cstr(A)

  if A>=10 then aa=cstr(A)

  if B<10 then bb=cstr(0)+cstr(B)

  if B>=10 then bb=cstr(B)

  outfile=cstr(C)+aa+bb

  stroption1="D:oracle_bfproduct10.1.0Db_1BINexp [email protected] full=y buffer=900000 file=d:backupdmpjmybjs"+outfile+" log=d:backuplogjmybjs"+outfile+".log"""

  strsql=stroption1

  ret=ws.Run(strsql)

  測試后,備份正常。

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

  'Nightly Bulk c

西瓜電影網(wǎng)[www.aikan.tv/special/xiguadianyingwang/]
opy export for the customers table&veiw

  'Write output to clarentYYMMDD.txt and errors to ERRYYMMDD.txt

  ''strssql="bcp demo.clrnuser.bill_recordview out c:bibak"+outfile+" -U jl_voip -P jlvoip -c -k -t,"

  Dim outfile,aa,bb,stroption1,stroption2,A,B,C,strsql

  set ws=WScript.CreateObject("WScript.shell")

  A=cint(month(dateadd("d",-30,date())))

  B=cint(day(dateadd("d",-30,date())))

  C=cint(year(dateadd("d",-30,date())))

  if A<10 then aa=cstr(0)+cstr(A)

  if A>=10 then aa=cstr(A)

  if B<10 then bb=cstr(0)+cstr(B)

  if B>=10 then bb=cstr(B)

  outfile=cstr(C)+aa+bb

  stroption1="C:WINDOWSsystem32Delete d:backupdmpjmybjs"+outfile+".dmp"

  strsql=stroption1

  ret=ws.Run(strsql)

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

  最后,添加到windows的定時任務(wù)中

        :更多精彩文章請關(guān)注電腦高手編程教程欄目。

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 鹿邑县| 蒙山县| 三门峡市| 前郭尔| 平山县| 方山县| 沾化县| 吴桥县| 乳源| 乌兰察布市| 盐津县| 化州市| 浙江省| 化隆| 宜章县| 云阳县| 湖南省| 滦南县| 伽师县| 师宗县| 吴江市| 迁西县| 吐鲁番市| 南江县| 永定县| 安顺市| 兰考县| 西吉县| 新民市| 巴林右旗| 泰顺县| 丁青县| 海伦市| 图们市| 湘潭县| 称多县| 盐城市| 雅江县| 马龙县| 泸溪县| 留坝县|