Note
This parameter is available starting with V1.4.
Description
enable_sql_audit specifies whether to enable the SQL audit feature.
Privilege requirements
Query the parameter
You can use the
SHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter for thesystenant and all user tenants.Modify the parameter
You can modify this parameter only for the
systenant. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Bool |
| Default value | True |
| Value range |
|
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Examples
Enable the SQL audit feature.
obclient> ALTER SYSTEM SET enable_sql_audit = True;
References
- Enable the SQL audit feature for the current tenant: ob_enable_sql_audit
- Find logs of a specific SQL query
- SQL Audit