Note
This variable was introduced in V4.3.3.
Description
The ob_table_access_policy variable controls the optimizer to prioritize the selection of specific storage formats when generating a base table plan.
Privilege requirements
Query variables
Global level
systenants and user tenants can execute theSHOW VARIABLESstatement or viewSYS.TENANT_VIRTUAL_GLOBAL_VARIABLE(Oracle mode) andinformation_schema.GLOBAL_VARIABLES(MySQL mode) to query the value of a global system variable.Session level
systenants and user tenants can execute theSHOW VARIABLESstatement or viewSYS.TENANT_VIRTUAL_SESSION_VARIABLE(Oracle mode) andinformation_schema.SESSION_VARIABLES(MySQL mode) to query the value of a session system variable.
Modify variables
Global take effect
systenants can directly modify the value of a global system variable.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the value of a global system variable.
Session take effect
systenants and user tenants can directly modify the value of a session system variable in their own tenant.
Attributes
| Attribute | Description |
|---|---|
| Type | Enum |
| Default value | AUTO |
| Value range |
|
| Effective scope |
|
| Modifiable | Yes. You can use the SET statement to modify it. |
Examples
The following examples show how to configure the optimizer to prioritize the selection of column-based storage format when generating a base table plan.
Session take effect
obclient> SET ob_table_access_policy='COLUMN_STORE';Global take effect
obclient> SET GLOBAL ob_table_access_policy='COLUMN_STORE';