Note
This parameter was introduced in OceanBase Database V4.2.4.
Description
audit_log_query_sql specifies whether to record SQL statements in audit logs.
Applicability
This parameter is applicable to only OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support the audit feature.
Limitations
Query the parameter
In the
systenant or a user tenant, you can execute theSHOW PARAMETERSstatement to query the parameter or query theGV$OB_PARAMETERSview for the parameter.Modify the parameter
You can use the
ALTER SYSTEM SETstatement to modify the parameter in thesystenant or a user tenant.
Attributes
| Attribute | Description |
|---|---|
| Type | String |
| Default value | ALL |
| Value range | ALL: specifies to record all SQL query statements.NONE: specifies not to record SQL query statements. |
| 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
Specify not to record SQL query statements in audit logs.
obclient> ALTER SYSTEM SET audit_log_query_sql ='NONE';