oracle主備切換後,主庫的原goldengate抽取進程會abend報錯,此時須要在抽取進程裏面配置以下參數:
oracle
TRANLOGOPTIONS MINEFROMACTIVEDGapp
該特性是goldengate12.1.2.1.0的新特性:支持從ADG的在線日誌中實時捕獲變化。ide
啓動goldengate的抽取進程:spa
start ext_apprest
此時若是應用沒有啓動,在關閉抽取進程以前沒有延遲,其實也可也採用以下操做(備用,謹慎使用,有可能丟數據):
#alter extract ext_app, tranlog, begin now日誌
正確處理步驟:進程
此時啓動抽取進程會報錯進程變成abend,也可查看報錯信息:it
view report ext_app;io
可發下以下錯誤,並且報錯信息說的很明白:class
2018-09-27 18:05:06 ERROR OGG-02803 Encountered a Data Guard role transition. Alter Extract to SCN 8,096,622,950,106 and restart Extract, or recreate Extract with the correct number of th
reads at SCN 8,096,622,950,106.
修改抽取進程的抽取scn號並啓動:
alter ext_app, scn 8096622950106
start ext_app