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 SQL Server Source Table Definition

Changing a SQL Server Source Table Definition

If you change the definition of a SQL Server source table that is registered for change data capture, use this procedure to enable PowerExchange to use the updated table definition and preserve access to data captured previously. Table definition changes include adding, altering, or dropping columns.
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 SQL Server source table definition:
  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. Delete the capture registration and extraction map.
  5. Use DDL to change the table definition in SQL Server.
    Create a new capture registration that reflects the metadata changes. Set the Condense option to
    Part
    and Status to
    Active
    . If you are using PowerExchange Navigator to create the capture registration, PowerExchange creates a corresponding extraction map.
  6. In the PowerExchange Navigator, create a new capture registration that reflects the metadata changes. Set the
    Condense
    option to
    Part
    , and set the registration status to
    Active
    .
    The PowerExchange Navigator creates a corresponding extraction map.
    The newly activated capture registration becomes eligible for change data capture.
  7. Warm start the PowerExchange Logger.
    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 the PowerCenter Designer, import the altered source and target definitions. Edit the mapping if necessary.
  10. If necessary, re-materialize the target table. After materialization completes, create the new restart tokens for the target table.
  11. Create new restart tokens for the altered table.
  12. Re-enable DELETE, INSERT, and UPDATE activity against the table.
  13. Cold start the extraction workflows.

0 COMMENTS

We’d like to hear from you!