After you initiate a backup validation task, you can cancel the task.
Cancel a backup validation task of a user tenant as a system tenant
Log in to the
systenant of the cluster as therootuser.The following example shows how to connect to the database. Replace the actual environment variables with the values in your environment.
obclient -h10.xx.xx.xx -P2883 -uroot@sys#obdemo -p***** -AExecute the following command to cancel the backup validation task of the user tenant.
The statement is as follows:
ALTER SYSTEM CANCEL VALIDATE BACKUP [TENANT = tenant_name];In the statement,
TENANTspecifies the tenant whose backup validation task you want to cancel. If you do not specifyTENANT, the backup validation tasks of all user tenants in the cluster are canceled.Here are some examples:
Cancel the backup validation tasks of all user tenants.
obclient(root@sys)[(none)]> ALTER SYSTEM CANCEL VALIDATE BACKUP;Cancel the backup validation task of the specified user tenant
mysqltenant.obclient(root@sys)[(none)]> ALTER SYSTEM CANCEL VALIDATE BACKUP TENANT = mysqltenant;
Cancel a backup validation task of the current user tenant
Log in to the database as the tenant administrator of the user tenant.
Note
The administrator user of a MySQL tenant is
root, and the administrator user of an Oracle tenant isSYS.The following example shows how to connect to the database. Replace the actual environment variables with the values in your environment.
obclient -h10.xx.xx.xx -P2883 -uroot@mysql001#obdemo -p***** -AExecute the following command to cancel the backup validation task of the current user tenant.
obclient> ALTER SYSTEM CANCEL VALIDATE BACKUP;
