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
sysand all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) orinformation_schema.GLOBAL_VARIABLESview (MySQL mode) to obtain the values of global system variables.Session level
sysand all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (Oracle mode) orinformation_schema.SESSION_VARIABLESview (MySQL mode) to obtain the values of session system variables.
Modify variables
Global level
systenants can directly modify the values of global system variables.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the values of global system variables.Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the values of global system variables.
Session level
sysand all user tenants can directly modify the values of session system variables.
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;
