最近客戶有一個需求,OGG源端需要配置在ADG環境,按歷史配置規范,開啟抽取進程報錯:
2020-08-26 18:02:27 ERROR OGG-00060 Extract requires a value specified for parameter ALTARCHIVELOGDEST when in archived log only mode.
2020-08-26 18:02:27 ERROR OGG-01668 PROCESS ABENDING.
這是因為默認無法在ADG環境抽取redo,解決方案是在抽取進程中添加參數:
TRANLOGOPTIONS MINEFROMACTIVEDG
再次啟動抽取進程后解決問題。
這個依據是參考MOS文檔,注意OGG版本需在 12.1.2.1.0 及以后。
- Does GoldenGate Support Extracting Redo from Active Data Guard? (Doc ID 1299805.1)
Does GoldenGate support extract reading redo from generated from an active data guard?
Yes, this is supported in 12.1.2.1.0 (but not previous version) GoldenGate classic extract, with parameter:
TRANLOGOPTIONS MINEFROMACTIVEDG
For versions older than 12.1.2.1.0 the below error can occur:
ERROR OGG-00303 Unrecognized option (MINEFROMACTIVEDG) for TRANLOGOPTIONS.
So Goldengate must be upgraded to 12.1.2.1.0 or later versions to resolve it.