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 excludetype=data_type_to_ignore mapcols=custom_validation_criteria_for_column maptypes=custom_validation_criteria_for_datatypes where=filer_condition taskname=name_of_the_task
The 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=5
The 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=img
To ignore any "TEXT" and "NTEXT" data types columns:
repcli compare add capture=1 taskname=TASK1 tables=dbo.% excludetypes=TEXT,NTEXT
Configure 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)
In order to create new task click “Edit” button of a capture process and on the “Capture Process Configuration” form click the “Data Comparison” button:
Click “Add” button and provide name of the Task:
Provide search conditions and click “Show result” button:
For each table in the list you can provide custom settings such as validation percentage, size of the chunk, columns to be ignored, validation function, etc:
Click “Save Changes” to save the task.
If you need to make any changes to the tasks you can also do it via “Capture Process Configuration” form.
Prev page:
DATA COMPARISONNext page:
Show Task