10 Copyright © 2007, Oracle. All rights reserved. Using RMAN Enhancements.

Slides:



Advertisements
Similar presentations
Copyright © 2009 Rolta International, Inc., All Rights Reserved ID#: S RMAN 11g New Features R1 and R2 Michael R. Messina, Management Consultant.
Advertisements

ITEC474 INTRODUCTION.
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.
RMAN Restore and Recovery
Oracle’s Backup and Recovery Tool
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.
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.
Introduction to Oracle Backup and Recovery
Using RMAN to Perform Recovery
Backup Infrastructure – Additional Information Gordon D. Brown, RAL Carlos Fernando Gamboa, BNL 3D Workshop, CNAF, Bologna, Italy 13 th June 2007.
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.
7 Copyright © 2006, Oracle. All rights reserved. Dealing with Database Corruption.
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.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
11g(R1/R2) Data guard Enhancements Suresh Gandhi
15 Copyright © 2007, Oracle. All rights reserved. Performing Database Backups.
9 Copyright © 2004, Oracle. All rights reserved. Flashback Database.
Module 6: Implementing SQL Server Replication in an Enterprise Environment.
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.
11 Copyright © 2004, Oracle. All rights reserved. Dealing with Database Corruption.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
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.
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.
22 Copyright © 2008, Oracle. All rights reserved. Multi-User Development.
8 Copyright © 2007, Oracle. All rights reserved. Using RMAN to Duplicate a Database.
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
C Copyright © 2007, Oracle. All rights reserved. Security New Features.
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.
17 Copyright © 2006, Oracle. All rights reserved. Information Publisher.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
RMAN Maintenance.
RMAN Maintenance.
Recovery Catalog Creation and Maintenance
Performing Database Backups
Configuring Recovery Manager
Performing Tablespace Point-in-Time Recovery
Performing Tablespace Point-in-Time Recovery
Duplicating a Database
Using the RMAN Recovery Catalog
Configuring Backup Settings
Presentation transcript:

10 Copyright © 2007, Oracle. All rights reserved. Using RMAN Enhancements

Copyright © 2007, Oracle. All rights reserved Objectives After completing this lesson, you should be able to: Describe the new and enhanced RMAN features in Oracle Database 11g Configure archivelog deletion policies Duplicate active databases by using the Oracle network (without backups) Back up large files in multiple sections Create archival backups for long-term storage Manage the recovery catalog—for example, merge multiple catalog versions Describe the use of virtual private catalogs

Copyright © 2007, Oracle. All rights reserved RMAN: New Features Image copies Backup pieces Backup data Data files Flash Recovery Area Auxiliary database Change tracking file Recovery Manager (RMAN) Improved performance by: –Fast incremental backups on physical standby –Improved block media recovery Target database

Copyright © 2007, Oracle. All rights reserved Optimized Backups Increased speed of compression by using the ZLIB algorithm Improved protection by enhanced block corruption detection CONFIGURE COMPRESSION ALGORITHM TO ZLIB;

Copyright © 2007, Oracle. All rights reserved Optimized Backups Optimized undo backup for automatically reduced backup time and storage Flexibility to use VSS-enabled software –Allows the database to participate in snapshots coordinated by VSS-compliant backup management tools and storage products –Database automatically recovered upon snapshot restore via RMAN

Copyright © 2007, Oracle. All rights reserved Optimized Backups Simplified archive log management in a multiple- component environment Increased availability by failover of backup to optional destinations Image copies Backup pieces Backup data Data files Flash Recovery Area Target database Redundant archive log files Archive log files X

Copyright © 2007, Oracle. All rights reserved RMAN: New Features The following pages have more details about: Faster and optimized backup through intrafile parallel backup and restore Simplified active database duplication Simplified archival backups for long-term storage Simplified information infrastructure by merging catalogs Enhanced security by restricting DBA backup catalog access to owned databases “virtual private catalog”

Copyright © 2007, Oracle. All rights reserved RMAN Notes Only

Copyright © 2007, Oracle. All rights reserved Parallel Backup and Restore for Very Large Files Multisection backups of a single file: Are created by RMAN, with your specified size value Are processed independently (serially or in parallel) Produce multipiece backup sets Improve performance of the backup

Copyright © 2007, Oracle. All rights reserved Using RMAN Multisection Backups The BACKUP and VALIDATE DATAFILE commands option: SECTION SIZE [M | K | G] Section 1 Section 2 Section 3 Section 4 Channel 1 Channel 2 Channel 3 Channel 4 One large data file

Copyright © 2007, Oracle. All rights reserved Duplicating a Database With network (no backups required) Including customized SPFILE Via Enterprise Manager or RMAN command line Active source database Destination or AUXILIARY database TCP/IP

Copyright © 2007, Oracle. All rights reserved Active Database Duplication: Selecting the Source

Copyright © 2007, Oracle. All rights reserved Selecting the Destination

Copyright © 2007, Oracle. All rights reserved Customizing Destination Options

Copyright © 2007, Oracle. All rights reserved Choosing Database Configuration

Copyright © 2007, Oracle. All rights reserved Scheduling Job Execution

Copyright © 2007, Oracle. All rights reserved Reviewing the Job

Copyright © 2007, Oracle. All rights reserved Database Duplication: Job Run

Copyright © 2007, Oracle. All rights reserved The RMAN DUPLICATE Command DUPLICATE TARGET DATABASE TO dbtest FROM ACTIVE DATABASE SPFILE PARAMETER_VALUE_CONVERT '/u01', '/u02' SET SGA_MAX_SIZE = '200M' SET SGA_TARGET = '125M' SET LOG_FILE_NAME_CONVERT = '/u01','/u02' DB_FILE_NAME_CONVERT = '/u01','/u02';

Copyright © 2007, Oracle. All rights reserved Creating a Standby Database with the DUPLICATE Command DUPLICATE TARGET DATABASE FOR STANDBY FROM ACTIVE DATABASE SPFILE PARAMETER_VALUE_CONVERT '/u01', '/u02' SET "DB_UNIQUE_NAME"="FOO" SET SGA_MAX_SIZE = "200M" SET SGA_TARGET = "125M" SET LOG_FILE_NAME_CONVERT = '/u01','/u02' DB_FILE_NAME_CONVERT = '/u01','/u02';

Copyright © 2007, Oracle. All rights reserved Creating Archival Backups with EM

Copyright © 2007, Oracle. All rights reserved Creating Archival Backups with RMAN Specifying the KEEP clause, when the database is online includes both data file and archive log backup sets: List all restore points, known to the RMAN repository: Display a specific restore point: KEEP {FOREVER | UNTIL TIME [=] ' date_string '} NOKEEP [RESTORE POINT rsname] LIST RESTORE POINT ALL; LIST RESTORE POINT 'rsname';

Copyright © 2007, Oracle. All rights reserved Managing Archival Database Backups 1.Archiving a database backup: 2.Changing the status of a database copy: CHANGE COPY OF DATABASE CONTROLFILE NOKEEP; CONNECT TARGET / CONNECT CATALOG CHANGE BACKUP TAG 'consistent_db_bkup' KEEP FOREVER;

Copyright © 2007, Oracle. All rights reserved Managing Recovery Catalogs Managing recovery catalogs: 1.Create the recovery catalog. 2.Register your target databases in the recovery catalog. 3.If desired, merge recovery catalogs. 4.If needed, catalog any older backups. 5.If needed, create virtual recovery catalogs for specific users. 6.Protect the recovery catalog.

Copyright © 2007, Oracle. All rights reserved Notes Only

Copyright © 2007, Oracle. All rights reserved Managing Catalogs: Using EM 3 2 1

Copyright © 2007, Oracle. All rights reserved The IMPORT CATALOG Command 1.Connecting to the destination recovery catalog: 2.Importing metadata for all registered databases: 3.Importing metadata for two registered databases: 4.Importing metadata from multiple catalogs: IMPORT CATALOG IMPORT CATALOG IMPORT CATALOG IMPORT CATALOG NO UNREGISTER; IMPORT CATALOG DBID= , ; CONNECT CATALOG

Copyright © 2007, Oracle. All rights reserved The IMPORT CATALOG Command Notes Page

Copyright © 2007, Oracle. All rights reserved RMAN base catalog Virtual private catalogs (VPC) Enhancing security by restricting access to metadata Databases registered in RMAN catalog Creating and Using Virtual Private Catalogs

Copyright © 2007, Oracle. All rights reserved Using RMAN Virtual Private Catalogs 1.Create an RMAN base catalog: 2.Grant RECOVERY_CATALOG_OWNER to VPC owner: 3a.Grant REGISTER to the VPC owner, or: 3b.Grant CATALOG FOR DATABASE to the VPC owner: RMAN> CONNECT CATALOG RMAN> CREATE CATALOG; SQL> CONNECT AS SYSDBA SQL> GRANT RECOVERY_CATALOG_OWNER to vpcowner RMAN> CONNECT CATALOG RMAN> GRANT REGISTER DATABASE TO vpcowner; RMAN>GRANT CATALOG FOR DATABASE db10g TO vpcowner

Copyright © 2007, Oracle. All rights reserved Using RMAN Virtual Private Catalogs 4a.Create a virtual catalog for 11g clients, or: 4b.Create a virtual catalog for pre-11g clients: 5.Register a new database in the catalog: 6.Use the virtual catalog: RMAN> CONNECT CATALOG RMAN> CREATE VIRTUAL CATALOG; SQL> CONNECT SQL> exec catowner.dbms_rcvcat.create_virtual_catalog; RMAN> CONNECT TARGET / CATALOG RMAN> REGISTER DATABASE; RMAN> CONNECT TARGET / CATALOG RMAN> BACKUP DATABASE;

Copyright © 2007, Oracle. All rights reserved Summary In this lesson, you should have learned how to: Describe the new and enhanced RMAN features in Oracle Database 11g Configure archivelog deletion policies Duplicate active databases by using the Oracle network (without backups) Back up large files in multiple sections Create archival backups for long-term storage Manage recovery catalog—for example, merge multiple catalog versions Describe the use of virtual private catalogs

Copyright © 2007, Oracle. All rights reserved Practice 10: Overview Using RMAN Enhancements This practice covers the following topics: Duplicating an active database Merging catalogs

Copyright © 2007, Oracle. All rights reserved