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 Restart Tokens for Extractions

Creating Restart Tokens for Extractions

Before you begin extracting change data, you must create restart tokens to indicate the extraction start point.
When generating restart tokens, consider the following points:
  • The optimal start point matches the point in the change stream at which you last synchronized the source and target. This point marks the end of the change stream, or current end-of-log (EOL), if you stop update activity on the source, as recommended, until after target materialization and restart token generation are complete.
  • The length of restart tokens vary by source type.
  • For Microsoft SQL Server, the sequence token represents the point from which PowerExchange starts reading change data from the SQL Server distribution database. The restart token includes the DBID of the distribution database and the name of the distribution server. PowerExchange verifies that the distribution database in the restart token matches the distribution database that is specified in the CAPI_CONNECTION statement.
  • PWXPC can generate restart tokens when it starts extraction processing for a CDC session. PowerExchange also provides methods of generating restart tokens.
To create current restart tokens for the current EOL, use one the following methods:
PWXPC restart token file
To generate current restart tokens for a CDC session that uses real-time or continuous extraction mode, specify the CURRENT_RESTART option on the RESTART1 and RESTART2 special override statements in the PWXPC restart token file. When the CDC session runs, PWXPC requests that PowerExchange provide restart tokens for the current EOL. PWXPC uses this restart information to locate the extraction start point.
Database row test
In the PowerExchange Navigator, perform a database row test with a SELECT CURRENT_RESTART SQL statement.
DTLUAPPL utility
Run the DTLUAPPL utility with the GENERATE RSTKKN option.
If you use the DTLUAPPL utility or PowerExchange Navigator to generate restart tokens, enter the token values in the PWXPC restart token file before you start the CDC session.

0 COMMENTS

We’d like to hear from you!