Note
This variable is available starting with V4.0.0.
Description
ob_enable_rich_error_msg specifies whether to display the svr_ip, time, trace_id, and other information when an error occurs during SQL execution.
Privilege requirements
Query variables
Global level
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle-compatible mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL-compatible mode) to view the value of a global system variable.Session level
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (Oracle-compatible mode) or theinformation_schema.SESSION_VARIABLESview (MySQL-compatible mode) to view 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 |
|---|---|
| Parameter 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 ob_enable_rich_error_msg to False so that the svr_ip, time, trace_id, and other information are not displayed 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;