db_writer_processes
Number of database writer (DBWn) processes.
- Padrão
Max(1, CPU_COUNT / 8)- Range
- 1 to 100
- Restart needed
- Sim
- Default checked on
- Oracle AI Database 26ai / 23ai
O que faz
DBWn writes dirty buffers to the data files. On systems with asynchronous I/O, one writer per eight CPUs is plenty.
Valor padrão
Max(1, CPU_COUNT / 8). Derived as the larger of 1 and CPU_COUNT / 8 (Oracle 23ai/26ai); 1 on Oracle Free.
Check the current value
SHOW PARAMETER db_writer_processes SELECT name, value, isdefault, issys_modifiable, isses_modifiable, ispdb_modifiable FROM v$parameter WHERE name = 'db_writer_processes';
Change it
ALTER SYSTEM SET db_writer_processes = 4 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 'free buffer waits' appear and the I/O subsystem is not the bottleneck, or asynchronous I/O is unavailable.
What can go wrong
Extra writers without I/O capacity do not help.
Questions about db_writer_processes
What is the default value of db_writer_processes in Oracle?
Max(1, CPU_COUNT / 8). Derived as the larger of 1 and CPU_COUNT / 8 (Oracle 23ai/26ai); 1 on Oracle Free.
Does changing db_writer_processes 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 db_writer_processes?
When 'free buffer waits' appear and the I/O subsystem is not the bottleneck, or asynchronous I/O is unavailable.
Back to all Oracle settings, or check the Oracle manual for every option.
Check db_writer_processes 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.