Oracle Background Processes: DBWR, LGWR, CKPT, SMON, PMON
Why Background Processes?
When the instance starts, Oracle also starts a team of background processes. Each has one job. If a critical one dies, the instance stops, so every DBA must know them.
The Main Processes
| Process | Full name | Job |
|---|---|---|
| DBWn | Database Writer | Writes dirty blocks from the buffer cache to datafiles |
| LGWR | Log Writer | Writes redo from the log buffer to the online redo logs at each commit |
| CKPT | Checkpoint | Updates file headers so recovery knows where to start |
| SMON | System Monitor | Recovers the instance after a crash and cleans up temporary space |
| PMON | Process Monitor | Cleans up after failed sessions and releases their locks |
| ARCn | Archiver | Copies full redo logs to the archive destination (ARCHIVELOG mode) |
| LREG | Listener Registration | Registers services with the listener |
| MMON / MMNL | Manageability | Collect AWR snapshots and metrics |
| CJQ0 | Job Queue Coordinator | Starts scheduler jobs |
Simple example: Think of a restaurant. LGWR is the waiter who writes every order on the ticket immediately (so nothing is lost). DBWR is the person who tidies the kitchen later in batches. SMON is the manager who fixes things after a power cut.
When Does DBWR Write?
- A checkpoint happens
- The buffer cache runs low on free buffers
- A tablespace goes offline or read-only
- The instance shuts down cleanly
When Does LGWR Write?
- A session commits (this is the most important one)
- The redo buffer is one-third full
- Every 3 seconds
- Before DBWR writes a dirty block
Remember: A commit waits for LGWR, not for DBWR. That is why slow redo disks make commits slow.
List the Processes
sql
SELECT name, description
FROM v$bgprocess
WHERE paddr <> '00'
ORDER BY name;
bash
# On Linux, see them as operating system processes
ps -ef | grep ora_ | grep -v grep
Result
You will see names like ora_dbw0_FREE, ora_lgwr_FREE, ora_ckpt_FREE, ora_smon_FREE and ora_pmon_FREE.
What if a Process Dies?
| Process | Effect if it dies |
|---|---|
| PMON, SMON, DBWn, LGWR, CKPT | The instance crashes (Oracle terminates it) |
| ARCn | Archiving stops. The database can hang when redo logs fill up. |
| A user server process | Only that session is lost. PMON cleans up. |
Conclusion
Each background process has one clear job. LGWR protects commits, DBWR updates datafiles, CKPT marks recovery points, SMON and PMON clean up.
Quick Summary: LGWR at commit, DBWR in batches, CKPT checkpoints, SMON instance recovery, PMON cleans failed sessions.

