Note
For V4.3.5 BP2, this parameter is available starting with V4.3.5 BP2.
Description
enable_adaptive_plan_cache specifies whether to enable the adaptive plan cache feature.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
The
systenant and user tenants can modify this parameter by using theALTER SYSTEM SETstatement.
Attributes
| Attribute | Description |
|---|---|
| Parameter type | Bool |
| Default value | FALSE |
| Value range |
|
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Considerations
You can use the ALTER SYSTEM SET statement to modify the value of this parameter. After you enable the adaptive plan cache feature, the system automatically enables or disables the plan cache feature based on the features of the SQL statements.
Examples
Enable the adaptive plan cache feature.
obclient> ALTER SYSTEM SET enable_adaptive_plan_cache = TRUE;Disable the adaptive plan cache feature.
obclient> ALTER SYSTEM SET enable_adaptive_plan_cache = FALSE;