Note
This parameter was introduced in OceanBase Database V4.2.4.
Description
audit_log_buffer_size specifies the buffer size for asynchronous writing of 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 | Capacity |
| Default value | 16M |
| Value range | [16M, 256M] |
| 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. |
Considerations
When a worker thread writes audit logs asynchronously, it must request memory from a buffer and place it in the I/O queue. This parameter specifies the size of the buffer.
Examples
Set the buffer size for asynchronous writing of logs to 16 MB.
obclient> ALTER SYSTEM SET audit_log_buffer_size='16M';