Oracle Database / Editorial solution guide

Diagnose ORA-01555 snapshot too old

Correlate the long read with undo availability and workload before changing retention or capacity.

About 3 min readContent reviewed

Read-only knowledge base ยท No public comments

Recognize the symptoms

A long query or export fails with ORA-01555: snapshot too old. Preserve the full error, start and failure times, database and container, query identifier, duration, and concurrent workload context without exposing sensitive values. A retry may succeed after workload changes, but that does not establish why the original consistent read failed.

Understand the likely causes

  • The reader may need an older version of data whose undo is no longer available because concurrent changes reused the relevant undo. Long-running queries, high undo generation, retention policy, and available undo space can interact. LOB-related cases can have distinct storage considerations; use the exact error and Oracle documentation for the deployed environment.

Capture the read and undo context

Record the database release, instance and container, affected operation, execution duration, concurrent write activity, undo configuration and available tablespace capacity using authorized monitoring. Compare the failure interval with recent workload and maintenance changes. Identify whether the failing operation is a report, export, or another long read, and preserve its required consistency boundary. A single timeout or elapsed-time observation does not identify the responsible undo pressure.

Inspect evidence over the failure interval

An authorized administrator can inspect undo statistics for intervals covering the failure and correlate them with query duration and workload. The following read-only example uses Oracle 19c view fields and does not change retention. Results depend on privileges, instance and container context, and collection history. A tuned retention value is an observation, not a guarantee that every query can complete under every space condition.

sql Inspect recent undo intervals
SELECT begin_time, end_time, tuned_undoretention, ssolderrcnt
FROM v$undostat
ORDER BY begin_time DESC
FETCH FIRST 10 ROWS ONLY

The query reads recent statistics, including tuned retention and snapshot-too-old counts, when the authorized session can access the view. Correlate the returned intervals with the incident; no result is asserted.

Choose a measured correction

Investigate whether the read can be made more efficient without changing its result or consistency contract. Assess undo retention, tablespace capacity, and the concurrent write rate together with an authorized database administrator. Apply any configuration or capacity change through the documented operational process and monitor its effects on other transactions. Do not treat a larger retention setting alone as proof that sufficient space exists or split a report into inconsistent snapshots without product approval.

Verify the same workload and boundary

Repeat the representative read in an authorized safe environment and compare its result, duration, and undo evidence with the original interval. Confirm that the report or export retains its required consistency and that other work remains healthy. Monitor subsequent snapshot-too-old errors, undo utilization, and long queries over representative peak periods. Document capacity assumptions and rehearse recovery and reporting procedures before the next large workload.

Verify the fix

The representative read completes with the required consistency and expected result under comparable workload.

Undo and error trends remain within the documented operating budget across an observed interval.

Keep it from recurring

  • Monitor long reads, undo generation, retention evidence, and available undo capacity together.
  • Test peak reporting and export workloads with explicit consistency and capacity requirements.

Official references