1Z0-052 · Question #40
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 occurs when Oracle cannot reconstruct a read-consistent snapshot of data because the required undo information has been overwritten during a long-running query.
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?
Exhibit
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
(36 responses)- A58% (21)
- B25% (9)
- C11% (4)
- D6% (2)
Why each option
ORA-01555 occurs when Oracle cannot reconstruct a read-consistent snapshot of data because the required undo information has been overwritten during a long-running query.
Oracle enforces statement-level read consistency by using undo segments to reconstruct the version of a data block as it existed at the query's start SCN. During peak bulk-insert activity, undo extents are rapidly reused and overwritten, and if the undo needed to roll back a block to the query's start SCN is gone, Oracle raises ORA-01555 because it can no longer provide a consistent read image.
The Flash Recovery Area is a disk location used for backup and recovery files such as archived logs and RMAN backups; it has no role in undo retention or statement-level read consistency.
A flashback archive stores historical row versions for Flashback Data Archive queries and is a separate feature from the undo tablespace used for read consistency - its space constraints do not cause ORA-01555.
ORA-01555 is caused by the inability to reconstruct an old read-consistent image from undo data, not by a failure to write new undo data blocks; the error indicates undo has been overwritten, not that there is no space to place new undo.
Concept tested: Oracle undo retention and ORA-01555 read consistency
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.
