Note
This parameter is available starting with V1.4.
Description
plan_cache_evict_interval specifies the eviction interval of the execution plan cache.
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
Only the
systenant can modify this parameter. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Time |
| Default value | 5s
NoteStarting from V4.2.0, the default value of this parameter is changed from 1s to 5s. |
| Value range | [0s, +∞) |
| 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. |
Examples
Set the eviction interval of the execution plan cache to 5s.
obclient> ALTER SYSTEM SET plan_cache_evict_interval ='5s';