Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support the arbitration service.
After you enable the arbitration service for a tenant, you can disable it based on your business requirements.
Procedure
Log in to the
systenant of the cluster as therootuser.Here is an example of connecting to the database. Please replace the actual environment variables in the example.
obclient -h10.xx.xx.xx -P2883 -uroot@sys#obdemo -p***** -AFor more information about how to connect to the database, see Overview of connecting to a database (MySQL mode) and Overview of connecting to a database (Oracle mode).
Execute the following command to view the status of the arbitration service for the tenant.
Here is an example:
obclient(root@sys)[oceanbase]> SELECT * FROM oceanbase.DBA_OB_TENANTS WHERE tenant_name = 'oracle001'\GThe query result is as follows.
*************************** 1. row *************************** TENANT_ID: 1004 TENANT_NAME: oracle001 TENANT_TYPE: USER CREATE_TIME: 2026-01-26 19:40:21.457857 MODIFY_TIME: 2026-01-27 13:51:47.053502 PRIMARY_ZONE: zone1;zone2 LOCALITY: FULL{1}@zone1, FULL{1}@zone2 PREVIOUS_LOCALITY: NULL COMPATIBILITY_MODE: ORACLE STATUS: NORMAL IN_RECYCLEBIN: NO LOCKED: NO TENANT_ROLE: PRIMARY SWITCHOVER_STATUS: NORMAL SWITCHOVER_EPOCH: 0 SYNC_SCN: 1687845116605766616 REPLAYABLE_SCN: 1687845116605766616 READABLE_SCN: 1687845116605766616 RECOVERY_UNTIL_SCN: 4611686018427387903 LOG_MODE: NOARCHIVELOG ARBITRATION_SERVICE_STATUS: ENABLED UNIT_NUM: 1 ZONE_UNIT_NUM_LIST: zone1:1,zone2:1 COMPATIBLE: 4.6.0.0 MAX_LS_ID: 1002 RESTORE_DATA_MODE: NORMAL FLASHBACK_LOG_SCN: NULL COMMENT: 1 row in setIf the
ARBITRATION_SERVICE_STATUScolumn isENABLED, the arbitration service is enabled for the tenant.For more information about the
DBA_OB_TENANTSview, see DBA_OB_TENANTS.Execute the following command to disable the arbitration service for the tenant.
The statement is as follows:
ALTER TENANT tenant_name [SET] ENABLE_ARBITRATION_SERVICE = false;In this statement,
tenant_namespecifies the name of the tenant for which you want to disable the arbitration service.SETis an optional keyword.Here is an example of disabling the arbitration service for the
oracle001tenant:obclient(root@sys)[oceanbase]> ALTER TENANT oracle001 ENABLE_ARBITRATION_SERVICE = false;After the command is executed, query the
oceanbase.DBA_OB_TENANTSview again to confirm whether the arbitration service is disabled for the tenant.Here is an example:
obclient(root@sys)[oceanbase]> SELECT * FROM oceanbase.DBA_OB_TENANTS WHERE tenant_name = 'oracle001'\GThe query result is as follows.
*************************** 1. row *************************** TENANT_ID: 1004 TENANT_NAME: oracle001 TENANT_TYPE: USER CREATE_TIME: 2026-01-26 19:40:21.457857 MODIFY_TIME: 2026-01-27 13:51:47.053502 PRIMARY_ZONE: zone1;zone2 LOCALITY: FULL{1}@zone1, FULL{1}@zone2 PREVIOUS_LOCALITY: NULL COMPATIBILITY_MODE: ORACLE STATUS: NORMAL IN_RECYCLEBIN: NO LOCKED: NO TENANT_ROLE: PRIMARY SWITCHOVER_STATUS: NORMAL SWITCHOVER_EPOCH: 0 SYNC_SCN: 1687845116605766616 REPLAYABLE_SCN: 1687845116605766616 READABLE_SCN: 1687845116605766616 RECOVERY_UNTIL_SCN: 4611686018427387903 LOG_MODE: NOARCHIVELOG ARBITRATION_SERVICE_STATUS: DISABLED UNIT_NUM: 1 ZONE_UNIT_NUM_LIST: zone1:1,zone2:1 COMPATIBLE: 4.6.0.0 MAX_LS_ID: 1002 RESTORE_DATA_MODE: NORMAL FLASHBACK_LOG_SCN: NULL COMMENT: 1 row in setIf the
ARBITRATION_SERVICE_STATUScolumn isDISABLED, the arbitration service is disabled for the tenant.
What to do next
After you disable the arbitration service for all tenants, you can delete the arbitration service if you no longer need it. For more information, see Delete the arbitration service.
References
For more information about the arbitration service, see the following topics:
