enable_check_cluster_name specifies whether to verify the cluster name in a three-segment string used for login. The value True specifies to verify whether the cluster name is the same as the default cluster name specified by the rootservice_cluster_name parameter. The login will be rejected if the verification fails.
Note
This parameter was introduced in OceanBase Database Proxy (ODP) V4.3.3.
The three-segment string used for login consists of the username, tenant name, and cluster name, such as
root@sys#obdemo.
| Attribute | Description |
|---|---|
| Parameter type | Boolean |
| Default value | False |
| Value range |
|
| Effective only after ODP restart | No |
Examples
Assume that the test1 and test2 tenants exist in the obdemo cluster. Specify to verify the cluster name upon login to the test1 tenant and not to verify the cluster name upon login to the test2 tenant.
obclient [(none)]> replace into proxy_config(tenant_name, cluster_name, name, value, config_level) values
('test1','obdemo','enable_check_cluster_name','True','LEVEL_TENANT'),
('test2','obdemo','enable_check_cluster_name','False','LEVEL_TENANT');