The "compare run" command is used to start the comparison task. The syntax is
repcli compare run capture=capture_id taskname=task_name mode=0|1|2|3 tables=list_of_the_tablesThe parameters are:
Note - the only one task can be run at the time for the process
Note - the incremental mode (mode=2) reads the changes from the trail files of the Capture Process. The Apply Process deletes the trail files after it has applied them, unless its parameter “cleanuptrail” keeps them (0 - delete once applied, the default; a number - keep them for that number of days; -1 - never delete). If a trail file that is needed has been deleted, the command fails with an error that names the file, for example “open trail/trdemo_cap00000012: no such file or directory”. In this case run the task with mode=1, and keep the trail files for longer than the time between two runs if the incremental mode is used regularly.
The "stop" command is used to stop the task that is currently running. The stopped task can be resumed later (see mode=0 of the "run" command). The command syntax is:
repcli compare stop capture=capture_id When the comparison has found rows that are different (“Failed Rows”) or missing (“Missed Rows”) in the Target database, run the task in the repair mode. It brings these rows in line with the Source database and does not touch the other rows:
repcli compare run capture=capture_id taskname=task_name mode=3The command returns at once. Use the “compare status” command to follow the repair.
The repair is done in the following steps:
While the Capture Process reloads the rows the status of the task is “Waiting for Capture to Reload the Tables: [table names]”.
The repair:
Note – The modes 0 and 1 start the comparison from scratch and discard the previous result. Run the repair before the next run of the task.
Note – If the repair of a table fails, the error is registered in the incidents and in the log of the Capture Process, and the result of the table in the report does not change. Check them if the status is the same after the repair.
Example
Repair the rows found by the last run of the “NewTask” task:
repcli compare run capture=2 taskname=NewTask mode=3The command output:
Completed: [Command has been sent. Use [compare status] command to monitor the process]While the Capture Process reloads the rows, “compare status” shows:
Capture 2: cap2, Status: (RUN) Waiting for Capture to Reload the Tables: [dbo.FactProductInventory], TaskName: NewTaskRun the task:
The “mode” value 3 repairs the rows that the last run of the task has found (see “Repair the data” above). The “tablelist” element is optional: it is the list of the tables to be processed (see the “tables” parameter of the repcli command).
Stop the task:
In the Web UI tasks are run and stopped in the “Compare” window of the Capture Process (click “Compare” on the card of the Capture Process). Select the tab of the task and click “Run”. The dialog offers the run modes that fit the state of the task:
To run only some of the tables, untick the other tables of the report before you click “Run”. The comparison runs on the server, so you can close the window and come back later; click “Refresh” in the report, or tick “Auto refresh”, to follow the progress.
To stop a running task click “Stop”, which takes the place of “Run”. There is no confirmation. A stopped task can be resumed later with “Resume”:
The “Repair” button of the same window repairs the failed and the missed rows of the ticked tables (mode=3, see “Repair the data” above). All the modes, the selection of the tables, the report and the repair are described with pictures in Tasks Control.
Prev page:
Create TaskNext page:
Show Task