goldengate源端意外宕機,傳輸程序終止,導致OGG-01031報錯
伺服器宕機,沒有停止dpump程序,啟動後處於abend狀態,檢查ggserr.log報以下錯誤:
2011-04-01 11:13:19 ERROR OGG-01031 Oracle GoldenGate Capture for Oracle, dpump.prm: There is a problem in network communication, a remote file problem, encryption keys for target and source do not match (if using ENCRYPT) or an unknown error. (Reply received is Unable to open file "/vistor/media/GG/dirdat/rt000003" (error 11, Resource temporarily unavailable)).
原因是由於目標端的OGG程式碼正在更新,同時dpump程序沒有停止導致dpump程序始終尋找老的manager埠和源端的trail檔案。
解決方法重新啟動exp、ddump、ext、mananger程序,若還是報錯就需要更改引數。
dpump新增 ETROLLOVER屬性,產生一個新的檔案點
alter extract ext1 etrollover
start extract dpump
info extract dpump
標記源端trail檔案sequence number開啟生成新的rt檔案
send replicat rep1,logend
alter replicat rep1,extseqno 4, extrba 0
start replicat rep1
程序啟動恢復正常。