18 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Concepts.

Slides:



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

Chapter 14 Handling Online Redo Log Failures. Background RMAN doesn’t back up online redo logs You don’t use RMAN to recover from online redo log failures.
Oracle Architecture. Instances and Databases (1/2)
1 - Oracle Server Architecture Overview
10 Copyright © 2009, Oracle. All rights reserved. Managing Undo Data.
5 Copyright © 2006, Oracle. All rights reserved. Database Recovery.
RMAN Restore and Recovery
Backup and Recovery (2) Oracle 10g CAP364 1 Hebah ElGibreen.
Backup and Recovery Part 1.
Database Backup & Recovery David Konopnicki. Introduction A major responsibility of the database administrator is to prepare for the possibility of hardware,
4 Copyright © 2008, Oracle. All rights reserved. Configuring Backup Specifications.
CHAPTER 5 Managing Control Files, Online Redo Logs, and Archiving.
Oracle9i Database Administrator: Implementation and Administration
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.
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.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
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.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
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.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
7202ICT – Database Administration
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.
18 Copyright © Oracle Corporation, All rights reserved. Workshop.
Backup and Recovery Overview Supinfo Oracle Lab. 6.
16 Copyright © 2004, Oracle. All rights reserved. Undo Management.
Week 3 Lecture 1 The Redo Log Files and Diagnostic Files.
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
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.
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.
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.
Oracle Architecture - Structure. Oracle Architecture - Structure The Oracle Server architecture 1. Structures are well-defined objects that store the.
8 Copyright © 2007, Oracle. All rights reserved. Using RMAN to Duplicate a 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.
6 Copyright © Oracle Corporation, All rights reserved. Backup and Recovery Overview.
9 Copyright © 2004, Oracle. All rights reserved. Incomplete Recovery.
6 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
23 Copyright © 2004, Oracle. All rights reserved. Preferring the Past: Flashback.
9 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
10 Copyright © 2007, Oracle. All rights reserved. Managing Undo Data.
 Database Administration Oracle Database Instance Management Starting Up and Shutting Down أ. ندى الغامدي, أ. ندى الطوالة.
Backup and Recovery.
מימוש מערכות מסדי נתונים (236510)
Maintaining Online Redo Log Files
Backup and Recovery (1) Oracle 10g Hebah ElGibreen CAP364.
Is 221: Database Administration
Oracle9i Database Administrator: Implementation and Administration
Recovering from Noncritical Losses
Performing Database Recovery
Chapter 5 The Redo Log Files.
Presentation transcript:

18 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Concepts

18-2 Copyright © 2004, Oracle. All rights reserved. Objectives After completing this 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 Database. Describe ways to tune instance recovery. Identify the importance of checkpoints, redo log files, and archived log files. Configure ARCHIVELOG mode.

18-3 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Issues The administrator’s duty is to: Protect the database from failure wherever possible. Increase the Mean-Time-Between-Failures (MTBF). Decrease the Mean-Time-To-Recover (MTTR). Minimize the loss of data.

18-4 Copyright © 2004, Oracle. All rights reserved. Categories of Failures Failures can generally be divided into the following categories: Statement failure User process failure Network failure User error Instance failure Media failure

18-5 Copyright © 2004, Oracle. All rights reserved. Statement Failures Typical ProblemsPossible Solutions Attempts to enter invalid data into a table Work with users to validate and correct data. Attempts to perform operations with insufficient privileges Provide appropriate object or system privileges. Attempts to allocate space that fail Enable resumable space allocation. Increase user quota. Add space to tablespace. Logic errors in applications Work with developers to correct program errors.

18-6 Copyright © 2004, Oracle. All rights reserved. User Process Failure Typical ProblemsPossible Solutions User performed an abnormal disconnect. DBA action is not usually needed to resolve user process failures. Instance background processes roll back uncommitted changes and release locks. Watch for trends. User’s session was abnormally terminated. User experienced a program error which terminated the session.

18-7 Copyright © 2004, Oracle. All rights reserved. Network Failure Typical ProblemsPossible Solutions Listener failsConfigure a backup listener and connect-time failover. Network Interface Card (NIC) fails Configure multiple network cards. Network connection failsConfigure a backup network connection.

18-8 Copyright © 2004, Oracle. All rights reserved. User Errors Typical CausesPossible Solutions User inadvertently deletes or modifies data. Roll back or use flashback query to recover. User drops a table.Recover table from recycle bin.

18-9 Copyright © 2004, Oracle. All rights reserved. User Errors Full Notes Page

18-10 Copyright © 2004, Oracle. All rights reserved. Instance Failure Typical CausesPossible Solutions Power outageRestart the instance using the “startup” command. Recovery from instance failure is automatic including rolling forward changes in the redo logs and then rolling back any uncommitted transactions. Investigate causes of failure using the alert log, trace files, and Enterprise Manager. Hardware failure Failure of one of the background processes Emergency shutdown procedures

18-11 Copyright © 2004, Oracle. All rights reserved. Instance Recovery Instance or crash recovery: Is caused by attempts to open a database whose files were not synchronized on shutdown Is automatic Uses information stored in redo log groups to synchronize files Involves two distinct operations –Rolling forward: Data files are restored to their state before the instance failed. –Rolling back: Changes made but not committed are returned to their original state.

18-12 Copyright © 2004, Oracle. All rights reserved. Phases of Instance Recovery 1.Data files out-of-sync 2.Roll forward (redo) 3.Committed and non- committed data in files 4.Roll back (undo) 5.Committed data in files Database Undo Instance SGA Background Processes Data File SCN: 99 Data File SCN: 129 Data File SCN: 140 Control File SCN: 143 Control File SCN: 143 Redo Log Group SCN Redo Log Group SCN

18-13 Copyright © 2004, Oracle. All rights reserved. Tuning Instance Recovery During instance recovery the transactions between the checkpoint position and end of redo log must be applied to the data files. Tune instance recovery by controlling the difference between the checkpoint position and end of redo log. End of redo log Checkpoint position Transactions Instance recovery

18-14 Copyright © 2004, Oracle. All rights reserved. Using the MTTR Advisor Specify the desired time in seconds or minutes. Default value is 0 (disabled). Maximum value is 3600 seconds (one hour).

18-15 Copyright © 2004, Oracle. All rights reserved. Media Failure Typical CausesPossible Solutions Failure of disk drive1.Restore the affected file from backup. 2.If necessary, inform the database of a new file location. 3.If necessary, recover the file by applying redo information. Failure of disk controller Deletion or corruption of database file

18-16 Copyright © 2004, Oracle. All rights reserved. Configuring for Recoverability To configure your database for maximum recoverability: Schedule regular backups Multiplex control files Multiplex redo log groups Retain archived copies of redo logs

18-17 Copyright © 2004, Oracle. All rights reserved. Control Files Protect against database failure by multiplexing control files. At least two copies (Oracle suggests three) Each copy on a separate disk At least one copy on a separate disk controller Control Files

18-18 Copyright © 2004, Oracle. All rights reserved. Redo Log Files Multiplexing redo log groups to protect against media failure and loss of data. At least two members (files) per group Each member on a separate disk drive Each member on a separate disk controller Redo logs heavily influence performance Group 1Group 2Group 3 Member 1Member 2Member 1 Member 2Member 1Member 2 Disk 1 Disk 2

18-19 Copyright © 2004, Oracle. All rights reserved. Multiplexing the Redo Log

18-20 Copyright © 2004, Oracle. All rights reserved. Archived Log Files To preserve redo information, create archived copies of redo log files. Specify archived log file naming convention. Specify one or more locations to archive logs to. Switch the database to ARCHIVELOG mode. Online Redo Log FilesArchived log files

18-21 Copyright © 2004, Oracle. All rights reserved. Archive Log File Naming and Destinations Specify archived log file name and destinations.

18-22 Copyright © 2004, Oracle. All rights reserved. Archive Log File Naming and Destinations Full Notes Page

18-23 Copyright © 2004, Oracle. All rights reserved. ARCHIVELOG Mode Place the database in ARCHIVELOG mode. Click the ARCHIVELOG Mode checkbox Click Apply. The database can only be set to ARCHIVELOG mode from the MOUNT state. Click Yes when asked if you want to restart the database.

18-24 Copyright © 2004, Oracle. All rights reserved. Summary In this lesson you should have learned how to: Describe the basics of database backup, restore and recovery List the types of failure that may occur in an Oracle Database Identify the importance of checkpoints, redo log files, and archived log files Configure ARCHIVELOG mode Describe ways to tune instance recovery

18-25 Copyright © 2004, Oracle. All rights reserved. Practice 18: Backup and Recovery Concepts This practice covers the following: Multiplexing control files Multiplexing redo log groups Placing your database in ARCHIVELOG mode Ensuring that redundant archive logs are created

18-26 Copyright © 2004, Oracle. All rights reserved. Practice Lesson 18 Full Notes Page