You are on page 1of 5

3/7/2014

PowerView is Off Dashboard Knowledge Service Requests Patches & Updates

Document 1138253.1
inasupport Search Knowledge Base (23) Contact Us Help

Advanced

Master Note For Oracle Flashback Technologies (Doc ID 1138253.1)


Modified: Jan 21, 2013 Type: ANNOUNCEMENT

To Bottom

In this Document Details Actions Introduction Getting Started with Flashback Technologies Flash Recovery Area Flashback Database Flashback Drop Flashback Table Flashback Query Flashback Versions Flashback Transaction Flashback Data Archive Flashback & Dataguard Related Master Notes Using My Oracle Support Effectively Generic Links References

APPLIES TO:
Oracle Database - Enterprise Edition - Version 10.1.0.2 to 11.2.0.2 [Release 10.1 to 11.2] Information in this document applies to any platform.

DETAILS
This Master Note is intended to provide an index and references to the most frequently used My Oracle Support Notes with respect to Flashback Technology. This Master Note is subdivided into categories to allow for easy access and reference to notes that are applicable to your area of interest, within the Flashback Technology.This includes the following categories: Getting Started with Flashback Technologies Flash Recovery Area Flashback Database Flashback Drop Flashback Table Flashback Query Flashback Version Flashback Transaction Flashback Data Archive Flashback and Dataguard Related Master Notes Using My Oracle Support Effectively Generic Links

ACTIONS
Introduction
Oracle9i introduced Flashback Query to provide a simple, powerful and completely non-disruptive mechanism for recovering from human errors. It allows users to view the state of data at a point in time in the past without requiring any structural changes to the database. Oracle Database 10g extended the Flashback Technology to provide fast and easy recovery at the database, table, row, and transaction level. Flashback Technology revolutionizes recovery by operating just on the changed data. The time it takes to recover the error is now equal to the same amount of time it took to make the mistake. Oracle 10g Flashback Technologies includes Flashback Database, Flashback Table, Flashback Drop, Flashback Versions Query, and Flashback Transaction Query. Flashback technology can just as easily be utilized for non-repair purposes, such as historical auditing with Flashback Query and undoing test changes with Flashback Database. Oracle Database 11g introduces an innovative method to manage and query long-term historical data with Flashback Data Archive. This release also provides an easy, one-step transaction backout operation, with the new Flashback Transaction capability.

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=27011017218006&id=1138253.1&displayIndex=20&_afrWindowMode=0&_adf.ctrl-state=jeiz

1/5

3/7/2014

release also provides an easy, one-step transaction backout operation, with the new Flashback Transaction capability. This note applies to the following versions of these products: Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 10.2.0.x Oracle Server - Enterprise Edition - Version: 11.1.0.6 to 11.1.0.x Oracle Server - Enterprise Edition - Version: 11.2.0.1 to 11.2.0.x

Document 1138253.1

Getting Started with Flashback Technologies


If a major error occurs, such as a batch job being run twice in succession, the database administrator can request a Flashback operation that quickly recovers the entire database to a previous point in time, eliminating the need to restore backups and do a point-in-time recovery. In addition to Flashback operations at the database level, it is also possible to flash back an entire table. Similarly, the database can recover tables that have been inadvertently dropped by a user. ++ Oracle Flashback Database lets you quickly bring your database to a prior point in time by undoing all the changes that have taken place since that time. This operation is fast, because you do not need to restore the backups. This in turn results in much less downtime following data corruption or human error. ++ Oracle Flashback Table lets you quickly recover a table to a point in time in the past without restoring a backup. ++ Oracle Flashback Drop provides a way to restore accidentally dropped tables. ++ Oracle Flashback Query lets you view data at a point-in-time in the past. This can be used to view and reconstruct lost data that was deleted or changed by accident. Developers can use this feature to build self-service error correction into their applications, empowering end-users to undo and correct their errors. ++ Oracle Flashback Version Query uses undo data stored in the database to view the changes to one or more rows along with all the metadata of the changes. ++ Oracle Flashback Transaction Query lets you examine changes to the database at the transaction level. As a result, you can diagnose problems, perform analysis, and audit transactions. Below is a table which provides a pictorial explanation of all the flashback features.

Here are a few articles which help you in understanding the flashback technologies in a better way.

N o t e4 3 5 9 9 8 . 1W h a tD oA l l1 0 gF l a s h b a c kF e a t u r e sR e l yo na n dw h a ta r et h e i rL i m i t a t i o n s?

Flash Recovery Area


The flash recovery area is an Oracle-managed directory, file system, or Automatic Storage Management disk group that provides a centralized disk location for backup and recovery files. All the files you need to completely recover a database from a media failure are part of the Flash Recovery Area. Oracle creates archived logs and flashback logs in the flash recovery area. Flashback logs are the key to flashback the database just like the archives being key to recover the database. The articles mentioned in the following section help you in understanding the concepts and working of flash recovery area and troubleshooting flash recovery area issues.

N o t e3 0 5 6 4 8 . 1W h a ti saF l a s hR e c o v e r yA r e aa n dh o wt oc o n f i g u r ei t? N o t e3 6 9 7 5 9 . 1F L A S HR E C O V E R YA R E Aa n dF L A S H B A C Kd a t a b a s e N o t e8 3 3 6 6 3 . 1F l a s hR e c o v e r yA r e a-F A Q N o t e5 6 0 1 3 3 . 1B e n e f i t sO fU s i n gF l a s hR e c o v e r yA r e a N o t e3 1 5 0 9 8 . 1H o wi st h es p a c ep r e s s u r em a n a g e di nt h eF l a s hR e c o v e r yA r e a-A nE x a m p l e . N o t e3 0 5 8 1 2 . 1F l a s hR e c o v e r ya r e a-S p a c em a n a g e m e n tW a r n i n g&A l e r t s N o t e8 2 9 7 5 5 . 1S p a c ei s s u ei nF l a s hR e c o v e r yA r e a (F R A)

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=27011017218006&id=1138253.1&displayIndex=20&_afrWindowMode=0&_adf.ctrl-state=jeiz

2/5

3/7/2014

N o t e8 2 9 7 5 5 . 1S p a c ei s s u ei nF l a s hR e c o v e r yA r e a (F R A) N o t e3 0 5 8 1 0 . 1C o n f i g u r i n gf i l ec r e a t i o ni nF l a s hr e c o v e r ya r e aa n do r d e ro fP r e c e d e n c e N o t e3 0 5 6 5 1 . 1H o wt oc h a n g eF l a s hR e c o v e r yA r e at oan e wl o c a t i o n? N o t e7 6 2 9 3 4 . 1F l a s hR e c o v e r yA r e aS i z i n g

Document 1138253.1

Flashback Database
FLASHBACK DATABASE provides the ability to quickly revert an Oracle database to a previous time--without restoring datafiles and performing media recovery. When you enable the flashback functionality, Oracle automatically creates, deletes, and manages flashback database logs inside the flash recovery area. When you run the FLASHBACK DATABASE command, Oracle applies the flashback logs as well as the archived redo logs to return the database to the specified time. Its a rewind button for the Oracle database. The articles listed below help you in understanding the concepts,configuration,usage and known issues of the flashback database feature:

N o t e2 4 9 3 1 9 . 1C o n f i g u r ef l a s h b a c kd a t a b a s e N o t e5 6 5 5 3 5 . 1F l a s h b a c kD a t a b a s eB e s tP r a c t i c e s&P e r f o r m a n c e N o t e8 3 4 8 2 4 . 1R e c o v e r i n gD r o p p e dU s e ru s i n gF l a s h b a c kD a t a b a s e N o t e3 3 0 5 3 5 . 1R e s t o r eP o i n t si nO r a c l e 1 0 gR e l e a s e 2 N o t e3 6 9 7 5 9 . 1F L A S HR E C O V E R YA R E Aa n dF L A S H B A C Kd a t a b a s e N o t e7 6 1 1 2 6 . 1C A L C U L A T ET H EV O L U M EO FF L A S H B A C KL O GG E N E R A T I O N N o t e3 6 9 7 5 5 . 1F l a s h b a c kL o g s S p a c em a n a g e m e n t N o t e4 5 4 7 6 8 . 1C a ny o uu s ef l a s h b a c kd a t a b a s ei fap e r i o do fn o a r c h i v e l o ge x i s t s N o t e5 6 6 6 4 7 . 1G u a r a n t e e dR e s t o r eP o i n tw i t hF l a s h b a c kD a t a b a s ed i s a b l e dg e n e r a t e st o om a n yf l a s h b a c kl o g s N o t e8 3 3 5 8 4 . 1H o wT oD i s a b l eF l a s h b a c kD a t a b a s eW i t h o u tAB o u n c e N o t e8 2 8 4 1 0 . 1H i g h" F l a s h b a c kb u ff r e eb yR V W R "w a i t s N o t e3 8 6 2 6 2 . 1C l o n i n gd a t a b a s eu s i n gE MF a i l sI ff l a s h b a c ki sO N N o t e3 4 2 7 6 4 . 1F l a s h b a c k' O N 'f a i l sw i t hO R A 3 8 7 0 6a n dO R A 3 8 7 1 4 N o t e8 2 9 2 5 4 . 1D a t a b a s eC r a s h e dW i t hO R A 1 9 8 1 5O R A 1 9 8 0 9O R A 1 6 0 3 8 N o t e8 4 7 0 9 0 . 1F l a s h b a c kD a t a b a s eF a i l e dW i t hO R A 1 9 5 5 4a n dO R A 2 7 0 0 1 N o t e5 5 4 4 4 5 . 1O R A 2 6 0 4 0F L A S H B A C KD A T A B A S EW I T HN O L O G G I N GO B J E C T S / A C T I V I T I E SR E S U L T SI NC O R R U P T I O N N o t e4 4 4 3 8 9 . 1Q u e r y i n gV $ F l a s h b a c k _ D a t a b a s e _ L o gO rF l a s h i n gB a c kD a t a b a s et oB e f o r eR e s e t l o g sT r i g g e r sO R A 0 7 4 4 5 [ k r f b D o C o n v e r t P l u g i n ] N o t e9 8 2 1 0 4 . 1W o r k a r o u n df o rF l a s h b a c kD a t a b a s ef a i l sw i t hO R A 3 8 7 5 3O R A 0 1 1 1 0

Flashback Drop
Flashback Drop provides a safety net when dropping objects in Oracle Database 10g. When a user drops a table, Oracle will place it in a Recycle Bin. Objects in the Recycle Bin will remain there until user decides to permanently remove them or the space pressure is placed on the tablespace containing the table. The recycle bin is a virtual container where all dropped objects reside. Users can look in the Recycle Bin and undrop the dropped table and its dependent objects. The articles listed below help you in understanding the concepts,configuration,usage and known issues of the flashback drop:

N o t e2 6 5 2 5 4 . 1F l a s h b a c kT a b l eF e a t u r ei nO r a c l eD a t a b a s e1 0 g N o t e2 6 6 4 7 7 . 1P u r g e ,F l a s h b a c kB e f o r eD r o pW h i l eM u l t i p l eT a b l e si nt h eR e c y c l e b i nW i t hS a m eN a m e N o t e2 6 5 2 5 3 . 11 0 gR e c y c l e b i nF e a t u r e sA n dH o wT oD i s a b l ei t (_ r e c y c l e b i n) N o t e4 3 3 7 6 8 . 1I n v a l i dO b j e c tB I N $ x x xI nD B A _ O B J E C T SB u tN o n eE x i s t si nR E C Y C L E B I N

Flashback Table
Flashback Table is a new Oracle Database 10g feature that enables users to recover a table to a previous point in time. It provides a fast, online solution for recovering a table that has been accidentally modified or deleted by a user or application. In many cases, Flashback Table alleviates the need for administrators to perform more complicated point in time recovery operations. Even after a flashback, the data in the original table is not lost. You can later revert it back to the original state. Provides fast recovery on a table(s) to a point in time in the past without restoring a backup. Restores all data in a specified table to a previous point in time described by a timestamp or SCN. An exclusive DML lock is held on a table while it is being restored. Performs the restore operation online. Automatically restores all of the table attributes, such as indexes, triggers, and the likes that are necessary for an application to function with the flashedback table. Maintains any remote state in a distributed environment. Maintains data integrity as specified by constraints. The articles listed below help you in understanding the concepts,usage and known issues of the flashback table:

N o t e2 4 6 4 2 1 . 1 N o t e2 7 0 0 6 0 . 1 N o t e2 6 6 5 3 6 . 1 N o t e1 0 8 1 7 7 7 . 1

H o wt or e c o v e rT a b l ed a t aU s i n gt h eF l a s h b a c kT a b l eF e a t u r e U s eF l a s h b a c kT a b l eF e a t u r ea n dR e s o l v ee r r o r s W h a ta r et h eS E L E C TA N YT R A N S A C T I O N/F L A S H B A C KA N YT A B L EP r i v i l e g e s? D oD a t a P u m pE x p o r t / I m p o r tU t i l i t i e sW o r kW i t hF l a s h b a c kA r c h i v e dT a b l e s ?

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=27011017218006&id=1138253.1&displayIndex=20&_afrWindowMode=0&_adf.ctrl-state=jeiz

3/5

3/7/2014

N o t e1 0 8 1 7 7 7 . 1 D oD a t a P u m pE x p o r t / I m p o r tU t i l i t i e sW o r kW i t hF l a s h b a c kA r c h i v e dT a b l e s ? N o t e7 8 1 1 1 2 . 1 H o wt of l a s h b a c kM V sa n dM Vr e f e r r e dt a b l e s

Document 1138253.1

Flashback Query
A database query, by default, always shows a consistent set of data containing most recently committed changes. With Flashback Query, introduced in Oracle9i, users are able to query a consistent version of the database as it was at some point in the past either by specifying a wall clock time or a System Change Number (SCN). The articles listed below help you in understanding the concepts,usage and known issues of the flashback query:

N o t e1 7 4 4 2 5 . 1 O r a c l e 9 iR e c o v e r i n gl o s td a t at h r o u g hF l a s h b a c kQ u e r y N o t e2 0 4 3 3 4 . 1 P a r a m e t e r sF L A S H B A C K _ S C NA n dF L A S H B A C K _ T I M EP o i n tI nT i m eE x p o r t N o t e7 1 5 9 4 5 1 . 8B u g7 1 5 9 4 5 1-F l a s h b a c kq u e r yd o e sn o tw o r ka g a i n s tF G A/O L St a b l e s N o t e5 6 6 7 6 5 8 . 8B u g5 6 6 7 6 5 8-W r o n gr e s u l t s/e r r o r sf r o mf l a s h b a c kt oS C Nb e f o r es e g m e n ts h r i n k( a f f e c t sM V i e w s )

Flashback Versions
Flashback Versions Query is an extension to SQL that allows you to retrieve the different versions of rows in a given table that existed in a specific time interval. It returns a row for each version of the row that existed in the time interval you specify. For any given table, a new row version is created every time the COMMIT statement is executed. You specify the flashback versions query using the VERSIONS BETWEEN clause of the SELECT statement. The articles listed below help you in understanding the concepts,usage and known issues of the flashback versions query :

N o t e2 7 0 2 7 0 . 1 F l a s h b a c kV e r s i o nQ u e r y&F l a s h b a c kT r a n s a c t i o nQ u e r y-O r a c l e1 0 GE n h a n c e m e n t N o t e2 6 8 6 1 1 . 1 F L A S H B A C KV E R S I O N SQ U E R YG I V E SO R A 6 0 0[ 1 5 2 0 1 ]E R R O R N o t e1 0 7 6 5 9 8 . 1V E R S I O N S _ O P E R A T I O Nn o td i s p l a y e di nf l a s h b a c kv e r s i o nq u e r yu s i n gr o w i da f t e rad e l e t e

Flashback Transaction
Flashback Transaction Query provides a way for you to view all changes made to the database at the transaction level. When used in conjunction with Flashback Versions Query, it allows you to easily recover from user or application errors. It increases online diagnosability of problems in your database and performs analysis and audits of transactions. Flashback Transaction Query shows all the resultant changes made by this transaction. In addition, compensating SQL statements are returned and can be used to undo changes made to all rows by this transaction. Using a precision tool like this, the DBA and application developer can precisely diagnose and correct logical problems in the database or application. The articles listed below help you in understanding the concepts,usage and known issues of the flashback transaction query :

N o t e3 1 7 4 9 9 . 1 1 0 GO r a c l eF l a s h b a c kT r a n s a c t i o nQ u e r y-I n t r o d u c t i o na n du s a g e N o t e2 7 0 2 7 0 . 1 F l a s h b a c kV e r s i o nQ u e r y&F l a s h b a c kT r a n s a c t i o nQ u e r y-O r a c l e1 0 GE n h a n c e m e n t N o t e3 3 2 1 9 3 . 1 Q u e r y i n gS e l e c tU n d o _ s q lF r o mF l a s h b a c k _ t r a n s a c t i o n _ q u e r yi ss l o w N o t e5 7 2 6 6 8 7 . 8B u g5 7 2 6 6 8 7-O E R I4 1 4 7q u e r y i n gF L A S H B A C K _ T R A N S A C T I O N _ Q U E R Y N o t e4 4 5 9 5 7 4 . 8B u g4 4 5 9 5 7 4-F L A S H B A C K _ T R A N S A C T I O N _ Q U E R Ys h o w sm u l t ir o wI N S E R Ta sS E L E C Ta so n l yo n er o w

Flashback Data Archive


A new database object, a flashback data archive is a logical container for storing historical information. It is stored in one or more tablespaces and tracks the history for one or more tables.The articles listed below help you in understanding the concepts,usage and known issues of the flashback data archive :

N o t e4 7 0 1 9 9 . 1 1 1 gf e a t u r eF l a s h b a c kD a t aA r c h i v eG u i d e . N o t e1 0 8 1 7 7 7 . 1D oD a t a P u m pE x p o r t / I m p o r tU t i l i t i e sW o r kW i t hF l a s h b a c kA r c h i v e dT a b l e s ? N o t e5 6 6 5 9 3 . 1 A r eF l a s h b a c kA r c h i v eT a b l e sE x p o r t e dD u r i n gS c h e m aE x p o r t

Flashback & Dataguard


Here are a list of notes to which provide information of effective usage of flashback in a dataguard environment.

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=27011017218006&id=1138253.1&displayIndex=20&_afrWindowMode=0&_adf.ctrl-state=jeiz

N o t e4 1 6 3 1 0 . 1R e i n s t a t i n gaP h y s i c a lS t a n d b yU s i n gB a c k u p sI n s t e a do fF l a s h b a c k N o t e8 0 5 4 3 8 . 1H o wT oO p e nP h y s i c a lS t a n d b yF o rR e a dW r i t eT e s t i n ga n dF l a s h b a c k N o t e8 3 8 2 4 9 . 1P h y s i c a lS t a n d b yR e a d / W r i t eT e s t i n gW i t hB e l a t e dF l a s h b a c kD a t a b a s e

4/5

3/7/2014

Document 1138253.1

N o t e8 3 8 2 4 9 . 1P h y s i c a lS t a n d b yR e a d / W r i t eT e s t i n gW i t hB e l a t e dF l a s h b a c kD a t a b a s e N o t e9 5 8 5 5 7 . 1H o wT oR e c o v e rF r o mAD r o p / T r u n c a t e / D e l e t eT a b l eD o n eO nP r i m a r yU s i n gF l a s h b a c kO nAS t a n d b yD a t a b a s e N o t e8 2 4 2 1 3 . 1E f f e c to fd o i n gP I T R( p o i n ti nt i m er e c o v e r y )/F l a s h b a c ko nP R I M A R Yw h e nP h y s i c a lS t a n d b yi np l a c eO R A 1 9 9 0 6 O R A 1 9 9 0 9O R A 0 1 1 1 0

Related Master Notes


N o t e1 1 9 9 8 0 3 . 1M a s t e rN o t eF o rO r a c l eB a c k u pA n dR e c o v e r y N o t e1 1 1 6 4 8 4 . 1M a s t e rN o t ef o rO r a c l eR e c o v e r yM a n a g e r( R M A N ) N o t e1 0 9 6 9 5 2 . 1M a s t e rN o t ef o rR e a lA p p l i c a t i o nC l u s t e r s( R A C )O r a c l eC l u s t e r w a r ea n dO r a c l eG r i dI n f r a s t r u c t u r e N o t e1 0 8 8 0 1 8 . 1M a s t e rN o t ef o rO r a c l eD a t a b a s eC o r r u p t i o n N o t e1 1 0 1 9 3 8 . 1M a s t e rN o t ef o rD a t aG u a r d

Using My Oracle Support Effectively


N o t e7 3 6 7 3 7 . 1M yO r a c l eS u p p o r t-T h eN e x tG e n e r a t i o nS u p p o r tP l a t f o r m N o t e8 6 8 9 5 5 . 1M yO r a c l eS u p p o r tH e a l t hC h e c k sC a t a l o g N o t e1 6 6 6 5 0 . 1W o r k i n gE f f e c t i v e l yW i t hG l o b a lC u s t o m e rS u p p o r t N o t e1 9 9 3 8 9 . 1E s c a l a t i n gS e r v i c eR e q u e s t sw i t hO r a c l eS u p p o r tS e r v i c e s

Generic Links
N o t e8 5 4 4 2 8 . 1P a t c hS e tU p d a t e sf o rO r a c l eP r o d u c t s N o t e1 0 6 1 2 9 5 . 1P a t c hS e tU p d a t e s-O n e o f fP a t c hC o n f l i c tR e s o l u t i o n N o t e8 8 1 3 8 2 . 1C r i t i c a lP a t c hU p d a t eO c t o b e r2 0 0 9P a t c hA v a i l a b i l i t yD o c u m e n tf o rO r a c l eP r o d u c t s N o t e9 6 7 4 7 2 . 1C r i t i c a lP a t c hU p d a t eJ a n u a r y2 0 1 0P a t c hA v a i l a b i l i t yD o c u m e n tf o rO r a c l eP r o d u c t s N o t e1 0 6 0 9 8 9 . 1C r i t i c a lP a t c hU p d a t eA p r i l2 0 1 0P a t c hA v a i l a b i l i t yD o c u m e n tf o rO r a c l eP r o d u c t s N o t e7 5 6 6 7 1 . 1O r a c l eR e c o m m e n d e dP a t c h e s-O r a c l eD a t a b a s e N o t e2 6 8 8 9 5 . 1O r a c l eD a t a b a s eS e r v e rP a t c h s e tI n f o r m a t i o n ,V e r s i o n s :8 . 1 .7t o1 1 . 2 . 0 N o t e1 6 1 5 4 9 . 1O r a c l eD a t a b a s eS e r v e ra n dN e t w o r k i n gP a t c h e sf o rM i c r o s o f tP l a t f o r m s

REFERENCES

Attachments
Different flashback options (26.08 KB)

Related
Products
Oracle Database Products > Oracle Database Suite > Oracle Database > Oracle Database - Enterprise Edition > Flashback Recovery > Flashback Database

Keywords
DATA GUARD; FLASHBACK_SCN; FRA; RAC Back to Top
Copy right (c) 2014, Oracle. A ll rights reserv ed. Legal Notices and Terms of Use Priv acy Statement

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=27011017218006&id=1138253.1&displayIndex=20&_afrWindowMode=0&_adf.ctrl-state=jeiz

5/5

You might also like