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 adaptive plan cache for a tenant.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query the value of this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
The
systenant and user tenants can modify the value of this parameter by using theALTER SYSTEM SETstatement.
Attributes
| Attribute | Description |
|---|---|
| Type | Boolean |
| 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
Use the ALTER SYSTEM SET statement to modify the value of this parameter. After you enable adaptive plan cache, the system automatically enables or disables plan cache based on the features of SQL statements.
Examples
Enable adaptive plan cache.
obclient> ALTER SYSTEM SET enable_adaptive_plan_cache = TRUE;Disable adaptive plan cache.
obclient> ALTER SYSTEM SET enable_adaptive_plan_cache = FALSE;