Oracle Database Flashback12R2
Oracle Database Flashback12R2
nologies
Hariprasath Rajaram
Today’s Agenda
History of Oracle Flashback Technologies
Flashback Technologies Transformation
Since V9
Flashback Query using
AS OF scn/timestamp Flashback Transaction
Session Level Flashback using Flashback Data Archive (Total Recall)
dbms_flashback Flashback Standby Database
Statement Level Flashback using
AS OF clause
Flashback Query
Flashback Table
Flashback Drop
Flashback Versions Query
Flashback Transaction Query
Flashback Query Functions
Flashback Database
Flashback Data Archive
Flashback Pluggable Database (PDB)
Temporal Validity
Flashback Advanced use cases
Flashback technology is integrated into Oracle Recovery Manager (RMAN) and Oracle Data Guard. So, apart from the
basic use cases mentioned above, the following use cases are addressed using Oracle Flashback.
Snapshot Standby - where the standby is temporarily converted to a read/write environment for testing, backup, or
migration purposes
Re-instate old primary in a Data Guard environment – this avoids the need to restore an old backup and perform a
recovery to make it a new standby.
Guaranteed Restore Points - to bring back the entire database to an older point-in-time in a guaranteed way.
Flashback Architecture Overview
Type Name Purpose Example Scenario
Investiga- Flashback To query a table for a verify the value alter batch update Re-
tion/ Query value at one previous place the latest value of a column will a
Correc- point in time value as of 10AM
tion
Investiga- Flashback Ver- To query the changes Monitor stock inventory quantity changes
tion sion that occurred in a during the
Query table UNDO between past day Obtain the transaction
two points in time that changed the value
CDP Flashback Data- Rewind the entire data- User truncated a few important ta-
base base bles that need to be restored
to a previous point in
time