Note
This variable is available starting with V1.4.
Description
ob_compatibility_mode specifies the compatibility mode of a tenant.
Privilege requirements
Query variables
Global level
systenants and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL mode) to obtain the values of global system variables.Session level
systenants and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (Oracle mode) or theinformation_schema.SESSION_VARIABLESview (MySQL mode) to obtain the values of session system variables.
Modify variables
After a tenant is created, you cannot modify the value of this variable by executing an SQL statement.
Attributes
| Attribute | Description |
|---|---|
| Type | Enum |
| Default value | MYSQL |
| Value range |
|
| Scope |
|
| Modifiable | No. You can specify this variable when you create a tenant, but cannot modify it by executing an SQL statement after the tenant is created. |
Examples
The following example shows how to specify the value of the ob_compatibility_mode variable as MYSQL when you create a tenant by using the CREATE TENANT statement.
obclient> CREATE TENANT IF NOT EXISTS t1 zone_list = ('zone1'), primary_zone = 'zone1', resource_pool_list = ('pool1') SET ob_compatibility_mode = 'MYSQL',lower_case_table_names = 0;
