Overview
ob_sql_audit_percentage specifies the percentage of the current tenant's memory that can be used for SQL audit.
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.The user tenant must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Int |
| Default Value | 3 |
| Value range | [0, 80] |
| Effective Scope | Global |
| Modifiable | Yes, you can use theSETStatement modification. |
Configuration example
Set the SQL audit memory cap as 3% of the current tenant's memory.
obclient> SET GLOBAL ob_sql_audit_percentage =3;