Note
This variable was introduced in OceanBase Database V4.0.0.
Description
The ob_enable_rich_error_msg variable controls whether to display server IP address, time, and trace ID when an SQL statement fails.
Privilege requirements
Query variables
Global level
Both the
systenant and user tenants can execute theSHOW VARIABLESstatement or viewSYS.TENANT_VIRTUAL_GLOBAL_VARIABLE(in Oracle mode) orinformation_schema.GLOBAL_VARIABLES(in MySQL mode) to query the value of a global system variable.Session level
Both the
systenant and user tenants can execute theSHOW VARIABLESstatement or viewSYS.TENANT_VIRTUAL_SESSION_VARIABLE(in Oracle mode) orinformation_schema.SESSION_VARIABLES(in MySQL mode) to query the value of a session system variable.
Modify variables
Set the variable at the global level
The
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.
Set the variable at the session level
The
systenant and user tenants can directly modify the value of a session system variable in their own tenants.
Attributes
| Attribute | Description |
|---|---|
| Type | Bool |
| Default value | False |
| Value range |
|
| Scope |
|
| Modifiable | Yes. You can modify the value by using the SET statement. |
Examples
Set the parameter to disable displaying the svr_ip, time, and trace_id information 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;