SlideShare a Scribd company logo
Session ID:
Prepared by:
Ensuring Data Protection
Using Oracle Flashback Features
1118
@pini_dibask
Pini Dibask,
Oracle Domain Expert,
Dell Software Group, R&D
 Pini Dibask, Oracle Domain Expert, Dell Software R&D
 Senior Oracle DBA with 10 years of experience
 Oracle Certified Professional DBA (OCP)
 Blogger: OracleDBPro.BlogSpot.com
Email: Pini.Dibask@Software.Dell.com
LinkedIn: http://Linkedin.com/in/pinidibask
Google+: https://Plus.Google.com/+PiniDibask87
Twitter: @pini_dibask
About Me …
2
Agenda
Agenda
4
 Introduction to Data Protection for Oracle Databases
 Oracle Flashback from A to Z
 Versions 9i 10g 11g 12c
Flashback
Query
• Flashback Version Query
• Flashback Transaction Query
• Flashback Table
• Flashback Drop
• Flashback Database
• Flashback
Transaction
• Flashback Data Archive (FDA)
FDA Enhancements
Introduction to
Data Protection
for Oracle Databases
Introduction to Data Protection
6
Wide term - Refers to protection from various scenarios, such as:
Natural
Disasters
• Floods
• Earthquakes
• Fires
Block
Corruptions
• Physical
Corruptions
• Logical
Corruptions
Human
Errors
• Undesired DDL
Operations
• Undesired DML
modifications
Data Protection Objectives
7
 Ensuring high level of SLA (Service Level Agreement)
 Enforcing the organization’s Data Protection policy
 RPO (Recovery Point Objective)
 RTO (Recovery Time Objective)
RPO RTO
Disaster OccursRestore Point Up and Running
Maximum amount of data a
business can allow itself to lose
Maximum amount of downtime a
business can incur until the system
is up and running again
16:3016:00 17:00
Oracle HA & DR Solutions
8
Server Failures
Storage Failures
Site Failures
Corrupted Files
Missing Files
Human Errors
RAC & RAC One Node
Failover Clusters
ASM Normal Redundancy
ASM High Redundancy
Oracle Golden Gate
Oracle Data Guard
RMAN
User Managed Backups
Flashback Features
The Beginning
Oracle Flashback Query
(Version 9i)
Introduction to Oracle Flashback Query
10
 First Oracle flashback feature
 Introduced in Oracle version 9i
 Allows viewing table’s contents in the past
Oracle Flashback Query - Demo
11
 Step 1: Setup the Demo
Oracle Flashback Query - Demo cont'd
12
 Step 2: Determine current SCN & Time, modify data
Oracle Flashback Query - Demo cont'd
13
 Step 3: Query table’s contents prior to undesired modification
Oracle Flashback Query - Demo cont'd
14
 Step 4: Recovering at row level using Flashback Query
How does it work?
How does the Flashback Query feature work?
16
 Uses undo tablespace contents
 Undo tablespace - key component in Oracle Databases
 UNDO_RETENTION parameter
 Autoextend undo tablespace
Specifies minimum retention period Oracle will attempt to honor
 Fixed-Size undo tablespace
Undo Retention is being ignored
Undo Extent Types
17
 Active - Used by running transactions
 Unexpired - Within the UNDO_RETENTION period
 Expired - Older than the UNDO_RETENTION period
UNDO_RETENTION = 900 (15 Minutes)
17:0016:00 16:15 16:30 16:45
Expired Unexpired
(Current Time)
Design your environment to support
Flashback Query
18
 Prerequisites
 UNDO_MANAGEMENT parameter must be set to TRUE
 Best Practices
 Have proper undo tablespace size
 Have proper value for UNDO_RETENTION parameter
Oracle 10g
Flashback Features
 Flashback Version Query
 Flashback Transaction Query
 Flashback Table
 Flashback Drop
 Flashback Database
Flashback Version Query
20
 Allows viewing historical versions of a specific row or set of rows
 Uses VERSIONS BETWEEN clause
 VERSIONS_OPERATION column:
 ‘U’ indicates an UPDATE command
 ‘D’ indicates a DELETE command
 ‘I’ indicates an INSERT command
Flashback Version Query cont'd
21
 Specify either TIMESTAMP or SCN
 SCN MINVALUE AND MAXVALUE clause
 Uses all available undo information
22
Flashback Version Query – Demo cont'd
23
 View transaction’s information including undo SQL statements
Flashback Transaction Query
 Prerequisite - Enable Minimal Supplemental Logging
 Recover a table or set of tables to an historical point in time
 FLASHBACK TABLE <Table Name> TO SCN;
 FLASHBACK TABLE <Table Name> TO TIMESTAMP;
 Prerequisites
 Have either FLASHBACK object privilege or FLASHBACK ANY TABLE
 Enable Row Movement – ALTER TABLE … ENABLE ROW MOVEMENT
Flashback Table
25
Flashback Table - Demo
26
Flashback Table - Demo cont'd
27
Flashback Table - Limitations
 You cannot recover the table prior to a table definition change
 Flashback is not supported for user SYS
28
Flashback Drop
 Oracle 10g - RECYCLEBIN parameter was introduced
 RECYCLEBIN defaults to “ON”
 Dropped objects’ information is stored in USER_RECYCLEBIN
 USER_RECYCLEBIN has a public synonym named RECYCLEBIN
29
Flashback Drop cont'd
 It is possible to query the dropped table directly
 The restore operation is straightforward
30
Flashback Drop cont'd
 The table is restored with its original name
 Dependent objects are restored with system-generated names
 The table can be restored with a different name
 Objects restored in a LIFO (Last In First Out) order
11
31
Flashback Drop cont'd
 Flashback Drop operation is not guaranteed
 Table will not be available in the recycle bin if:
 RECYCLEBIN = OFF
 DROP TABLE command with PURGE clause
 PURGE RECYCLEBIN or PURGE DBA_RECYCLEBIN commands
 Entire containing tablespace has been dropped
 Entire containing schema has been dropped
 Space pressure in the containing tablespace
32
Flashback Database
 Allows rewinding entire database to a past point in time
 Does not require restoring database backups
 Can be used to fix undesired logical data modifications
 Cannot be used to recover block corruptions or file losses
 Uses Flashback Logs that contain before images of blocks
Flashback Database - Prerequisites
 Database must be running in ARCHIVELOG mode
 FRA (Fast Recovery Area) must be enabled
33
FRA - Overview
 Storage location which contains recovery-related files:
 Flashback Logs
 Backup Sets
 Archive Redo Logs
 Simplifies DBA’s daily tasks
 Retains recovery-related files as long as they are needed
 Delete them once they are no longer needed
34
35
Setting up the FRA and Flashback Database
 Note: Prior to 11gR2, the ALTER DATABASE FLASHBACK ON command
had be executed when the instance was in a MOUNTED state
Flashback Database - Demo
36
Flashback Database - Demo cont'd
37
Flashback Database Options
In addition to the restore point, you can also specify:
 SCN
 Time
 Before SCN
 Before Time
 Sequence
38
Oracle 10g Flashback Features - Summary
Flashback Query
Enhancements
Flashback
Version
Query
Flashback
Transaction
Query
Flashback
Table
Additional Flashback
Features
Flashback
Drop
Flashback
Database
39
Oracle 11gR1
Flashback Features
 Flashback Transaction
 Flashback Data Archive
Flashback Transaction
 Cancel changes made by a transaction and dependent transactions
 Uses DBMS_FLASHBACK.TRANSACTION_BACKOUT procedure
 DBMS_FLASHBACK.TRANSACTION_BACKOUT parameters:
 numtxns- Number of transactions
 xids - List of transactions IDs
 Options - Backout dependent transactions
 Supplemental logging for primary key columns must be enabled
41
42
Flashback Transaction - Demo
42
43
Flashback Transaction - Demo cont'd
44
Flashback Data Archive (A.K.A Total Recall)
 Long-term repository for storing undo records for flashback purposes
 Transparent to the application
 Flashback Data Archive has the following properties:
 Tablespace - Where the information will be stored
 Quota - Amount of storage in tablespace for FDA purposes
 Retention - The amount of time information will be kept
 FDBA background process takes care of the FDA-related tasks
45
Flashback Data Archive - Demo
46
Flashback Data Archive - Demo cont'd
Oracle 11gR2
Flashback Enhancements
48
11gR2 Flashback Enhancements
 Flashback Database Enhancements
 Enable Flashback Database feature with no downtime
 Flashback Data Archive Enhancements
The following DDL commands can be executed on tables with FDA:
 TRUNCATE TABLE
 ALTER TABLE RENAME
 DROP|TRUNCATE PARTITION
 ALTER TABLE [ADD|DROP|RENAME|MODIFY] column
 ALTER TABLE [ADD|DROP|RENAME|MODIFY] constraint
Oracle 12c
Flashback Enhancements
 12.1.0.1 Flashback Enhancements
 12.1.0.2 Flashback Enhancements
50
Oracle 12c Flashback Enhancements
 12.1.0.1 FDA New Features
 User context information for transactions is tracked as well
 Support for tables that use Hybrid Columnar Compression (HCC)
 Support for exporting and importing Flashback Data Archive tables
 12.1.0.2 FDA New Features
 Support for Multitenant architecture (in addition to Non-CDB option)
Oracle Flashback Technology
Licensing
52
Licensing
Feature Supported Editions
Flashback Query All Editions
Flashback Version Query All Editions
Flashback Table Enterprise Edition
Flashback Drop Enterprise Edition
Flashback Database Enterprise Edition
Flashback Data Archive
(Versions earlier than 11.2.0.4)
Enterprise Edition +
Oracle Advanced Compression
(extra cost option)
Flashback Data Archive
(Versions 11.2.0.4 and above)
All Editions
Oracle Flashback Technology
Summary
54
Flashback Technology - Summary
 Allows recovering from various human errors with minimum effort and time
 Should never be used as a replacement for traditional backups
 Will not protect against the following scenarios:
 Loss of data file or control file
 Block corruptions
 Software/Hardware failure
 Site disasters
 Should be used as a complementary solution for traditional backups
55
Flashback Scenarios
Scenario Solution
View historical data and generate historical reports Flashback Query +
FDA (Optional)
Compare historical changes of a specific row or set of rows Flashback Version Query
Obtain transaction information + associated undo SQL Flashback Transaction Query
Undo an entire transaction and its dependent transactions Flashback Transaction
Recover a table prior to undesired logical changes Flashback Table
Restore a table prior to a DROP TABLE command Flashback Drop
Restore entire database prior to undesired logical changes Flashback Database
References
56
 Using Oracle Flashback Technology (Oracle Documentation)
https://docs.oracle.com/database/121/ADFNS/adfns_flashback.htm
 Using Flashback Database and Restore Points (Oracle Documentation)
https://docs.oracle.com/database/121/BRADV/flashdb.htm
 FLASHBACK TABLE command (Oracle Documentation)
https://docs.oracle.com/database/121/SQLRF/statements_9012.htm#SQLRF01802
 Oracle Total Recall (White Paper)
http://www.oracle.com/technetwork/database/focus-areas/storage/total-recall-whitepaper-171749.pdf
Questions?
Thank You !
Please complete the session evaluation
We appreciate your feedback and insight
You may complete the session evaluation via the mobile app

More Related Content

PDF
Ensuring Data Protection Using Oracle Flashback Features
PPTX
Best New Features of Oracle Database 12c
PPSX
Oracle database 12c new features
DOCX
Oracle Database 12c "New features"
PDF
The Top 12 Features new to Oracle 12c
PPTX
Oracle 12c Multi Tenant
PDF
RMAN – The Pocket Knife of a DBA
PDF
Oracle 12c New Features_RMAN_slides
Ensuring Data Protection Using Oracle Flashback Features
Best New Features of Oracle Database 12c
Oracle database 12c new features
Oracle Database 12c "New features"
The Top 12 Features new to Oracle 12c
Oracle 12c Multi Tenant
RMAN – The Pocket Knife of a DBA
Oracle 12c New Features_RMAN_slides

What's hot (20)

PDF
What is new on 12c for Backup and Recovery? Presentation
DOCX
Backup and Restore of database on 2-Node RAC
PPTX
Oracle Basics and Architecture
PPTX
Oracle Database 12c - New Features for Developers and DBAs
DOC
Backup and Recovery Procedure
PDF
DOAG - Oracle Database Locking Mechanism Demystified
PPTX
10 ways to improve your rman script
PPT
Oracle-L11 using Oracle flashback technology-Mazenet solution
PPTX
Oracle flashback
PDF
GLOC 2014 NEOOUG - Oracle Database 12c New Features
PPTX
10 Problems with your RMAN backup script
PDF
Oracle 12c New Features for Developers
PDF
2013 Collaborate - OAUG - Presentation
PDF
Oracle database locking mechanism demystified (AOUG)
PDF
2011 Collaborate IOUG Presentation
PDF
Flashback - The Time Machine..
PPTX
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
PPTX
What’s new in oracle 12c recovery manager (rman)
PPT
Oracle 10g Introduction 1
PDF
2009 Collaborate IOUG Presentation
What is new on 12c for Backup and Recovery? Presentation
Backup and Restore of database on 2-Node RAC
Oracle Basics and Architecture
Oracle Database 12c - New Features for Developers and DBAs
Backup and Recovery Procedure
DOAG - Oracle Database Locking Mechanism Demystified
10 ways to improve your rman script
Oracle-L11 using Oracle flashback technology-Mazenet solution
Oracle flashback
GLOC 2014 NEOOUG - Oracle Database 12c New Features
10 Problems with your RMAN backup script
Oracle 12c New Features for Developers
2013 Collaborate - OAUG - Presentation
Oracle database locking mechanism demystified (AOUG)
2011 Collaborate IOUG Presentation
Flashback - The Time Machine..
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
What’s new in oracle 12c recovery manager (rman)
Oracle 10g Introduction 1
2009 Collaborate IOUG Presentation
Ad

Viewers also liked (10)

PPTX
Simplify Consolidation with Oracle Pluggable Databases
PPTX
Simplify Consolidation with Oracle Database 12c
PPTX
Exadata x4 for_sap
PDF
Oracle Database 12c Multitenant for Consolidation
PDF
Exploring Oracle Database 12c Multitenant best practices for your Cloud
PDF
Cosas que “probablemente” no sabes pero deberías de saber en Oracle 12c
PPTX
Oracle 12c Architecture
PPTX
Database Consolidation using the Oracle Multitenant Architecture
PDF
Oracle 12c and its pluggable databases
DOCX
Solution Analytics : Oracle Advanced Analytics
Simplify Consolidation with Oracle Pluggable Databases
Simplify Consolidation with Oracle Database 12c
Exadata x4 for_sap
Oracle Database 12c Multitenant for Consolidation
Exploring Oracle Database 12c Multitenant best practices for your Cloud
Cosas que “probablemente” no sabes pero deberías de saber en Oracle 12c
Oracle 12c Architecture
Database Consolidation using the Oracle Multitenant Architecture
Oracle 12c and its pluggable databases
Solution Analytics : Oracle Advanced Analytics
Ad

Similar to Ensuring Data Protection Using Oracle Flashback Features - Presentation (20)

PPTX
Flashback Technology by Sohaib
PPTX
Flash back by 30,08
DOC
IBM DB2 LUW UDB DBA Online Training by Etraining Guru In Hyderabad
DOC
IBM DB2 LUW UDB DBA Training by www.etraining.guru
DOC
online training for IBM DB2 LUW UDB DBA
DOC
IBM DB2 LUW/UDB DBA Training by www.etraining.guru
PPT
Les 11 Fb Queries
PDF
RMAN in 12c: The Next Generation (WP)
PPTX
Flashback in OCI
PPT
Less17 flashback tb3
PPTX
Oracle DBA
DOCX
Oracle Database Administration 11g Course Content
PDF
RMAN in 12c: The Next Generation (PPT)
PPT
12c Database new features
PPT
Les 06 Perform Rec
PPT
Les 11 fl2
PDF
Aioug vizag oracle12c_new_features
PDF
Discard inport exchange table & tablespace
PPT
chap05-info366.ppt
DOC
Steps for upgrading the database to 10g release 2
Flashback Technology by Sohaib
Flash back by 30,08
IBM DB2 LUW UDB DBA Online Training by Etraining Guru In Hyderabad
IBM DB2 LUW UDB DBA Training by www.etraining.guru
online training for IBM DB2 LUW UDB DBA
IBM DB2 LUW/UDB DBA Training by www.etraining.guru
Les 11 Fb Queries
RMAN in 12c: The Next Generation (WP)
Flashback in OCI
Less17 flashback tb3
Oracle DBA
Oracle Database Administration 11g Course Content
RMAN in 12c: The Next Generation (PPT)
12c Database new features
Les 06 Perform Rec
Les 11 fl2
Aioug vizag oracle12c_new_features
Discard inport exchange table & tablespace
chap05-info366.ppt
Steps for upgrading the database to 10g release 2

More from Pini Dibask (16)

PDF
Oracle data guard for beginners
PDF
Winning performance challenges in oracle standard editions
PDF
Winning performance challenges in oracle multitenant
PDF
Winning performance challenges in oracle standard editions
PDF
Oracle Data Guard for Beginners
PDF
IOUG Collaborate 18 - Get the Oracle Performance Diagnostics Capabilities You...
PDF
IOUG Collaborate 18 - Data Guard for Beginners
PDF
IOUG Collaborate 18 - ASM Concepts, Architecture and Best Practices
PDF
RMOUG 18 - Winning Performance Challenges in Oracle Multitenant
PDF
RMOUG 18 - Oracle Database Locking Mechanism Demystified
PDF
Winning Performance Challenges in Oracle Multitenant
PDF
OOW 17 - database consolidation using the oracle multitenant architecture
PPTX
OUGN winning performnace challenges in oracle Multitenant
PPTX
Collaborate 17 - Database consolidation using the oracle multitenant architec...
PDF
Pini Dibask - Oracle Database Locking Mechanism Demystified (Presentation)
PPTX
Database Consolidation using Oracle Multitenant
Oracle data guard for beginners
Winning performance challenges in oracle standard editions
Winning performance challenges in oracle multitenant
Winning performance challenges in oracle standard editions
Oracle Data Guard for Beginners
IOUG Collaborate 18 - Get the Oracle Performance Diagnostics Capabilities You...
IOUG Collaborate 18 - Data Guard for Beginners
IOUG Collaborate 18 - ASM Concepts, Architecture and Best Practices
RMOUG 18 - Winning Performance Challenges in Oracle Multitenant
RMOUG 18 - Oracle Database Locking Mechanism Demystified
Winning Performance Challenges in Oracle Multitenant
OOW 17 - database consolidation using the oracle multitenant architecture
OUGN winning performnace challenges in oracle Multitenant
Collaborate 17 - Database consolidation using the oracle multitenant architec...
Pini Dibask - Oracle Database Locking Mechanism Demystified (Presentation)
Database Consolidation using Oracle Multitenant

Recently uploaded (20)

PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Machine learning based COVID-19 study performance prediction
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPT
Teaching material agriculture food technology
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Cloud computing and distributed systems.
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Approach and Philosophy of On baking technology
PPTX
sap open course for s4hana steps from ECC to s4
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
KodekX | Application Modernization Development
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
MYSQL Presentation for SQL database connectivity
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Machine learning based COVID-19 study performance prediction
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Teaching material agriculture food technology
NewMind AI Weekly Chronicles - August'25 Week I
Encapsulation_ Review paper, used for researhc scholars
Diabetes mellitus diagnosis method based random forest with bat algorithm
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Cloud computing and distributed systems.
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Empathic Computing: Creating Shared Understanding
Understanding_Digital_Forensics_Presentation.pptx
Approach and Philosophy of On baking technology
sap open course for s4hana steps from ECC to s4
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Electronic commerce courselecture one. Pdf
KodekX | Application Modernization Development

Ensuring Data Protection Using Oracle Flashback Features - Presentation

  • 1. Session ID: Prepared by: Ensuring Data Protection Using Oracle Flashback Features 1118 @pini_dibask Pini Dibask, Oracle Domain Expert, Dell Software Group, R&D
  • 2.  Pini Dibask, Oracle Domain Expert, Dell Software R&D  Senior Oracle DBA with 10 years of experience  Oracle Certified Professional DBA (OCP)  Blogger: OracleDBPro.BlogSpot.com Email: Pini.Dibask@Software.Dell.com LinkedIn: http://Linkedin.com/in/pinidibask Google+: https://Plus.Google.com/+PiniDibask87 Twitter: @pini_dibask About Me … 2
  • 4. Agenda 4  Introduction to Data Protection for Oracle Databases  Oracle Flashback from A to Z  Versions 9i 10g 11g 12c Flashback Query • Flashback Version Query • Flashback Transaction Query • Flashback Table • Flashback Drop • Flashback Database • Flashback Transaction • Flashback Data Archive (FDA) FDA Enhancements
  • 6. Introduction to Data Protection 6 Wide term - Refers to protection from various scenarios, such as: Natural Disasters • Floods • Earthquakes • Fires Block Corruptions • Physical Corruptions • Logical Corruptions Human Errors • Undesired DDL Operations • Undesired DML modifications
  • 7. Data Protection Objectives 7  Ensuring high level of SLA (Service Level Agreement)  Enforcing the organization’s Data Protection policy  RPO (Recovery Point Objective)  RTO (Recovery Time Objective) RPO RTO Disaster OccursRestore Point Up and Running Maximum amount of data a business can allow itself to lose Maximum amount of downtime a business can incur until the system is up and running again 16:3016:00 17:00
  • 8. Oracle HA & DR Solutions 8 Server Failures Storage Failures Site Failures Corrupted Files Missing Files Human Errors RAC & RAC One Node Failover Clusters ASM Normal Redundancy ASM High Redundancy Oracle Golden Gate Oracle Data Guard RMAN User Managed Backups Flashback Features
  • 9. The Beginning Oracle Flashback Query (Version 9i)
  • 10. Introduction to Oracle Flashback Query 10  First Oracle flashback feature  Introduced in Oracle version 9i  Allows viewing table’s contents in the past
  • 11. Oracle Flashback Query - Demo 11  Step 1: Setup the Demo
  • 12. Oracle Flashback Query - Demo cont'd 12  Step 2: Determine current SCN & Time, modify data
  • 13. Oracle Flashback Query - Demo cont'd 13  Step 3: Query table’s contents prior to undesired modification
  • 14. Oracle Flashback Query - Demo cont'd 14  Step 4: Recovering at row level using Flashback Query
  • 15. How does it work?
  • 16. How does the Flashback Query feature work? 16  Uses undo tablespace contents  Undo tablespace - key component in Oracle Databases  UNDO_RETENTION parameter  Autoextend undo tablespace Specifies minimum retention period Oracle will attempt to honor  Fixed-Size undo tablespace Undo Retention is being ignored
  • 17. Undo Extent Types 17  Active - Used by running transactions  Unexpired - Within the UNDO_RETENTION period  Expired - Older than the UNDO_RETENTION period UNDO_RETENTION = 900 (15 Minutes) 17:0016:00 16:15 16:30 16:45 Expired Unexpired (Current Time)
  • 18. Design your environment to support Flashback Query 18  Prerequisites  UNDO_MANAGEMENT parameter must be set to TRUE  Best Practices  Have proper undo tablespace size  Have proper value for UNDO_RETENTION parameter
  • 19. Oracle 10g Flashback Features  Flashback Version Query  Flashback Transaction Query  Flashback Table  Flashback Drop  Flashback Database
  • 20. Flashback Version Query 20  Allows viewing historical versions of a specific row or set of rows  Uses VERSIONS BETWEEN clause  VERSIONS_OPERATION column:  ‘U’ indicates an UPDATE command  ‘D’ indicates a DELETE command  ‘I’ indicates an INSERT command
  • 21. Flashback Version Query cont'd 21  Specify either TIMESTAMP or SCN  SCN MINVALUE AND MAXVALUE clause  Uses all available undo information
  • 22. 22 Flashback Version Query – Demo cont'd
  • 23. 23  View transaction’s information including undo SQL statements Flashback Transaction Query  Prerequisite - Enable Minimal Supplemental Logging
  • 24.  Recover a table or set of tables to an historical point in time  FLASHBACK TABLE <Table Name> TO SCN;  FLASHBACK TABLE <Table Name> TO TIMESTAMP;  Prerequisites  Have either FLASHBACK object privilege or FLASHBACK ANY TABLE  Enable Row Movement – ALTER TABLE … ENABLE ROW MOVEMENT Flashback Table
  • 26. 26 Flashback Table - Demo cont'd
  • 27. 27 Flashback Table - Limitations  You cannot recover the table prior to a table definition change  Flashback is not supported for user SYS
  • 28. 28 Flashback Drop  Oracle 10g - RECYCLEBIN parameter was introduced  RECYCLEBIN defaults to “ON”  Dropped objects’ information is stored in USER_RECYCLEBIN  USER_RECYCLEBIN has a public synonym named RECYCLEBIN
  • 29. 29 Flashback Drop cont'd  It is possible to query the dropped table directly  The restore operation is straightforward
  • 30. 30 Flashback Drop cont'd  The table is restored with its original name  Dependent objects are restored with system-generated names  The table can be restored with a different name  Objects restored in a LIFO (Last In First Out) order 11
  • 31. 31 Flashback Drop cont'd  Flashback Drop operation is not guaranteed  Table will not be available in the recycle bin if:  RECYCLEBIN = OFF  DROP TABLE command with PURGE clause  PURGE RECYCLEBIN or PURGE DBA_RECYCLEBIN commands  Entire containing tablespace has been dropped  Entire containing schema has been dropped  Space pressure in the containing tablespace
  • 32. 32 Flashback Database  Allows rewinding entire database to a past point in time  Does not require restoring database backups  Can be used to fix undesired logical data modifications  Cannot be used to recover block corruptions or file losses  Uses Flashback Logs that contain before images of blocks
  • 33. Flashback Database - Prerequisites  Database must be running in ARCHIVELOG mode  FRA (Fast Recovery Area) must be enabled 33
  • 34. FRA - Overview  Storage location which contains recovery-related files:  Flashback Logs  Backup Sets  Archive Redo Logs  Simplifies DBA’s daily tasks  Retains recovery-related files as long as they are needed  Delete them once they are no longer needed 34
  • 35. 35 Setting up the FRA and Flashback Database  Note: Prior to 11gR2, the ALTER DATABASE FLASHBACK ON command had be executed when the instance was in a MOUNTED state
  • 37. Flashback Database - Demo cont'd 37
  • 38. Flashback Database Options In addition to the restore point, you can also specify:  SCN  Time  Before SCN  Before Time  Sequence 38
  • 39. Oracle 10g Flashback Features - Summary Flashback Query Enhancements Flashback Version Query Flashback Transaction Query Flashback Table Additional Flashback Features Flashback Drop Flashback Database 39
  • 40. Oracle 11gR1 Flashback Features  Flashback Transaction  Flashback Data Archive
  • 41. Flashback Transaction  Cancel changes made by a transaction and dependent transactions  Uses DBMS_FLASHBACK.TRANSACTION_BACKOUT procedure  DBMS_FLASHBACK.TRANSACTION_BACKOUT parameters:  numtxns- Number of transactions  xids - List of transactions IDs  Options - Backout dependent transactions  Supplemental logging for primary key columns must be enabled 41
  • 44. 44 Flashback Data Archive (A.K.A Total Recall)  Long-term repository for storing undo records for flashback purposes  Transparent to the application  Flashback Data Archive has the following properties:  Tablespace - Where the information will be stored  Quota - Amount of storage in tablespace for FDA purposes  Retention - The amount of time information will be kept  FDBA background process takes care of the FDA-related tasks
  • 46. 46 Flashback Data Archive - Demo cont'd
  • 48. 48 11gR2 Flashback Enhancements  Flashback Database Enhancements  Enable Flashback Database feature with no downtime  Flashback Data Archive Enhancements The following DDL commands can be executed on tables with FDA:  TRUNCATE TABLE  ALTER TABLE RENAME  DROP|TRUNCATE PARTITION  ALTER TABLE [ADD|DROP|RENAME|MODIFY] column  ALTER TABLE [ADD|DROP|RENAME|MODIFY] constraint
  • 49. Oracle 12c Flashback Enhancements  12.1.0.1 Flashback Enhancements  12.1.0.2 Flashback Enhancements
  • 50. 50 Oracle 12c Flashback Enhancements  12.1.0.1 FDA New Features  User context information for transactions is tracked as well  Support for tables that use Hybrid Columnar Compression (HCC)  Support for exporting and importing Flashback Data Archive tables  12.1.0.2 FDA New Features  Support for Multitenant architecture (in addition to Non-CDB option)
  • 52. 52 Licensing Feature Supported Editions Flashback Query All Editions Flashback Version Query All Editions Flashback Table Enterprise Edition Flashback Drop Enterprise Edition Flashback Database Enterprise Edition Flashback Data Archive (Versions earlier than 11.2.0.4) Enterprise Edition + Oracle Advanced Compression (extra cost option) Flashback Data Archive (Versions 11.2.0.4 and above) All Editions
  • 54. 54 Flashback Technology - Summary  Allows recovering from various human errors with minimum effort and time  Should never be used as a replacement for traditional backups  Will not protect against the following scenarios:  Loss of data file or control file  Block corruptions  Software/Hardware failure  Site disasters  Should be used as a complementary solution for traditional backups
  • 55. 55 Flashback Scenarios Scenario Solution View historical data and generate historical reports Flashback Query + FDA (Optional) Compare historical changes of a specific row or set of rows Flashback Version Query Obtain transaction information + associated undo SQL Flashback Transaction Query Undo an entire transaction and its dependent transactions Flashback Transaction Recover a table prior to undesired logical changes Flashback Table Restore a table prior to a DROP TABLE command Flashback Drop Restore entire database prior to undesired logical changes Flashback Database
  • 56. References 56  Using Oracle Flashback Technology (Oracle Documentation) https://docs.oracle.com/database/121/ADFNS/adfns_flashback.htm  Using Flashback Database and Restore Points (Oracle Documentation) https://docs.oracle.com/database/121/BRADV/flashdb.htm  FLASHBACK TABLE command (Oracle Documentation) https://docs.oracle.com/database/121/SQLRF/statements_9012.htm#SQLRF01802  Oracle Total Recall (White Paper) http://www.oracle.com/technetwork/database/focus-areas/storage/total-recall-whitepaper-171749.pdf
  • 58. Thank You ! Please complete the session evaluation We appreciate your feedback and insight You may complete the session evaluation via the mobile app

Editor's Notes

  • #7: Ensuring Data Protection is one of the most important tasks every Oracle DBA is faced with. Data Protection is a wide term that refers to the protection from many different potential issues in Oracle Databases such as: Disaster Recovery – Ranges from large-scale natural disasters such as floods, earthquakes, and fires, to small/medium disasters like power outages and viruses. Data Corruptions – Block corruption could be either physical or logical: Physical Corruption (also called media corruption) - When the block has an invalid checksum, therefore it cannot even be recognized as an Oracle block. Logical Corruption - When the block checksum is valid but its content is logically inconsistent; for example, when there is a missing index entry or missing row piece. Human Errors - A user operation that causes data to become unavailable (e.g. dropping/truncating a table, deleting rows) or logically wrong; for example, by modifying the contents of existing rows to wrong values.
  • #8: Every DBA should have a clear and tested recovery strategy in order to enforce the organization's Data Protection policy, which is usually defined by 2 important objectives, RPO and RTO: RPO (Recovery Point Objective) - The maximum amount of data that a business can allow itself to lose; for example, if the RPO of a company is 5 hours, then the DBA must restore and recover the database to a point in time in the last 5 hours. In some companies, the RPO is 0, i.e. the business can’t afford any data loss. RTO (Recovery Time Objective) - The maximum amount of downtime that a business can incur until the system is up and available again for the users. For example, if a database was crashed due to a physical corruption of a data file that belongs to SYSTEM tablespace, then assuming the RTO is 1 hour, the DBA must restore and recover the data file to ensure the database will be up and running within 1 hour since the crash occurred.
  • #9: Oracle provides a set of tools and features that can be used by the DBA for protecting Oracle Databases from various scenarios: Data Corruptions - The most common way for detecting and recovering data corruptions is by using RMAN and user-managed backup/recovery methods. Disaster Recovery - There are various ways for ensuring server protection, e.g. RAC, RAC One Node and Failover Clusters. For ensuring storage-level protection Oracle provides ASM 2-way or 3-way mirroring, and for ensuring site protection Oracle provides replication solutions such as Oracle Data Guard and Oracle Golden Gate. Human Errors - There are various ways to handle human errors including using backups (either RMAN or user-managed backups); however, by using flashback features the DBA can recover from human errors in a much faster and simpler way.
  • #11: The first Oracle flashback feature named "Flashback Query" was introduced in Oracle 9i. This feature allows querying a table's data as of a specific point in the past by providing either a TIMESTAMP or an SCN.
  • #12: Let's see a demonstration of this feature. In the below first step, we will create a sample table named “EMP” with a single row
  • #13: Now, we will determine the current SCN and time. Click… In the final step, we will update the row.
  • #14: By using Flashback Query we will be able to view the contents of the table prior to the data modifications. Note: It is possible to convert between SCN to TIMESTAMP using the SCN_TO_TIMESTAMP function
  • #15: This feature can be very useful for investigating the contents of the table in a specific point in time in the past. It can also be used to restore the value of a row, a set of rows, or even the entire table. In the following example, an update sets the name of EMPLOYEE with ID #1 to be as of a specific time point in the past It is also possible to specify a relative time by subtracting the current timestamp using the INTERVAL clause.
  • #17: Undo tablespace consists of undo segments which hold the "before" images of the data that has been changed by users running transactions. The undo is essential for rollback operations, data concurrency and read consistency.   The UNDO_RETENTION specifies the low threshold (in seconds) for the undo retention period (defaults to 900, i.e. 15 minutes). It is important to bear in mind the different behaviors of this parameter in a fixed-size undo tablespace vs. autoextend undo tablespace.  Autoextend Undo Tablespace For auto extend undo tablespace, the UNDO_RETENTION parameter specifies the minimum retention period Oracle will attempt to honor. Fixed-Size Undo Tablespace For fixed-size undo tablespaces, the UNDO_RETENTION parameter is being ignored and Oracle automatically tunes for the maximum possible undo retention period based on the undo tablespace size and undo usage history.   
  • #18: Active undo extents are used by running transactions. These extents will never be overwritten as they are needed in order to perform ROLLBACK operations.  Expired Undo Extents hold committed information that is older than the UNDO_RETENTION period. Unexpired undo Extents hold committed information that its age is less than the UNDO_RETENTION period. When space in the undo tablespace becomes low (due to running transactions which generate undo records) Oracle will increase the tablespace size (up to the MAXSIZE limit). Once it will reach the upper limit of the MAXSIZE, it will begin to overwrite unexpired undo information; therefore, the retention period defined in the UNDO_RETENTION period is not guaranteed. This is why the actual undo retention period might be lower or even higher than the one defined in the UNDO_RETENTION parameter. The actual undo retention period can be obtained by querying the TUNED_UNDORETENTION column in V$UNDOSTAT dynamic performance view. 
  • #19: In order to use Flashback Query, the instance must have an automatic undo management by setting the UNDO_MANAGEMENT initialization parameter to be TRUE (default since version 11gR1).
  • #20: Version 10g introduced some great flashback-related enhancements and new features
  • #21: The Flashback Version Query allows viewing the historical versions of a specific row or set of rows. Let us continue with the previous example of table EMP. In the previous example, there was an update of employee with ID #1 to be named ROBERT instead of DAVID, and then using by the flashback query, it was updated to be DAVID (as it was originally). Click By using Flashback Version Query, we can see the history of the row modifications. Click The VERSIONS_XID column represents the ID of the transaction that is associated with the row. The transaction ID is useful for retrieving the undo SQL statement for the transaction using the Flashback Transaction Query (more details to follow in the next section). The VERSIONS_OPERATION column value is ‘U’ which indicates that an update has occurred. Other possible values are ‘I’ (which indicates an INSERT) and ‘D’ (which indicates a DELETE).  
  • #22: The “VERSIONS BETWEEN” clause allows the DBA to specify SCN MINVALUE AND MAXVALUE, which takes all of the undo information that is available in the undo tablespace as follows Click
  • #23: Let us see an example of the output of the query after an insertion and deletion of a row.
  • #24: The flashback transaction query feature allows the DBA to view the transaction information including the start and the end of the transaction as well as the undo SQL statements for rolling back the transaction. In order to use this feature Oracle introduced a new dictionary view in version 10g named FLASHBACK_TRANSACTION_QUERY which requires having the SELECT ANY TRANSACTION system privilege. In the example above, we found out that transaction ID 0A0000009C120100 has deleted the row of employee named “STEVE” by using the flashback version query. The flashback transaction query can assist in rolling back the transaction by using the UNDO_SQL column, as follows: Click Note that in order to have the UNDO_SQL column populated with data, a minimal database supplemental logging must be enabled, which will add additional information to the redo logs. Verify whether minimal database supplemental logging is enabled or not by querying SUPPLEMENTAL_LOG_DATA_MIN from V$DATABASE. If minimal database supplemental logging is disabled (the output of the query is “NO”), you can enable it by executing the following command:
  • #25: The flashback table feature allows restoring the entire table’s data into an historical point in time in a very simple and straight-forward way- by specifying either SCN or TIMESTAMP. This feature is the best way for the DBA to recover the entire table’s data from human errors or undesired application changes (e.g. inserts, updates, deletes). In order to use this feature, make sure to be aligned with following prerequisites: Click Have either FLASHBACK object privilege on the table or FLASHBACK ANY TABLE system privilege. In addition, have the following privileges on the table: ALTER, SELECT, INSERT, UPDATE, and DELETE. Enable row movement for the table using ALTER TABLE … ENABLE ROW MOVEMENT. The reason for this requirement is because rows will be moved (inserted, updated, and deleted) during the FLASHBACK TABLE, which is the reason that the user must be granted with the INSERT, UPDATE, DELETE privileges on the table.  
  • #26: The following is a demonstration of this feature
  • #27: The ORA-08189 is expected because as previously mentioned, one of the prerequisites for using this feature is to enable row movement, and then it would be possible to execute the flashback table command, as follows: Click Note that this feature is using the information in the undo tablespace in order to recover the table so it can only be used to recover the data and not the structure of the table. If there was a change in the structure of the table, for example, by adding a column, Oracle would not be able to recover the table prior to the execution of DDL command. Also, if a table has been dropped, Oracle would not be able to recover it using this feature.
  • #29: Starting with Oracle version 10g, Oracle introduced a new parameter named “RECYCLEBIN” (defaults to “ON”): Click Assuming that RECYCLEBIN parameter is set to ON, then once the object is dropped, it will remain in the tablespace and Oracle will keep the information about the dropped table and its associated objects in a dictionary view named USER_RECYCLEBIN (it has a synonym named RECYCLEBIN), which shows per each schema its objects in the recycle bin Note: It is possible to query the recycle bin of the entire instance using DBA_RECYCLEBIN, and CDB_RECYCLEBIN in 12c
  • #30: The names of the table and its associated objects in the RECYCLEBIN have a system-generated name (starts with BIN$). It is possible to query directly the recycle bin system-generated names, however, it is not possible to execute DML or DDL commands against the tables in the recycle bin. Click Table will be restored with its original name, but the associated objects will be restored with system-generated names so it is possible to rename these objects later as an optional step.
  • #31: The associated objects will be restored with system-generated names so it is possible to rename these objects later as an optional step. Another thing to keep in mind is that Oracle restores the objects from the recycle bin in a LIFO (Last In First Out) order, so if there are several objects with the same name in the recycle bin and the DBA restores that object using the Flashback Drop feature, then the last one that was dropped will be restored.
  • #32: Note that it is not guaranteed to have the dropped objects in the recycle bin. In the following scenarios the objects will not be available in the recycle bin: Execution of a DROP TABLE command with the PURGE clause Manual execution of PURGE RECYCLEBIN or PURGE DBA_RECYCLEBIN commands Drop of the entire tablespace will not leave its objects in the recycle bin When dropping a user, all its objects are not placed in the recycle bin Space-pressure in the tablespace on which the objects reside
  • #33: The most simple and straightforward way to rewind the entire database to a historical point in time. It is so fast and simple because it does not require restoring database backups using either RMAN or user-managed backup.It can only recover “logical failures”, i.e. unnecessary data modifications due to human error. It cannot be used to recover from block corruptions or a loss of a file (e.g. Data Files, Control File). In order to undo changes in the database, this feature uses flashback logs. Flashback logs are being generated once the Flashback Database is enabled. The flashback logs contain before-images of data blocks prior to their change. The Flashback Database operates at a physical level and revert the current data files to their contents at a past time using the flashback logs.
  • #34: The prerequisites for enabling this feature are: The database must be running in ARCHIVELOG mode. Enable the FRA (Flash Recovery Area).
  • #35: The FRA is a storage location that contains recovery-related files such as archived logs, RMAN backups, and of course, flashback logs. Once configured, the FRA will simplify the DBA’s daily tasks by retaining the recovery-related files as long as they are needed, and delete them once they are no longer needed (based on the retention policies that are defined by the DBA).
  • #36: DB_FLASHBACK_RETENTION_TARGET parameter specifies the upper limit (in minutes) on how far back in time the database may be flashed back. Its default value is 1440 minutes (=one day) of retention for the flashback logs. It is not a guaranteed retention period is because if the FRA is full (reached the maximum FRA size limit defined by the DB_RECOVERY_FILE_DEST_SIZE parameter) or if there is not enough disk space, then Oracle will reuse the oldest flashback logs which might be within the retention period. In the following demonstration, the FRA is set with a 100GB size limit and flashback retention target of 1 week (=10080 minutes): Note: Starting with 11gR2, it is possible to enable the Flashback Database with no downtime by executing this command when the instance is in OPEN status.
  • #37: In the following example, a sample table is created, populated with a few records and truncated right after a restore point name “before_truncate” has been created. In this demo, a Flashback Database is used to rewind the entire database prior to the truncate command that was executed using the “before_truncate” restore point.
  • #38: In order to rewind the database, restart the database in a MOUNT mode, and then execute the FLASHBACK DATABASE command. It is possible to rewind the database to an exact SCN or Time. It is also possible to rewind the database prior to the SCN or Time. Another simple way is to create a restore point in which a name represents a specific point in time, and then the flashback will restore the database to the time that the restore point had been created.
  • #40: Version 10g introduced some great flashback-related enhancements and new features. We can categorize these features into two main categories, Flashback query enhancements and additional flashback features.
  • #42: Using the Flashback Transaction feature, we can rollback the changes made by a transaction and its dependent transactions (optionally).
  • #43: In the following example, a sample table is created. Afterwards, the first transaction will insert a single record, and then a second transaction updates the record. In the last step of this demo we will perform a rollback for the first transaction
  • #44: The parameters of the TRANSACTION_BACKOUT procedure are: numtxn - Number of transactions passed as input xids - List of transaction IDs in the form of an array Options – Whether to Backout dependent transactions The reason that the “ORA-55504: Transaction conflicts in NOCASCADE mode” error has been raised is because the DBMS_FLASHBACK.TRANSACTION_BACKOUT procedure has a parameter named “options” which defaults to NOCASCADE, meaning that if a dependent transaction has been found, Oracle will raise an error. In our demonstration, the second transaction that updates the row depends on the first transaction that inserts the row; therefore, Oracle raises an error. We can tell Oracle to rollback the dependent transactions using the CASCADE value for the “options” parameter, as follows:  
  • #45: As mentioned, most of the Flashback Features (including: Flashback Version Query, Flashback Transaction Query, and Flashback Table and Flashback Transaction) rely on the undo information that reside in the Undo Tablespace. If the information is not available in the Undo Tablespace, the flashback operation will fail. Whether the information is available or not depends on several factors including: Size of the undo tablespace UNDO_RETENTION parameter Auto extend property Undo Guarantee property In order to allow an extended and even unlimited historical undo information for flashback purposes, Oracle introduced in version 11gR1 a new feature named Flashback Data Archive (also known as Total Recall). Flashback Data Archive is a repository for storing undo records and it is transparent to the application, i.e. once configured, the usage of the Oracle Flashback features remain the same in terms of syntax. In order to configure this feature, an object named Flashback Archive must be created. Flashback Archive has the following properties: Tablespace – Where the information will be stored Quota - Maximum amount of storage that can be allocated on the tablespace Retention – The amount of time that information will be kept in the tablespace Oracle introduced a new process named “fbda” that takes care of all the Flashback Data Archive related tasks such as writing the information into the Flashback Archive and purging it once the information is older than the retention period.
  • #46: In the following example a new default Flashback Archive object named “my_fda” with 25GB quota on a tablespace named “my_fda_ts” and a retention period of 5 years is created: Click The retention information for the Flashback Archives is available in the DBA_FLASHBACK_ARCHIVE dictionary view Click Once the Flashback Archive has been configured, the user can easily enable and disable this feature for the desired tables, as follows: Click The information about the quota per each Flashback Archive and the associated tablespace is available in the DBA_FLASHBACK_ARCHIVE_TS dictionary view
  • #47: Once the Flashback Archive has been configured, the user can easily enable and disable this feature for the desired tables, as follows Click The DBA_FLASHBACK_ARCHIVE_TABLES dictionary view displays all of the tables that have a Flashback Archive configured:
  • #49: In Oracle 11gR2 the following enhancements were introduced: Flashback Database – Prior to 11gR2, the DBA had to restart the database to a MOUNTED state and only then enable the Flashback Database feature. Now, the DBA can enable the Flashback Database when the instance is open with no downtime. Flashback Data Archive – Prior to Oracle 11gR2, several DDL commands on a table with Flashback Archive enabled raised an error: “ERROR at line 1 ORA-55610: Invalid DDL statement on history-tracked table”. This includes the following DDL operations: TRUNCATE TABLE ALTER TABLE [ADD| DROP| RENAME| MODIFY] Column DROP|TRUNCATE Partition ALTER TABLE RENAME ALTER TABLE [ADD| DROP| RENAME| MODIFY] Constraint Staring with Oracle 11gR2, these operations are now supported on tables with Flashback Archive enabled.
  • #51: 12.1.0.1 New Features: In Oracle version 12.1.0.1, new enhancements were introduced to the Flashback Data Archive feature including: The user context information for the transactions is now tracked as well. This allows us to understand not only what the changes were but also who is responsible for those changes. Support for tables that use the Hybrid Columnar Compression (HCC) feature. Support for exporting and importing the Flashback Data Archive tables. 12.1.0.2 New Features: In version 12.1.0.1, the Flashback Data Archive feature was supported only for Non-CDB environments. Starting from version 12.1.0.2 the Flashback Data Archive feature is supported for a Container Database (also known as the Multitenant Architecture) in addition to Non-CDB option.
  • #53: Most of the powerful Flashback features require having a license for the Enterprise Edition. This includes the following features: Flashback Table Flashback Drop Flashback Transaction Query Flashback Transaction Flashback Database Flashback Query and Flashback Version Query are available for all Oracle Editions. As for Flashback Data Archive, starting from 11.2.0.4, it is supported for all of the Oracle Editions, but for versions earlier than 11.2.0.4, it requires having a license for the Enterprise Edition + Oracle Advanced Compression option (extra cost option).
  • #55: The great thing about Oracle Flashback technology is that it allows recovering from various human errors with the minimum effort and time, which results in a reduced RTO (Recovery Time Objective). Having said that, Oracle Flashback technology should never be used as a replacement of the traditional backups, but rather as a complementary solution that provides a very effective way to recover from various human errors and does not require restoring and recovering data using backup (either RMAN or user-managed backups). For example, Oracle Flashback technology will not protect against the following scenarios: Loss of data file or control file Block corruptions (either physical or logical) Site disaster   In this session wer have reviewed the Oracle Flashback technology from Oracle version 9i – where the first flashback feature named “Flashback Query” was introduced, up to the most recent Oracle Database version (12.1.0.2). Oracle Flashback technology can definitely empower the DBAs by making their lives easier when it comes to protecting the data from various human errors.
  • #56: Oracle Flashback technology provides a set of tools which can be used by the DBA in order to recover from various human errors that caused undesired data loss or data modifications. The following table summarizes this article by explaining which Oracle Flashback feature is most suitable per each scenario