Note
- For V4.3.x, this parameter is available starting with V4.3.3.
- For V4.2.x, this parameter is available starting with V4.2.4.
Description
audit_log_buffer_size specifies the size of the buffer used for asynchronous log writes.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support audit features.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
The
systenant and user tenants can modify this parameter by using theALTER SYSTEM SETstatement.
Attributes
| Attribute | Description |
|---|---|
| Parameter 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 you write audit logs asynchronously, the working thread requests memory from a buffer and places it in the I/O queue. This parameter specifies the size of the buffer.
Examples
Set the size of the buffer used for asynchronous log writes to 16M.
obclient> ALTER SYSTEM SET audit_log_buffer_size='16M';