Home / Oracle Errors / ORA-01555

ORA-01555

Snapshot too old

What it means

A long query needed old data from undo that has already been overwritten.

Common causes

How to fix it

  1. Check undo use: SELECT MAX(maxquerylen),MAX(tuned_undoretention) FROM v$undostat;
  2. Increase retention: ALTER SYSTEM SET undo_retention=3600;
  3. Add space to the undo tablespace: ALTER TABLESPACE <undo> ADD DATAFILE SIZE 8G;
  4. Tune the long query and avoid committing inside the fetch loop

How to prevent it

Size undo to your longest query and tune long-running reports.

Still stuck? Ask the community in Q&A.

Get the weekly Vismo digestNew Oracle articles and Q&A in your inbox. No spam.

One email a week. Unsubscribe any time.