8 Copyright © Oracle Corporation, 2001. All rights reserved. Configuring the Database Archiving Mode.

Slides:



Advertisements
Similar presentations
Oracle Architecture. Instances and Databases (1/2)
Advertisements

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.
5 Copyright © 2006, Oracle. All rights reserved. Database Recovery.
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.
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.
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.
Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
4 Copyright © 2006, Oracle. All rights reserved. Recovering from Noncritical Losses.
5 Copyright © 2004, Oracle. All rights reserved. Controlling the Database.
15 Copyright © 2007, Oracle. All rights reserved. Performing Database Backups.
9 Copyright © 2004, Oracle. All rights reserved. Flashback Database.
Copyright © Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
16 Copyright © Oracle Corporation, All rights reserved. Managing Privileges.
A Guide to Oracle9i1 Database Instance startup and shutdown.
15 Copyright © Oracle Corporation, All rights reserved. RMAN Incomplete Recovery.
Week 3 Lecture 1 The Redo Log Files and Diagnostic Files.
3 Copyright © 2009, Oracle. All rights reserved. Creating an Oracle Database Using DBCA.
IT Database Administration Section 09. Backup and Recovery Backup: The available options Full Consistent (cold) Backup Database shutdown, all files.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
11 Copyright © 2006, Oracle. All rights reserved. Checkpoint and Redo Tuning.
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.
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.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
Copyright  Oracle Corporation, All rights reserved. 3 Oracle Backup and Recovery Configuration.
8 Copyright © Oracle Corporation, All rights reserved. Managing Tablespaces and Data files.
5 Copyright © 2005, Oracle. All rights reserved. Managing the Oracle Instance.
Backup and Recovery.
Recovery Catalog Creation and Maintenance
Configuring the Database Archiving Mode
Maintaining Online Redo Log Files
Oracle9i Database Administrator: Implementation and Administration
Understanding the Oracle Data Guard Architecture
Performing Database Recovery
Chapter 5 The Redo Log Files.
Presentation transcript:

8 Copyright © Oracle Corporation, All rights reserved. Configuring the Database Archiving Mode

Copyright © Oracle Corporation, All rights reserved. Objectives After completing this lesson, you should be able to do the following: Describe the differences between ARCHIVELOG and NOARCHIVELOG modes Configure a database for ARCHIVELOG mode Enable automatic archiving Perform manual archiving of logs Configure multiple archive processes Configure multiple destinations, including remote destinations

Copyright © Oracle Corporation, All rights reserved. Online redo log files No redo history LGWR Redo history Redo Log History

Copyright © Oracle Corporation, All rights reserved. Online redo log files No redo history 053 LGWR NOARCHIVELOG Mode

Copyright © Oracle Corporation, All rights reserved.

ARCHIVELOG Mode Archived log files Online redo log files LGWR Redo history

Copyright © Oracle Corporation, All rights reserved.

Changing the Archiving Mode SHUTDOWN NORMAL/IMMEDIATE/TRANSACTIONAL 1 STARTUP MOUNT ALTER DATABASE ARCHIVELOG 3 ALTER DATABASE OPEN Initialization parameters Control file Full database backup

Copyright © Oracle Corporation, All rights reserved.

Setting the Archiving Mode

Copyright © Oracle Corporation, All rights reserved. Automatic and Manual Archiving Automatic archiving: LOG_ARCHIVE_START=TRUE Manual archiving: LOG_ARCHIVE_START=FALSE DBA ARC0 053

Copyright © Oracle Corporation, All rights reserved.

Enabling Automatic Archiving

Copyright © Oracle Corporation, All rights reserved. Specifying Multiple ARCn Processes The dynamic parameter LOG_ARCHIVE_MAX_PROCESSES controls the number of archive processes started at instance startup. A maximum of ten ARCn processes can be specified. The number of ARCn processes can be changed with ALTER SYSTEM.

Copyright © Oracle Corporation, All rights reserved. Stop or Start Additional Archive Processes LOG_ARCHIVE_MAX_PROCESSES=2 Archived redo logs 053 Online redo logs ARC0 ARC1 ALTER SYSTEM SET LOG_ARCHIVE_MAX_PROCESSES = 3; ARC2 053

Copyright © Oracle Corporation, All rights reserved. Enabling Automatic Archiving at Instance Startup 051 Archived log files Archived Current LOG_ARCHIVE_START=TRUE LOG_ARCHIVE_MAX_PROCESSES=n Online redo logs ARC0 053

Copyright © Oracle Corporation, All rights reserved. Enabling Automatic Archiving After Instance Startup ALTER SYSTEM ARCHIVE LOG START; ARC0 Online redo logs

Copyright © Oracle Corporation, All rights reserved. ARC0 Disabling Automatic Archiving 1 2 ALTER SYSTEM ARCHIVE LOG STOP; LOG_ARCHIVE_START Online redo logs Initialization parameters

Copyright © Oracle Corporation, All rights reserved. Manually Archiving Online Redo Log Files Online redo logs Server Process ALTER SYSTEM ARCHIVE LOG CURRENT;

Copyright © Oracle Corporation, All rights reserved.

Manually Archive Redo Log Files

Copyright © Oracle Corporation, All rights reserved. Specifying the Archive Log Destination Use LOG_ARCHIVE_DEST_n to specify up to ten archival destinations. Use LOG_ARCHIVE_FORMAT to include the log sequence number and thread number as part of the filename.

Copyright © Oracle Corporation, All rights reserved. Specifying Multiple Archive Log Destinations Use LOG_ARCHIVE_DEST_n to specify up to ten archival destinations, which can be on a: Local disk Remote standby database log_archive_dest_1 = "LOCATION=/archive1" log_archive_dest_2 = "SERVICE=standby_db1"

Copyright © Oracle Corporation, All rights reserved. LOG_ARCHIVE_DEST_n Options 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"

Copyright © Oracle Corporation, All rights reserved. Specifying a 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 = 2

Copyright © Oracle Corporation, All rights reserved.

Controlling Archiving to a Destination An archival destination can be disabled by using the 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_2 = ENABLE ALTER SYSTEM SET log_archive_dest_state_3 = ENABLE; ALTER SYSTEM SET log_archive_dest_state_3 = DEFER;

Copyright © Oracle Corporation, All rights reserved. Specifying the Filename Format ARC0 LOG_ARCHIVE_DEST_n LOG_ARCHIVE_FORMAT /ORADATA/archive/ Archived log file arch%s.arc 052 Group ARC0 052 Online redo log files Group 2

Copyright © Oracle Corporation, All rights reserved. Obtaining Archive Log Information V$ARCHIVE_DEST V$ARCHIVED_LOG V$LOG_HISTORY Dynamic Views Command Line ARCHIVE LOG LIST V$DATABASE V$ARCHIVE_PROCESSES

Copyright © Oracle Corporation, All rights reserved.

Summary In this lesson, you should have learned how to: Configure a database for ARCHIVELOG mode Enable automatic archiving Perform manual archiving of logs Configure multiple archive processes Configure multiple destinations

Copyright © Oracle Corporation, All rights reserved. Practice 8 Overview This practice covers the following topics: Enabling and disabling automatic archiving Configuring multiple archiver processes Configuring multiple archiving destinations Performing manual archiving of redo log files

Copyright © Oracle Corporation, All rights reserved.