Oracle Database 10g: Backup and Recovery 1-2



Similar documents
Agenda. Overview Configuring the database for basic Backup and Recovery Backing up your database Restore and Recovery Operations Managing your backups

Oracle Recovery Manager

D78850GC10. Oracle Database 12c Backup and Recovery Workshop. Summary. Introduction. Prerequisites

D12CBR Oracle Database 12c: Backup and Recovery Workshop NEW

Configuring Backup Settings. Copyright 2009, Oracle. All rights reserved.

Use RMAN to relocate a 10TB RAC database with minimum downtime. Tao Zuo tao_zuo@npd.com NPD Inc. 9/2011

Oracle Database Backup & Recovery, Flashback* Whatever, & Data Guard

11. Oracle Recovery Manager Overview and Configuration.

Oracle 11g Database Administration

Maximum Availability Architecture. Oracle Best Practices For High Availability

Oracle Database B

Oracle Database. High Availability Overview 10g Release 2 (10.2) B

Implementing an Enterprise Class Database Backup and Recovery Plan

High Availability Databases based on Oracle 10g RAC on Linux

SQL-BackTrack the Smart DBA s Power Tool for Backup and Recovery

Ultimate Guide to Oracle Storage

TECHNICAL REPORT. Nimble Storage Oracle Backup and Recovery Guide

RMAN What is Rman Why use Rman Understanding The Rman Architecture Taking Backup in Non archive Backup Mode Taking Backup in archive Mode

Disaster Recovery for Oracle Database

Module 14: Scalability and High Availability

Restore and Recovery Tasks. Copyright 2009, Oracle. All rights reserved.

An Oracle White Paper March Backup and Recovery Strategies for the Oracle Database Appliance

Oracle Database 11g: Administration And Backup & Recover

RMAN BACKUP & RECOVERY. Recovery Manager. Veeratteshwaran Sridhar

Backup and Recovery. Oracle RMAN 11 g. Oracle Press ORACLG. Matthew Hart. Robert G. Freeman. Mc Graw Hill. Lisbon London Madrid Mexico City Milan

Oracle9i Database: Advanced Backup and Recovery Using RMAN

HP Data Protector 7.00 Integration Guide for Oracle and SAP

Backing up a Large Oracle Database with EMC NetWorker and EMC Business Continuity Solutions

Oracle Database. Backup and Recovery Basics 10g Release 1 (10.1) Part No. B

Oracle Database 11g: New Features for Administrators DBA Release 2

<Insert Picture Here> RMAN Configuration and Performance Tuning Best Practices

Oracle Database 11g: Administration Workshop II DBA Release 2

WHITE PAPER PPAPER. Symantec Backup Exec Quick Recovery & Off-Host Backup Solutions. for Microsoft Exchange Server 2003 & Microsoft SQL Server

Integrating Network Appliance Snapshot and SnapRestore with VERITAS NetBackup in an Oracle Backup Environment

ORACLE CORE DBA ONLINE TRAINING

Oracle Database 11g: Administration Workshop II DBA Release 2

12. User-managed and RMAN-based backups.

Oracle Database B

Oracle Database Disaster Recovery Using Dell Storage Replication Solutions

Database Recovery For Newbies

Oracle Recovery Manager 10g. An Oracle White Paper November 2003

Oracle Database 11g: Administration Workshop II Release 2

About the Author About the Technical Contributors About the Technical Reviewers Acknowledgments. How to Use This Book

Using Recovery Manager with Oracle Data Guard in Oracle Database 10g. An Oracle White Paper April 2009

Backup/Recovery Strategy and Impact on Applications. Jacek Wojcieszuk, CERN IT Database Deployment and Persistancy Workshop October, 2005

EMC Backup and Recovery for Microsoft SQL Server 2008 Enabled by EMC Celerra Unified Storage

Zero Downtime Backup solution for Oracle10g

Configuring Backup Settings Configuring and Managing Persistent Settings for RMAN Configuring Autobackup of Control File Backup optimization

Oracle Backup and Recovery Best Practices Dell Compellent Storage Center. Dell Compellent Technical Best Practices

Performing Database and File System Backups and Restores Using Oracle Secure Backup

OCP: Oracle Database 12c Administrator Certified Professional Study Guide. Exam 1Z0-063

Oracle 12c Recovering a lost /corrupted table from RMAN Backup after user error or application issue

Connectivity. Alliance Access 7.0. Database Recovery. Information Paper

DB2 9 for LUW Advanced Database Recovery CL492; 4 days, Instructor-led

EMC Data Domain Boost for Oracle Recovery Manager (RMAN)

MySQL Enterprise Backup

Oracle 11g New Features - OCP Upgrade Exam

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Administration Workshop II - LVC. 5 Jours [35 Heures]

EMC Data Domain Boost for Oracle Recovery Manager (RMAN)

ASM and for 3rd Party Snapshot Solutions - for Offhost. Duane Smith Nitin Vengurlekar RACPACK

Oracle Database 11g: Administration Workshop II

Oracle 11g DBA Training Course Content

Oracle 10g Feature: RMAN Incrementally Updated Backups

<Insert Picture Here> Pacific Gas and Electric Backup & Recovery Case Study

Backup and Recovery Solutions for Exadata. Ľubomír Vaňo Principal Sales Consultant

RMAN in the Trenches: To Go Forward, We Must Backup

Why Not Oracle Standard Edition? A Dbvisit White Paper By Anton Els

Maximize Availability With Oracle Database 12c

Connectivity. Alliance Access 7.0. Database Recovery. Information Paper

WHITE PAPER: ENTERPRISE SECURITY. Symantec Backup Exec Quick Recovery and Off-Host Backup Solutions

Oracle Database 10g: Administration Workshop II Release 2

ORACLE DATABASE 11G: COMPLETE

Oracle Backup & Recovery

Oracle Data Guard. Caleb Small Puget Sound Oracle Users Group Education Is Our Passion

Oracle RMAN disk-to-disk backup methods using the IBM Storwize V3700 storage system

ORACLE DATABASE HIGH AVAILABILITY STRATEGY, ARCHITECTURE AND SOLUTIONS

ORACLE DATABASE: ADMINISTRATION WORKSHOP I

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - New Features for Administrators Release 2. 5 Jours [35 Heures]

HP OpenView Storage Data Protector Integration Guide

Restoring To A Different Location With EBU And RMAN An AppsDBA Consulting White Paper

Strategies for Oracle Database Backup and Recovery: Case Studies. Mingguang Xu

Rob Zoeteweij Zoeteweij Consulting

A SURVEY OF POPULAR CLUSTERING TECHNOLOGIES

How To Backup And Restore A Database With A Powervault Backup And Powervaults Backup Software On A Poweredge Powervalt Backup On A Netvault 2.5 (Powervault) Powervast Backup On An Uniden Power

Feature. Database Backup and Recovery Best Practices

Backup and Recovery Solutions for Exadata. Cor Beumer Storage Sales Specialist Oracle Nederland

DISASTER RECOVERY STRATEGIES FOR ORACLE ON EMC STORAGE CUSTOMERS Oracle Data Guard and EMC RecoverPoint Comparison

WHITE PAPER. Oracle Backup and Recovery Essentials NFORMATION THAT EVERY ORACLE DATABASE ADMINISTRATOR SHOULD KNOW

How To Recover From A Crash On An Orgsoorora Database

Using Recovery Manager with Oracle Data Guard in Oracle9i. An Oracle White Paper January 2007

WHITE PAPER. Oracle Backup and Recovery Essentials INFORMATION THAT EVERY ORACLE DATABASE ADMINISTRATOR SHOULD KNOW

HP LeftHand SAN Solutions

Oracle Backup and Recover 101. Osborne Press ISBN

Oracle Maximum Availability Architecture with Exadata Database Machine. Morana Kobal Butković Principal Sales Consultant Oracle Hrvatska

Symantec Backup Exec 2014 Icon List

OPTIONS / AGENTS DESCRIPTION BENEFITS

MapGuide Open Source Repository Management Back up, restore, and recover your resource repository.

SnapManager for Oracle 2.2. Anand Ranganathan Product & Partner Engineer (PPE)

Oracle Database 11g: New Features for Administrators

Transcription:

Oracle Database 10g: Backup and Recovery 1-2

Oracle Database 10g: Backup and Recovery 1-3

What Is Backup and Recovery? The phrase backup and recovery refers to the strategies and techniques that are employed by database administrators to protect the database from loss and to reconstruct the database should loss occur. Oracle Database 10g: Backup and Recovery 1-4

Performing Backup and Recovery Operations for an Oracle Database Physical backups are backups of the physical files that comprise your Oracle database, including datafiles, control files, and archived redo log files. You can make backups of your database by using Recovery Manager (RMAN), a utility that creates and manages backups and enables you to perform recovery operations. Alternatively, you can create backups of your database files and perform recovery through a combination of SQL commands and operating system commands. RMAN is the preferred solution for backup and recovery operations for an Oracle database. Oracle Database 10g: Backup and Recovery 1-5

Slide 5 DM1 GUI interface is redundant Perhaps it would be better to write "and an Enterprise Manager user interface" Daniel Milne, 5/26/2006

Using Oracle Recovery Manager RMAN is the component of Oracle Database that is used to perform backup and recovery operations. It can make consistent and inconsistent backups, perform incremental or full backups, and back up either the whole database or a portion of it. RMAN uses its own powerful job control and scripting language, as well as a published API that interfaces RMAN with many popular backup software solutions. RMAN can store backups on disk for quick recovery or place them on tape for long-term storage. In order for RMAN to store backups on tape, an interface to the tape device known as a Media Management Library (MML) must be configured. Enterprise Manager supplies a graphical interface to the most commonly used RMAN functionality. Advanced backup and recovery operations are accessible through the RMAN command-line client. Oracle Database 10g: Backup and Recovery 1-6

Slide 6 DM2 I would move the explanation of the acronym to the top of the slide, for example, For the first bullet on the slide: - Recovery Manager (RMAN) For the last bullet: - Enterprise Manager uses RMAN to preform... Daniel Milne, 5/26/2006

Recovery Manager Components Recovery Manager executable: The Recovery Manager command-line interface is invoked through the RMAN client application. RMAN interprets user commands and appropriately invokes server sessions to perform the desired tasks. Enterprise Manager: Enterprise Manager Database Control supplies a graphical interface to the most commonly used RMAN functionality. Server sessions: The server processes (UNIX) or threads (Windows) invoked by RMAN connect to the target database to perform the backup, restore, and recovery functions through a PL/SQL interface. These sessions read or write files from or to disk, tape, or the Flash Recovery Area, which is a storage location specified as the default storage area for files related to database recovery. Target database: The database for which backup and recovery operations are being performed using RMAN is called the target database. The control file of the target database contains information about its physical structure, such as the size and location of datafiles, online and archived redo log files, and control files. This information is used by the server sessions invoked by RMAN in backup and recovery operations. Oracle Database 10g: Backup and Recovery 1-7

Recovery Manager Components (continued) Auxiliary database: An auxiliary database is used when creating a duplicate database or performing tablespace point-in-time recovery (TSPITR). For the tasks, the auxiliary database serves as the destination of the new copy of the database or the recovered tablespaces. An auxiliary database can reside on the same host as its parent or on a different host. Channel: A channel represents one stream of data to a device type. To perform and record backup and recovery operations, RMAN requires a link to the target database. A channel establishes this link by creating a session in the target database that is able to interface with the host file system (to interface with disks) and the Media Management Library (to interface with tapes). You can allocate channels manually or preconfigure channels by using automatic channel allocation. Flash Recovery Area: The Flash Recovery Area is a location in which Oracle Database can store and manage files related to backup and recovery. Additional information is provided later in the lesson. RMAN repository: RMAN maintains metadata about the target database and its backup and recovery operations in the RMAN repository. Among other things, RMAN stores information about its own configuration settings, the target database schema, archived redo logs, and all backup files that are on disk or tape. RMAN repository data is always stored in the control file of the target database. Recovery catalog: The RMAN repository data can optionally be kept in a recovery catalog, which is a separate Oracle database. Media Management Library: The Media Management Library (MML) is used by RMAN when writing to or reading from tapes. The additional media management software required for using the tape medium is provided by media and storage system vendors. Also, the Oracle Secure Backup product allows RMAN to back up to tape without requiring third-party tools. Oracle Database 10g: Backup and Recovery 1-8

Using Oracle Secure Backup The Oracle Secure Backup tape management system has been introduced to lower software costs and complexity. Oracle Secure Backup can back up all types of file-system files. Although Oracle Secure Backup has no specialized knowledge of database backup and recovery algorithms, it can serve as a media management layer for Recovery Manager (RMAN) through the system backup to tape (SBT) interface. In this capacity, Oracle Secure Backup provides the same services for RMAN as other supported third-party SBT libraries. Oracle Secure Backup delivers reliable database and file system backup to tape, with support for the major tape drives and libraries accessible through various protocols, including Small Computer System Interface (SCSI), Small Computer System Interface protocol (iscsi), Network Data Management Protocol (NDMP), and Fibre Channel. Note: Oracle continues to support third-party media management vendors (MMV) through its Backup Solutions Program (BSP). Oracle Secure Backup uses the same RMAN API as third-party media management software, so you have a choice of products to use for writing your database backups to tape. Oracle Database 10g: Backup and Recovery 1-9

Slide 9 DM4 In notes, you have "Fibre Channel" -- should the spelling be "Fiber"? Daniel Milne, 5/26/2006

Overview of Oracle Backup Methods A whole database backup includes all datafiles and at least one control file. Partial database backups may include zero or more tablespaces, zero or more datafiles, and may or may not include a control file. Full backups are non-incremental RMAN backups. You can make a full backup of only one datafile. Full does not refer to how much of the database is backed up, but to the fact that the backup is not incremental. Incremental backups make a copy of all data blocks that have changed since some previous backup. Oracle Database 10g supports two levels of incremental backup (0 and 1). A level 0 or baseline backup is equivalent to a full backup and contains all data blocks. A level 1 cumulative incremental backs up all database blocks changed since the level 0 backup. A level 1 differential incremental backs up all database blocks changed since a level 0 or level 1 backup. To restore using incremental backups, the baseline backup must first be restored, and then the incremental backup. You can make incremental backups with Recovery Manager (RMAN). Offline backups (also known as cold or consistent backups) are taken while the database is not open. They are consistent because at the time of the backup, the system change number (SCN) in the datafile headers matches the SCN in the control files. Oracle Database 10g: Backup and Recovery 1-10

Overview of Oracle Backup Methods (continued) Online backups (also known as hot or inconsistent backups) are taken while the database is open. The backups are inconsistent because, with the database open, there is no guarantee that the datafiles are synchronized with the control files. Oracle Database 10g: Backup and Recovery 1-11

When Do You Need to Use a Backup for Recovery? When you experience media failure, such as the loss of a disk drive, you may need to recover your database. This type of recovery typically requires the use of a backup of the affected files. In the case of user errors, when data in the database has been incorrectly updated or deleted, a backup may be required to enable you to recover the database to a point before the unwanted change. Oracle Database 10g: Backup and Recovery 1-12

Responding to User Error When a user error occurs, your recovery options are based on the techniques and features you implemented in anticipation of the error. In later lessons, you investigate tablespace point-in-time recovery, database point-in-time recovery, and Oracle Flashback features. Oracle Database 10g: Backup and Recovery 1-13

Overview of Data Recovery Crash (instance) recovery and media recovery are performed to restore data integrity. Crash recovery happens the first time an Oracle database instance is started after a crash (or SHUTDOWN ABORT). The goal of crash recovery is to bring the datafiles to a transaction-consistent state, preserving all committed changes up to the point when the instance failed. Media recovery is initiated when you have experienced a loss of datafiles or all control files. You can perform a complete recovery to bring the database back to the point of failure by restoring datafiles from a backup and performing a recovery operation. In addition, you can perform an incomplete recovery operation by recovering the database to a named time or system change number (SCN). Oracle Database 10g: Backup and Recovery 1-14

Slide 14 DM5 Consider defining "instance" here (or in the notes)? It may be that the audience for this class understands the term and a definition is not necessary. Daniel Milne, 5/30/2006

Oracle Database Architecture: Crash Recovery Crash recovery employs two distinct operations: Rolling forward the current, online datafiles by applying both committed and uncommitted transactions contained in online redo records Rolling back changes made in uncommitted transactions to their original state Oracle Database 10g: Backup and Recovery 1-15

Oracle Database Architecture: Recovery After Media Failure Media recovery is used to recover from a lost or damaged current datafile, server parameter file (SPFILE), or control file. It can also recover changes that were recorded in the redo log files but not in the datafiles for a tablespace that went offline without the OFFLINE NORMAL option. Media recovery has the following characteristics: Must be explicitly invoked by the DBA Applies needed changes to datafiles that have been restored from backup, not to online datafiles Requires the use of archived redo log files as well as the online redo log file Oracle Database 10g: Backup and Recovery 1-16

Developing a Backup and Recovery Strategy for Your Oracle Database Developing best practices for backup and recovery of your Oracle database begins with an assessment of all service level criteria for your environment, including recovery point and time objectives, data availability requirements, and data criticality. Oracle Database 10g: Backup and Recovery 1-17

Additional Oracle Solutions for High Availability High availability systems are computing environments configured to provide nearly full-time availability. These systems typically have redundant hardware and software that make them available despite failures. Well-designed high availability systems avoid having single points of failure. When failures occur, the failover processes implemented as part of the system move processing performed by the failed component to backup components. Oracle has a number of products and features that provide high availability in cases of unplanned downtime or planned downtime. In this course, you focus on various backup and recovery techniques that help you to meet high availability needs. Additional Oracle solutions for high availability include Oracle Data Guard, Oracle Real Application Clusters (RAC), Oracle Streams, and LogMiner. Oracle Database 10g: Backup and Recovery 1-18

Oracle High Availability Solutions for Unplanned Downtime Oracle provides high availability solutions for the following types of unplanned downtime: Computer failure: The system on which the database operates is unavailable Storage failure: The storage holding some or all of the database is unavailable Human errors: Unintentional or malicious actions cause data within the database to become logically corrupt or unusable Data corruption: A hardware or software component causes corrupt data to be read or written to the database Site failure: An event causes all or a significant portion of an application to stop processing or slow to an unusable level The table on the following page describes the appropriate Oracle solution for the various types of unplanned downtimes. Additionally, an estimate of recovery time is provided for each. Use this table to help plan the appropriate implementation of Oracle solutions to enable you to meet your recovery goals. Oracle Database 10g: Backup and Recovery 1-19

Slide 19 DM3 Do you need to spell out ASM? This is the first time this acronym is used. Daniel Milne, 5/26/2006

Oracle High Availability Solutions for Unplanned Downtime (continued) Source: Oracle Database High Availability Overview Outage Type Oracle Solution Benefits Recovery Time Computer failures Storage failure Fast-start Fault Recovery RAC Data Guard Tunable and predictable cache recovery Automatic recovery of failed nodes and instances, fast connection failover, and service failover Fast start failover and fast connection failover Minutes to hours No downtime < 1 minute Oracle Streams Online replica database No downtime ASM Mirroring; online auto rebalance No downtime RMAN with flash recovery area Data Guard Human errors Oracle security features Fully managed database recovery and managed disk-based backups Fast start failover and fast connection failover Minutes to hours < 1 minute Oracle Streams Online replica database No downtime Restrict user access No downtime Data corruption Oracle Flashback technology Fine-grained and database-wide rewind capability < 30 minutes LogMiner Log analysis Minutes to hours HARD Corruption prevention within a storage array No downtime RMAN with flash recovery area Data Guard Online block media recovery and managed disk-based backups Automatic validation of redo blocks; fast failover to an uncorrupted standby database Minutes to hours < 1 minute Oracle Streams Online replica database No downtime Site failure RMAN Fully managed database recovery Hours to days Data Guard Fast start failover and fast connection failover Seconds to 5 minutes Oracle Streams Online replica database Seconds to 5 minutes Oracle Database 10g: Backup and Recovery 1-20

Oracle Database 10g: Backup and Recovery 1-21