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

Changing a DB2 Table Definition

Changing a DB2 Table Definition

Occasionally, you might need to change the definition of a DB2 source table that is registered for change data capture.
If your changes affect columns from which change data is captured, use this procedure to enable PowerExchange to switch to the updated table definition, while preserving access to previously captured data.
Perform this procedure whenever you add, alter, or drop columns for which change data is captured. You do not need to perform this procedure if you are selectively capturing change data for a subset of columns and none of the selected columns are affected by the metadata changes.
If you no longer need to capture change data from a column in a table, you can remove the column from the extraction map without changing the capture registration. Change data for that column is still captured but is not extracted.
To change a DB2 source table definition:
  1. Stop all transactions, applications, and other activity that update the table.
  2. Verify that any change data that was captured under the previous table definition has completed extraction processing. Then stop all workflows that extract change data for the table.
  3. In the PowerExchange Navigator, open the original capture registration and set its status to
    History
    .
  4. Use DDL to make the table changes.
  5. In the PowerExchange Navigator, create a capture registration that reflects the metadata changes and set its status to
    Active
    .
    PowerExchange uses the newly activated capture registration for change data capture.
  6. If necessary, change the target table definition to reflect the source table metadata changes.
  7. In PowerCenter Designer, import the altered source and target tables. Edit the mapping if necessary.
  8. Rematerialize the target tables, if necessary. After materialization completes, create restart tokens.
  9. Enable transactions, applications, and other activity to update the table again.
  10. Restart extraction processing.

0 COMMENTS

We’d like to hear from you!