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
You can execute the
SHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle-compatible mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL-compatible mode) to query the value of a global system variable in thesystenant and all user tenants.Modify variables
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.
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 maximum memory size of the SQL audit feature to 3% of the memory size of the current tenant.
obclient> SET GLOBAL ob_sql_audit_percentage =3;