Using DataCheck
Notes
- Before starting DataCheck, configure the dbinfo.properties and check_input.xlsx files in the config folder. Incorrect parameter settings will cause DataCheck execution errors.
- If you are running DataCheck tasks concurrently on the same server (by the same or different tasks), it is important to use separate check_input.xlsx files for each task.
- After running DataCheck, a logs folder is created. You can open this folder to review the logs generated during the execution of DataCheck, which can assist you in identifying any problems.
Using DataCheck on Linux
- Upload the tool package to the Linux server and decompress it.
- 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]
- 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.
- 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.
- Run the data check tool.
Go to the bin directory and run the sh datacheck.sh script.
- View the result output/check_input_result.xlsx.
- Check result analysis:
- If Status is No Pass, the check fails.
- 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.
- The Check SQL area displays the query SQL statements that are executed in the database.
Using DataCheck on Windows
- Upload the tool package to the Windows server and decompress it.
- 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]
- 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.
- 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.
- Run the data check tool datacheck.bat.
- View the result output/check_input_result.xlsx. (The result analysis is the same as that in the Linux scenario.)
- Check result analysis:
- If Status is No Pass, the check fails.
- 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.
- The Check SQL area displays the query SQL statements that are executed in the database.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot