Overview
enable_adaptive_plan_cache specifies whether to enable adaptive plan cache for a tenant.
Privilege requirements
Query parameters
Both the
systenant and all user tenants can query this parameter using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify parameters
Both the
systenant and user tenants can use theALTER SYSTEM SETstatement to modify this parameter.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Bool |
| Default Value | FALSE |
| Value range |
|
| Modifiable | Yes, you can use theALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
Usage instructions
You can execute the ALTER SYSTEM SET statement to modify the value of a parameter. After you enable the adaptive plan cache feature, it automatically enables or disables the plan cache based on the characteristics of SQL statements.
Configuration example
Enable adaptive plan cache.
obclient> ALTER SYSTEM SET enable_adaptive_plan_cache = TRUE;Disabled the adaptive capability of the plan cache.
obclient> ALTER SYSTEM SET enable_adaptive_plan_cache = FALSE;