nerdexam
Oracle

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.

Managing Undo Data

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

1Z0-052 question #40 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)
  • A
    58% (21)
  • B
    25% (9)
  • C
    11% (4)
  • D
    6% (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.

AThe query is unable to get a read-consistent image.Correct

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.

BThere is not enough space in Flash Recovery Area.

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.

CThere is not enough free space in the flashback archive.

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.

DThe query is unable to place data blocks in undo tablespace.

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

#ORA-01555#snapshot too old#read consistency#undo retention

Community Discussion

No community discussion yet for this question.

Full 1Z0-052 Practice