6 Copyright © Oracle Corporation, 2001. All rights reserved. Backup and Recovery Overview.

Slides:



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

Acknowledgments Byron Bush, Scott S. Hilpert and Lee, JeongKyu
Overview of Database Administrator (DBA) Tools
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 2 Overview of Database Administrator (DBA) Tools.
Oracle Architecture. Instances and Databases (1/2)
1 - Oracle Server Architecture Overview
Backup The flip side of recovery. Types of Failures Transaction failure –Transaction must be aborted System failure –Hardware or software problem resulting.
Harvard University Oracle Database Administration Session 2 System Level.
10 Copyright © 2009, Oracle. All rights reserved. Managing Undo Data.
Backup and Recovery (2) Oracle 10g CAP364 1 Hebah ElGibreen.
Backup and Recovery Part 1.
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
Agenda  Overview  Configuring the database for basic Backup and Recovery  Backing up your database  Restore and Recovery Operations  Managing your.
Backup & Recovery Concepts for Oracle Database
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
1 Copyright © 2009, Oracle. All rights reserved. Exploring the Oracle Database Architecture.
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
7 Copyright © 2006, Oracle. All rights reserved. Dealing with Database Corruption.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Basic Oracle Architecture
15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups.
9 Copyright © 2004, Oracle. All rights reserved. Flashback Database.
Database Systems Slide 1 Database Systems Lecture 5 Overview of Oracle Database Architecture - Concept Manual : Chapters 1,8 Lecturer : Dr Bela Stantic.
7202ICT – Database Administration
1 Oracle Architectural Components. 1-2 Objectives Listing the structures involved in connecting a user to an Oracle server Listing the stages in processing.
Copyright © Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
An Oracle server:  Is a database management system that provides an open, comprehensive, integrated approach to information management.  Consists.
A Guide to Oracle9i1 Database Instance startup and shutdown.
1 Copyright © 2004, Oracle. All rights reserved. Introduction.
Backup and Recovery Overview Supinfo Oracle Lab. 6.
15 Copyright © Oracle Corporation, All rights reserved. RMAN Incomplete Recovery.
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
Database structure and space Management. Segments The level of logical database storage above an extent is called a segment. A segment is a set of extents.
11 Copyright © 2004, Oracle. All rights reserved. Dealing with Database Corruption.
Database Storage Structures
Process Architecture Process Architecture - A portion of a program that can run independently of and concurrently with other portions of the program. Some.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
Instance and Media Recovery Structures Supinfo Oracle Lab. 7.
10 Copyright © Oracle Corporation, All rights reserved. User-Managed Backups.
Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 1 Backup and Recovery Overview MSCD642 Backup and Recovery.
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.
Oracle Architecture - Structure. Oracle Architecture - Structure The Oracle Server architecture 1. Structures are well-defined objects that store the.
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.
3 Copyright © 2004, Oracle. All rights reserved. Database Architecture Comparison.
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.
Oracle Database Architectural Components
1 Copyright © 2005, Oracle. All rights reserved. Oracle Database Administration: Overview.
9 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
10 Copyright © 2007, Oracle. All rights reserved. Managing Undo Data.
Database recovery contd…
Backup and Recovery.
מימוש מערכות מסדי נתונים (236510)
Backup and Recovery (1) Oracle 10g Hebah ElGibreen CAP364.
Maximum Availability Architecture Enterprise Technology Centre.
Performing Database Recovery
Database administration
Presentation transcript:

6 Copyright © Oracle Corporation, All rights reserved. Backup and Recovery Overview

6-2 Copyright © Oracle Corporation, All rights reserved. Objectives After completing this lesson, you should be able to do the following: Describe the basics of database backup, restore, and recovery List the types of failure that may occur in an Oracle environment Define a backup and recovery strategy

6-3 Copyright © Oracle Corporation, All rights reserved. Backup and Recovery Issues Protect the database from numerous types of failures Increase Mean-Time-Between-Failures (MTBF) Decrease Mean-Time-To-Recover (MTTR) Minimize data loss

6-4 Copyright © Oracle Corporation, All rights reserved. Categories of Failures Statement failure User process failure User error Instance failure Media failure Network failure

6-5 Copyright © Oracle Corporation, All rights reserved. Causes of Statement Failures Logic error in an application Attempt to enter invalid data into the table Attempt an operation with insufficient privileges Attempt to create a table but exceed allotted quota limits Attempt an INSERT or UPDATE to a table, causing an extent to be allocated, but with insufficient free space available in the tablespace

6-6 Copyright © Oracle Corporation, All rights reserved. Resolutions for Statement Failures Correct the logical flow of the program. Modify and reissue the SQL statement. Provide the necessary database privileges. Change the user’s quota limit by using the ALTER USER command. Add file space to the tablespace. Enable resumable space allocation.

6-7 Copyright © Oracle Corporation, All rights reserved. Causes of User Process Failures The user performed an abnormal disconnect in the session. The user’s session was abnormally terminated. The user’s program raised an address exception, which terminated the session.

6-8 Copyright © Oracle Corporation, All rights reserved. Resolution of User Process Failures The PMON process detects an abnormally terminated user process. PMON rolls back the transaction and releases any resources and locks being held by it.

6-9 Copyright © Oracle Corporation, All rights reserved. Possible User Errors SQL> DROP TABLE employees; SQL> TRUNCATE TABLE employees; SQL> UPDATE employees 2 SET salary = salary * 1.5; SQL> COMMIT; SQL> DELETE FROM employees; SQL> COMMIT;

6-10 Copyright © Oracle Corporation, All rights reserved. Resolution of User Errors Train the database users. Recover from a valid backup. Import the table from an export file. Use LogMiner to determine the time of error. Recover with a point-in-time recovery. Use LogMiner to perform object-level recovery. Use FlashBack to view and repair historical data.

6-11 Copyright © Oracle Corporation, All rights reserved. Database Datafile 1 Datafile 2 Datafile 3 Control files Redo log file 1 Redo log file Causes of Instance Failure Instance SGA Redo log buffer Data buffer Large PoolLocks Shared pool Data dict. cache Shared SQL and PL/SQL PMON DBWnSMON LGWRCKPT ARCn User process Server process PGA User process Server process PGA 146 Parameter file Password file

6-12 Copyright © Oracle Corporation, All rights reserved. Recovery from Instance Failure No special recovery action is needed from DBA. Start the instance. Wait for the “database opened” notification. Notify users. Check alert file to determine the reason for the failure.

6-13 Copyright © Oracle Corporation, All rights reserved.

6-14 Copyright © Oracle Corporation, All rights reserved. Causes of Media Failures Head crash on a disk drive Physical problem in reading from or writing to database files File was accidentally erased

6-15 Copyright © Oracle Corporation, All rights reserved. Resolutions for Media Failures The recovery strategy depends on which backup method was chosen and which files are affected. If available, apply archived redo log files to recover data committed since the last backup.

6-16 Copyright © Oracle Corporation, All rights reserved. Defining a Backup and Recovery Strategy Business requirements Operational requirements Technical considerations Management concurrence

6-17 Copyright © Oracle Corporation, All rights reserved. Business Requirements Mean-Time-To-Recover Mean-Time-Between-Failure Evolutionary process

6-18 Copyright © Oracle Corporation, All rights reserved. Operational Requirements 24-hour operations Testing and validating backups Database volatility

6-19 Copyright © Oracle Corporation, All rights reserved.

6-20 Copyright © Oracle Corporation, All rights reserved. Technical Considerations Resources: hardware, software, manpower, and time Physical image copies of the operating system files Logical copies of the objects in the database Database configuration Transaction volume which affects desired frequency of backups

6-21 Copyright © Oracle Corporation, All rights reserved.

6-22 Copyright © Oracle Corporation, All rights reserved. Disaster Recovery Issues How will your business be affected in the event of a major disaster? –Earthquake, flood, or fire –Complete loss of machine –Malfunction of storage hardware or software –Loss of key personnel, such as the database administrator Do you have a plan for testing your strategy periodically?

6-23 Copyright © Oracle Corporation, All rights reserved.

6-24 Copyright © Oracle Corporation, All rights reserved. Summary In this lesson, you should have learned how to: Evaluate potential failures in your environment Develop a strategy dictated by business, operational, and technical requirements Consider a test plan for a backup and recovery strategy