Note
- For OceanBase Database V4.3.x, this variable was introduced in OceanBase Database V4.3.1.
- For OceanBase Database V4.2.x, this variable was introduced in OceanBase Database V4.2.2.
Description
The ob_enable_pl_cache variable specifies whether to enable the PL cache module.
Privilege requirements
Query variables
Global level
systenants and user tenants can execute theSHOW VARIABLESstatement or viewSYS.TENANT_VIRTUAL_GLOBAL_VARIABLE(Oracle mode) andinformation_schema.GLOBAL_VARIABLES(MySQL mode) to view the value of a global system variable.Session level
systenants and user tenants can execute theSHOW VARIABLESstatement or viewSYS.TENANT_VIRTUAL_SESSION_VARIABLE(Oracle mode) andinformation_schema.SESSION_VARIABLES(MySQL mode) to view the value of a session system variable.
Modify variables
Set the variable at the global level
systenants can directly modify the value of a global system variable.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the value of a global system variable.
Set the variable at the session level
systenants and user tenants can directly modify the value of a session system variable in their own tenant.
Attributes
| Attribute | Description |
|---|---|
| Type | bool |
| Default value | 1 |
| Value range |
|
| Effect scope |
|
| Modifiable | Yes. You can modify the value by using the SET statement. |
Considerations
We recommend that you enable this feature. If you disable the PL cache module, the stored procedure is recompiled each time it is executed.
Examples
Set the variable at the session level
obclient> SET ob_enable_pl_cache=true;Set the variable at the global level
obclient> SET GLOBAL ob_enable_pl_cache=true;