image

CHAPTER29Using Flashback Queries

As part of its read consistency model, Oracle displays data that has been committed to the database. You can query data as it existed prior to a transaction being committed. If you accidentally COMMIT an errant UPDATE or DELETE, you can use this capability—called a flashback query—to see the data as it existed prior to the COMMIT. You can then use the results of the flashback query to restore the data.

To support flashback queries, your database must have Automatic Undo Management enabled, which is the default on Oracle Database 12c. Flashback queries can also be executed against remote databases.

Oracle attempts ...

Get Oracle Database 12c The Complete Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.