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

Configuring DB2 Journaling for Change Data Capture

Configuring DB2 Journaling for Change Data Capture

To register tables for capture, you must configure tables and physical files to write before and after images to journals. PowerExchange reads change data from journals and requires both before and after images to properly process change data.
You can capture changes from local or remote journals.
Use the following DB2 for i5/OS command to start journaling for a physical file for which you want to capture change data:
STRJRNPF FILE(
library
/
file
) JRN(
jlib
/
jfile
) IMAGES(*BOTH) OMTJRNE(*OPNCLO)
The following table describes the parameters in this command:
Parameter
Description
library/file
Library and physical file for which changes are written to the journal.
jlib/jfile
The library and journal to which changes are written.
IMAGES(*BOTH)
Before and after images are written to the journal.
OMTJRNE(*OPNCLO)
Open and close entries are omitted from the journal.

0 COMMENTS

We’d like to hear from you!