Flink CDC 系列 - 实时抽取 Oracle 数据,排雷和调优实践
1、oracle cdc无法连接数据库
[ERROR] Could not execute SQL statement. Reason:oracle.net.ns.NetException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
对于 SID 和 Service Name 的连接方式并未做区分,而是直接在代码中写死了 SID 的连接方式 (即 port 和 dbname 中间使用 “ : ” 分隔开)
Service Name的连接方式是 port 和 dbname 中间使用 “ /” 分隔开
2,无法找到oracle表
[ERROR] Could not execute SQL statement. Reason:io.debezium.DebeziumException: Supplemental logging not configured for table MY_SERVICE_NAME.MY_SCHEMA.test. Use command: ALTER TABLE MY_SCHEMA.test ADD SUPPLEMENTAL LOG DATA (ALL) COLUMNS
注意:flink oracle cdc 从库截止2022.9.20日2.0版本之前还不支持oracle从库,以后会不会支持,敬请期待