IBM InfoSphere CDC Vs Long Running Transactions
InfoSphere Change Data Capture (ISCDC) which is part of IBM InfoSphere Data Replication has the concept of Restart Position via bookmark which keeps advancing as the records are replicated and applied at the target that helps tracking CDC to keep the record of how much data have already been replicated so that CDC when restarted can start from this position.
There was a customer using Oracle as a source from which the data was replicated, and it was observed that InfoSphere CDC was holding up transaction inspite of not having any open transactions in the V$TRANSACTION. Later it turned out to be that the open transaction was identified from the GV$TRANSACTION table. These are global transactions that can occur in the Oracle RAC environment.
So, InfoSphere CDC holding up the transactions were found to be very much legitimate.
So, InfoSphere CDC holding up the transactions were found to be very much legitimate.
Long transactions in the database (and hence restart position not advancing in the ISCDC) sometime is a concern because
- when ISCDC is to be restarted for some reason, ISCDC will demand from the log files that corresponds to the Restart Position
- since the data was not committed for a long time, they are not replicated by ISCDC as expected and it is perceived as being high latency
Thanks for the post..was very helpful..could you explain if there are any methods to find out what are the transactions currently being built in ISCDC and is there any tool / utility to analyze the TxQueues of CDC ?
ReplyDeleteYes Amit! There is a new tool that will be part of 6.5.1 to analyze the open and long running transactions. It requires the instance to be Normally Shutdown and dump the staging store TXQ files which can further be analyzed with the new tool.
ReplyDeleteHow the client resolve their long running transactions issue. We are in similar situation where ISCDC complain of XA/global transactions that are not committed while we see them commit. So the bookmarks are not moving and the latency is in excess of 8 hours. We are using Oracle 11.2 RAC as source DB with ISCDC 9.
ReplyDelete