Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 1 Backup and Recovery Overview MSCD642 Backup and Recovery.

Slides:



Advertisements
Similar presentations
The Architecture of Oracle
Advertisements

Introduction to Oracle
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)
Page Footer Keed Education Oracle Database Administration Basic Copyright 2009 Keed Education BV Version Concept.
INTRODUCTION TO ORACLE DATABASE ADMINISTRATION Lynnwood Brown System Managers LLC Introduction – Lecture 1 Copyright System Managers LLC 2007 all rights.
1 - Oracle Server Architecture Overview
Harvard University Oracle Database Administration Session 2 System Level.
Oracle Architectural Components
Advanced Databases Basic Database Administration Guide to Oracle 10g 1.
A Guide to Oracle9i1 Introduction to Oracle9i Database Administration Chapter 11.
Backup and Recovery Part 1.
Oracle Architecture. Database instance When a database is started the current state of the database is given by the data files, a set of background (BG)
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
1 Copyright © 2009, Oracle. All rights reserved. Exploring the Oracle Database Architecture.
Oracle Database Workshop 1 Presented to IBRI CAS 27-Nov-2011 By Abdullah Alkalbani.
Oracle Documentation Oracle DBA Course (9i, 10g, 11g) Lecture 1: Oracle Architectural Components.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Oracle on Windows Server Introduction to Oracle10g on Microsoft Windows Server.
Basic Oracle Architecture
By Lecturer / Aisha Dawood 1.  You can control the number of dispatcher processes in the instance. Unlike the number of shared servers, the number of.
CSE 781 – DATABASE MANAGEMENT SYSTEMS Introduction To Oracle 10g Rajika Tandon.
Database Systems Slide 1 Database Systems Lecture 5 Overview of Oracle Database Architecture - Concept Manual : Chapters 1,8 Lecturer : Dr Bela Stantic.
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
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.
Oracle Tuning Ashok Kapur Hawkeye Technology, Inc.
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.
Backup and Recovery Overview Supinfo Oracle Lab. 6.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
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.
INTRODUCTION TO ORACLE DATABASE ADMINISTRATION Lynnwood Brown President System Managers LLC Introduction – Lecture 1 Copyright System Managers LLC 2003.
Instance and Media Recovery Structures Supinfo Oracle Lab. 7.
Overview of Oracle Backup and Recovery Darl Kuhn, Regis University.
18 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Concepts.
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.
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.
3 Copyright © 2004, Oracle. All rights reserved. Database Architecture Comparison.
1 Copyright © 2006, Oracle. All rights reserved. Introduction.
I NTRODUCTION OF W EEK 2  Assignment Discussion  Due this week:  1-1 (Exam Proctor): everyone including in TLC  1-2 (SQL Review): review SQL  Review.
What is Oracle ? Oracle is a relational database management system. It is a management system which uses the relational data model. In the relational data.
9 Copyright © 2004, Oracle. All rights reserved. Incomplete Recovery.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
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.
 Database Administration Oracle Database Instance Management Starting Up and Shutting Down أ. ندى الغامدي, أ. ندى الطوالة.
Initialization Parameters
Instance and Media Recovery Structures
Is 221: Database Administration
Oracle Architectural Components
Introduction To Oracle 10g
Oracle Memory Internals
Oracle Architectural Components
Index Index.
Database administration
Presentation transcript:

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 1 Backup and Recovery Overview MSCD642 Backup and Recovery

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 2 Chapter Objectives Identify the files associated with an Oracle9i database List the logical structure of an Oracle9i database Identify the components of an Oracle9i instance

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 3 Chapter Objectives (Cont.) Identify the purpose of each background process of an Oracle instance Identify the purpose of each component of the system global area (SGA) Identify the purpose of the INIT.ORA file and the version available with the Oracle9i database

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 4 Chapter Objectives (Cont.) Define mean-time-between-failures (MTBF) and mean-time-to-recover (MTTR) Identify the parameters that can be used to speed up instance recovery Identify the various types of failures that can occur in an Oracle9i database

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 5 Chapter Objectives (Cont.) Use the Enterprise Manager Console to view the names and locations of the control file

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 6 Oracle9i Database Structures Database – consists of both a physical and logical structure –Physical structure – the physical operating system files –Logical structure – structures referenced and manipulated by the DBMS

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 7 Physical Structure Three types of database files: –Control file –Redo log file –Data file

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 8 Control File Small binary file containing: –name of database –location and name of all data and redo log files Recommended: two mirrored copies Minimum: one Maximum: eight Default: three

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 9 Redo Log File Contains committed transactions Changes must be written to a redo log file before updated to data files Two files are required, three is the default Written to in a circular fashion

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 10 Redo Log File Write Sequence

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 11 Data File Stores the actual database data Have the file extension.dbf DOES NOT correspond to an object name

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 12 Locating Database Files Location of file Physical and Logical Structures

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 13 Logical Structure Database - largest Tablespace Segment Extent Oracle9i data block – smallest

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 14 Tablespace Contains related objects: –Indexes –Table data Belongs to only one database Stored in one or more data files Composed of segments

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 15 Segment Four types: –Data segments: store table data –Index segments: store index data –Undo segments: store data for rollback operations –Temporary segments: store data for sort operations Consist of extents Can belong to only one tablespace at a time

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 16 Extent Consists of contiguous Oracle9i data blocks Add more extents to: –Increase size of segment; –Subsequently increases size of tablespace

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 17 Oracle9i Data Block Smallest storage unit that can be referenced by the DBMS Size specified during database creation Should be multiple of operating system block size Maximum size is operating system dependent

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 18 Relationship Between Physical and Logical Structures

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 19 Oracle9i Instance Consists of: –Background processes –Memory structures Started before the database files are opened

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 20 Background Processes System Monitor (SMON) – performs instance recovery Process Monitor (PMON) – “cleans up” failed user processes Log Writer (LGWR) – writes all changed data blocks from memory to the redo log files

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 21 Background Processes (Cont.) Database Writer (DBWn) – writes changed data blocks from memory to the actual data files Checkpoint (CKPT) – triggers writing of modified data Archiver (ARCn) – copies filled online redo log files after a log switch (optional process)

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 22 Memory Structures Program global area (PGA) –Contents vary based on database server configuration –Allocated when the server process is started –Deallocated when the server process ends System global area (SGA) – –Consists of several substructures –Allocated when the instance is started

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 23 System Global Area (SGA) Substructures SGA substructures include: –Shared pool library cache: holds most recently used SQL and PL/SQL statements data dictionary cache: holds database object information –Database buffer cache: contains most recently used data blocks –Redo log buffer: stores changes made to contents of the data files

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 24 Initialization File (INIT.ORA) Contains parameter values for starting the database Two versions: –Pfile Can be altered using a text editor Create from spfile using CREATE pfile FROM spfile; –Spfile Binary; generated by Oracle9i server Can be created from alter pfile using CREATE spfile FROM pfile;

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 25 Spfile Example

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 26 Backup and Recovery Terminology Backup – creating valid copies of database files Recovery – returning the database to a desired state

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 27 DBA Recovery Goals Mean-time-between-failures (MTBF) –Increase by performing preventive maintenance Mean-time-to-recover (MTTR) –Decrease with frequent backups and recovery preparation

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 28 Tuning Instance Recovery FAST_START_MTTR_TARGET parameter: –Maximum number of seconds worth of data writes that should be held in memory –Value range: 0 to 3600 seconds FAST_START_PARALLEL_ROLLBACK parameter: –Can enable parallel processes for SMON operations –Possible values: FALSE, HIGH, or LOW

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 29 Database Failure Two types: –Non-media failure Usually recoverable by background processes –Media failure Unable to access a database file Requires DBA intervention

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 30 Types of Non-Media Failures Process failure –Internal error or abnormal termination –Normally corrected by PMON Instance failure –Instance shuts down abruptly –Normally corrected by SMON

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 31 Types of Non-Media Failures (Cont.) Statement failure –Syntax error in submitted SQL or PL/SQL statement –Corrected by submitting valid statement User error –Data or tables are incorrectly altered –May require DBA intervention to correct error

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 32 Backup and Recovery Strategy Factors Determine the strategic importance of the database Develop a backup strategy based on availability concerns Recovery method depends on cause of database failure Always test (and practice) recovery methods

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 33 Chapter Summary An Oracle9i database is composed of three types of physical files: control, data, and redo log files Has both a physical and logical structure Oracle server consists of both a database and an instance An instance consists of background processes and memory structures

Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 34 Chapter Summary (Cont.) Background process started by default: SMON, PMON, LGWR, DBWn, and CKPT Two primary memory areas: PGA and SGA INIT.ORA file consists of initialization parameters used during instance and database start-up Two types of failures: non-media and media