13 Copyright © 2007, Oracle. All rights reserved. Using the Data Recovery Advisor.

Slides:



Advertisements
Similar presentations
13 Copyright © 2005, Oracle. All rights reserved. Monitoring and Improving Performance.
Advertisements

2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
17 Copyright © 2005, Oracle. All rights reserved. Performing Flashback.
10 Copyright © 2009, Oracle. All rights reserved. Managing Undo Data.
5 Copyright © 2006, Oracle. All rights reserved. Database Recovery.
2 Copyright © 2009, Oracle. All rights reserved. Installing your Oracle Software.
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.
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
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical.
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
7 Copyright © 2006, Oracle. All rights reserved. Dealing with Database Corruption.
2 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Overview.
5 Copyright © 2004, Oracle. All rights reserved. Using Recovery Manager.
5 Copyright © 2008, Oracle. All rights reserved. Using RMAN to Create Backups.
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.
Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
11g(R1/R2) Data guard Enhancements Suresh Gandhi
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.
17 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Creation and Maintenance.
3 Copyright © 2009, Oracle. All rights reserved. Creating an Oracle Database Using DBCA.
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
37 Copyright © 2007, Oracle. All rights reserved. Module 37: Executing Workflow Processes Siebel 8.0 Essentials.
11 Copyright © 2004, Oracle. All rights reserved. Dealing with Database Corruption.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
3 Copyright © 2006, Oracle. All rights reserved. Using Recovery Manager.
10 Copyright © Oracle Corporation, All rights reserved. User-Managed Backups.
3 Copyright © 2005, Oracle. All rights reserved. Creating an Oracle Database.
18 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Concepts.
6 Copyright © 2007, Oracle. All rights reserved. Performing User-Managed Backup and Recovery.
5 Copyright © 2009, Oracle. All rights reserved. Configuring Essbase Server.
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.
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.
5 Copyright © 2008, Oracle. All rights reserved. Testing and Validating a Repository.
6 Copyright © Oracle Corporation, All rights reserved. Backup and Recovery Overview.
10 Copyright © 2007, Oracle. All rights reserved. Using RMAN Enhancements.
19 Copyright © 2004, Oracle. All rights reserved. Database Backups.
3 Copyright © 2004, Oracle. All rights reserved. Database Architecture Comparison.
6 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
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.
8 Copyright © Oracle Corporation, All rights reserved. Managing Tablespaces and Data files.
5 Copyright © 2005, Oracle. All rights reserved. Managing the Oracle Instance.
Oracle Database Architectural Components
10 Copyright © 2007, Oracle. All rights reserved. Managing Undo Data.
Maximum Availability Architecture Enterprise Technology Centre.
Creating an Oracle Database
Performing Database Recovery
Presentation transcript:

13 Copyright © 2007, Oracle. All rights reserved. Using the Data Recovery Advisor

Copyright © 2007, Oracle. All rights reserved Objectives After completing this lesson, you should be able to: Describe your options for repairing data failure Use the new RMAN data repair commands to: –List failures –Receive a repair advice –Repair failures Perform proactive failure checks Query the Data Recovery Advisor views

Copyright © 2007, Oracle. All rights reserved Repairing Data Failures Data Guard provides failover to a standby database, so that your operations are not affected by down time. Data Recovery Advisor, a new feature in Oracle Database 11g, analyzes failures based on symptoms and determines repair strategies: –Aggregating multiple failures for efficient repair –Presenting a single, recommended repair option –Performing automatic repairs at your request The Flashback technology protects the life cycle of a row and assists in repairing logical problems.

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

Copyright © 2007, Oracle. All rights reserved Data Recovery Advisor Fast detection, analysis, and repair of failures Minimizing disruptions for users Down-time and run-time failures User interfaces: –EM GUI interface (several paths) –RMAN command line Supported database configurations: –Single-instance –Not RAC –Supporting failover to standby, but not analysis and repair of standby databases

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

Copyright © 2007, Oracle. All rights reserved Data Recovery Advisor 1. Assess data failures. 2. List failures by severity. 4. Choose and execute repair. 3. Advise on repair. 5. Perform proactive checks. Data Recovery Advisor Health MonitorDBA Reducing down time by eliminating confusion:

Copyright © 2007, Oracle. All rights reserved Assessing Data Failures Database Instance Health error link Problem Details

Copyright © 2007, Oracle. All rights reserved Data Failures

Copyright © 2007, Oracle. All rights reserved Data Failure: Examples Not accessible components, for example: –Missing data files at the OS level –Incorrect access permissions –Offline tablespace, and so on Physical corruptions, such as block checksum failures or invalid block header field values Logical corruptions, such as inconsistent dictionary, corrupt row piece, corrupt index entry, or corrupt transaction Inconsistencies, such as control file is older or newer than the data files and online redo logs I/O failures, such as a limit on the number of open files exceeded, channels inaccessible, network or I/O error

Copyright © 2007, Oracle. All rights reserved Listing Data Failures

Copyright © 2007, Oracle. All rights reserved Advising on Repair 1 2a (1) After manual repair (2) Automatic repair 2b

Copyright © 2007, Oracle. All rights reserved In less than one second Executing Repairs...

Copyright © 2007, Oracle. All rights reserved Data Recovery Advisor RMAN Command-Line Interface RMAN CommandAction LIST FAILURE Lists previously executed failure assessment ADVISE FAILURE Displays recommended repair option REPAIR FAILURE Repairs and closes failures (after ADVISE in the same RMAN session) CHANGE FAILURE Changes or closes one or more failures

Copyright © 2007, Oracle. All rights reserved Listing Data Failures The RMAN LIST FAILURE command lists previously executed failure assessment. Including newly diagnosed failures Removing closed failures (by default) Syntax: LIST FAILURE [ ALL | CRITICAL | HIGH | LOW | CLOSED | failnum[,failnum,…] ] [ EXCLUDE FAILURE failnum[,failnum,…] ] [ DETAIL ]

Copyright © 2007, Oracle. All rights reserved Listing of Data Failures Full Notes Page

Copyright © 2007, Oracle. All rights reserved Advising on Repair The RMAN ADVISE FAILURE command: Displays a summary of input failure list Includes a warning, if new failures appeared in ADR Displays a manual checklist Lists a single recommended repair option Generates a repair script (for automatic or manual repair)... Repair script: /u01/app/oracle/diag/rdbms/orcl/orcl/hm/reco_ hm RMAN>

Copyright © 2007, Oracle. All rights reserved Advising on Repair Full Notes Page

Copyright © 2007, Oracle. All rights reserved REPAIR FAILURE [PREVIEW] [NOPROMPT] Executing Repairs The RMAN REPAIR FAILURE command: Follows the ADVISE FAILURE command Repairs the specified failure Closes the repaired failure Syntax: Example: RMAN> repair failure;

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

Copyright © 2007, Oracle. All rights reserved Repair Full Notes Page (cont)

Copyright © 2007, Oracle. All rights reserved Classifying (and Closing) Failures The RMAN CHANGE FAILURE command: Changes the failure priority (except for CRITICAL ) Closes one or more failures Example: RMAN> change failure 5 priority low; List of Database Failures ========================= Failure ID Priority Status Time Detected Summary HIGH OPEN 20-DEC-06 one or more datafiles are missing Do you really want to change the above failures (enter YES or NO)? yes changed 1 failures to LOW priority

Copyright © 2007, Oracle. All rights reserved Data Recovery Advisor Views Querying dynamic data dictionary views: V$IR_FAILURE : List of all failures, including closed ones (result of the LIST FAILURE command) V$IR_MANUAL_CHECKLIST : List of manual advice (result of the ADVISE FAILURE command) V$IR_REPAIR : List of repairs (result of the ADVISE FAILURE command) V$IR_REPAIR_SET : Cross-reference of failure and advice identifiers

Copyright © 2007, Oracle. All rights reserved Best Practice: Proactive Checks Invoking proactive health check of the database and its components: Health Monitor or RMAN VALIDATE DATABASE command Checking for logical and physical corruption Findings logged in ADR

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

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

Copyright © 2007, Oracle. All rights reserved Setting Parameters to Detect Corruption... EM > Server > Initialization Parameters New Prevent memory and data corruption Detect I/O storage, disk corruption Detect non-persistent writes on physical standby Specify defaults for corruption detection

Copyright © 2007, Oracle. All rights reserved Setting Parameters to Detect Corruption DB_ULTRA_SAFEOFFDATA_ONLYDATA_AND_INDEX DB_BLOCK_CHECKING OFF or FALSE MEDIUMFULL or TRUE DB_BLOCK_CHECKSUM TYPICALFULL DB_LOST_WRITE_PROTECT TYPICAL

Copyright © 2007, Oracle. All rights reserved Summary In this lesson, you should have learned how to: Describe your options for repairing data failure Use the new RMAN data repair commands to: –List failures –Receive a repair advice –Repair failures Perform proactive failure checks Query the Data Recovery Advisor views

Copyright © 2007, Oracle. All rights reserved Practice 13: Overview Repairing Failures This practice covers the following topics: Repairing a “down” database with Enterprise Manager Repairing block corruption with Enterprise Manager Repairing a “down” database with the RMAN command line