Parameter | Description |
<masId> | The Probe server ID |
<apiKey> | The API key of the server where the script is being executed, used for authentication. |
<queryFilePath> | Path to the query file containing the table comparison SQL. |
<direction> | Comparison direction: - BD → Compare both directions (default). - MAS-NOT-IN-ADMIN → Find missing entries in Central server that exist in Probe server. - ADMIN-NOT-IN-MAS → Find missing entries in Probe server that exist in Central server. |
<asInsertQuery> | true → Generates INSERT queries instead of just reporting. (Default: false) |
<isMissingEntriesNeedToInsert> | true → Automatically inserts missing entries to the Central server and Probe server. (Default: false) |
<batchSize> | Number of records to process in a batch. (Default: 100) |
<timeoutInSeconds> | Default value for <timeoutInSeconds> is 30 seconds if not provided. |
Compares both directions (Central server → Probe server and Probe server → Central server) without inserting missing entries../runTableDataComparisonReport.sh 1 884ff42xxxxxxxxxxxxxxxxxxx3d6d5 /path/to/query.txt
Finds entries that are present in the Central server but missing in the Probe server.
./runTableDataComparisonReport.sh 1 884ff42xxxxxxxxxxxxxxxxxxx3d6d5 /path/to/query.txt ADMIN-NOT-IN-MAS
Finds entries that are present in the Probe server but missing in the Central server.
./runTableDataComparisonReport.sh 1 884ff42xxxxxxxxxxxxxxxxxxx3d6d5 /path/to/query.txt MAS-NOT-IN-ADMIN
Compares in both directions and automatically inserts the missing records in both the Central and Probe server.
./runTableDataComparisonReport.sh 1 884ff42xxxxxxxxxxxxxxxxxxx3d6d5 /path/to/query.txt BD false true
Generates SQL INSERT statements without executing them.
./runTableDataComparisonReport.sh 1 884ff42xxxxxxxxxxxxxxxxxxx3d6d5 /path/to/query.txt BD true false
Compare and insert missing entries with a batch size of 500.
./runTableDataComparisonReport.sh 1 884ff42xxxxxxxxxxxxxxxxxxx3d6d5 /path/to/query.txt BD false true 500
Compare and insert missing entries with a timeout.
./runTableDataComparisonReport.sh 1 884ff42xxxxxxxxxxxxxxxxxxx3d6d5 /path/to/query.txt BD false true 500 60
A mismatch report displaying the missing entries.
If isMissingEntriesNeedToInsert=true, it automatically inserts missing entries.
If asInsertQuery=true, it generates INSERT statements instead of executing them.
Ensure the API key is correct.
Check if the query file path is valid and accessible.
If insertions fail, check for unique constraints or foreign key dependencies in stdout logs .