You can map source and target tables that have compatible schema individually.
Click the
Map Tables
tab.
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.
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.
Select a source table.
The selected table is highlighted in red.
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
.
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.
Repeat steps 4 to 6 for each pair of source and target tables that you want to map.
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.