Note
- This variable is available starting with V4.3.1 in V4.3.x.
- This variable is available starting with V4.2.2 in V4.2.x.
Description
ob_enable_pl_cache specifies whether to enable the PL cache module.
Privilege requirements
Query variables
Global level
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL mode) to view the value of a global system variable.Session level
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (Oracle mode) or theinformation_schema.SESSION_VARIABLESview (MySQL mode) to view the value of a session system variable.
Modify variables
Global level
systenant can directly modify the value of a global system variable.MySQL user tenants need to have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.Oracle user tenants need to have the
ALTER SYSTEMprivilege to modify the value of a global system variable.
Session level
systenant and all user tenants can directly modify the value of a session system variable.
Attributes
| Attribute | Description |
|---|---|
| Type | Boolean |
| Default value | 1 |
| Value range |
|
| Scope |
|
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Usage notes
We recommend that you enable this feature. If you disable the PL cache module, the stored procedure will be recompiled every time it is executed.
Examples
Session level
obclient> SET ob_enable_pl_cache=true;Global level
obclient> SET GLOBAL ob_enable_pl_cache=true;
