Skip to main content

Checkpoint not complete

When to use it

The alert log repeats "Checkpoint not complete" or "cannot allocate new log", and users notice short freezes during heavy activity.

Run this

Starter query written for this guide:

-- State of the redo groups
SELECT group#, thread#, ROUND(bytes / 1024 / 1024) AS mb, members, status, archived
FROM   v$log
ORDER  BY thread#, group#;

-- Log switches per hour in the last day
SELECT TO_CHAR(first_time, 'YYYY-MM-DD HH24') AS hour, COUNT(*) AS switches
FROM   v$log_history
WHERE  first_time >= SYSDATE - 1
GROUP  BY TO_CHAR(first_time, 'YYYY-MM-DD HH24')
ORDER  BY 1;

Full diagnosis and fix: 03_fix_checkpoint_not_complete.sql (Administration › Storage management › Redo logs): diagnosis, sizing and the commands to add or resize redo groups. Procedure: 04_increase_redo_size.sql (Administration › Storage management › Redo logs): how to replace the groups with larger ones.

How to read the output

  • If all groups other than CURRENT are ACTIVE, the database must wait for a checkpoint before it can reuse a log. That wait is the freeze.
  • Many switches per hour means the logs are too small for the workload. The script on this shelf flags more than 4 per hour as a warning and more than 10 as critical.
  • The message is a performance warning, not data loss. The database continues after each wait.

What to do next

  • Record the group sizes, the number of groups and the switches per hour at the peak.
  • Adding or resizing redo groups is done online but it is still a change. Hand the numbers to a senior DBA.

Risk level

READ ONLY Safe to run at any time. It only queries the data dictionary.