PowerExchange CDC: Changing Sources or Targets for Extractions

PowerExchange CDC: Changing Sources or Targets for Extractions

Changing Sources or Targets for a CDC Session

Changing Sources or Targets for a CDC Session

Use the following procedure to change sources or targets for an existing CDC session and then restart change data extraction from the appropriate point.
  1. Stop the PowerCenter workflow that contains the session that you want to change. Use one of the following methods:
    • Stop the workflow from the Workflow Monitor.
    • Issue the pmcmd
      stopworkflow
      command.
    • Issue the PowerExchange Listener STOPTASK command.
    • Use the PowerExchange DTLUTSK utility.
  2. After the workflow stops, right-click the CDC session and choose Recover Task or issue the pmcmd
    starttask
    command with the -recovery option.
    When you recover tasks for a session, PWXPC writes the ending restart tokens for all sources in the session to the restart token file that is specified in the CDC application connection. These restart tokens will be used to resume CDC processing from the appropriate point when the CDC session is restarted.
  3. In the Designer, edit or re-create the mapping to add or remove sources or targets.
  4. In the Workflow Manager, change the session.
    If you created a new mapping, you must create a new session. After validating the new session, update the workflow.
  5. Verify that the CDC application connection points to the same restart token file that was updated in the recovery session.
  6. If you added sources, update the restart token file to add restart tokens for those sources.
  7. If you removed sources, update the restart token file to remove the restart tokens for those sources.
  8. Cold start the CDC session
    PWXPC reads the restart token file to acquire restart tokens for all sources. PWXPC then passes these restart tokens to PowerExchange so that PowerExchange can resume change data extraction from the appropriate point in the change stream.

0 COMMENTS

We’d like to hear from you!