Copyright  Oracle Corporation, 1999. All rights reserved. 3 Oracle Backup and Recovery Configuration.

Slides:



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

Oracle Architecture. Instances and Databases (1/2)
15 Copyright © 2004, Oracle. All rights reserved. Monitoring and Managing Memory.
Backup and recovery Basics of Backup and restoration Types of recovery Defining strategy Starting up and shutting down 80/20 rule SLA’s.
Backup and Recovery Part 1.
Harvard University Oracle Database Administration Session 11 Database Recovery.
ITEC474 Redo Log Files.
Configuring Recovery Manager
4 Copyright © 2008, Oracle. All rights reserved. Configuring Backup Specifications.
CHAPTER 5 Managing Control Files, Online Redo Logs, and Archiving.
9 Copyright © Oracle Corporation, All rights reserved. Oracle Recovery Manager Overview and Configuration.
Oracle9i Database Administrator: Implementation and Administration
7 Maintaining Redo Log Files. 7-2 Objectives Explaining the use of online redo log files Obtaining log and archive information Controlling log switches.
Introduction to Oracle Backup and Recovery
Using RMAN to Perform Recovery
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
20 Copyright © 2004, Oracle. All rights reserved. Database Recovery.
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
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.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups.
ORACLE 10g DATAGUARD Ritesh Chhajer Sr. Oracle DBA.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
By Lecturer / Aisha Dawood 1.  You can control the number of dispatcher processes in the instance. Unlike the number of shared servers, the number of.
5 Copyright © 2004, Oracle. All rights reserved. Controlling the Database.
15 Copyright © 2007, Oracle. All rights reserved. Performing Database Backups.
Copyright © Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
CHAPTER 5 Managing Control Files and Online Redo Logs.
15 Copyright © Oracle Corporation, All rights reserved. RMAN Incomplete Recovery.
Week 3 Lecture 1 The Redo Log Files and Diagnostic Files.
IT Database Administration Section 09. Backup and Recovery Backup: The available options Full Consistent (cold) Backup Database shutdown, all files.
8 Copyright © Oracle Corporation, All rights reserved. Configuring the Database Archiving Mode.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
11 Copyright © 2006, Oracle. All rights reserved. Checkpoint and Redo Tuning.
Instance and Media Recovery Structures Supinfo Oracle Lab. 7.
3 Copyright © 2006, Oracle. All rights reserved. Using Recovery Manager.
10 Copyright © Oracle Corporation, All rights reserved. User-Managed Backups.
Configuring the Database Archiving Mode
Backup and Recovery Part 2. Online backup Online backup requirements: Backup all data files (file system copy) Backup all redo information produced during.
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 © 2007, Oracle. All rights reserved. Configuring for Recoverability.
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 © 2004, Oracle. All rights reserved. Creating an Oracle Database.
18 Copyright © 2004, Oracle. All rights reserved. Recovery Concepts.
7 Copyright © Oracle Corporation, All rights reserved. Instance and Media Recovery Structures.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
19 Copyright © 2004, Oracle. All rights reserved. Database Backups.
20 Copyright © 2006, Oracle. All rights reserved. Best Practices and Operational Considerations.
9 Copyright © 2004, Oracle. All rights reserved. Incomplete Recovery.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
5 Copyright © 2005, Oracle. All rights reserved. Managing the Oracle Instance.
Backup and Recovery.
Configuring the Database Archiving Mode
Maintaining Online Redo Log Files
Instance and Media Recovery Structures
Kyle Hailey Redo Waits Kyle Hailey
STREAMS failover and resynchronization
Oracle9i Database Administrator: Implementation and Administration
Performing User-Managed Backup and Recovery
Performing Database Recovery
Chapter 5 The Redo Log Files.
Presentation transcript:

Copyright  Oracle Corporation, All rights reserved. 3 Oracle Backup and Recovery Configuration

3-2 Copyright  Oracle Corporation, All rights reserved. Objectives After completing this lesson, you should be able to do the following: Identify recovery implications of operating in NOARCHIVE mode Describe the differences between ARCHIVELOG and NOARCHIVELOG modes Configure a database for ARCHIVELOG mode and automatic archiving Use init.ora parameters to configure multiple destinations for archived log files and multiple archive processes Perform manual archive of logs After completing this lesson, you should be able to do the following: Identify recovery implications of operating in NOARCHIVE mode Describe the differences between ARCHIVELOG and NOARCHIVELOG modes Configure a database for ARCHIVELOG mode and automatic archiving Use init.ora parameters to configure multiple destinations for archived log files and multiple archive processes Perform manual archive of logs

3-3 Copyright  Oracle Corporation, All rights reserved. Online redo log files 052 No redo history Redo Log History LGWR Redo history 1 2

3-4 Copyright  Oracle Corporation, All rights reserved. Online redo log files 052 No redo history NOARCHIVELOG Mode LGWR

3-5 Copyright  Oracle Corporation, All rights reserved. ARCHIVELOG Mode Online redo log files LGWR Archived log files Redo history

3-6 Copyright  Oracle Corporation, All rights reserved. Set ARCHIVELOG Destination ARC0 LOG_ARCHIVE_DEST LOG_ARCHIVE_FORMAT /disk1/archive/ Archived log file Online redo log files Group 1 Group arch%s.arc

3-7 Copyright  Oracle Corporation, All rights reserved. Duplexing ARCHIVELOG Files ARC0 Online redo log files LOG_ARCHIVE_DUPLEX_DEST 052 Group 1 Group 2 LOG_ARCHIVE_DEST Archived log files

3-8 Copyright  Oracle Corporation, All rights reserved. Specifying Multiple Archive Locations Specify up to five archival destinations by using LOG_ARCHIVE_DEST_n Either local disk or remote database Use LOG_ARCHIVE_DEST and LOG_ARCHIVE_DUPLEX_DEST Specify up to five archival destinations by using LOG_ARCHIVE_DEST_n Either local disk or remote database Use LOG_ARCHIVE_DEST and LOG_ARCHIVE_DUPLEX_DEST log_archive_dest = /archive1/arch log_archive_duplex_dest = /archive2/arch log_archive_dest = /archive1/arch log_archive_duplex_dest = /archive2/arch log_archive_dest_1 = "LOCATION=/archive1" log_archive_dest_2 = "SERVICE=standby_db1" log_archive_dest_1 = "LOCATION=/archive1" log_archive_dest_2 = "SERVICE=standby_db1"

3-9 Copyright  Oracle Corporation, All rights reserved. Multiple Archive Options Set archive location as MANDATORY or OPTIONAL Define time before retry in case of failures Set archive location as MANDATORY or OPTIONAL Define time before retry in case of failures log_archive_dest_1="LOCATION=/archive MANDATORY REOPEN" log_archive_dest_2="SERVICE=standby_db1 MANDATORY REOPEN=600" log_archive_dest_3="LOCATION=/archive2 OPTIONAL" log_archive_dest_1="LOCATION=/archive MANDATORY REOPEN" log_archive_dest_2="SERVICE=standby_db1 MANDATORY REOPEN=600" log_archive_dest_3="LOCATION=/archive2 OPTIONAL"

3-10 Copyright  Oracle Corporation, All rights reserved. Specifying Minimum Number of Local Destinations LOG_ARCHIVE_MIN_SUCCEED_ DEST parameter An online redo log group can be reused only if: – Archiving has been done to all mandatory locations – The number of local locations archived is greater than or equal to the value of the LOG_ARCHIVE_MIN_SUCCEED_ DEST parameter LOG_ARCHIVE_MIN_SUCCEED_ DEST parameter An online redo log group can be reused only if: – Archiving has been done to all mandatory locations – The number of local locations archived is greater than or equal to the value of the LOG_ARCHIVE_MIN_SUCCEED_ DEST parameter log_archive_min_succeed_dest = 2

3-11 Copyright  Oracle Corporation, All rights reserved. Controlling Archiving to a Destination An archival destination may be disabled by a new (dynamic) initialization parameter: LOG_ARCHIVE_DEST_STATE _n Archiving to a destination can be enabled again: An archival destination may be disabled by a new (dynamic) initialization parameter: LOG_ARCHIVE_DEST_STATE _n Archiving to a destination can be enabled again: log_archive_dest_state_2 = DEFER log_archive_dest_state_3 = DEFER log_archive_dest_state_2 = DEFER log_archive_dest_state_3 = DEFER log_archive_dest_state_2 = ENABLE ALTER SYSTEM SET log_archive_dest_state_3 = ENABLE

3-12 Copyright  Oracle Corporation, All rights reserved. Enabling ARCHIVELOG Mode Init.ora Control file Shutdown normal 1 Startup mount 2 Alter database ARCHIVELOG 3 Alter database open 4 Shutdown normal or immediate 5 Full database backup 6

3-13 Copyright  Oracle Corporation, All rights reserved. Set Multiple ARCn Processes The dynamic parameter controls the number of archive processes: LOG_ARCHIVE_MAX_PROCESSES The parameter LOG_ARCHIVE_START set to TRUE or FALSE controls automatic or manual archiving The dynamic parameter controls the number of archive processes: LOG_ARCHIVE_MAX_PROCESSES The parameter LOG_ARCHIVE_START set to TRUE or FALSE controls automatic or manual archiving

3-14 Copyright  Oracle Corporation, All rights reserved. Automatic archiving by setting the LOG_ARCHIVE_START initialization parameter to TRUE Manual archiving by setting the LOG_ARCHIVE_START initialization parameter to FALSE Automatic archiving by setting the LOG_ARCHIVE_START initialization parameter to TRUE Manual archiving by setting the LOG_ARCHIVE_START initialization parameter to FALSE Enabling Archive Process 053 DBA ARC1 ARC0

3-15 Copyright  Oracle Corporation, All rights reserved. Enabling Automatic Archiving in an Opened Instance ALTER SYSTEM ARCHIVE LOG START TO ‘?/dbs/arch’; 1 2 ARC Online redo logs

3-16 Copyright  Oracle Corporation, All rights reserved. Enabling Archive Processes at the Start of an Instance ARC Archived log files Archived Archived Current LOG_ARCHIVE_START=TRUE LOG_ARCHIVE_MAX_PROCESSES=n Online redo logs LOG_ARCHIVE_DESTLOG_ARCHIVE_DUPLEX_DEST LOG_ARCHIVE_DEST_n

3-17 Copyright  Oracle Corporation, All rights reserved. Stop or Start Additional Archive Processes LOG_ARCHIVE_MAX_PROCESSES=2 1 Archived redo logs 053 Online redo logs ARC 0 ARC 1 2 ALTER SYSTEM SET LOG_ARCHIVE_MAX_PROCESSES = 3; ARC2

3-18 Copyright  Oracle Corporation, All rights reserved. Disabling Archive Processing 1 2 Online redo logs ALTER SYSTEM ARCHIVE LOG STOP; ARC0 LOG_ARCHIVE_START init.ora

3-19 Copyright  Oracle Corporation, All rights reserved. Selectively Archiving Log Files 1 Online redo logs ALTER SYSTEM ARCHIVE LOG SEQUENCE 052; Server Process

3-20 Copyright  Oracle Corporation, All rights reserved. Obtaining Archive Log Information V$ARCHIVE_DEST V$ARCHIVED_LOG V$LOG_HISTORY Data dictionary views Command line ARCHIVE LOG LIST; V$DATABASE V$ARCHIVE_PROCESSES

3-21 Copyright  Oracle Corporation, All rights reserved. Factors Influencing Time to Recover Fast-start recovery time is at best an estimate Recovery may take longer because: – Checkpoint target is changed only at specific time intervals – Additional recovery activities such as reading logs are not accounted for – Recovery time may be faster if parallel recovery is used Fast-start recovery time is at best an estimate Recovery may take longer because: – Checkpoint target is changed only at specific time intervals – Additional recovery activities such as reading logs are not accounted for – Recovery time may be faster if parallel recovery is used

3-22 Copyright  Oracle Corporation, All rights reserved. Monitoring Recovery Time Define FAST_START_IO_TARGET based on: – Service level required – AVGIOTIM column in V$FILESTAT Check impact of parameters from: – V$INSTANCE_RECOVERY – V$TARGETRBA Define FAST_START_IO_TARGET based on: – Service level required – AVGIOTIM column in V$FILESTAT Check impact of parameters from: – V$INSTANCE_RECOVERY – V$TARGETRBA

3-23 Copyright  Oracle Corporation, All rights reserved. Summary In this lesson, you should have learned that: Complete database recovery requires: – ARCHIVELOG mode – Archiving of redo logs – A database backup immediately after it is put into ARCHIVELOG mode Recovery time depends on: – FAST_START_IO_TARGET parameter – Parallelism – Other nonpredictable factors In this lesson, you should have learned that: Complete database recovery requires: – ARCHIVELOG mode – Archiving of redo logs – A database backup immediately after it is put into ARCHIVELOG mode Recovery time depends on: – FAST_START_IO_TARGET parameter – Parallelism – Other nonpredictable factors