What is Flashback? Technology that allows you to revert the database to a point in time in the past Several versions of flashback available Different types.

Slides:



Advertisements
Similar presentations
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
Advertisements

17 Copyright © 2005, Oracle. All rights reserved. Performing Flashback.
5 Copyright © 2006, Oracle. All rights reserved. Database Recovery.
Database Backup and Recovery
RMAN Restore and Recovery
Backup and Recovery (2) Oracle 10g CAP364 1 Hebah ElGibreen.
Backup and Recovery Part 1.
Chapter 12 Performing Incomplete Recovery. Background Viewed as one of the more difficult chapters to write Thought it was important to put in material.
Harvard University Oracle Database Administration Session 11 Database Recovery.
CHAPTER 16 User-Managed Backup and Recovery. Introduction to User Managed Backup and Recovery Backup and recover is one of the most critical skills a.
Configuring Recovery Manager
4 Copyright © 2008, Oracle. All rights reserved. Configuring Backup Specifications.
Chapter 5 Configuring the RMAN Environment. Objectives Show command to see existing settings Configure command to change settings Backing up the controlfile.
9 Copyright © Oracle Corporation, All rights reserved. Oracle Recovery Manager Overview and Configuration.
CHAPTER 17 Configuring RMAN. Introduction to RMAN RMAN was introduced in Oracle 8.0. RMAN is Oracle’s tool for backup and recovery. RMAN is much more.
Oracle9i Database Administrator: Implementation and Administration
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
Agenda  Overview  Configuring the database for basic Backup and Recovery  Backing up your database  Restore and Recovery Operations  Managing your.
Introduction to Oracle Backup and Recovery
Using RMAN to Perform Recovery
CHAPTER 16 User-Managed Backup and Recovery. Introduction to User Managed Backup and Recovery Backup and recover is one of the most critical skills a.
Oracle Recovery Manager (RMAN) 10g : Reloaded
PPOUG, 05-OCT-01 Agenda RMAN Architecture Why Use RMAN? Implementation Decisions RMAN Oracle9i New Features.
Recovery Manager Overview Target Database Recovery Catalog Database Enterprise Manager Recovery Manager (RMAN) Media Options Server Session.
NoCOUG 2005 Winter Conference NoCOUG 2005 Winter Conference Oracle 10g Backup and Recovery New Features Daniel T. Liu Senior Technical Consultant First.
5 Copyright © 2004, Oracle. All rights reserved. Using Recovery Manager.
5 Copyright © 2008, Oracle. All rights reserved. Using RMAN to Create Backups.
Chapter 7 Making Backups with RMAN. Objectives Explain backup sets and image copies RMAN Backup modes’ Types of files backed up Backup destinations Specifying.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
Chapter 9 Scripting RMAN. Background Authors felt that scripting was a topic not covered well Authors wanted to cover both Unix/Linux and Windows environments.
15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
11g(R1/R2) Data guard Enhancements Suresh Gandhi
9 Copyright © 2004, Oracle. All rights reserved. Flashback Database.
Backup and Recovery Overview Supinfo Oracle Lab. 6.
17 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Creation and Maintenance.
Chapter 8Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 8 Complete Recovery with Recovery Manager.
6 Copyright © 2006, Oracle. All rights reserved. Flashback.
15 Copyright © Oracle Corporation, All rights reserved. RMAN Incomplete Recovery.
Week 3 Lecture 1 The Redo Log Files and Diagnostic Files.
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
3 Copyright © 2006, Oracle. All rights reserved. Using Recovery Manager.
© 2006 Northgate Information Solutions plc and its associated companies. All rights reserved. Slide 1.
Overview of Oracle Backup and Recovery Darl Kuhn, Regis University.
18 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Concepts.
6 Copyright © 2007, Oracle. All rights reserved. Performing User-Managed Backup and Recovery.
2 Copyright © 2007, Oracle. All rights reserved. Configuring for Recoverability.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
18 Copyright © 2004, Oracle. All rights reserved. Recovery Concepts.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
6 Copyright © Oracle Corporation, All rights reserved. Backup and Recovery Overview.
19 Copyright © 2004, Oracle. All rights reserved. Database Backups.
13 Copyright © 2007, Oracle. All rights reserved. Using the Data Recovery Advisor.
9 Copyright © 2004, Oracle. All rights reserved. Incomplete Recovery.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
23 Copyright © 2004, Oracle. All rights reserved. Preferring the Past: Flashback.
Control File Information The database name The timestamp of database creation The names and locations of associated datafiles and redo log files Tablespace.
Recovery Catalog Creation and Maintenance
Performing Flashback.
Oracle9i Database Administrator: Implementation and Administration
Performing Tablespace Point-in-Time Recovery
Performing Tablespace Point-in-Time Recovery
Performing User-Managed Backup and Recovery
Performing Database Recovery
Chapter 5 The Redo Log Files.
Oracle 12R2 Database Flashback Technologies
Presentation transcript:

What is Flashback? Technology that allows you to revert the database to a point in time in the past Several versions of flashback available Different types of flashback appropriate in different circumstances

Flashback Database Conceptually similar to "rewinding database in time" Changes occur at block level Similar to incomplete recovery RESETLOGS must be performed Can help recovery from user error Cannot help recovery from physical corruption Cannot help recovery from loss of media

Flashback Query Query Database with Previous Information Single or Multiple Select Statements Good for Tracking Data Corruption Row Changes over Time Comparison of System after Bulk Update

Flashback Transaction Automates repair process Used in conjunction with Flashback Versions Query Can construct reversing SQL Does NOT roll back system, so RESETLOGS not needed

Flashback and Table Changes FLASHBACK TABLE allows you to reverse changes made on the structure of the table without affecting its contents. FLASHBACK DROP allows you to un-drop a table if needed.

Many different levels of database problems from which the database or data needs to be recovered Possibly most frustrating is the user error You can probably use one of the Flashback Technologies to recover with minimal downtime and data loss Choosing Wisely

Different Scenarios SymptomTechnology User/Tablespace Dropped or table truncated FLASHBACK DATABASE Table DroppedFLASHBACK DROP Table Structure Changed Incorrectly FLASHBACK TABLE User Error Data Entered Incorrectly and Saved FLASHBACK TRANSACTION Just want to view what the data looked like in the past. FLASHBACK QUERY

Configuring Flashback Database SQL>ALTER SYSTEM SET DB_RECOVERY_FILE_DEST= '/BIG_FLASH_RECOVERY_AREA'; SQL>ALTER SYSTEM SET DB_RECOVERY_FILE_DEST_SIZE=16G; SQL>ALTER SYSTEM SET DB_FLASHBACK_RETENTION_TARGET=2880 SQL>SHUTDOWN IMMEDIATE; SQL>STARTUP MOUNT SQL>ALTER DATABASE FLASHBACK ON; SQL>ALTER DATABASE OPEN;

Monitoring Basics Retention "target" is just that Check for FLASHBACK being enabled: SQL>SELECT FLASHBACK_ON FROM V$DATABASE; Unix check for Recovery Writer ( RVWR ) process $ps –ef | grep -i rvwr

Estimating Space Space needed for flashback logs: SQL>SELECT * FROM v$flashback_database_log Disk I/O for flashback area: SQL>SELECT * FROM v$flashback_database_stat

Using the Enterprise Manager Recovery Wizard to Flashback Database Log in to EM Click the Maintenance link Select the Perform Recovery option Select Datafiles to be recovered Select "Recover to current time"

Using the Enterprise Manager Recovery Wizard to Flashback Database Wait 3-5 minutes then click "Perform Recovery" button Provide credentials Select "Whole Database" as object to be recovered Choose "Recover to the current time or a previous point-in-time" Click "Next" button in upper-right-hand corner

Using the Enterprise Manager Recovery Wizard to Flashback Database Select "Recover to a prior point-in-time" Enter SCN greater than oldest flashback SCN, then click Next Click "Yes, use flashback to bring the database back to the specified point-in- time" button, then click Next Review RMAN script then click SUBMIT

Flash Recovery Area This area is the default location for all recovery-related files. These files can include the following: Archive logs RMAN backups Controlfile auto-backups Multiplexed controlfiles Redo log copies Flashback log files

Recovery Area Space Usage If it gets full what happens? Recovery area contains only RMAN files: Backups don't occur. Recovery area contains only archive logs: DML ceases until space is cleared. FLASHBACK DATABASE enabled: Target time will not be met.

Reclaiming Space The V$RECOVERY_FILE_DEST view gives an overall view of space utilization. You can have RMAN reclaim some of this space by executing the DELETE OBSOLETE command from within RMAN.