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

Adding or Dropping Database Partitions

Adding or Dropping Database Partitions

Use this procedure to create a new partition in a partitioned database or to drop an existing partition, and then update the appropriate database partition group for the change.
  1. Stop updates to the source tables.
  2. Verify that any change data that was captured has completed extraction processing.
  3. In PowerCenter, stop all CDC sessions that extract change data for the tables in the partitioned database instance.
  4. For each table for which the DATA CAPTURE CHANGES clause is specified, specify DATA CAPTURE NONE.
    This step temporarily disables DB2 capture of changes to its log files. If you do not perform this step, DB2 records the data redistribution changes that result from the REDISTRIBUTE command as regular change data activity.
  5. Execute the SQL for adding the new database partition or for dropping an existing partition.
  6. Execute the ALTER DATABASE PARTITION GROUP SQL to add the new partition to or remove the dropped partition from the appropriate database partition group.
  7. Run the DB2 REDISTRIBUTE DATABASE PARTITION GROUP command to redistribute table data among the partitions in the altered database partition group.
  8. Back up the PowerExchange capture catalog table.
  9. Run the PowerExchange DTLUCUDB SNAPUPDT command. Set the REPLACE option set to Y. This step updates the PowerExchange capture catalog table to reflect the reconfigured partitioned database.
    Informatica recommends that you first perform a test run with the REPLACE option set to N.
  10. For each table for which you specified DATA CAPTURE NONE in step 2, reinstate the DATA CAPTURE CHANGES clause.
  11. Restart the PowerCenter CDC sessions to resume extraction processing.

0 COMMENTS

We’d like to hear from you!