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

Creating the DDL-Updated Catalog Tables

Creating the DDL-Updated Catalog Tables

Before you begin capturing changes, you must create the catalog tables, PWXCatTables and PWXCatUpdates, in the MySQL source database or in another local or remote MySQL database. You can create the catalog tables either by running DDL statements manually or by using the PWXCATMY utility.
To create the catalog tables from the PWXCATMY utility, issue the following command from the PowerExchange root directory, where the utility is installed:
PWXCATMY OPERATION=CREATE CATHOSTNAME=
catalog_host_name
CATUSERNAME=
catalog_user_name
CATPASSWORD=
user_password
CATSCHEMA=
catalog_schema
The utility creates the tables on the specified catalog host.
To create the catalog tables manually, first get the DDL statements for creating the tables in the proper format by performing a SHOWDDL operation in the PWXCATMY utility. Issue the following utility command:
PWXCATMY OPERATION=SHOWDDL
Then execute the DDL statements that the command returns.
To verify that the catalog tables were created in the correct format, you can use the PWXCATMY OPERATION=VERIFY command.
For more information about using the utility, see the
PowerExchange Utilities Guide
.

0 COMMENTS

We’d like to hear from you!