RMAN RECOVERY SCENARIOS.  1) Complete Recovery  2) Loss of System datafile  3) Loss of Non-System datafile  4) Restoring a datafile if no backups.

Slides:



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

1 Chapter 15 Duplicating Databases and Transporting Data.
Harvard University Oracle Database Administration Session 10 Database Backups.
5 Copyright © 2006, Oracle. All rights reserved. Database Recovery.
Advanced Databases DBA: Backups 1. Advanced Databases Agenda Define backup Discuss Backup Terminology Explain various backup and restore options in Oracle.
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 5Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 5 User-Managed Incomplete 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.
CHAPTER 5 Managing Control Files, Online Redo Logs, and Archiving.
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.
The Oracle Recovery Manager (RMAN)
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
CHAPTER 18 RMAN Backups and Reporting. Introduction to RMAN Backups and Reporting The focus of this chapter is backups of: Datafiles Control files Archived.
CERN IT Department CH-1211 Genève 23 Switzerland t Recovery Exercise Wrap-up Jacek Wojcieszuk, CERN IT-DM Distributed Database Operations.
Agenda  Overview  Configuring the database for basic Backup and Recovery  Backing up your database  Restore and Recovery Operations  Managing your.
Oracle backup and recovery strategy
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.
20 Copyright © 2004, Oracle. All rights reserved. Database Recovery.
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
Oracle Recovery Manager (RMAN) 10g : Reloaded
PPOUG, 05-OCT-01 Agenda RMAN Architecture Why Use RMAN? Implementation Decisions RMAN Oracle9i New Features.
SRUTHI NAGULAVANCHA CIS 764, FALL 2008 Department of Computing and Information Sciences (CIS) Kansas State University -1- Back up & Recovery Strategies.
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.
Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.
RMAN: Your New Best Friend for Backup and Recovery Ruth Gramolini ORACLE DBA Vermont Department of Taxes.
15 Copyright © 2007, Oracle. All rights reserved. Performing Database Backups.
9 Copyright © 2004, Oracle. All rights reserved. Flashback Database.
CHAPTER 5 Managing Control Files and Online Redo Logs.
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.
15 Copyright © Oracle Corporation, All rights reserved. RMAN Incomplete Recovery.
Advanced Databases DBA: Security and Backups Guide to Oracle 10g 1.
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.
10 Copyright © Oracle Corporation, All rights reserved. User-Managed Backups.
Backup and Recovery Part 2. Online backup Online backup requirements: Backup all data files (file system copy) Backup all redo information produced during.
Overview of Oracle Backup and Recovery Darl Kuhn, Regis University.
12 Copyright © Oracle Corporation, All rights reserved. User-Managed Complete Recovery.
6 Copyright © 2007, Oracle. All rights reserved. Performing User-Managed Backup and Recovery.
2 Copyright © 2007, Oracle. All rights reserved. Configuring for Recoverability.
8 Copyright © 2007, Oracle. All rights reserved. Using RMAN to Duplicate a Database.
10 Copyright © 2007, Oracle. All rights reserved. Using RMAN Enhancements.
19 Copyright © 2004, Oracle. All rights reserved. Database Backups.
9 Copyright © 2004, Oracle. All rights reserved. Incomplete Recovery.
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.
Control File Information The database name The timestamp of database creation The names and locations of associated datafiles and redo log files Tablespace.
IS232 Lab 7. What Is a Control File? Every Oracle Database has a control file, which is a small binary file that records the physical structure of the.
Oracle Standby Implementation Tantra Invedy. Standby Database Introduction Fail over Solution Disaster Recovery Solution if remote Ease of implementation.
TYPES OF BACKUP AND RECOVERY
RMAN Maintenance.
RMAN Maintenance.
Recovery Catalog Creation and Maintenance
Backup and Recovery (1) Oracle 10g Hebah ElGibreen CAP364.
Performing Database Backups
Performing User-Managed Backup and Recovery
Performing Database Recovery
Presentation transcript:

RMAN RECOVERY SCENARIOS

 1) Complete Recovery  2) Loss of System datafile  3) Loss of Non-System datafile  4) Restoring a datafile if no backups  5) Restoring a tablespace  6) Loss of controlfiles  7) Loss of online redolog files Agenda

 Rman started from version 8  Rman backup is taken by oracle when dba submits it as a job  Rman backup does not backup by file(cb or hb or mirror image backups).Rman backup is content backup  Rman backups those used blocks(not by entire file)  Rman offers two types of backups 1)Regular backup(used blocks) 2)Incremental backup(changed blocks)  Rman takes less time and backup space  We need not depend on writing batch files like shell scripts in unix as Rman has its own scripting language which is platform independent INTRODUCTION TO RMAN

 Rman is capable of cleanup of obsolete archivelogs at the end of successful backup  From oracle 10g it started offering compressed backup(even less time/space)  Rman can perform backup of multiple destinations parallel  At the end of successful Rman backup we can ask Rman to check for the validity of the backup  Using Rman we can identify corrupted blocks and recover them  We need not depend on o/s schedulars like cron in unix as it has its own schedular

RESTORE AND RECOVERY CONCEPTS  We take the cold backup by shutting down the database followed by backup of C/R/D files at o/s level  If the database is in NALM(No archive log mode) and in case of database crash we can only go for simple restore(SR)  If the database is in ALM(Archive log mode) we have a choice of 1)Simple Restore(SR) 2)Restore+Recovery(R+R)  Recoveries are of two types 1)Complete Recovery(CR) 2)Incomplete Recovery(ICR)

 We use archive log files for recoveries  CR would be possible only if we have both *Current control file *Current online redolog file  If any of the above two files is missing then we endup performing ICR  ICR can be done in following ways *Until cancel *Until time *Until SCN

 At the end of ICR 1) we must open the database with resetlogs option 2)Immediately take one consistent cold backup  CR can be done in 2 ways *Online(If system dbf file is present) *Offline(If system dbf file is unavailable)  Whenever we perform ICR by opening the database with resetlogs option a new incarnation will be generated and all the backups taken with previous incarnations with orphand status will become invalid backups and they are not useful for restoring the database

Vva CONTROL FILE FIXED AREA ROTATION AREA Db name Contains names and locations of datafiles and redolofiles Timestamp of db creation Whether the db is in noarchive or archivelog mode Checkpoint info Log sequence number Last backup information Contains info of RMAN backups

COMPLETE RECOVERY

LOSS OF SYSTEM DATAFILE

LOSS OF NON SYSTEM DATAFILE

RESTORING A UNBACKED UP DATAFILE

RESTORING A TABLSEPACE

LOSS OF CONTROL FILES

LOSS OF ONLINE REDOLOG FILES

Thank you Pete N Ephanga Recovery Solution Engineer SunGard Availablity Services