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 the Structure of a MySQL Source Table

Changing the Structure of a MySQL Source Table

Occasionally, you might need to make DDL changes to a registered MySQL source table that add, alter, or drop columns from which PowerExchange captures changes. You can switch to the new table definition in a manner that preserves access to previously captured data.
This topic describes the steps for properly switching to a new table definition.
You do not need to perform these steps in the following situations:
  • You selectively capture change data for a subset of columns, and the DDL changes do not affect any of these columns or their ordinal values.
  • You need to stop change data extraction processing for a column. In this case, remove the column from the extraction map and do not edit the capture registration. PowerExchange still captures change data for the column but does not extract it when CDC sessions run.
  1. Stop data change activity (inserts, updates, and deletes) on the table.
  2. Verify that any change data that was captured under the current table definition has completed extraction processing. Then stop all PowerCenter 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, open the original capture registration and set its status to
    History
    .
    PowerExchange does not capture change data based on capture registrations that have a status of
    History
    or
    Inactive
    .
    If you no longer need to capture change data from a column, you can remove the column from the extraction map without changing the capture registration. Change data for the column is still captured but is not extracted.
  5. Make the DDL changes to the table.
  6. In the PowerExchange Navigator, create a new capture registration for the table that reflects the DDL changes.
    Make sure that you include these settings:
    • In the
      Condense
      list, select
      Part
      .
    • In the
      Status
      list, select
      Active
      .
  7. If you shut down the PowerExchange Logger, warm start it.
    The PowerExchange Logger begins capturing changes based on the new capture registration.
  8. Change the target table definition to reflect the source table changes, if necessary.
  9. In PowerCenter Designer, import the new extraction map for the altered source table to create a new source definition. Also, if you changed the target table, edit or re-create the target definition. Then, edit the mapping, if necessary.
  10. If necessary, rematerialize the target tables and then create new restart tokens.
  11. Allow change activity on the table to resume.
  12. Start the PowerCenter workflows again.
    Extraction processing resumes.

0 COMMENTS

We’d like to hear from you!