To safely perform a table operation on a
source table by using a data definition language (DDL) statement or
the LOAD command, perform the appropriate actions
to prevent replication interruptions.
Before you begin
- Ensure that you can log in to the InfoSphere CDC Management
Console as access-server-user.
- Ensure that you have access to the datastore for your shadow tables.
Procedure
To perform an operation on a source table that interrupts
replication:
- Log in to the InfoSphere CDC Management
Console as access-server-user.
- Stop replication:
- Click .
- Right-click the subscription, and select End
Replication.
- Select Normal and click OK.
- Perform the operation:
- Run the DDL or load operation on the source table.
In the following example, an
ALTER TABLE command
is completed on the source table DTW.TRADE.
$ db2 alter table DTW.TRADE add column i3 integer
- For DDL operations, reorganize the source table.
In the following example, a
REORG operation
is run on the source table DTW.TRADE.
$ db2 reorg table DTW.TRADE
- For DDL operations that change the structure of the source
table, update table definitions:
- Click .
- Right-click the data store and select Replication
Tables
- Select the source table and click Update.
- Click Update.
- Click Close.
- Instruct InfoSphere CDC to
refresh the data for the shadow table:
- Click
- Right-click the table mapping, and select Flag
for Refresh.
- Select Standard Refresh and click OK.
- Start replication (mirroring):
- Click .
- Right-click the subscription and select Start
Mirroring.
- Select Continuous and click OK.