Promoting selected table mappings to an existing subscription

You can promote changes to table mappings in a subscription that has already been promoted to another environment.

About this task

For example, the subscription may already exist in a project that you have reserved for testing subscriptions, but you may have made some minor changes to the table mappings for the subscription. To make sure the subscription in the test environment includes the changes that you made, you need to promote your changes to the testing environment.
Note: When promoting changes to an existing subscription, CDC Replication maintains synchronization between your source and target tables and you do not need to set the log position in the new environment. However, if you are making changes that causes you to lose synchronization between your source and target tables (such as updating the definition of a source table), then CDC Replication does not maintain the log position and you will have to resynchronize your source and target tables in the original and in the new environment. For more information on how to synchronize source and target tables in a table mapping, see Flagging source tables for refresh.

Be aware that if SQL Where clauses have been specified to define a subset of rows within a refresh configuration for a table mapping, they will not be promoted to the new table mapping.

Procedure

  1. Click Configuration > Subscriptions.
  2. Select the subscription with the table mappings you want to promote.
  3. Right-click one or more table mappings in the Table Mapping view and select Promote....
  4. Select Promote changes to an existing subscription.
  5. Select the subscription to which you want to promote changes from the Promote To list.
  6. In the Table Mappings area you can select one of the following two options and click Next:
    Replace all table mappings in the existing subscription
    Indicates that the selected table mappings that you are promoting will replace all existing table mappings in the existing subscription you are promoting to.

    For example, you plan on promoting table mappings from subscription Develop to subscription Test. Subscription Develop contains four table mappings: A, B, C, and D. A and B are selected for promotion to subscription Test. Subscription Test contains three table mappings: A, B, and Z. By selecting this option, table mappings A and B in subscription Develop will replace all of the existing table mappings in subscription Test. After promotion is complete, subscription Test will only contain table mappings A and B. Table mapping Z will no longer exist in subscription Test.

    Only replace the selected table mappings
    Indicates that only the selected table mappings in the subscription being promoted will replace table mappings (with identical names) in the existing subscription you are promoting to. All other table mappings will remain in the subscription you are promoting to.

    For example, you plan on promoting table mappings from subscription Develop to subscription Test. Subscription Develop contains four table mappings: A, B, C, and D. A and B are selected for promotion to subscription Test. Subscription Test contains three table mappings: A, B, and Z. By selecting this option, table mappings A and B in subscription Develop will only replace table mappings A and B in subscription Test. After promotion is complete, subscription Test will still contain three table mappings: A, B and Z.

  7. Confirm the source datastore and the name of the database and owner from which you want to promote the changes, then click Next.

    If you have built a derived column on the source that references another table in another database using the %GETCOL column function, specify the name of the database and owner that contains the table that is referenced in the %GETCOL function. Also, make sure that the table referenced in the derived column exists in the new source database.

  8. Confirm the target datastore and the name of the database and owner to which you want to promote the changes.
  9. If you have configured expressions with column functions that call user exit programs, such as %USER or %STPROC, specify the full path that contains the stored procedure, or the name of the user exit program referenced in the expression, then click Next.

    Make sure that the stored procedure or user exit program already exists in the new source database.

  10. If you have built a derived column, an expression, or a row-filtering expression that uses the %SELECT column function, confirm the list of displayed expressions and click Next.

    After promotion, make sure that the table or column referenced in the %SELECT expression exists in the new database.

  11. Click View XML to confirm the location and attributes of the promoted subscription.
  12. Review the list of changes and click Finish.