Hi Satid,
Thank you for your response. I like your idea of using a TIMESTAMP column, except that we'd also like to stream events in DB2 databases related to third-party applications. I'm concerned modifying their tables will void our warranty/support. I have the same concerns with a trigger-based approach since triggers are part of SQL transactions.
After posting here, I was directed to a StackOverflow article where a poster (claiming to be an IBM employee) mentioned that people should look at IBM Data Replication (click here). I have plans to explore IDR since it also supports other sources common in my client networks (e.g. MSSQL and Oracle).
I will make sure to keep everyone posted with my findings. Unless you have experience with this and can potentially help raise any hidden caveats?
------------------------------
Timothy
------------------------------
Original Message:
Sent: Wed September 27, 2023 02:09 AM
From: Satid Singkorapoom
Subject: Debezium + Kafka for DB2 hosted on IBM i
Dear Timothy
The description provided by Debezium appears that it was never tested with DB2 for i. And its product information indicates it uses something equivalent to a journal receiver object in IBM i which unfortunately is not a table that Debezium uses. I would be surprised if it works with DB2 for i.
Since the availability of TIMESTAMP data type and automatic timestamp in DB2 for i in release 6.1, one can write a poor-man Change Data Capture program by making use of this new timestamp column (added to the table of interest) and SQL date-time arithmetic capability. An SQL procedure designed to run CDC once every 24 hours would be easier to write than one designed to run on-line.
------------------------------
Chance favors only the prepared mind.
-- Louis Pasteur
------------------------------
Satid S.
Original Message:
Sent: Tue September 26, 2023 10:40 AM
From: Timothy Dilbert
Subject: Debezium + Kafka for DB2 hosted on IBM i
Has anyone had any luck using Debezium + Kafka to stream CDC events in DB2 databases hosted on AS400/IBMi?
Debezium connector for Db2
If you have or have come across any articles on the web on how to put together a POC, can you please share them? I'm asking because, from what I've read online, there are some slight differences between DB2 on Linux and DB2 on IBMi.
------------------------------
Timothy
------------------------------