5.2.1.1 Creating Groups and Compare Pairs
- Click Groups and Compare Pairs, and then click Create to display the Groups Details page.
- Enter the following details for the Group name and description Name and Description.
- Select Source Connection and Target Connection for
the Group. See Connections.
- Source Catalog: The source metadata catalog or database.
- Source Schema: The owner of the source database objects that are to be compared.
- Target Catalog: The target metadata catalog or database.
- Target Schema: The owner of the target database objects that are to be compared.
- Click Next to display the Mapping Rules section. By default, Mapping Rules is toggled on. Mapping Rules help map source and target tables automatically based on rules set. If you do not want to apply Mapping rules, then you can turn off this switch. Let's consider the Mapping Rules switch is toggled off.
- In the Mapping Rules section, the following options are
displayed All, Mapped, and Unmapped.
- All: Lists all tables or files that are contained by the specified datasources. The Source tables are already listed. You can select the Target table from the Target drop-down list for Column Mapping.
- Mapped: Shows only previously mapped tables or files.
- UnMapped: Shows only tables or files not mapped in any other mapping.
Parent topic: Group Details
5.2.1.1.1 Mapping Rules
To set the Mapping Rules for the Groups and Compare Pairs:
- In the Mapping Rules section, select one of the following methods
for matching source table names to target table names. By default, Mapping
Rules is toggled.
- Using Exact Names
This pattern matches names character-for-character, so ensure that each source and target name are identical. As an example, this mapping rule is useful for comparing production and failover databases. By, default the Using Exact Names option is selected. Select Using Exact Names if you want to map the tables defined at database. For example, if there are 10 partitions in Source Table matching 10 table partitions in Target Table with same table names, then 10 compare pairs are created. If no table exists then, one compare-pair per table gets generated. After all partitions are mapped, details of compare-pairs generated are displayed in Preview Tab.
- Using Wildcard Pattern. (Enclose within single % on either
side)
To use this method, supply a wildcard string in Source Pattern and Target Pattern Like, and select either Like or Not Like options (for both Source Pattern as well as Target Pattern) that include the percent symbol (%) as the wildcard. A % in the target matches the text that is matched by the % in the source. By default, the Like option is selected for both the source and target tables. You can select Not Like if needed during the compare-pair generation.
-
Example:
Assume source tables of:
SOURCE_TABLE_1 SOURCE_TABLE_2 MY_SOURCE_TABLE_1 MY_SOURCE_TABLE_2 DUMMY_TABLE
Assume target tables of:
TARGET_TABLE_1 TARGET_TABLE_2 MY_TARGET_TABLE_1 MY_TARGET_TABLE_2 DUMMY_TABLE MY_DUMMY_TABLE
Some possible Like pattern matches are:Table 5-1 Examples for Mapping Rules Using Wild Card Option % - Like option selected
Source Pattern Target Pattern Matches %SOURCE_%
%TARGET_%
SOURCE_TABLE1=TARGET_TABLE1, SOURCE_TABLE2=TARGET_TABLE2
%MY_SOURCE_%
%MY_TARGET_%
MY_SOURCE_TABLE1=MY_TARGET_TABLE1, MY_SOURCE_TABLE2=MYTARGET_TABLE2
%SOURCE_%
%MY_TARGET_%
Table1=Table2
TABLE2=TABLE2
%DUMMY_TABLE%
%_TABLE%
DUMMY_TABLE=DUMMY_TABLE
%DUMMY_TABLE%
TARGET_%_
None Table 5-2 Examples for Mapping Rules Using Wild Card Option % - Not Like option selected
Source Pattern Target Pattern Matches %SOURCE_%
%TARGET_%
DUMMY_TABLE=DUMMY_TABLE
-
The wildcard resolution is case-sensitive.
-
- Include Views: The Include Views check box is selected by default. In the Mapping page, you can select the compare pairs based on the Mapping rules. This also has the View Table pair if you include views in the mapping rules page. Mapping rules are ways to ease mapping or to automatically create mapping between source and target database based on selected rules. If you do not want to include Views, then you can deselect the check box.
-
Include Table Partitions: The Include Table Partitions check box is selected by default. This option allows you to include all the table partitions (when applicable to the database) while generating compare pairs. If you do not want to include table partitions, then you can deselect the check box.
- Using Exact Names
- After you have selected the Mapping Rules, click Next to display the Mapping section.
Parent topic: Creating Groups and Compare Pairs
5.2.1.1.2 Mapping
By default, the Mapping section shows all of the source and target objects that are contained by the specified datasources. You can filter the list at any time in the process of creating compare pairs. For example, after you finish mapping several compare pairs, it might be helpful to reduce the size of the list by using the filter to show only unmapped objects. This saves you navigation time.
- All: Lists all tables or files that are contained by the specified datasources. To view all the Source and Target tales, select the All option. However, ensure to give this Compare Pair a different name.
- Mapped: Lists only previously mapped tables or files.
- Unmapped: Shows only tables or files not mapped in any other compare pair.
- Select the Source table. In case of the All option selected, all the Source and Target tables are selected by default. You may want to deselect the tables that you do not want to be mapped.
- From the Target drop-down list, select the target table.
- (Optional) You can also toggle Automatic Row Partition to enable partitioning of multiple rows.
- After the mapping is complete, click Next to go to the Preview
section and review the configurations of the New Compare Pairs. The
following details are displayed:
- Compare Pair Name
- Source Table
- Target Table
- Profile
- Automatic Row Partition
If you want to split the large table comparison into multiple partitions, then you can use Automatic Row Partition. The partitioning is possible only when both the source database and target database are Oracle.
Parent topic: Creating Groups and Compare Pairs
5.2.1.1.2.1 Automatic Row Partition
If you want to split the large table comparison into multiple partitions, then you can use Automatic Row Partition. The partitioning is possible only when both the source database and target database are Oracle.
The automatic row partition creates configurable partitions and generates compare pairs for each generated partition.
To configure Automatic Row Partition:
- On the Mapping section of the Create Group and Compare Pair (or Edit Group and Compare Pair) page, select the Source and Target tables.
- Toggle Automatic Row Partition against the selected table pair. By default, the toggle option is disabled.
- Select a numeric value between 2 to 100 in the text field before generating compare pair. The minimum value you can select is 2 and the maximum is 100. This value decides the number of compare pairs to be created. Each auto generated compare pair compares the subset of data from the selected source and target table.
- After the required datasources are mapped, details of compare pairs generated are displayed in Preview section.
Note:
The Automatic Row Partitions check box is available only when you manually select the source and target tables in the Mapping section. You cannot edit compare pair names that are created using Automatic Row Partition.Parent topic: Mapping
5.2.1.1.3 Preview and Generate Compare Pairs
You can view compare pairs that can be generated by using the mapping in the Preview section. You can select the compare pairs in the Preview page. Based on the selection, you can generate the compare pairs.
- If you want to modify any of the mappings, you can click Back
to go back to the Mapping Rules section, modify the details. For example,
from the currently selected Using Exact Names, if you want to switch to
Using Wildcard Pattern and enter
emp%
in the Source Pattern and the Target Pattern, and select Like, and then click Next to display the Retain Compare Pairs dialog box. Click Yes if you want to retain the previously-selected compare pairs. If you click No and proceed further, the previously-selected compare pairs are not retained and Compare Pairs of the Employee tables are displayed in the Preview section. - After reviewing the Compare Pair details, click Generate Compare Pairs.
Parent topic: Creating Groups and Compare Pairs