Overview
ob_enable_ps_parameter_anonymous_block specifies whether to enable or disable parameterization for anonymous blocks and CALL statements during parsing in PS mode.
Privilege requirements
Query variables
Global level
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.GLOBAL_VARIABLESview to view the values of global system variables.Session level
The
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.SESSION_VARIABLESview to view the values of session system variables.
Modify variables
Global effective
The
systenant can directly modify the values of global system variables.The user tenant must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.
Session Validity Period
The
systenant and all user tenants can directly modify the values of session system variables for their own tenants.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Bool |
| Default Value | ON |
| Value range |
|
| Effective Scope |
|
| Modifiable | Yes, you can use the following methods:SETorALTER SESSION SETStatement modification. |
Configuration example
Enable parameterization for anonymous blocks and call statements during parsing in PS mode.
- Effective globally
obclient> SET GLOBAL aob_enable_ps_parameter_anonymous_block=ON;
- Session expiration
obclient> SET ob_enable_ps_parameter_anonymous_block=ON;