Note
This parameter was introduced in OceanBase Database V4.2.4.
Description
audit_log_enable specifies whether to enable the audit feature.
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 | Boolean |
| Default value | FALSE |
| 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
Specify to enable the audit feature in a MySQL tenant.
obclient> ALTER SYSTEM SET audit_log_enable=TRUE;