RMAN: Your New Best Friend for Backup and Recovery Ruth Gramolini ORACLE DBA Vermont Department of Taxes.

Slides:



Advertisements
Similar presentations
LA Oracle Users Group Succeeding with RMAN Tim Gorman Principal SageLogix, Inc.
Advertisements

INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
1 Chapter 15 Duplicating Databases and Transporting Data.
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.
RMAN RECOVERY SCENARIOS.  1) Complete Recovery  2) Loss of System datafile  3) Loss of Non-System datafile  4) Restoring a datafile if no backups.
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’s Backup and Recovery Tool
Configuring Recovery Manager
Chapter 5 Configuring the RMAN Environment. Objectives Show command to see existing settings Configure command to change settings Backing up the controlfile.
Backup & Recovery with RMAN
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.
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.
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
Navigating the Oracle Backup Maze Robert Spurzem Senior Product Marketing Manager
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.
Backup & Recovery Concepts for Oracle Database
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.
Recovery Manager Overview Target Database Recovery Catalog Database Enterprise Manager Recovery Manager (RMAN) Media Options Server Session.
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.
Backup and Recovery Protects From Data Loss. Backup and Recovery Protects From Data Loss Provides for Media Recovery.
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.
15 Copyright © 2007, Oracle. All rights reserved. Performing Database Backups.
Backup and Recovery Overview Supinfo Oracle Lab. 6.
17 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Creation and Maintenance.
Database structure and space Management. Segments The level of logical database storage above an extent is called a segment. A segment is a set of extents.
IT Database Administration Section 09. Backup and Recovery Backup: The available options Full Consistent (cold) Backup Database shutdown, all files.
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.
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.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
8 Copyright © 2007, Oracle. All rights reserved. Using RMAN to Duplicate a Database.
6 Copyright © Oracle Corporation, All rights reserved. Backup and Recovery Overview.
10 Copyright © 2007, Oracle. All rights reserved. Using RMAN Enhancements.
19 Copyright © 2004, Oracle. All rights reserved. Database Backups.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
RMAN Maintenance.
Sharing experience on RMAN backups ...
Database recovery contd…
RMAN Maintenance.
Backup and Recovery (1) Oracle 10g Hebah ElGibreen CAP364.
Performing Database Backups
Clonedb: The quick and easy cloning solution you never knew you had.
Performing Tablespace Point-in-Time Recovery
Performing User-Managed Backup and Recovery
Performing Database Recovery
Database Backup and Recovery
Presentation transcript:

RMAN: Your New Best Friend for Backup and Recovery Ruth Gramolini ORACLE DBA Vermont Department of Taxes

Topics of Discussion n Top 10 reasons to love RMAN. n The golden rule of backup and recovery n Is it worth learning RMAN? n Is the learning curve too steep? n Should I use a recovery catalog? n Why I use rman?

Top Ten Reasons To Love RMAN 1. Powerful (RESTORE DATABASE, BACKUP DATABASE) 2. Reliable (VALIDATE) 3. Light (no need to do BEGIN BACKUP/END BACKUP) 4. Flexible (DISK, ‘SBT_TAPE’) 5. Versatile (COPY, BACKUP, CATALOG previous backups) 6. Customizable (FULL, INCREMENTAL, CUMULATIVE INCREMENTAL) 7. Helpful (REPORT NEED BACKUP, REPORT UNRECOVERABLE) 8. Clone-enabled (DUPLICATE) 9. Integrated (part of the RDBMS) 10. Well-timed (SET UNTIL) From: ORACLE B ACKUP AND RECOV ERY STRATEGIES : HOW I LERNED D TOL LOVE RECOVERY MANAGER Francisco M. Sánchez, Oracle Corporation

Powerful (RESTORE DATABASE, BACKUP DATABASE) n single commands to accomplish complicated tasks n scripts can be stored in the recovery catalog..write once, use over and over

Reliable (VALIDATE) n CORRUPTION HAPPENS! n Using the VALIDATE function you can find corruption and fix it before a disaster. n Oracle’s method for fixing corruption: Find the problem. Fix the problem by; Restore from a backup taken before the corruption occurred. Recover the database to the desired point-in-time. This is easy with RMAN!

Light (no need to do BEGIN BACKUP/END BACKUP) n Ends the problem of fractured blocks without generating huge volumes of redo n The datafile header blocks are not frozen! n Rman uses the same technology that makes sqlplus consistent.

FLEXIBLE (DISK, ‘SBT_TAPE’) n Backup to disk or tape (using 3rd party media manager). n Backup from disk to tape with OS backup software.

Versatile (COPY, BACKUP, CATALOG previous backups) n You can do an image copy of any database, tablespace,or datafile. n Backup databases with 9 levels of incremental backup. n Put previous backups into an rman catalog (8i).

Customizable (FULL, INCREMENTAL, CUMULATIVE INCREMENTAL) n As stated, only rman allows 9 levels of incremental backups. You can use this flexablilty to save disk space. n Level 0 is the lowest level and is essentially a full backup including the controlfile. (Very important for point-in-time recovery!)

Helpful (REPORT NEED BACKUP, REPORT UNRECOVERABLE) n Report on datafiles needing backup n Find files which are unrecoverable. n See files which can be deleted.

Clone-enabled (DUPLICATE) n Use the DUPLICATE command to create clones for testing,reporting, and developing. n In 8.0.xx, you can also clone databases. You have to fool rman into thinking that it is restoring a backup to it’s target. You fool rman by restoring the backup on a different node, and rename the clone.

Integrated ( part of the RDBMS) n RMAN comes with the ORACLE database. n Uses the same Oracle internals to ensure a consistent database backup as sqlplus uses. n It therefore does not generate lots of redo.

Well-timed (SET UNTIL) n Point-in-time recovery, PITR, to a point-in-time earlier than the present (database must be in archivelog mode). n TSPITR, tablespace point-in-time recovery for recovering lost objects,etc (to a clone database ).

Y^hr The Golden Rule of backup and recovery backup and recovery The golden rule of backup and recovery can be formulated as : n the set of disks or other media that contain the redundancy set should be separate from the disks that contain the datafiles, online redo logs, and control files. The redundancy set should be kept separated from the primary copies in every way possible... (Francesco Sanchez Oracle Corp.) n You can put your backupsets on any disk, or sbt_tape allowing you to adhere to this rule. And further, you can use the OS backup facility to put these on tape for storage.

Is it worth learning RMAN n Did I mention, it’s free! n 3 features that no other 3rd party or home-grown solution offers, according to Tim Gorman of SageLogix, Inc. are reason enough to use rman. 1. Hot backups without ALTER ABLESPACE.. BEGIN BACKUP; It’s not the command but what it does…rman ends block fracture and lots of redo. 2. Incremental backups..no one else has them! 3. Detecting corrupted blocks while you do backup.

Is the learning curve too steep? n Again, to cite Tim Gorman, if you want to do even one of these things then rman is the solution: 1. Increase the volume of the data you are backing up. 2. Increase the speed or decrease the duration of backups. 3.Increase the speed or decrease the duration of restores and recoveries. 4. Prevent loss of any data, ever. n Since rman is the only way to accomplish all of these things, then perhaps the learning curve is not steep at all. n Michel Abbey, of Pythian Group, said ‘If you are not using rman now, you will be.’ Why not start up the curve now and not wait until you have to.

Should I use a recovery catalog? n You don’t have to have a very large database to hold the catalog. n The catalog is a series of tables and views which you can query with SQL*plus. n You can store scripts right in the catalog, and reuse them at will. n There will still be backup information in the controlfile, so you can use rman nocatalog if needed. n Why not? Unless you have a good reason not to use a recovery catalog, then you should.

Why I use rman. n When I was interviewed for my current job I was asked whether I could prevent data loss with my backup strategy. I said yes, I was sure that Oracle had a way to do this. I was hired. n Since I had to come through, I started researching Oracle’s backup options, and found rman. n I implemented a backup strategy using rman and made good on my promise thanks to rman. n Rman has gotten better with each version so I will continue to use it. And it’s free!