Table of Contents

Search

  1. Preface
  2. Part 1: PowerExchange CDC Introduction
  3. Part 2: PowerExchange CDC Components
  4. Part 3: PowerExchange CDC Data Sources
  5. Part 4: Change Data Extraction
  6. Part 5: Monitoring and Tuning
  7. Appendix A: DTL__CAPXTIMESTAMP Time Stamps

CDC Guide for Linux, UNIX, and Windows

CDC Guide for Linux, UNIX, and Windows

Changing a Db2 Source Table Definition

Changing a Db2 Source Table Definition

Occasionally, you might need to change the structural definition of a Db2 source table that is registered for change data capture.
If you make table definition changes that affect the columns from which change data is captured, perform this procedure to enable PowerExchange to switch to the updated table definition, while preserving access to previously captured data. These table definition changes include adding, altering, or dropping columns. Do not 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 table definition 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.
  1. Stop all transactions, applications, and other activity that update the source 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. If you use the PowerExchange logger for Linux, UNIX, and Windows, shut down the Logger.
  4. In the PowerExchange Navigator, delete the original capture registration and extraction map.
  5. Use DDL to make the table changes.
  6. In the PowerExchange Navigator, create a new capture registration that reflects the metadata changes and set its status to
    Active
    . A corresponding extraction map is generated.
    When you create the capture registration, use the original registration name so that you will not need to the edit the map name that is used by the PowerCenter CDC workflows that contain the changed source table.
  7. If you shut down the PowerExchange Logger, warm start it.
    The PowerExchange Logger begins capturing changes based on the new capture registration.
  8. If necessary, change the target table definition to reflect the source table metadata changes.
  9. In PowerCenter Designer, import the extraction map for the altered source table to create a new source definition. Edit the mapping if necessary.
    If you also changed the target table, edit or re-create the target definition. Then edit the mapping, if necessary.
  10. If necessary, rematerialize the target tables. After materialization completes, create new restart tokens.
  11. Enable update activity on the source table again.
  12. Restart the PowerCenter workflows.
    If the table definition changes affected columns of CDC interest or you needed to edit the mapping, cold start the session. Otherwise, warm start the session.

0 COMMENTS

We’d like to hear from you!