1Z0-060 · Question #219
You plan to use the Flashback Drop feature to recover the SALES_EMP table that was dropped in error. No other table with the same name exists in the SH schema, which owns the table. You query the…
The correct answer is A. It retrieves the least recently dropped version of the table from the recycle bin for which undo is still. When FLASHBACK TABLE is issued using the original table name with multiple recycle bin entries, Oracle applies LIFO ordering but only restores the version for which sufficient undo data is still retained.
Question
You plan to use the Flashback Drop feature to recover the SALES_EMP table that was dropped in error. No other table with the same name exists in the SH schema, which owns the table. You query the RECYCLEBIN and find multiple entries for the SALES_EMP table:
You then issue this statement to recover the table:
What would be the best?
Exhibit
Options
- AIt retrieves the least recently dropped version of the table from the recycle bin for which undo is still
- BIt retrieves the most recently dropped version of the table.
- CIt retrieves the most recently dropped version of the table from the recycle bin for which indo is still
- DIt returns an error because the table name in the OBJECT_NAME column is not specified.
- EIt retrieves the least recently dropped version of the table.
How the community answered
(35 responses)- A77% (27)
- B3% (1)
- C3% (1)
- D11% (4)
- E6% (2)
Why each option
When FLASHBACK TABLE is issued using the original table name with multiple recycle bin entries, Oracle applies LIFO ordering but only restores the version for which sufficient undo data is still retained.
Oracle evaluates recycle bin entries from oldest to newest and returns the least recently dropped version for which undo segments are still available; if the most recent drop has had its undo expired, Oracle falls back to an older entry that still has the undo data required to reconstruct the table's state.
Simply retrieving the most recently dropped version ignores undo availability - if that version's undo has been overwritten, the flashback would fail, so this choice is incomplete.
While 'most recently dropped with undo available' sounds plausible, Oracle's documented behavior for ambiguous name resolution selects the least recently dropped entry that satisfies the undo requirement, not the most recent.
No error is raised for using the original table name; an error would only occur if the recycle bin object name (e.g., BIN$...) were required but absent, which it is not for a simple name-based flashback.
Retrieving the least recently dropped version without qualifying it by undo availability is incomplete - undo expiry determines recoverability, so availability must be a condition.
Concept tested: Flashback Drop recycle bin LIFO undo availability
Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/bradv/using-oracle-flashback-technology.html
Topics
Community Discussion
No community discussion yet for this question.
