Note
This variable is available starting with V4.3.5 BP2.
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
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLE(Oracle-compatible mode) orinformation_schema.GLOBAL_VARIABLES(MySQL-compatible mode) view to obtain the value of a global system variable.Session level
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLE(Oracle-compatible mode) orinformation_schema.SESSION_VARIABLES(MySQL-compatible mode) view to obtain 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 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.
Session level
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 or ALTER SESSION 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;