Oracle Database 11g: High Availability Student Guide D52361 Edition 1.0 September 2007 Part Number Copyright © Oracle Corporation, 2007 All rights reserved This documentation contains proprietary information of Oracle Corporation It is provided under a license agreement containing restrictions on use and disclosure and is also protected by copyright law Reverse engineering of the software is prohibited If this documentation is delivered to a U.S Government Agency of the Department of Defense, then it is delivered with Restricted Rights and the following legend is applicable: Restricted Rights Legend Use, duplication or disclosure by the Government is subject to restrictions for commercial computer software and shall be deemed to be Restricted Rights software under Federal law, as set forth in subparagraph (c)(1)(ii) of DFARS 252.227-7013, Rights in Technical Data and Computer Software (October 1988) This material or any portion of it may not be copied in any form or by any means without the express prior written permission of the Education Products group of Oracle Corporation Any other copying is a violation of copyright law and may result in civil and/or criminal penalties If this documentation is delivered to a U.S Government Agency not within the Department of Defense, then it is delivered with “Restricted Rights,” as defined in FAR 52.227-14, Rights in Data-General, including Alternate III (June 1987) The information in this document is subject to change without notice If you find any problems in the documentation, please report them in writing to Worldwide Education Services, Oracle Corporation, 500 Oracle Parkway, Box SB-6, Redwood Shores, CA 94065 Oracle Corporation does not warrant that this document is error-free Oracle and all references to Oracle Products are trademarks or registered trademarks of Oracle Corporation All other products or company names are used for identification purposes only, and may be trademarks of their respective owners Author M J Billings, Donna Keesling Technical Contributors and Reviewers Ashish Ray, Beldalker Anand, Christine Jeal, Gary Allison, Hermann Baer, Larry Carpenter, Manosiz Bhattacharyya, Mark Dilman, Michael Stewart, Muthu Olagappan, Paul Tsien, Penny Avril, Ravi Rajamani, Ray Giroux, Robert McGuirk, Steven Wertheimer, Subramanyam Chitti, Timothy Chien, Vasudha Krishnaswamy, Wei Hu This book was published using: oracletutor Table of Contents Using the Data Recovery Advisor 1-2 Using the Data Recovery Advisor 1-2 Objectives 1-3 Repairing Data Failures 1-4 Data Recovery Advisor 1-6 Assessing Data Failures 1-9 Data Failures 1-10 Data Failure: Examples 1-11 Listing Data Failures 1-12 Advising on Repair 1-13 Executing Repairs 1-14 Data Recovery Advisor RMAN Command-Line Interface 1-15 RMAN: Listing Data Failures 1-16 RMAN: Advising on Repair 1-18 RMAN: Executing Repairs 1-20 RMAN: Classifying (and Closing) Failures 1-22 Data Recovery Advisor Views 1-24 Best Practice: Proactive Checks 1-25 Setting Parameters to Detect Corruption 1-28 Summary 1-31 Using Flashback and LogMiner 2-2 Using Flashback and LogMiner 2-2 Objectives 2-3 New and Enhanced Features for Flashback and LogMiner 2-4 Oracle Total Recall 2-5 Flashback Data Archive Comparison 2-6 Flashback Data Archive: Overview 2-7 Flashback Data Archive: Architecture 2-8 Preparing Your Database 2-9 Flashback Data Archive: Workflow 2-13 Using Flashback Data Archive 2-14 Configuring a Default Flashback Data Archive 2-16 Filling the Flashback Data Archive Space 2-17 Maintaining Flashback Data Archives 2-18 Flashback Data Archive: Examples 2-19 Flashback Data Archive: DDL Restrictions 2-20 Viewing Flashback Data Archives 2-21 Guidelines and Usage Tips 2-23 Flashback Transaction Backout 2-24 Flashback Transaction 2-25 Prerequisites 2-26 Flashing Back a Transaction 2-27 Possible Workflow 2-28 Viewing Data 2-29 Flashback Transaction Wizard 2-30 Choosing Other Backout Options 2-36 Final Steps Without EM 2-38 Viewing Flashback Transaction Metadata 2-39 Using LogMiner 2-40 Summary 2-42 Online Application Maintenance 3-2 Copyright © Oracle Corporation, 2007 All rights reserved Oracle Database 11g: High Availability Table of Contents i Online Application Maintenance 3-2 Objectives 3-3 What You Already Know and What Is New 3-4 Redefinition and Materialized View 3-6 More Precise Dependency Metadata 3-16 Fine-Grain Dependency Management 3-17 Managing Dependencies 3-18 Usage Guidelines 3-21 Minimizing Dependent PL/SQL Recompilation 3-22 Serializing Locks 3-23 Locking Tables Explicitly 3-24 Sharing Locks 3-25 Invisible Indexes 3-26 Summary 3-27 Using RMAN Enhancements 4-2 Using RMAN Enhancements 4-2 Objectives 4-3 RMAN: New Features 4-4 More RMAN New Features 4-8 Parallel Backup and Restore for Very Large Files 4-10 Using RMAN Multisection Backups 4-12 Active Database Duplication 4-13 The RMAN DUPLICATE Command 4-23 Archival Backups 4-26 Managing Recovery Catalogs 4-30 The IMPORT CATALOG Command 4-33 Summary 4-35 Using RMAN and Data Guard Enhancements 5-2 Using RMAN and Data Guard Integration Enhancements 5-2 Objectives 5-3 Improved Integration of RMAN and Data Guard 5-4 Setting a Persistent Configuration for a Site 5-5 Viewing Persistent Configuration Information 5-6 Viewing Site Information in the Recovery Catalog 5-7 Defining Connect Identifiers for Data Guard Databases 5-8 Associating Metadata with a New Site Name 5-9 Removing Site Information from the Recovery Catalog 5-10 Restoring a Control File 5-11 Backing Up the Server Parameter File 5-12 Resynchronizing the Recovery Catalog 5-13 Summary 5-14 Using Data Guard Enhancements 6-2 Using Data Guard Enhancements 6-2 Objectives 6-3 Real-Time Query and Physical Standby Databases 6-4 Using Real-Time Query 6-5 Compressing Redo Data 6-6 Querying the Redo Compression Attribute 6-7 Dynamically Setting SQL Apply Parameters 6-8 New Columns in DBA_LOGSTDBY_PARAMETERS 6-10 Recording SQL Apply Event Information 6-11 Remote Archived Log File Retention Target 6-12 Logical Standby Database Flash Recovery Area 6-13 Using SQL to Create a Snapshot Standby Database 6-14 Using DGMGRL to Create a Snapshot Standby Database 6-15 Copyright © Oracle Corporation, 2007 All rights reserved Oracle Database 11g: High Availability Table of Contents ii Viewing Snapshot Standby Database Information 6-16 Using DGMGRL to View Snapshot Standby Database Information 6-17 Activating a Snapshot Standby Database 6-19 Setting the NET_TIMEOUT Attribute 6-20 The Redo Transport Performance Histogram 6-21 Using V$REDO_DEST_RESP_HISTOGRAM 6-22 Summary 6-23 Using Data Guard Fast-Start Failover Enhancements 7-2 Using Data Guard Fast-Start Failover Enhancements 7-2 Objectives 7-3 Displaying Fast-Start Failover Information 7-4 Initiating Fast-Start Failover from an Application 7-6 INITIATE_FS_FAILOVER Error Codes 7-8 Determining the Reason for a Fast-Start Failover 7-10 Availability of the Primary Database 7-11 Automatic Reinstatement of the Primary Database 7-13 Fast-Start Failover in Maximum Performance Mode 7-14 Is Fast-Start Failover Possible? 7-15 Configuring Fast-Start Failover Conditions 7-16 FastStartFailoverThreshold Property 7-18 Summary 7-19 Copyright © Oracle Corporation, 2007 All rights reserved Oracle Database 11g: High Availability Table of Contents iii Summary Copyright © Oracle Corporation, 2007 All rights reserved Using Data Guard Fast-Start Failover Enhancements Chapter - Page 19 Copyright © Oracle Corporation, 2007 All rights reserved Using Data Guard Fast-Start Failover Enhancements Chapter - Page 20 ... rights reserved Oracle Database 11g: High Availability Table of Contents ii Viewing Snapshot Standby Database Information 6-16 Using DGMGRL to View Snapshot Standby Database Information... 7-19 Copyright © Oracle Corporation, 2007 All rights reserved Oracle Database 11g: High Availability Table of Contents iii Summary Copyright © Oracle Corporation, 2007 All rights... Online Application Maintenance 3-2 Copyright © Oracle Corporation, 2007 All rights reserved Oracle Database 11g: High Availability Table of Contents i Online Application Maintenance