Table of Contents

Search

  1. Preface
  2. Data Replication Overview
  3. Understanding Data Replication
  4. Sources - Preparation and Replication Considerations
  5. Targets - Preparation and Replication Considerations
  6. Starting the Server Manager
  7. Getting Started with the Data Replication Console
  8. Defining and Managing Server Manager Main Servers and Subservers
  9. Creating and Managing User Accounts
  10. Creating and Managing Connections
  11. Creating Replication Configurations
  12. Materializing Targets with InitialSync
  13. Scheduling and Running Replication Tasks
  14. Implementing Advanced Replication Topologies
  15. Monitoring Data Replication
  16. Managing Replication Configurations
  17. Handling Replication Environment Changes and Failures
  18. Troubleshooting
  19. Data Replication Files and Subdirectories
  20. Data Replication Runtime Parameters
  21. Command Line Parameters for Data Replication Components
  22. Updating Configurations in the Replication Configuration CLI
  23. DDL Statements for Manually Creating Recovery Tables
  24. Sample Scripts for Enabling or Disabling SQL Server Change Data Capture
  25. Glossary

Managing DB2 DATA CAPTURE Settings

Managing DB2 DATA CAPTURE Settings

For DB2 for Linux, UNIX, and Windows sources, you can use the Data Replication Console to manage the DB2 DATA CAPTURE and DATA CAPTURE CHANGES settings for source tables. To enable supplemental logging, DATA CAPTURE CHANGES must be set for the source tables.
To change DATA CAPTURE settings in the Data Replication Console, the configuration must be open in Edit mode. To only view DATA CAPTURE settings, without making changes, the configuration can be open in Read mode.
  1. On the
    Map Tables
    tab, click the
    Manage Database Supplemental Logging
    icon button above the source table
    Filter
    list.
    The
    Manage DB2 DATA CAPTURE Settings
    dialog box appears.
  2. In the
    Schema
    list, select the source schema for the tables for which you want to view or edit DATA CAPTURE settings.
    The
    Schema
    list displays only the schemas for which one or more source tables are mapped. By default, the source schema that is currently selected on the
    Map Tables
    tab is displayed, if it has at least one mapped table.
    A list of the mapped source tables in the specified schema appears in the
    Tables
    box. The following image shows the list of all mapped source tables for the D2D_DDL_5555_T schema:
    Manage DB2 DATA CAPTURE Settings dialog box
    To display all source tables and schemas, including unmapped tables and schemas, select
    Show all objects
    . To display only the tables for which DATA CAPTURE CHANGES is not set, select
    Show only the tables for which DATA CAPTURE CHANGES is not set
    . To filter the list of source tables, enter the first few letters of a table name in the
    Table Filter
    field. For case-sensitive filtering, enclose the filter value in double quotation marks.
    If the source schema contains thousands of tables or the Data Replication Console runs in a local area network that is remote to the database server network, selecting
    Show all objects
    might significantly increase metadata caching time.
  3. In the
    Data Capture
    column, select the check box for each source table for which you want to set DATA CAPTURE CHANGES to enable supplemental logging, or clear the check box for any table for which you want to set DATA CAPTURE NONE to disable supplemental logging.
    To select the
    Data Capture
    check box for all of the source tables, click
    Select All
    . To clear the
    Data Capture
    check box for all of the source tables, click
    Clear All
    . To revert to the
    Data Capture
    settings that appeared when you first opened the
    Manage DB2 DATA CAPTURE Settings
    dialog box, click
    Reset
    . To refresh the Data Capture settings to get the latest changes made in the source database or from the Server Manager CLI, click
    Refresh
    .
    Data Replication generates SQL statements for each table for which you edited the
    Data Capture
    settings. Data Replication uses the following syntax for the statements:
    ALTER TABLE "
    schema_name
    "."
    table_name
    " DATA CAPTURE CHANGES INCLUDE LONGVAR COLUMNS;
    ALTER TABLE "
    schema_name
    "."
    table_name
    " DATA CAPTURE NONE;
    The DATA CAPTURE CHANGES statement enables supplemental logging for the table that you selected, and the DATA CAPTURE NONE statement disables supplemental logging for the table that you selected.
  4. To save the SQL statements to a script file, perform the following substeps:
    1. Click
      Save
      .
      The
      Save
      dialog box appears.
    2. Enter a file name and path and click
      Save
      .
      A message confirms that the script file was saved successfully.
    3. Click
      OK
      .
    You can use the saved script file to run the SQL statements later. If you do not have the authority to run the SQL statements or manage DATA CAPTURE settings, give the script file to a database administrator who has the authority to run the statements.
  5. To run the SQL statements before exiting the dialog box, click
    Run
    .
  6. Click
    Close
    .
If you set DATA CAPTURE CHANGES to enable supplemental logging for any unmapped source tables, map these tables on the
Map Tables
tab to include them in the replication configuration.

0 COMMENTS

We’d like to hear from you!