Note
- In V4.3.x, this variable is available starting with V4.3.2.
- In V4.2.x, this variable is available starting V4.2.3.
Description
ob_enable_ps_parameter_anonymous_block specifies whether to enable parameterization of anonymous blocks and call statements in the parse stage in the PL/SQL mode.
Privilege requirements
Query variables
Global level
The
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 obtain the value of a global system variable.Session level
The
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 obtain the value of a session system variable.
Modify variables
Global level
The
systenant can directly modify the value of a global system variable.A MySQL user tenant must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.An Oracle user tenant must have the
ALTER SYSTEMprivilege to modify the value of a global system variable.
Session level
The
systenant and all user tenants can directly modify the value of a session system variable.
Attributes
| Attribute | Description |
|---|---|
| Type | Boolean |
| Default value | ON |
| Value range |
|
| Scope |
|
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Examples
Enable parameterization of anonymous blocks and call statements in the parse stage in the PL/SQL mode.
- Global level
obclient> SET GLOBAL aob_enable_ps_parameter_anonymous_block=ON;
- Session level
obclient> SET ob_enable_ps_parameter_anonymous_block=ON;