Note
This variable is available starting with V4.0.0.
Description
ob_enable_rich_error_msg specifies whether to display information such as svr_ip, time, and trace_id when an error occurs during SQL execution.
Privilege requirements
Query variables
Global level
You can execute the
SHOW 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. Thesystenant and all user tenants can perform this operation.Session level
You can execute the
SHOW 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. Thesystenant and all user tenants can perform this operation.
Modify variables
Global level
The
systenant can 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 modify the value of a session system variable.
Attributes
| Attribute | Description |
|---|---|
| Type | Boolean |
| Default value | False |
| Value range |
|
| Scope |
|
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Examples
Set the value of the ob_enable_rich_error_msg variable to disable the display of information such as svr_ip, time, and trace_id when an error occurs during SQL execution.
Global level
obclient> SET GLOBAL ob_enable_rich_error_msg =False;Session level
obclient> SET ob_enable_rich_error_msg =False;