In order to compare data you need to create comparison task and specify tables to be verified along with the verification rules. You can create task using repcli or via REST API or Web UI.
The "compare add" command is used to create the task:
repcli compare add capture=id_of_the_capture_process tables=tables_specification deep=data_validation_percentage chunk=chunk_size excludecols=columns_to_ignore excludetypes=data_type_to_ignore mapcols=custom_validation_criteria_for_column maptypes=custom_validation_criteria_for_datatypes where=filter_condition keys=key_columns taskname=name_of_the_taskThe input parameters are:
NOTE: if the “add” command if executed for the existing task it will overwrite the objects along with the validation rules
The following example shows how to create the "TASK1" task for the capture=1 to compare 5% data for all tables in the dbo schema:
repcli compare add capture=1 taskname=TASK1 tables=dbo.% deep=5The following command modifies the “TASK1” task to compare "employees" table without the "img" column:
repcli compare add capture=1 taskname=TASK1 tables=dbo.employees excludecols=imgTo ignore any "TEXT" and "NTEXT" data types columns:
repcli compare add capture=1 taskname=TASK1 tables=dbo.% excludetypes=TEXT,NTEXTConfigure the EMP_NAME column to be compared in uppercase:
repcli compare add capture=1 taskname=TASK1 tables=dbo.% mapcols=upper(%EMP_NAME%)Compare only first 100 characters for all columns of the "VARCHAR" type:
repcli compare add capture=1 taskname=TASK1 tables=dbo.% maptypes=substr(%VARCHAR%,1,100)The “showcols” element is optional. When it is true, the response contains the details of the columns of every selected table: the data type, the key flag, the comparison function and the flag of a column that is excluded from the comparison.
In the Web UI tasks are created in the “Compare” window of the Capture Process. Click “Compare” on the card of the Capture Process on the dashboard:
Click “+ Add” at the right end of the tabs (“Add New Task” if the Capture Process has no task yet) and provide the name of the task. Provide the search conditions for the tables and click “Show results”:
For each table in the list you can provide custom settings such as the validation percentage and the size of the chunk. “Show additional parameters” sets the data types to be ignored and the validation functions for all the tables at once, and under the arrow of a table you can exclude columns, change the key and add a validation function to a column:
Click “Save Changes” to save the task. It appears as a new tab of the “Compare” window. To change a task later select its tab and click “Edit”. All the steps and settings are described in Task Configuration, the principles of the comparison are explained in Compare Data.
Prev page:
Requirements and LimitsNext page:
Start/Stop Task