Overview
ob_enable_sql_audit specifies whether to enable the SQL audit feature for the current tenant.
Privilege requirements
Query variables
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.GLOBAL_VARIABLESview to view the values of global system variables.Modify variables
The
systenant can directly modify the values of global system variables.You must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Bool |
| Default Value | true |
| Value range |
|
| Effective Scope | Global |
| Modifiable | Yes, you can use the following methods:SETStatement modification. |
Usage instructions
When the enable_sql_audit value is set to false, the Sql Audit feature will not be enabled for any tenant.
Configuration example
Enable the SQL audit feature for the current tenant.
obclient> SET GLOBAL ob_enable_sql_audit =true;