Table of Contents

Search

  1. Preface
  2. Change Data Capture Introduction
  3. PowerExchange Listener
  4. PowerExchange Condense
  5. DB2 for i5/OS Change Data Capture
  6. Remote Logging of Data
  7. Introduction to Change Data Extraction
  8. Extracting Change Data
  9. Monitoring CDC Sessions
  10. Managing Change Data Extractions
  11. Tuning CDC Sessions
  12. Appendix A: DTL__CAPXTIMESTAMP Time Stamps

CDC Guide for i5/OS

CDC Guide for i5/OS

Commit Processing with PWXPC

Commit Processing with PWXPC

The PowerCenter Integration Service, in conjunction with PWXPC, commits data to the target based on the
Commit Type
session property and the commitment control attributes specified on PWX CDC Change or Real Time application connections.
By default, the
Commit Type
session property specifies
Target
for target-based commit processing. However, the PowerCenter Integration Service always uses source-based commit processing for CDC sessions. Change the commit type to
Source
. If you retain the default value and run a CDC session, the PowerCenter Integration Service automatically uses source-based commit processing and writes message WRT_8226 in the session log. You do not need to set the
Commit Interval
session property because PWXPC ignores it.
To control when commits occur, configure committment control attributes on the PWX CDC Change and Real Time application connections.
The following table describes these connection attributes:
Connection Attribute
PWX Real Time or Change Connections
Description
Maximum Rows Per commit
Both
Maximum number of change records that PWXPC processes before it flushes the data buffer to commit the change data to the targets. If necessary, PWXPC continues to process change records across UOW boundaries until this maximum rows limit is met. PWXPC does not wait for a UOW boundary to commit the change data.
Default is 0, which causes PWXPC to not use this maximum rows limit.
Minimum Rows Per commit
Real Time
Minimum number of change records that PowerExchange reads from the change stream before it passes any commit records in the change stream to PWXPC. Before reaching this minimum, PowerExchange skips commit records and passes only the change records to PWXPC.
Default is 0, which causes PowerExchange to not use this minimum rows limit.
Real-time Flush Latency in milli-seconds
Real Time
Number of milliseconds that must elapse before PWXPC flushes the data buffer to commit change data to the targets. When this latency period expires, PWXPC continues to read the changes in the current UOW until it reaches the end of the UOW. Then, PWXPC flushes the data buffer to commit the change data to the targets.
Default is 0, which causes PWXPC to use 2,000 milliseconds.
UOW Count
Both
Number of UOWs that PWXPC must process before flushing the data buffer to commit the change data to the targets.
Default is 1.
PWXPC flushes the data buffer to commit change data to the targets when one of the following thresholds is met, whichever one is first:
  • Maximum Rows Per commit
  • Real-Time Flush Latency in milli-seconds
  • UOW Count
If you specify
Minimum Rows Per commit
, this threshold must also be met before a commit occur.
After PWXPC commits the change data, it resets the UOW count, the maximum and minimum rows per commit, and the real-time flush latency timer. PWXPC continues to read change data. Whenever one of the commitment control thresholds is met, PWXPC commits change data to the targets. Commit processing continues until the CDC session is stopped, ends, or terminates abnormally. When the PWXPC CDC reader ends normally, PWXPC issues a final commit to flush all complete, buffered UOWs and their final restart tokens to the targets. Prior to ending, the PWXPC CDC reader writes the following message to the session log:
PWXPC_12075 [INFO] [CDCRestart] Session complete. Next session will restart at: Restart 1 [
restart1_token
] : Restart 2 [
restart2_token
]

0 COMMENTS

We’d like to hear from you!