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 previously captured data. 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:
Stop DELETE, INSERT, and UPDATE activity against the table.
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.
Delete the capture registration and extraction map.
Use DDL to change the table definition in SQL Server.
In the PowerExchange Navigator, create a new capture registration that reflects the metadata changes and set its status to
Active
. PowerExchange creates a corresponding extraction map.
The newly activated capture registration becomes eligible for change data capture.
If necessary, change the target table definition to reflect the source table metadata changes.
In the PowerCenter Designer, import the altered source and target definitions. Edit the mapping if necessary.
If necessary, rematerialize the target tables. After materialization completes, create new restart tokens.
Create new restart tokens for the altered table.
Re-enable DELETE, INSERT, and UPDATE activity against the table.