Note
This variable is available starting with V1.4.
Description
ob_sql_audit_percentage specifies the percentage of the maximum memory size of the SQL Audit feature relative to the memory size of the current tenant.
Privilege requirements
Query variables
The
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL mode) to obtain the value of a global system variable.Modify variables
The
systenant can directly modify the value of a global system variable.A MySQL user tenant must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.An Oracle user tenant must have the
ALTER SYSTEMprivilege to modify the value of a global system variable.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 3 |
| Value range | [0, 80] |
| Scope | Global |
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Examples
Set the percentage of the maximum memory size of the SQL Audit feature relative to the memory size of the current tenant to 3.
obclient> SET GLOBAL ob_sql_audit_percentage =3;
