Note
This variable is available starting with V1.4.
Description
ob_log_level specifies the log level of the current session. If you do not specify the log level, the system log level is used.
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 view the value of a global system variable in thesystenant and all user tenants.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 view the value of a session system variable in thesystenant and all user tenants.
Modify variables
Global level
In the
systenant, you can directly modify the value of a global system variable.In a MySQL user tenant, you must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.In an Oracle user tenant, you must have the
ALTER SYSTEMprivilege to modify the value of a global system variable.
Session level
You can directly modify the value of a session system variable in the
systenant and all user tenants.
Attributes
| Attribute | Description |
|---|---|
| Type | Varchar |
| Default value | disabled, which indicates that the log level of the session is disabled. |
| Value range |
|
| Scope |
|
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Usage notes
If ob_log_level is set to disabled, the system global log level is used, which is specified by the syslog_level parameter.
Examples
Set the log level of the current session to INFO.
Session level
obclient> SET ob_log_level ='INFO';Global level
obclient> SET GLOBAL ob_log_level ='INFO';
References
For more information about system logs, see Overview of logs.
