Table of Contents

Search

  1. Preface
  2. Data Replication Overview
  3. Installing Data Replication
  4. Preparing Source and Target Systems
  5. Replication Basic Concepts
  6. InitialSync Processing
  7. Extractor and Applier Processing
  8. DDL Replication
  9. Recovery and Checkpoint Processing
  10. Configuring the Server Manager
  11. Creating Replication Configurations in the Data Replication Console
  12. Managing Replication Configurations
  13. Running Data Replications
  14. Configuring Selected Replication Types
  15. Monitoring Data Replication
  16. Maintaining the Replication Environment
  17. Troubleshooting
  18. Data Replication Files and Subdirectories
  19. Data Replication Runtime Parameters
  20. InitialSync, Extractor, and Applier Command Line Parameters
  21. Server Manager Command Line Parameters
  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

Mapping Source and Target Tables Based on Exact Name Matching

Mapping Source and Target Tables Based on Exact Name Matching

You can map source and target tables based on exact table name matching.
For the Merge Apply and SQL Apply modes, this method maps the source tables to target tables that have identical names. For the Audit Apply mode, this method maps the source tables to the audit log tables that have matching table names followed by the audit log table suffix.
You can map all of the source tables for which target tables with the same names exist, or use the Shift or Ctrl keys to select a subset of source tables to map to target tables with the same names.
  1. Click the
    Map Tables
    tab.
  2. In the
    Source Schema
    list, select a source schema.
    For Microsoft SQL Server targets, this list displays SQL Server databases, which are similar to schemas of other source types.
    A list of source tables that use the specified schema appears in the left list box. To filter the list, enter the first few letters of a table name in the
    Filter
    field. For case-sensitive filtering, enclose the filter value in double quotation marks.
  3. Select the target schema in one of the following ways:
    • In the
      Target Schema
      list, select the target schema.
      For Microsoft SQL Server targets, this list displays SQL Server databases.
    • Click
      Match Schema
      to use the source schema for the target.
    For flat file targets, such as those of the
    Cloudera,
    External,
    Flat File
    , or Hortonworks
    type, you do not need to select the target schema. For these targets, the Data Replication Console selects the source schema as the target schema in the
    Target Schema
    field.
    A list of target tables that use the schema appears in the right list box. To filter the list, enter the first few letters of a table name in the
    Filter
    field. For case-sensitive filtering, enclose the filter value in double quotation marks.
    At any time, you can click
    Refresh
    to refresh the schemas for the source and target databases. If you cancel the refresh operation while it is in progress, Data Replication marks the configuration as not valid. Also, you cannot save the configuration unless you click
    Refresh
    again and do not cancel the refresh operation.
  4. To map all source tables for which target tables with the same names exist, perform the following steps:
    1. Click
      Map All
      .
    2. In the
      Map All
      dialog box, select one of the following apply modes to use for the table mappings:
      • SQL Apply
      • Audit Apply
      • Merge Apply
      If you select
      Audit Apply
      , the Data Replication Console looks for audit log tables that have matching table names followed by the suffix that is specified on the
      Runtime settings
      tab >
      Calculated Columns
      view. The default suffix is _LOG.
      To exit the
      Map All
      dialog box without mapping the tables, click
      Cancel
      .
    3. Click
      Map
      .
      To clear all mappings, click
      Unmap All
      .
  5. To map a subset of the source tables to target tables with the same names, use the Shift or Ctrl key to select the source tables and click
    Match Table
    . Then click the
    SQL Apply
    ,
    Audit Apply
    , or
    Merge Apply
    button.
  6. Repeat steps 1 through 5 for each pair of source and target schema for which you want to define table mappings based on exact name matching.

0 COMMENTS

We’d like to hear from you!