1Z0-052 · Question #109
View the Exhibit and examine the attributes of an undo tablespace. In an OLTP system, the user SCOTT has started a query on a large table in the peak transactional hour that performs bulk inserts…
The correct answer is A. The query is unable to get a read-consistent image. ORA-01555 'snapshot too old' occurs when Oracle cannot reconstruct a read-consistent image because the required undo data has been overwritten before the query completed.
Question
View the Exhibit and examine the attributes of an undo tablespace. In an OLTP system, the user SCOTT has started a query on a large table in the peak transactional hour that performs bulk inserts. The query runs for more than 15 minutes and then SCOTT receives the following error:
ORA-01555: snapshot too old What could be the reason for this error?
Options
- AThe query is unable to get a read-consistent image.
- BThere is not enough space in Flash Recovery Area.
- CThere is not enough free space in the flashback archive.
- DThe query is unable to place data blocks in undo tablespace.
How the community answered
(37 responses)- A73% (27)
- B5% (2)
- C16% (6)
- D5% (2)
Why each option
ORA-01555 'snapshot too old' occurs when Oracle cannot reconstruct a read-consistent image because the required undo data has been overwritten before the query completed.
Oracle uses undo segments to provide read consistency - when SCOTT's query starts, it records a System Change Number (SCN) and relies on undo data to reconstruct any blocks changed after that point. During peak OLTP hours with bulk inserts filling the undo tablespace, old undo blocks are overwritten before the 15-minute query finishes, making it impossible to build the consistent snapshot. This is the precise technical cause of ORA-01555.
The Flash Recovery Area stores backup and recovery files such as archived logs and flashback logs, and has no involvement in undo-based read consistency or the ORA-01555 error.
The flashback archive (Flashback Data Archive) is a separate feature for long-term historical data retention and is unrelated to the undo mechanism that causes ORA-01555.
ORA-01555 is caused by the query being unable to READ undo data for a consistent image, not by an inability to write data blocks into the undo tablespace.
Concept tested: Oracle undo read consistency and ORA-01555
Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/admin/managing-undo.html
Topics
Community Discussion
No community discussion yet for this question.