flashback chart

2
PrecisionOharts DATABASE a\ rt 3 A |. I a\ \t o - - r) a\ \t L ''_\ Maximrze Av ailabilitv with Flashback Flashback was introduced in Oracle9i through the DBMS-FLASHBACK package to enable DBAs to view older versions of modified data, and through Oraclel0g Flashback Techniques were developed to become easier and flexible. I real life human errors and mistakes could cost the whole enterprise a valuable time rn'asted through system outage cased by standard recovery processes initiated by DBAs in order to bring back the lost data. Now Flashback can eliminate this issue by providing you with the capabilities to recover/ query, and compare old modified data with minimal downtime. What is Flashback? Flashback is a revolutionary technology in recovery; this technique had been introduced and enhanced over time to minimize applications downtime caused by human errors. Flashback can be used to recover committed changes if were done by mistake, recover dropped tables, and compare before and after image of data with minimal efforts. Flashback Techniques Oracle's flashback technologies have implemented different techniques that suite almost every type of human error requiring recovery. The types of Flash back currently supported by Oracle Database 119l . Flashback Database . Flashback Droo o Flashback Table . Flashback Query . Flashback Versions Query . Flashback Transactions Query Flashback Database DBAs may have situations when multiple tables were modified by batch jobs, or when related transaction take place and the result need to be undone, previously DBA had to perform point-in-time incomplete recovery by restoring backup and apply redo changes until a desired time to undo the changes, this process is time consuming and cause the database to had a longer downtime due to the restoration of all datafiles and apply a large number of archived logs. Using flashback database will reduce time for incomplete recovery using special architecture. Architecture When Flashback Database option is configured, the server starts a new buffer - Flashback Buffer - in the SGA, this buffer will log flashback data which are old images of data blocks before changes toke place. The size of Flashback Buffer depends on the size of the Log Buffer. A Background process named Recovery Writer (RVWR) will start also, this process will write flashback data from the flashback buffer to the Flashback database logs, and logs circular, which means they will be reused. Flashback logs are stored in location specified by DB_RECOVERY__FI LE_DEST parameter and have a lifespan depending on retention period parameter (in minutes) DB_FLASHBACK, RETENTION-TARGET. When yOu usE FLASHBACKDATABASE command, the flashback logs are used to restore to the data status before the given time or marker. Redo data is used to roll forward to the desired flashback time and fill the gaps. Flash Recovery Area The Flash recover area is a location on your storage media that hold flashback logs generated by the flashback process, in addition, it may hold several oracle files like RMAN backups, control file backups, archived Logs and more. DB_RECOVERY-FI LE*DEST initialization parameter will control where to create the recovery area. You must allocate this area on storage subsystem that has adequate space and enough resources to manage the load. The total size of the Flashback recovery area considers not only the database file, but also the archived files. Flashback Logs The Flashback database technique implements new type of logs named flashback logs; the logs are generated on regular interval and dumped in the location specified by init.ora parameter DB.,,RECOVERY__FILE_DEST. They store entire block structure for the data before modification and used to rewind data changes when executing FLASHBACK DATABASE command. Flashback Retention Your recovery requirements control lifespan of flashback logs in recovery area, init.ora parameter for this purpose DB_FLASH BACK_RETENTION-TARGET can be set to a number of seconds for how long you want to keep the logs, default value is 24 hours. This parameter can be altered dynamically using the ALTER SYSTEM SET SQL command. Undo Tablespace The size of the undo tablespace must be configured to support the required retention timeframe. The parameter U N DO'TABLESPACE specifies the tablespace name. The instance can have multiple undo tablespace, but one active undo tablespace at startup only. f-'";A lY t'''*J-q" utt u Flash Recovery Area Data base Flashback Logs Fig. 1 : Flashback Architecture

Upload: lana74

Post on 07-Apr-2018

227 views

Category:

Documents


0 download

TRANSCRIPT

8/6/2019 Flashback Chart

http://slidepdf.com/reader/full/flashback-chart 1/1

PrecisionOharts DATABASE

U

-

Maximrze Av ailabilitv with FlashbackFlashback was introduced in Oracle9i through the DBMS-FLASHBACK package

to enable DBAs to view older versions of modified data, and through Oraclel0gFlashback Techniques were developed to become easier and flexible. I real life

human errors and mistakes could cost the whole enterprise a valuable time

rn'asted through system outage cased by standard recovery processes initiated by

DBAs in order to bring back the lost data. Now Flashback can eliminate this issue

by providing you with the capabilities to recover/ query, and compare old

modified data with minimal downtime.

What is Flashback?

Flashback is a revolutionarytechnology in recovery; this techniquehad been introduced and enhanced

over time to minimize applicationsdowntime caused by human errors.Flashback can be used to recovercommitted changes if were done bymistake, recover dropped tables, andcompare before and after image ofdata with minimal efforts.

Flashback Techniques

Oracle's flashback technologies haveimplemented different techniques thatsuite almost every type of humanerror requiring recovery. The types ofFlash back currently supported byOracle Database 119l

. Flashback Database

. Flashback Drooo Flashback Table. Flashback Query. Flashback Versions Query. Flashback Transactions Query

Flashback DatabaseDBAs may have situations whenmultiple tables were modified bybatch jobs, or when relatedtransaction take place and the resultneed to be undone, previously DBA

had to perform point-in-time

incomplete recovery by restoringbackup and apply redo changes until a

desired time to undo the changes, thisprocess is time consuming and causethe database to had a longerdowntime due to the restoration of all

datafiles and apply a large number ofarchived logs. Using flashbackdatabase will reduce time forincomplete recovery using specialarchitecture.

ArchitectureWhen Flashback Database option is

configured, the server starts a new

buffer - Flashback Buffer - in theSGA, this buffer will log flashback datawhich are old images of data blocksbefore changes toke place. The size ofFlashback Buffer depends on the sizeof the Log Buffer. A Backgroundprocess named Recovery Writer

(RVWR) will start also, this process willwrite flashback data from the flashbackbuffer to the Flashback database logs,and those logs are circular, which means

they will be reused. Flashback logs arestored in location specified byDB_RECOVERY__FI LE_DEST parameterand have a lifespan depending on

retention period parameter (in minutes)DB_FLASHBACK, RETENTION-TARGET.

When yOu usE FLASHBACKDATABASEcommand, the flashback logs are used torestore to the data status before thegiven time or marker. Redo data is used

to roll forward to the desired flashback

time and fill the gaps.

Flash Recovery Area

The Flash recover area is a location onyour storage media that hold flashbacklogs generated by the flashback process,

in addition, it may hold several oracle fileslike RMAN backups, control file backups,archived Logs and more.DB_RECOVERY-FI LE*DEST initialization

parameter will control where to create therecovery area. You must allocate this area

on storage subsystem that has adequatespace and enough resources to managethe load. The total size of the Flashback

recovery area considers not only thedatabase file, but also the archived files.

Flashback Logs

The Flashback database techniqueimplements new type of logs namedflashback logs; the logs are generated onregular interval and dumped in thelocation specified by init.ora parameterDB.,,RECOVERY__FILE_DEST. They storeentire block structure for the data beforemodification and used to rewind datachanges when executing FLASHBACK

DATABASE command.

Flashback RetentionYour recovery requirements controllifespan of flashback logs in recoveryarea, init.ora parameter for this purpose

DB_FLASH BACK_RETENTION-TARGET

can be set to a number of seconds forhow long you want to keep the logs,

default value is 24 hours. This parameter

can be altered dynamically using theALTER SYSTEM SET SQL command.

Undo Tablespace

The size of the undo tablespace must beconfigured to support the requiredretention timeframe. The parameterU N DO'TABLESPACE specifies thetablespace name. The instance can havemultiple undo tablespace, but one activeundo tablespace at startup only.

f-'";A

lY t'''*J-q"utt u

Flash Recovery AreaData base

Flashback Logs

Fig. 1 : Flashback Architecture