Table of Contents

Search

  1. Preface
  2. Part 1: PowerExchange Change Data Capture Introduction
  3. Part 2: CDC Components Configuration and Management
  4. Part 3: CDC Sources Configuration and Management
  5. Part 4: Change Data Extraction
  6. Part 5: Monitoring and Tuning
  7. Appendix A: CDC for z/OS Troubleshooting
  8. Appendix B: DTL__CAPXTIMESTAMP Time Stamps

Replacing a Table with Another Table That Has the Same Name

Replacing a Table with Another Table That Has the Same Name

If you need to replace a table from which changes are captured with another table that has the same name, use this procedure.
  1. Stop SQL changes from being written to the table.
    You can set read-only access on the table.
  2. Verify that the DB2 ECCR captured all changes up to the point at which change activity was stopped.
  3. Rename the table from which changes were captured to a different name.
  4. Delete or deactivate the capture registration for the table.
  5. Issue the DB2 ECCR REFRESH command to drop the table from the DB2 ECCR.
  6. Rename the new table to the name of the dropped table that was previously registered for change capture.
  7. Create and activate a capture registration for the newly renamed table.
  8. Issue the DB2 ECCR REFRESH command again to add the newly renamed table to the DB2 ECCR.
  9. Allow change activity to resume on both tables.

0 COMMENTS

We’d like to hear from you!