Overview
enable_sql_plan_monitor specifies whether the SQL statements of the current session are recorded in SQL Plan Monitor.
Privilege requirements
Query variables
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.SESSION_VARIABLESview to view the values of session system variables.Modify variables
The
systenant and all user tenants can directly modify the values of session system variables for their own tenants.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Bool |
| Default Value | False |
| Value range |
|
| Effective Scope | Session |
| Modifiable | Yes, you can use the following methods:SETStatement modification. |
Configuration example
SQL statements executed in the current session are recorded in the SQL plan monitor.
obclient> SET enable_sql_plan_monitor =True;