如何使用 GoldenGate "Kafka" / "Kafka connect" 处理程序处理 oracle 十进制类型?
How can be handle oracle decimal types with GoldenGate "Kafka" / "Kafka connect" handler?
我想使用 Oracle GoldenGate(它是 orcale cdc 工具)将 oracle 与 Kafka 集成。
我找到了两个处理程序:
- http://docs.oracle.com/goldengate/bd123110/gg-bd/GADBD/using-kafka-connect-handler.htm#GADBD-GUID-81730248-AC12-438E-AF82-48C7002178EC 使用 avro 格式化程序
- http://docs.oracle.com/goldengate/bd123110/gg-bd/GADBD/using-kafka-handler.htm#GADBD449
这两个处理程序都不支持小数类型(我的意思是它们不将 avro 中的小数视为逻辑类型,否则如何处理),该工具只是将小数转换为双精度类型。在这种情况下,我们会降低精度。
除了编写自己的处理程序之外,有人知道处理小数的好方法吗?
您需要 12.3.1.1.4 和以下版本:
gg.handler.<name>.format.mapLargeNumbersAsStrings=false
gg.handler.<name>.format.enableDecimalLogicalType=true
gg.handler.<name>.format.enableTimestampLogicalType=true
我想使用 Oracle GoldenGate(它是 orcale cdc 工具)将 oracle 与 Kafka 集成。 我找到了两个处理程序:
- http://docs.oracle.com/goldengate/bd123110/gg-bd/GADBD/using-kafka-connect-handler.htm#GADBD-GUID-81730248-AC12-438E-AF82-48C7002178EC 使用 avro 格式化程序
- http://docs.oracle.com/goldengate/bd123110/gg-bd/GADBD/using-kafka-handler.htm#GADBD449
这两个处理程序都不支持小数类型(我的意思是它们不将 avro 中的小数视为逻辑类型,否则如何处理),该工具只是将小数转换为双精度类型。在这种情况下,我们会降低精度。
除了编写自己的处理程序之外,有人知道处理小数的好方法吗?
您需要 12.3.1.1.4 和以下版本:
gg.handler.<name>.format.mapLargeNumbersAsStrings=false
gg.handler.<name>.format.enableDecimalLogicalType=true
gg.handler.<name>.format.enableTimestampLogicalType=true