2 Copyright © 2007, Oracle. All rights reserved. Configuring for Recoverability.

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 © 2006, Oracle. All rights reserved. Database Recovery.
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.
Oracle9i Database Administrator: Implementation and Administration
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
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.
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.
4 Copyright © 2006, Oracle. All rights reserved. Recovering from Noncritical Losses.
15 Copyright © 2007, Oracle. All rights reserved. Performing Database Backups.
9 Copyright © 2004, Oracle. All rights reserved. Flashback Database.
18 Copyright © Oracle Corporation, All rights reserved. Workshop.
17 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Creation and Maintenance.
15 Copyright © Oracle Corporation, All rights reserved. RMAN Incomplete Recovery.
Week 3 Lecture 1 The Redo Log Files and Diagnostic Files.
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
8 Copyright © Oracle Corporation, All rights reserved. Configuring the Database Archiving Mode.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
3 Copyright © 2006, Oracle. All rights reserved. Using Recovery Manager.
Configuring the Database Archiving Mode
Overview of Oracle Backup and Recovery Darl Kuhn, Regis University.
12 Copyright © Oracle Corporation, All rights reserved. User-Managed Complete Recovery.
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 © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
16 Copyright © 2005, Oracle. All rights reserved. Performing Database Recovery.
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.
18 Copyright © 2004, Oracle. All rights reserved. Recovery Concepts.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
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.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
What is Flashback? Technology that allows you to revert the database to a point in time in the past Several versions of flashback available Different types.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
Copyright  Oracle Corporation, All rights reserved. 3 Oracle Backup and Recovery Configuration.
10 Copyright © 2007, Oracle. All rights reserved. Managing Undo Data.
RMAN Maintenance.
Introduction.
RMAN Maintenance.
Recovery Catalog Creation and Maintenance
Backup and Recovery (1) Oracle 10g Hebah ElGibreen CAP364.
Configuring for Recoverability
Performing Database Backups
Configuring Recovery Manager
Workshop.
Configuring Backup Settings
Configuring for Recoverability
Performing Database Recovery
Chapter 5 The Redo Log Files.
Presentation transcript:

2 Copyright © 2007, Oracle. All rights reserved. Configuring for Recoverability

Copyright © 2007, Oracle. All rights reserved Objectives After completing this lesson, you should be able to: Invoke RMAN and set and list simple configurations Configure your database in ARCHIVELOG mode Configure multiple archive log file destinations to increase availability Specify a retention policy Configure the Flash Recovery Area Describe the benefits of using the Flash Recovery Area

Copyright © 2007, Oracle. All rights reserved Purpose of Backup and Recovery Functionality Backup and recovery functionality is needed for the following: Data protection –Media failure –User errors –Application errors Data preservation Data transfer

Copyright © 2007, Oracle. All rights reserved Typical Backup and Recovery Tasks To be able to recover from data loss problems with minimal down time, you should be prepared to do the following: Configure the database for recoverability. Define a backup schedule. Plan and test different types of failure scenarios. Monitor and troubleshoot the backup and recovery environment. Restore data from backups. Recover transactions to a desired point in time.

Copyright © 2007, Oracle. All rights reserved Typical Backup and Recovery Tasks Full Notes Page

Copyright © 2007, Oracle. All rights reserved Oracle Backup and Recovery Solutions These Oracle utilities and features provide the tools necessary to maintain a recoverable system: Recovery Manager (RMAN) –Incremental backups –Block media recovery –Unused block compression –Binary compression –Backup encryption Data Pump

Copyright © 2007, Oracle. All rights reserved Using Recovery Manager $ rman target / RMAN> BACKUP DATABASE; Starting backup at 10-JUN-07. RMAN> LIST BACKUP; BS Key Type LV Size Device Type Elapsed Time Completion Time Full 1.06G DISK 00:01:49 10-JUN-07. RMAN> DELETE OBSOLETE;. Do you really want to delete the above objects (enter YES or NO)? YES deleted archived log.

Copyright © 2007, Oracle. All rights reserved Using Recovery Manager Full Notes Page

Copyright © 2007, Oracle. All rights reserved Types of RMAN Commands RMAN commands are of the following types: Stand-alone command: –Is executed individually at the RMAN prompt –Cannot appear as subcommands within RUN Job command: –Must be within the braces of a RUN command –Is executed as a group Some commands can be executed as either a stand-alone or a job command.

Copyright © 2007, Oracle. All rights reserved Job Commands: Example Job commands appear inside a RUN command block: RMAN>RUN 2> { 3> ALLOCATE CHANNEL c1 DEVICE TYPE DISK 4> FORMAT "/disk2/%U"; 5> BACKUP AS BACKUPSET DATABASE; 6> SQL 'alter system archive log current'; 7> } Deallocated after the RUN block completes Execution of entire block starts when this line is entered.

Copyright © 2007, Oracle. All rights reserved Configuring Your Database for Backup and Recovery Operations Operate the database in ARCHIVELOG mode. Configure the Flash Recovery Area. Archiver (ARCn) Archived redo log files Online redo log files Archived redo log files Control file backups Data file backups

Copyright © 2007, Oracle. All rights reserved ARCHIVELOG Mode Archiver (ARCn) Archived redo log files Online redo log files

Copyright © 2007, Oracle. All rights reserved Configuring ARCHIVELOG Mode To place the database in ARCHIVELOG mode, perform the following steps: Using Enterprise Manager –Select the “ARCHIVELOG Mode” check box. –Click Apply. The database can be set to ARCHIVELOG mode only from the MOUNT state. –Click Yes when asked whether you want to restart the database. Using SQL commands –Mount the database. –Issue the ALTER DATABASE ARCHIVELOG command. –Open the database.

Copyright © 2007, Oracle. All rights reserved Configuring ARCHIVELOG Mode Full Notes Page

Copyright © 2007, Oracle. All rights reserved Configuring Archive Log Destinations Online redo log files Archived redo log files Archived redo log files Online redo log files Archived redo log files LOG_ARCHIVE_DEST_n LOG_ARCHIVE_DEST LOG_ARCHIVE_DUPLEX_DEST Local and remote destinations: Local-only destinations:

Copyright © 2007, Oracle. All rights reserved Configuring Archive Log Destinations Full Notes Page

Copyright © 2007, Oracle. All rights reserved Guaranteeing Archive Log Success Online redo log files LOG_ARCHIVE_MIN_SUCCEED_DEST = 2 Standby

Copyright © 2007, Oracle. All rights reserved Guaranteeing Archive Log Success Full Notes Page

Copyright © 2007, Oracle. All rights reserved Specifying a Backup Destination Backups can be written to: Disk directory Tape, using Oracle Secure Backup Media Management Library –Tape –Disk or tape, using proxy copy Flash Recovery Area: Disk area set aside for backup and recovery and flashback database purposes

Copyright © 2007, Oracle. All rights reserved Specifying a Backup Destination Full Notes Page

Copyright © 2007, Oracle. All rights reserved Specifying a Retention Policy Retention policy: Describes which backups will be kept and for how long Two types of retention policies: –Recovery window: Establishes a period of time within which point-in-time recovery must be possible –Redundancy: Establishes a fixed number of backups that must be kept Retention policies are mutually exclusive. Backup SYSDATE Recovery window Backup 1 SYSDATE Backup 2

Copyright © 2007, Oracle. All rights reserved Retention Policies Full Notes Page

Copyright © 2007, Oracle. All rights reserved A Recovery Window Retention Policy: Example Now Recovery window of 7 days Log 200 Backup B Log 300 Backup C Log 400Log 100 Backup A Log 500 Backup B and archive logs 201 through 500 are required to satisfy this retention policy. Backup Obsolete Not Obsolete

Copyright © 2007, Oracle. All rights reserved Using a Flash Recovery Area Permanent items: –Multiplexed copies of the current control file –Multiplexed copies of online redo logs Transient items: –Archived redo logs –Data file copies –Control file copies –Control file autobackups –Backup pieces –Flashback logs Database Flash Recovery Area

Copyright © 2007, Oracle. All rights reserved Using a Flash Recovery Area Full Notes Page

Copyright © 2007, Oracle. All rights reserved Defining a Flash Recovery Area The Flash Recovery Area is defined by setting both of the following initialization parameters: – DB_RECOVERY_FILE_DEST_SIZE : Sets the disk limit – DB_RECOVERY_FILE_DEST : Sets the location for the Flash Recovery Area These parameters are dynamic.

Copyright © 2007, Oracle. All rights reserved Defining a Flash Recovery Area Using Enterprise Manager

Copyright © 2007, Oracle. All rights reserved Flash Recovery Area Space Management Space limit is reached and a new file needs to be written into the Flash Recovery Area. 1 2 Backup files to be deleted Database file backup Warning issued to user Flash Recovery Area Space pressure occurs. RMAN updates list of files that may be deleted. Files that are no longer required on disk are Deleted.

Copyright © 2007, Oracle. All rights reserved Flash Recovery Area Space Management Full Notes Page

Copyright © 2007, Oracle. All rights reserved Flash Recovery Area Space Usage Configure the retention policy to the minimum value appropriate for your database. Back up the archive log files regularly and delete the files upon completion of the backup. Use the RMAN REPORT OBSOLETE and DELETE OBSOLETE commands to remove backups and file copies that are not required.

Copyright © 2007, Oracle. All rights reserved Flash Recovery Area Space Usage Full Notes Page

Copyright © 2007, Oracle. All rights reserved Monitoring the Flash Recovery Area

Copyright © 2007, Oracle. All rights reserved Benefits of Using a Flash Recovery Area Using the Flash Recovery Area for recovery-related files: Simplifies the location of database backups Automatically manages the disk space allocated for recovery files

Copyright © 2007, Oracle. All rights reserved Summary In this lesson, you should have learned how to: Invoke RMAN and set and list simple configurations Configure your database in ARCHIVELOG mode Configure multiple archive log file destinations to increase availability Specify a retention policy Configure the Flash Recovery Area Describe the benefits of using the Flash Recovery Area

Copyright © 2007, Oracle. All rights reserved Practice 2 Overview: Configuring for Recoverability This practice covers the following topics: Placing the database in ARCHIVELOG mode Verifying that the Flash Recovery Area is configured Using RMAN to connect to the target database

Copyright © 2007, Oracle. All rights reserved