Using DataCheck

Notes

Using DataCheck on Linux

  1. Upload the tool package to the Linux server and decompress it.

  2. Generate the ciphertext of the database login password.

    Go to the bin directory.

    Run the script for generating the ciphertext. Run this script to generate ciphertext for the login passwords of the source and destination databases.

    sh encryption.sh [password]

  3. Configure the conf/dbinfo.properties file.

    Go to the Datacheck directory and run the vi conf/dbinfo.properties command.

    Configure the database connection information of the source and destination ends. Use the ciphertext generated in the previous step for the password in the configuration file.

  4. Edit the input/check_input.xlsx file.

    Copy the check_input.xlsx file to the Windows server, use Excel to edit the file, enter the table information to be verified, save the file, and upload the file to the Linux server to overwrite the original file.

  5. Run the data check tool.

    Go to the bin directory and run the sh datacheck.sh script.

  6. View the result output/check_input_result.xlsx.

  7. Check result analysis:

    1. If Status is No Pass, the check fails.
    2. The Check Result Diff column displays the items that fail to pass the check. You can view the column that fails to pass the check.
    3. The Check SQL area displays the query SQL statements that are executed in the database.

Using DataCheck on Windows

  1. Upload the tool package to the Windows server and decompress it.

  2. Generate the ciphertext of the database login password.

    Go to the bin directory and start the CMD tool.

    Run the script for generating the ciphertext. Run this script to generate ciphertext for the login passwords of the source and destination databases.

    encryption.bat [password]

  3. Configure the conf/dbinfo.properties file.

    Edit the dbinfo.properties file in the conf directory, configure the database connection information of the source and destination ends, and use the ciphertext generated in the previous step as the password in the configuration file.

  4. Edit the input/check_input.xlsx file and save it.

    Open the input/check_input.xlsx file using Excel, input the table information that needs to be verified, and save the file.

  5. Run the data check tool datacheck.bat.

  6. View the result output/check_input_result.xlsx. (The result analysis is the same as that in the Linux scenario.)

  7. Check result analysis:

    1. If Status is No Pass, the check fails.
    2. The Check Result Diff column displays the items that fail to pass the check. You can view the column that fails to pass the check.
    3. The Check SQL area displays the query SQL statements that are executed in the database.