Purpose
When logs are being replayed for a standby tenant, you can use the ALTER SYSTEM RECOVER... CANCEL statement to cancel the log replay for the standby tenant.
Required privileges
You must execute this statement as the root user of the sys tenant (namely root@sys) or as the administrator of a user tenant.
- The default administrator is the
rootuser in MySQL mode. - The default administrator is the
SYSuser in Oracle mode.
Syntax
ALTER SYSTEM RECOVER STANDBY [TENANT [=] tenant_name] CANCEL;
Parameters
| Parameter | Description |
|---|---|
| tenant_name | The standby tenant for which log replay is to be canceled. You can specify only one standby tenant. To cancel log replay for multiple tenants, execute this statement repeatedly.
NoticeYou must use the |
Examples
Cancel log replay for the standby tenant
restore_oracle_tenantfrom the sys tenant of the cluster where the standby tenant resides.obclient [oceanbase]> ALTER SYSTEM RECOVER STANDBY TENANT restore_oracle_tenant CANCEL;Cancel log replay for the standby tenant
restore_oracle_tenantfrom the current tenant.obclient [SYS]> ALTER SYSTEM RECOVER STANDBY CANCEL;
## References