Note
This variable is available starting with V4.2.0.
Overview
optimizer_features_enable is used to enable optimizer features for different OceanBase versions.
Privilege requirements
Query variables
The
SHOW VARIABLESstatement, or theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (in Oracle-compatible mode) and theinformation_schema.GLOBAL_VARIABLESview (in MySQL-compatible mode), can be used by thesystenant and all user tenants to view the values of global system variables.Modify variables
The
systenant can directly modify the values of global system variables.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the values of global system variables.For V4.x versions, starting from V4.2.0, an Oracle user tenant must have the
ALTER SYSTEMprivilege to modify the values of global system variables.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Varchar |
| Default Value |
|
| Value range | '4.0.0.0' and later version numbers |
| Effective Scope |
|
| Modifiable | Yes, you can use theSETorALTER SESSION SETstatements. |
Configuration example
Session Validity Period
obclient> SET optimizer_features_enable='4.2.1.7';Effective globally
obclient> SET GLOBAL optimizer_features_enable='4.2.1.7';
