Overview
enable_sql_audit specifies whether to enable the SQL audit feature.
Privilege requirements
Query parameters
Both the
systenant and all user tenants can query this parameter using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify parameters
Only the
systenant can modify this parameter; user tenants cannot modify it.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Bool |
| Default Value | True |
| Value range |
|
| Modifiable | Yes, you can use theALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
Configuration example
Enable the SQL audit feature.
obclient> ALTER SYSTEM SET enable_sql_audit = True;
References
- Enable SQL audit for the current tenant: ob_enable_sql_audit
- Find logs for a specific SQL request
- SQL Audit