Purpose
The ALTER SYSTEM CANCEL RESTORE statement is used to cancel an ongoing tenant restore and delete the tenant in the restoring state.
Privilege requirements
Only the root user of the sys tenant (root@sys) can execute the ALTER SYSTEM CANCEL RESTORE statement.
Syntax
ALTER SYSTEM CANCEL RESTORE dest_tenant_name;
Parameters
| Parameter | Description |
|---|---|
| dest_tenant_name | The name of the tenant to cancel the restore for. |
Examples
Cancel the ongoing restore operation for the mysql tenant.
obclient [oceanbase]> ALTER SYSTEM CANCEL RESTORE mysql;
