About Flashback Query

Previous
Previous
Next
Next

When you write a Flashback Query, you add a clause to the SELECT statement that specifies either a time or a system change number (SCN). The query then uses the committed data from the corresponding time. The Flashback Query feature does not change any data; it queries only. It is up to you to analyze the historical data and then construct and issue data manipulation language (DML) statements to restore data.

The Flashback Query feature retrieves historical data by applying undo data as needed. The length of time that you can flash back therefore depends on the amount of undo data that is available. For more information on the Flashback Query feature, see the discussion of the AS OF clause for the SELECT statement in Oracle Database SQL Reference.