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

Manually Creating the Replication Store Table

Manually Creating the Replication Store Table

If you need to customize the replication store table to suit your environment, you can manually create the table instead of letting the PowerExchange capture process automatically generate it.
For example, you might want to customize the table to support table partitions.
To create the table, use the following sample SQL statements:
CREATE TABLE
table_name
( id bigserial, lsn pg_lsn NOT NULL, xid xid NOT NULL, data text NOT NULL); CREATE UNIQUE INDEX ON
table_name
(id); CREATE INDEX ON
table_name
(lsn);
  • Make sure that your customizations are compatible with the column definitions in the sample SQL.
  • If you use a table name other than the default name of public.pwx_repl, enter the custom name in the REPLSTORETBL parameter in the PG CAPI_CONNECTION statement in the dbmover.cfg file.

0 COMMENTS

We’d like to hear from you!