log_buffer
Size of the redo log buffer in the SGA.
- Default
Derived- Range
- Platform-dependent
- Restart needed
- Yes
- Default checked on
- Oracle AI Database 26ai / 23ai
What it does
LGWR writes it to the online redo logs at commit, every three seconds, and when it is a third full. Waits on 'log buffer space' mean it is too small or LGWR is slow.
Default value
Derived. Derived at startup from the SGA size and CPU count (Oracle 23ai/26ai); about 4MB on Oracle Free.
Check the current value
SHOW PARAMETER log_buffer SELECT name, value, isdefault, issys_modifiable, isses_modifiable, ispdb_modifiable FROM v$parameter WHERE name = 'log_buffer';
Change it
ALTER SYSTEM SET log_buffer = 64M SCOPE=SPFILE; -- then SHUTDOWN IMMEDIATE and STARTUP
Restart required: the parameter is static (ISSYS_MODIFIABLE = FALSE), so only SCOPE=SPFILE is accepted and the value applies at the next startup. It is instance-wide: set it from CDB$ROOT, because a PDB gets ORA-65040.
When to change it
When 'log buffer space' waits are significant in AWR. Check redo log disk latency first.
What can go wrong
Larger buffers do not fix slow redo disks.
Questions about log_buffer
What is the default value of log_buffer in Oracle?
Derived. Derived at startup from the SGA size and CPU count (Oracle 23ai/26ai); about 4MB on Oracle Free.
Does changing log_buffer require a restart?
Yes. Restart required: the parameter is static (ISSYS_MODIFIABLE = FALSE), so only SCOPE=SPFILE is accepted and the value applies at the next startup. It is instance-wide: set it from CDB$ROOT, because a PDB gets ORA-65040.
When should I change log_buffer?
When 'log buffer space' waits are significant in AWR. Check redo log disk latency first.
Back to all Oracle settings, or check the Oracle manual for every option.
Check log_buffer on your own server
SQLly runs the query above against Oracle and the other engines in this reference, from one desktop app on macOS, Windows and Linux.