After data verification is performed, you can view the data verification results in views.
View an ongoing data verification task
Log on to the
systenant of the cluster, in which the ongoing data verification task is performed, with therootaccount.Access the database named
oceanbase.obclient> USE oceanbase;Perform the following steps:
View the progress of the ongoing data verification task.
obclient> SELECT * FROM CDB_OB_BACKUP_VALIDATION_JOB;View the details of the ongoing data verification task.
obclient> SELECT * FROM CDB_OB_TENANT_BACKUP_VALIDATION_TASK;
In the returned result, check the values of the
STATUSandRESULTfields. If the value ofSTATUSisFINISHand the value ofRESULTis0, the backup data is valid. If the value ofSTATUSisFINISHand the value ofRESULTis not0, the backup data is abnormal.
View a completed data verification task
Log on to the
systenant of the cluster, in which the ongoing data verification task is performed, with therootaccount.Access the database named
oceanbase.obclient> USE oceanbase;Perform the following steps:
View a completed data verification task.
obclient> SELECT * FROM CDB_OB_BACKUP_VALIDATION_JOB_HISTORY;View the details of the completed data verification task.
obclient> SELECT * FROM CDB_OB_BACKUP_VALIDATION_TASK_HISTORY;
In the returned result, check the values of the
STATUSandRESULTfields. If the value ofSTATUSisFINISHand the value ofRESULTis0, the backup data is valid. If the value ofSTATUSisFINISHand the value ofRESULTis not0, the backup data is abnormal.