Oracle® GoldenGate Veridata Administrator's Guide 11g Release 2 (11.2.1.0.0) Part Number E29092-01 |
|
|
PDF · Mobi · ePub |
This chapter explains how to use the vericom
command line interface to run comparisons.
This chapter includes the following sections:
You can use the vericom
tool of Oracle GoldenGate Veridata to execute certain comparison tasks from the command shell of the operating system. The vericom
tool runs the Oracle GoldenGate Veridata Command Line Interface and enables you to handle these activities with automated programs.
You can:
Run an entire job or a specific compare pair of a job.
Note:
You cannot run a group individually.
Change the password that Veridata uses to connect to the repository
Set tracing (only under guidance of an Oracle Support analyst)
For specific compare pairs, you can:
Review previous out-of-sync results
Generate out-of-sync XML from the previous run
Override the same profile and row partition settings that are possible from the web interface
Comparisons also can be run from the Oracle GoldenGate Veridata Web interface. This interface provides greater control in configuring the objects to be compared and for controlling runtime parameter settings.
The vericom
program can be run by anyone who has the correct operating system permissions to run it.
On the system where the Oracle GoldenGate Veridata is installed, run the command shell of the operating system.
Navigate to the Oracle GoldenGate Veridata installation directory.
Use the following syntax to run the vericom
program.
vericom{.bat|.sh} required_input [optional_input]
One of the following are required; otherwise an error is returned. Enter only one option.
-help | -helprun | {-version | -v} | {-job | -j} job | -reset_password [password]
If -version
, -v
, -help
, or -helprun
are specified, they take precedence over any other flag specified.
This is the optional input:
[ -g group -c compare_pair ] [ -nw ] [ -rP profile ] [ -rR ] | -rO ] [ -rN threads ] [ -rD seconds ] [ -rC | +rC ] [ -rOb | -rOx | -rO2 | -rO0 ] [ -rOs records ] [ -rTi ] [ -rTc ] [ -rTs trace_number ] [ -pS source_partition_name | -pSq source_sql_predicate | -pSA1 source_ascii_start_key | -pSA2 source_ascii_end_key | -pSH1 source_hex_start_key | -pSH2 source_hex_end_key ] [ -pT target_partition_name | -pTq target_sql_predicate | -pTA1 target_ascii_start_key | -pTA2 target_ascii_end_key | -pTH1 target_hex_start_key | -pTH2 target_hex_end_key ] [ -pq sql_predicate ] [ -rd0 | -rdN run_ID ]
Table 10-1 Vericom Runtime Arguments
Vericom exits with one of the following statuses. This examples shown are for a UNIX or Linux system.
Status | Description |
---|---|
0 |
The command executed successfully. If a job was run, it finished with all rows in-sync. If |
1 |
Invalid
|
2 |
|
3 |
Provides more granularity for input errors that involve flags that run comparisons. For example, the following mistakes will cause this error:
In the preceding example, the
In the preceding example, the |
4 |
The job ran successfully, but there were rows that had a comparison status of something other than in-sync. |
5 |
There was a communication error with Oracle GoldenGate Veridata Server. |
To view the results of a comparison that is run with vericom
, you can use Oracle GoldenGate Veridata Web to view the comparison report (see Section 1.3, "Viewing Comparison Results"), and you can view the output that is returned by vericom
to the terminal. If a run finishes successfully, statistics for the job are displayed.
The following example shows a run on a Windows system of TestJob
without specifying -w
. The process exits with status 0, and finished job statistics are not displayed.
C:\veridata\server\bin>vericom.bat -j TestJob Connecting to: localhost:9177 Run ID: (2256, 0, 0) C:\veridata\server\bin> if errorlevel 0 echo EXITED 0 STATUS EXITED 0 STATUS
The following example shows a run of TestJob
with-w
specified. The process exits with status 4 because one of the compare pairs had a validation error. Finished job statistics are displayed.
C:\veridata\server\bin>vericom.bat -j TestJob -w Connecting to: localhost:9177 Run ID: (2257, 0, 0) Job Start Time: 2008-03-21 22:48:05 Job Stop Time: 2008-03-21 22:48:20 Job Report Filename: C:\testjunit\rpt\TestJob\00002257\TestJob.rpt Number of Compare Pairs: 3 Number of Compare Pairs With Errors: 1 Number of Compare Pairs With OOS: 1 Number of Compare Pairs With No OOS: 1 Number of Compare Pairs Cancelled: 0 Job Completion Status: WITH ERRORS C:\veridata\server\bin> if errorlevel 4 echo EXITED 4 STATUS EXITED 4 STATUS
The following example shows a run of compare pair TABLE9=TABLE9
in job TestJob
with -w
specified. The process exits with status 0 because the tables are in-sync. Finished job statistics are displayed.
C:\veridata\server\bin>vericom.bat -j TestJob -g TestGroup -c TABLE9=TABLE9 -w Connecting to: localhost:9177 Run ID: (2258, 0, 0) Job Start Time: 2008-03-21 22:51:08 Job Stop Time: 2008-03-21 22:51:11 Job Report Filename: C:\veridata\data\rpt\TestJob\00002258\TestJob.rpt Number of Compare Pairs: 1 Number of Compare Pairs With Errors: 0 Number of Compare Pairs With OOS: 0 Number of Compare Pairs With No OOS: 1 Number of Compare Pairs Cancelled: 0 Compare Pair Report Filename: C:\veridata\data\rpt\TestJob\00002258\TestGroup\CP_ TABLE9=TABLE9.rpt Number of Rows Compared: 21 Number of Rows In Sync: 21 Number of Rows With Errors: 0 Number of Rows Out Of Sync: 0 Number of Inserts Out Of Sync: 0 Number of Deletes Out Of Sync: 0 Number of Updates Out Of Sync: 0 Compare Pair OOSXML Directory: C:\veridata\data\oosxml\TestJob\00002258\TestGroup Compare Pair OOSXML Filename: Job Completion Status: IN SYNC C:\veridata\server\bin> if errorlevel 0 echo EXITED 0 STATUS EXITED 0 STATUS
On UNIX systems, the exit status of the previously executed command is in the special variable '$?'
if you are using SH
or KSH
shells. If you are using the CSH
shell, the exit status of the previously executed command is in the special variable '$status
'.