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

Changing the Binary Log Location or Base Name

Changing the Binary Log Location or Base Name

After you run CDC sessions that extract change data for MySQL sources, avoid changing the base name of the binary log files or the name or location of the directory that contains the binary log files to minimize the potential for change data loss.
If you must change the binary log location, perform the following tasks:
  1. Stop all CDC sessions that process data from the MySQL source.
  2. Shut down the MySQL server.
  3. In the log-bin option for binary logging, add the new binary log location, including the path and directory, before the base name.
  4. Copy the existing binary log files and index to the new location.
  5. Restart the MySQL server.
  6. Warm start the CDC sessions.
If you must change the binary log base name, or if you want to change the binary log location without copying the existing binary log files to the new location, perform the following tasks:
  1. Stop all CDC sessions that process data from the MySQL source.
  2. Shut down the MySQL server.
  3. In the log-bin option for binary logging, add the new base name or add the new location with the new or existing base name.
  4. Use the PWXCATMY utility to remove, or
    unregister
    , the source table definitions from the catalog. Then use the utility to re-create, or
    re-register
    , snapshots of the source definitions in the catalog.
  5. Restart the MySQL server.
  6. Cold start the CDC sessions.

0 COMMENTS

We’d like to hear from you!