Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation...

26

Transcript of Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation...

Page 1: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.
Page 2: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

Oracle Recovery Manager (RMAN) 10g : Reloaded

Tammy Bednar

Sr. Product Manager

Oracle Corporation

Session id: 40104

Page 3: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

RMAN: ReloadedRMAN: Reloaded

Page 4: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

Agenda

What is Recovery Manager? Automatic disk based recovery Optimized incremental backups Incrementally updated backups Just say no to shrinking backup windows A new twist to transportable tablespaces Q&A

Page 5: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

Recovery Manager: Oracle’s Backup & Recovery Utility

Over 25 Man Years of Engineering Technology provides:

– Intimate knowledge of database file formats and recovery procedures

– Manages and automates the backup, restore, and recovery process

– Creates and maintains backup policies

– Catalogs all backup and recovery activities

– Operates on-line and in parallel for fast processing

– Corrupt block detection during backup and restore and the ability to validate backups

– Integrated with Enterprise Manager & 3rd party network backup products

Media Management Layer

Enterprise ManagerEnterprise Manager& 3& 3rdrd Party Tools Party Tools

Network

RecoveryRecoveryManagerManager

Page 6: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

New World: Disk Based Data Recovery

Disk economics are close to tape

Disk is better than tape– Random access to any data

We rearchitected our recovery strategy to take advantage of these economics

– Random access allows us to backup and recover just the changes to the database

Backup and Recovery goes from hours to minutes

2000’s - 200 GB

1980’s - 200 MB

1000x increase

Page 7: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

Flash Recovery Area Unified storage location for all recovery files and recovery related activities

in an Oracle Database.– Centralized location for control files, online redo logs, archive logs,

flashback logs, backups– A flash recovery area can be defined as a directory, file system, or ASM

disk group – A single recovery area can be shared by more than one database

Minimize the number of initialization parameters to set when you create a database

– Define a database area and flash recovery area location– Oracle creates and manages all files using OMF

Database Area Flash Recovery Area

Page 8: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

Flash Recovery Area Space Management

Disk limit is reached and a new file needs to be written

into the Flash Recovery Area

Backup Files

to be deleted

Archive Logs &Database File

Backups

Warning Issued to user

Space Pressure occurs

RMAN updates

list of files that

may be deleted

12

Oracle

delete files that

are no longer

required on

disk.

Flash Recovery

Area

Page 9: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

Benefits to Using a Flash Recovery Area

Unifies the storage location of related recovery files

Manages the disk space allocated for recovery files automatically

Simplifies database administrator tasks Much faster backup Much faster restore Much more reliable due to inherent reliability of disks

Page 10: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

Change Tracking File Optimizes incremental

backups– Track which blocks have

changed since last backup

Integrated change tracking file– Changed blocks are

tracked as redo is generated

– RMAN backup automatically uses changed block list

101100101011000011101001011010101110011

ChangeTracking File

Flash RecoveryArea

Page 11: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

Incremental Backup and Changed Tracking File

Benefits Faster

– Reduces the amount of time needed for daily backups

– Saves network bandwidth when backing up over a network

Better– Reduce the backup file storage– Enables fast backups of changed blocks

Simpler– Automatically integrates with backup and

recovery – zero effort 

Page 12: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

Incrementally Updated Backups

Eliminates the need to perform a whole database backup. Reduces the time required for media recovery since the image

copy is updated with the latest block changes.

RMAN

RECOVER COPY OF DATAFILE

RMANincremental

backup

Initiate Merge

IncrementallyUpdated Backups

Page 13: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

Eliminate Shrinking Backup Window Syndrome!

Fully automatic disk based backup and recovery

– Set it and Forget it

Nightly incremental backup rolls forward recovery area backup

– Changed blocks are tracked in production DB

Full scan is never needed– Dramatically faster (20x)– Blocks validated to prevent

corruption of backup copy

Use low cost ATA disk array for recovery area

Two Independent Disk Systems

Flash RecoveryArea

Nightly ApplyValidatedIncremental

WeeklyArchiveTo Tape

DatabaseArea

Page 14: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

Oracle Suggested Strategy

Easy & Reliable– Integrates the

Oracle DB 10g features

Fast Recovery Options

– Backup and Recovery goes from hours to minutes

Page 15: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

Automated Disk Based Backup & Recovery Benefits

Much faster backup– Just propagate changes to recovery area– Dramatic difference for large databases

Much faster restore – Copy backup files from the Flash Recovery Area– Or simply use the copy in the Flash Recovery

Area Much more reliable due to inherent reliability of disks

– Tapes not needed for normal backup/recovery, only for archiving

Page 16: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

Backup Management

List RMAN backups– View files included

in a backup set Perform maintenance

– Remove obsolete backups with a single click

Page 17: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

What is Transportable Tablespace?

OS copyFile 1 File

2expdat.dmp

File 1 File

2expdat.dmp

2424

Mechanism to quickly move a tablespace across Oracle databases

Most efficient means to move bulk data between databases.

– File is simply copied at OS level

Page 18: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

Oracle10g Cross Platform Transportable Tablespace

Solaris (SPARC)

Open VMS (Intel IA64)

Windows (Intel IA32/64)

Linux (Intel IA32/64)

AIX (PowerPC)

HP-UX (PA-RISC)

Tru64 UNIX (Alpha)

HP-UX (Intel IA64)

Small Endian Platforms Big Endian Platforms

Simple File Copy Within These

Simple File Copy Within These

High SpeedFile Convert

RMAN

Page 19: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

Cross Platform Transportable Tablespace Benefits

Fast data distribution in Data Warehousing environment (data marts)

Used for publishing structured data (i.e. catalogs on CDs)

Sharing of read only tablespaces by heterogeneous systems

Allowing a database to be migrated from one platform to another

Page 20: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

Other Oracle10g Backup & Recovery Enhancements Compression of archive logs and backups Restore tolerates missing or corrupt backup

– Automatically fails over to previous backup

Automated recovery through a previous point in time recovery

– Recovery through resetlogs

Fully automated tablespace point-in-time recovery Automatic channel failover on backup or restore Time window based throttling of backups Tablespace Rename Drop Database

Page 21: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

Oracle Database 10Oracle Database 10gg

Unified Unified storage location of related recovery files

ManagedManaged disk space for recovery files automatically

SimplifiedSimplified database administration tasks

Much faster backupfaster backup

Much faster restorefaster restore

Much more reliablemore reliable due to inherent reliability of disks

Page 22: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

Next StepsHigh Availability Sessions from Oracle

11:00 AM

How Oracle Database 10g Revolutionizes Availability and

Enables the Grid

3:30 PM

Oracle Recovery Manager (RMAN) 10g: Reloaded

5:00 PM

Proven Techniques for Maximizing Availability

8:30 AM

Oracle Database 10g - RMAN and ATA Storage in Action

 

11:00 AM

Oracle Data Guard: Maximum Data Protection at Minimum Cost

 

1:00 PM

Oracle Database 10g Time Navigation: Human-Error Correction

 

4:30 PM

Data Guard SQL Apply: Back to the Future

Wednesday in Moscone Room 304Tuesday in Moscone Room 304

For More Info On Oracle HA Go To http://otn.oracle.com/deploy/availability/

Page 23: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

Next StepsHigh Availability Sessions from Oracle

8:30 AM in Moscone Room 304

Oracle Database 10g Data Warehouse Backup and Recovery:

Automatic, Simple, Reliable

8:30 AM in Moscone Room 104

Building RAC Clusters over InfiniBand

Thursday

For More Info On Oracle HA Go To http://otn.oracle.com/deploy/availability/

Real Application Clusters

Data Guard

Database Backup & Recovery

Flashback Recovery

LogMiner, Online Redefinition, and Cross Platform Transportable

Tablespaces

Database HA Demos All Four DaysIn The Oracle Demo Campground

Page 24: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

Resources

HA OTN: http://otn.oracle.com/deploy/availability

RMAN Discussion Forum http:// otn.oracle.com

MetaLink http:// MetaLink.oracle.com &Q U E S T I O N SQ U E S T I O N S

A N S W E R SA N S W E R S

Page 25: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.

Reminder – please complete the OracleWorld online session survey

Thank you.

Page 26: Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id: 40104.