17 Copyright © Oracle Corporation, 2002. All rights reserved. Recovery Catalog Creation and Maintenance.

Slides:



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

5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
17 Copyright © 2005, Oracle. All rights reserved. Performing Flashback.
DBA 101 Bootcamp New DBA Series Backup 101 April 12, 20111Paper #352.
1 Getting The Most Out of RMAN By: Charles Pfeiffer CIO, Remote Control DBA (888)
5 Copyright © 2006, Oracle. All rights reserved. Database Recovery.
Database Backup and Recovery
RMAN Restore and Recovery
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.
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.
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.
Using RMAN to Perform Recovery
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
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.
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.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
15 Copyright © 2007, Oracle. All rights reserved. Performing Database Backups.
9 Copyright © 2004, Oracle. All rights reserved. Flashback Database.
16 Copyright © Oracle Corporation, All rights reserved. Managing Privileges.
18 Copyright © Oracle Corporation, All rights reserved. Workshop.
7 Copyright © 2004, Oracle. All rights reserved. Recovering from Noncritical Losses.
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.
Week 3 Lecture 1 The Redo Log Files and Diagnostic 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.
12 Copyright © 2009, Oracle. All rights reserved. Managing Backups, Development Changes, and Security.
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.
3 Copyright © 2004, Oracle. All rights reserved. Creating an Oracle Database.
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
10 Copyright © 2007, Oracle. All rights reserved. Using RMAN Enhancements.
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.
8 Copyright © Oracle Corporation, All rights reserved. Managing Tablespaces and Data files.
23 Copyright © 2004, Oracle. All rights reserved. Preferring the Past: Flashback.
Control File Information The database name The timestamp of database creation The names and locations of associated datafiles and redo log files Tablespace.
Oracle Recovery Manager Overview and Configuration
RMAN Maintenance.
RMAN Maintenance.
Recovery Catalog Creation and Maintenance
STREAMS failover and resynchronization
Configuring Recovery Manager
Performing Tablespace Point-in-Time Recovery
Duplicating a Database
Using the RMAN Recovery Catalog
Performing Database Recovery
Presentation transcript:

17 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Creation and Maintenance

17-2 Copyright © Oracle Corporation, All rights reserved. Objectives After completing this lesson, you should be able to do the following: Describe the contents of the recovery catalog List the RMAN features which require the recovery catalog Create the recovery catalog Maintain the recovery catalog by using RMAN commands Use RMAN to register, resynchronize, and reset a database

17-3 Copyright © Oracle Corporation, All rights reserved. Objectives Query the recovery catalog to generate reports and lists Create, store, and run scripts Describe methods for backing up and recovering the recovery catalog

17-4 Copyright © Oracle Corporation, All rights reserved. Overview Target database Stored scripts Reporting REPORT LIST Backup Restore/Recovery Recovery Manager (RMAN) Catalog Maintenance Register Resynchronize Reset Change/Delete/Catalog Backup /Restore/Recover Enterprise Manager Control file Catalog database

17-5 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Contents The recovery catalog is an optional repository containing information on: Datafile and archived redo log file backup sets and backup pieces Datafile copies Archived redo log files The physical structure of the target database

17-6 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Contents The recovery catalog can also contain: Persistent RMAN configuration settings Stored job scripts

17-7 Copyright © Oracle Corporation, All rights reserved. Benefits of Using a Recovery Catalog The following features are available only when you use a recovery catalog: Metadata about multiple target databases in one catalog Metadata about multiple incarnations of a single target database Historical metadata Reporting on the target database at a noncurrent time

17-8 Copyright © Oracle Corporation, All rights reserved. Creating Recovery Catalog Target database 1. Create tablespace 2. Create catalog owner 3. Grant privileges 4. Create catalog 5. Connect to target database 6. Register target database Control file Catalog database

17-9 Copyright © Oracle Corporation, All rights reserved.

17-10 Copyright © Oracle Corporation, All rights reserved.

17-11 Copyright © Oracle Corporation, All rights reserved. Connecting Using a Recovery Catalog Example on UNIX Example on Windows NT C:\> set ORACLE_SID=db01 C:\> rman target / RMAN> connect catalog $ ORACLE_SID=db01; export ORACLE_SID $ rman target / RMAN> connect catalog

17-12 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Maintenance Target database Stored scripts Reporting REPORT LIST Backup Restore / Recovery Recovery Manager (RMAN) Catalog Maintenance Register Resynchronize Reset Change/Delete/Catalog Backup /Restore/Recover Enterprise Manager Control file Catalog database

17-13 Copyright © Oracle Corporation, All rights reserved. Catalog Maintenance

17-14 Copyright © Oracle Corporation, All rights reserved. Resynchronization of the Recovery Catalog Resynchronization of the recovery catalog happens: Automatically with BACKUP and COPY commands Manually with RESYNC CATALOG command RMAN > Target database Control file Catalog database

17-15 Copyright © Oracle Corporation, All rights reserved. Using RESYNC CATALOG for Resynchronization Issue the RESYNC CATALOG command when you: Add or drop a tablespace Add or drop a datafile Relocate a database file $ rman target / catalog RMAN> RESYNC CATALOG;

17-16 Copyright © Oracle Corporation, All rights reserved. Resetting a Database Incarnation Use the RESET DATABASE command: –To direct RMAN to create a new database incarnation record –To distinguish between opening with RESETLOGS and an accidental restore operation of an old control file Open with RESETLOGS after RESET DATABASE

17-17 Copyright © Oracle Corporation, All rights reserved.

17-18 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Reporting Target database Stored scripts Reporting REPORT LIST Backup Restore/Recovery Recovery Manager (RMAN) Catalog Maintenance Register Resynchronize Reset Change Backup /Restore/Recover Enterprise Manager Control file Catalog database

17-19 Copyright © Oracle Corporation, All rights reserved. Viewing the Recovery Catalog Data dictionary views: RC_DATABASE RC_DATAFILE RC_STORED_SCRIPT RC_STORED_SCRIPT_LINE RC_TABLESPACE

17-20 Copyright © Oracle Corporation, All rights reserved.

17-21 Copyright © Oracle Corporation, All rights reserved. Stored Scripts Target database Stored scripts Reporting REPORT LIST Backup Restore/Recovery Recovery Manager (RMAN) Catalog Maintenance Register Resynchronize Reset Change Backup /Restore/Recover Enterprise Manager Control file Catalog database

17-22 Copyright © Oracle Corporation, All rights reserved. Script Examples Use CREATE SCRIPT to store a script. Use EXECUTE SCRIPT to run a script. RMAN> create script Level0Backup { backup incremental level 0 format ‘/u01/db01/backup/%d_%s_%p’ fileperset 5 (database include current controlfile); sql ‘alter system archive log current’; } RMAN > run {execute script Level0Backup;}

17-23 Copyright © Oracle Corporation, All rights reserved. Managing Scripts Use REPLACE SCRIPT to rewrite a script Use DELETE SCRIPT to remove a script Use PRINT SCRIPT to display a script RMAN> REPLACE SCRIPT Level0Backup { … fileperset 3 … } RMAN> DELETE SCRIPT Level0Backup; RMAN> PRINT SCRIPT Level0Backup;

17-24 Copyright © Oracle Corporation, All rights reserved. Backup of Recovery Catalog Whole database backup of the database containing the recovery catalog Tablespace backup of the tablespace containing the recovery catalog Export: –If catalog database is not very large, you can export the database at regular intervals. –If catalog database is large, export the schema containing the recovery catalog.

17-25 Copyright © Oracle Corporation, All rights reserved. Recovering the Recovery Catalog Create a database from a previous backup of the recovery catalog database. Relocate the catalog into another database and import the data. Import the entire database from an export.

17-26 Copyright © Oracle Corporation, All rights reserved. Summary In this lesson, you should have learned that: Before using the recovery catalog, you must register the target database You should resynchronize the catalog frequently using the control file Scripts can be stored in the recovery catalog

17-27 Copyright © Oracle Corporation, All rights reserved. Practice 17 Overview This practice covers the following topics: Creating the recovery catalog Registering a target database with the recovery catalog Listing the incarnation of a target database Storing a script in the recovery catalog and executing it

17-28 Copyright © Oracle Corporation, All rights reserved.