今天花了整整一天,把oracle goldengate配置了起來,期間遇到無數的問題,但是都是逢兇化吉,通過文檔和google搞定了,如下做個小小的總結。至于goldengate的配置過程暫且不表,待後續在做詳細介紹。
源資料庫在oel5.4 64bit的虛拟機上,資料庫版本是11.2.0.3
目标資料庫也是同一個虛拟機上的資料庫。
建了兩個不同的schema,jjs和jjt
scenario 1: extract parameter file is invalid.
extract ext1
userid ggate, password ggate
table jjs.j1
source context :
sourcemodule : [ggapp.parmscn]
sourceid : [$id: //depot/releases/opensys/v10.4.0/src/gglib/ggapp/parmscn.c#1 $]
sourcefunction : [ci_get_next_cmd]
sourceline : [1800]
threadbacktrace : [1] elements
: [c:\goldengate\extract.exe(ercallback+0x1193d0) [0x00589300]]
2010-04-13 13:20:12 ggs error 101 parameter unterminated.
2010-04-13 13:20:12 ggs error 190 process abending.
the parameter file should be terminated with a semi colon.
參數檔案最後必須以一個分号結束。
scenario 2: rmttrail not specified
userid ggate,password ggate
table jjs.j1;
sourcemodule : [er.main]
sourceid : [$id: //depot/releases/opensys/v10.4.0/src/app/er/rep.c#19 $]
sourcefunction : [get_infile_params]
sourceline : [10436]
2010-04-13 13:22:51 ggs error 101 rmttrail must be specified before file/table/sequence.
2010-04-13 13:22:51 ggs error 190 process abending.
錯誤提示十厘清楚了,rmttrail必須在file/table/sequence之前定義。
scenario 3:- rmthost not specified
userid ggate,password *****
rmttrail c:\purge
sourcemodule : [er.extrout]
sourceid : [$id: //depot/releases/opensys/v10.4.0/src/app/er/extrout.c#4 $]
sourcefunction : [get_ext_params]
0asource context :
sourceline : [2788]
2010-04-13 13:32:21 ggs error 101 no rmthost has been specified yet.
2010-04-13 13:32:21 ggs error 190 process abending.
錯誤明顯,必須定義rmthost參數,指定目标在哪裡。
scenario 4: – after specifying rmthost, came to know that
2010-04-13 13:37:18 ggs error 101 trails cannot be used when sourceistable/sourceisfile is specified.
2010-04-13 13:37:18 ggs error 190 process abending.
經曆這麼多錯誤之後,最後來看看成功的配置檔案是如何寫的。
rmthost localhost, mgrport 9500
rmtfile c:\purge\rmtfilerr
table jss.j1;
支援extract可以成功起來,但是replicat還是有問題,資料無法成功複制。
第二階段,嘗試了把源和目标分開,目标設定在了宿主windows7的機器上,目标資料庫是一個windows7 64bit平台上的11.2.0.1版本。
但是在把源和目标好之後,發現每次啟動extract的時候,windows7上的replicat
參考: