Note
This variable is available starting with V4.2.5.
Overview
ob_enable_parameter_anonymous_block specifies whether to enable the global anonymous block parameterization feature.
Applicability
This variable applies only to OceanBase Database in Oracle-compatible mode.
Privilege requirements
Query variables
Global level
The
systenant and all user tenants can use theSHOW VARIABLESstatement or theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (in Oracle-compatible mode) to view the values of global system variables.Session level
The
systenant and all user tenants can use theSHOW VARIABLESstatement or theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (in Oracle-compatible mode) to view the values of session system variables.
Modify variables
Set the variable at the global level
The
systenant can directly modify the values of global system variables.Oracle-compatible user tenants must have the
ALTER SYSTEMprivilege to modify the values of global system variables.
Set the variable at the session level
The
systenant and all user tenants can directly modify the values of session system variables for their own tenants.
Attributes
Attribute |
Description |
|---|---|
| Type | bool |
| Default value | ON |
| Value range |
|
| Applicable scope |
|
| Modifiable | Yes. You can modify it by using the SET statement. |
Usage instructions
You can use the ob_enable_parameter_anonymous_block system variable to enable or disable anonymous block parameterization.
Configuration example
Set the variable at the session level
obclient> SET ob_enable_parameter_anonymous_block = off;Effective globally
obclient> SET GLOBAL ob_enable_parameter_anonymous_block = on;
