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

Mapping Source and Target Tables Individually

Mapping Source and Target Tables Individually

You can map source and target tables that have compatible schema individually.
  1. Click the
    Map Tables
    tab.
  2. In the
    Source Schema
    list, select a source schema.
    For Microsoft SQL Server sources, this list displays SQL Server databases, which are similar to schemas of other source types.
    A list of source tables in 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 the
      Match Schema
      button to use the source schema for the target.
    A list of target tables that use the specified 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.
    For
    Apache Kafka,
    Cloudera,
    Flat File
    , or Hortonworks
    targets, you do not need to perform this step. The Data Replication Console automatically displays the source schema in the
    Target Schema
    field and lists the source table names on the target side.
    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. Select a source table.
    The selected table is highlighted in red.
  5. Select the target table in one of the following ways:
    • Click the target table.
    • If the target table name matches the selected source table name exactly, click
      Match Table
      .
    If you plan to use Audit Apply mode, you must select the corresponding audit log table in the target database.
    For
    Apache Kafka,
    Cloudera,
    Flat File
    , or Hortonworks
    targets, which do not use tables, you do not need to perform this step. When you select a source table, the source table name is automatically displayed and selected on the target side as a logical mapping.
    To undo a table selection, right-click the selected table row and select
    Clear Selection
    .
  6. To map the selected source table to the selected target table, click the one of the following buttons, as appropriate for the target type:
    • SQL Apply
    • Audit Apply
    • Merge Apply
    To remove one or more table mappings, select each source table row and click the
    Remove Mapping
    icon button. To remove a single mapping, you can right-click the source table row and click
    Remove Mapping
    , or double-click the source table row. To undo all mappings, click
    Unmap All
    . After you remove mappings by using any of these methods, click
    Yes
    in the confirmation box.
  7. Repeat steps 4 to 6 for each pair of source and target tables that you want to map.
  8. To map tables in different schemas, select another source schema and another target schema. Then repeat steps 4 through 7.
From the
Map Tables
tab, you can also enable the replication of Create Table and Drop Table DDL operations at the schema level, customize the types of DDL and DML changes to apply by target table, configure start points for the Extractor and Applier tasks, add Tcl and SQL expressions, and configure conflict resolution.

0 COMMENTS

We’d like to hear from you!