← RGPV CS-502 DBMS June 2025 solved question paper
RGPV CS-502 (GS) | June 2025 | Q8(d)
Question (restated): Write a short note on Flashback Queries.
Answer
Oracle Flashback Query retrieves a past consistent version of data using AS OF TIMESTAMP or AS OF SCN, subject to available undo and privileges.
SELECT * FROM Student AS OF TIMESTAMP (SYSTIMESTAMP - INTERVAL '10' MINUTE);
This can help investigate accidental changes without restoring the whole database. Flashback Versions Query can inspect historical row versions over an interval. Flashback Query is read-only with respect to the historical snapshot; restoring selected data requires a separate deliberate DML operation. Availability depends on undo retention, workload and intervening schema changes. It is not a replacement for backups.
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion