1 Oracle Architectural Components. 1-2 Objectives Listing the structures involved in connecting a user to an Oracle server Listing the stages in processing.

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.
3 Managing an Oracle Instance. Objectives Setting up operating system and password file authentication Creating the parameter file Starting up an instance.
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.
15 Copyright © 2004, Oracle. All rights reserved. Monitoring and Managing Memory.
1 - Oracle Server Architecture Overview
Harvard University Oracle Database Administration Session 2 System Level.
Oracle Architectural Components
10 Copyright © 2009, Oracle. All rights reserved. Managing Undo Data.
A Guide to Oracle9i1 Introduction to Oracle9i Database Administration Chapter 11.
Backup and Recovery Part 1.
Introduction History The principles of the relational model were first outlined by Dr. E.F Codd in a June 1970 paper is called “A Relational Model of Data.
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)
INTRODUCTION TO ORACLE. 2 Before Databases  Information was kept in files:  Each field describes one piece of information about student  Fields are.
IS 4510 – Database Administration Module – 1 Database Architecture 9/14/20141Compiled by: Zafar Iqbal Khan.
M ODULE 1 DBMS S TRATEGY AND ORACLE A RCHITECTURE Database Administration Techniques and Practices 1 ITEC 450 Fall 2012.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
1 Copyright © 2009, Oracle. All rights reserved. Exploring the Oracle Database Architecture.
Database Administration Judy Riniker and Greg Girard from the KSU Information Systems Office.
Oracle Overview and 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.
OTHER DATABASE MODELS OTHER DATABASE MODELS The relational database is not the only database model in use today. Two other common models are distributed.
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
DBMS Transactions and Rollback Recovery Helia / Martti Laiho.
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.
7202ICT – Database Administration
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.
Outline Introduction to Oracle Memory Structures SGA, PGA, SCA The Specifics of the System Global Area (SGA) Structures Overview of Program Global Areas.
Process Architecture Process Architecture - A portion of a program that can run independently of and concurrently with other portions of the program. Some.
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.
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.
Preface 1Performance Tuning Methodology: A Review Course Structure 1-2 Lesson Objective 1-3 Concepts 1-4 Determining the Worst Bottleneck 1-5 Understanding.
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.
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.
1 Copyright © 2006, Oracle. All rights reserved. Introduction.
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.
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.
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.
Chapter 21 SGA Architecture and Wait Event Summarized & Presented by Yeon JongHeum IDS Lab., Seoul National University.
Oracle8/8i Database Administration
Oracle Architectural Components
Introduction To Oracle 10g
Oracle Memory Internals
Oracle Architectural Components
CS347 Spring 2017 – Quiz 5 Preparation - Solutions UTEID _________
PL/SQL Dynamic SQL and Oracle Architecture.
Database administration
Presentation transcript:

1 Oracle Architectural Components

1-2 Objectives Listing the structures involved in connecting a user to an Oracle server Listing the stages in processing a query Listing the stages in processing a DML statement Listing the stages in processing COMMITS Listing the structures involved in connecting a user to an Oracle server Listing the stages in processing a query Listing the stages in processing a DML statement Listing the stages in processing COMMITS

1-3 The Oracle Server Server Application/ network server Users Oracle server

1-4 Connecting to a Database User Client Server Server process Oracle server User process

1-5 User Process Runs on the client machine Is spawned when a tool or an application is invoked Runs the tool or application (SQL*Plus, Server Manager, Oracle Enterprise Manager, Developer/2000) Includes the User Program Interface (UPI) Generates calls to the Oracle server Runs on the client machine Is spawned when a tool or an application is invoked Runs the tool or application (SQL*Plus, Server Manager, Oracle Enterprise Manager, Developer/2000) Includes the User Program Interface (UPI) Generates calls to the Oracle server

1-6 Server Process Runs on the server machine (host) Services a single user process in the dedicated server configuration Uses an exclusive PGA Includes the Oracle Program Interface (OPI) Processes calls generated by the client Returns results to the client Runs on the server machine (host) Services a single user process in the dedicated server configuration Uses an exclusive PGA Includes the Oracle Program Interface (OPI) Processes calls generated by the client Returns results to the client

1-7 Oracle Instance Background processes An Oracle instance: Is a means to access an Oracle database Always opens one and only one database An Oracle instance: Is a means to access an Oracle database Always opens one and only one database Instance SGA

1-8 Oracle Database Control files Redo log files Data files Password file Parameter file Archived log files Database

1-9 Other Key Physical Structures Archived log files Password file Parameter file

1-10 Processing a Query Parse: Parse: - Search for identical statement -Check syntax, object names, privileges - Lock objects used during parse -Create and store execution plan Execute: identify rows selected Execute: identify rows selected Fetch: return rows to user process Fetch: return rows to user process

1-11 User process Server process Processing a Query (cont.) Parse Statement OK Handle Execute OK Handle Fetch Results SELECT * FROM emp ORDER BY ename; SELECT * FROM emp ORDER BY ename;

1-12 The Shared Pool Size defined by SHARED_POOL_SIZE Library cache contains statement text, parsed code, and an execution plan Data dictionary cache contains table and column definitions and privileges Size defined by SHARED_POOL_SIZE Library cache contains statement text, parsed code, and an execution plan Data dictionary cache contains table and column definitions and privileges Shared pool Library cache Data dictionary cache

1-13 Database Buffer Cache Number of buffers defined by DB_BLOCK_BUFFERS Size of a buffer based on DB_BLOCK_SIZE Stores the most recently used blocks Number of buffers defined by DB_BLOCK_BUFFERS Size of a buffer based on DB_BLOCK_SIZE Stores the most recently used blocks

1-14 Program Global Area (PGA) Not shared and not writable Contains – Sort area – Session information – Cursor state – Stack space Not shared and not writable Contains – Sort area – Session information – Cursor state – Stack space PGA Server process

1-15 Processing a DML Statement 1.If data blocks not in the buffer, server process reads them into the buffer 2.Server process places locks on rows to be modified 3.The redo log buffer is modified with the changed values 4.The data blocks are changed 5.Before image is recorded in the rollback block

1-16 Instance SGA Shared pool Library cache Redo log buffer Database buffer cache Data dictionary cache UPDATE emp SET sal=sal*1.1 WHERE empno=7369 UPDATE emp SET sal=sal*1.1 WHERE empno=7369 Processing a DML Statement (cont.) 1 Server process Control files Redo log files Data files Database

1-17 Rollback Segment DML statement Old image New image Rollback segment Table

1-18 Redo Log Buffer Size defined by LOG_BUFFER Records changes made through the instance Used sequentially Circular buffer Size defined by LOG_BUFFER Records changes made through the instance Used sequentially Circular buffer

1-19 Other Instance Processes Other required processesOther required processes - Database Write (DBW0) - Log Writer (LGWR) - Process Monitor (PMON) - System Monitor (SMON) - Checkpoint (CKPT) Archive process (ARC0) is optional; is used in production databaseArchive process (ARC0) is optional; is used in production database

1-20 Instance SGA Shared pool DBWR Database buffer cache Database Writer (DBWR) Control files Redo log files Data files DBW0 writes when: There are many dirty buffers There are many dirty buffers There are few free buffers There are few free buffers Timeout occurs Timeout occurs Checkpoint occurs Checkpoint occurs

1-21 Instance SGA Shared pool Redo log buffer LGWR Log Writer (LGWR) Control files Redo log files Data files LGWR writes when: There is a commit There is a commit The redo log buffer is one-third full The redo log buffer is one-third full There is more than 1MB of redo There is more than 1MB of redo Before DBW0 writes Before DBW0 writes

1-22 COMMIT Processing 1.Server process places a commit record and system change number (SCN) in redo log buffer. 2.LGWR writes redo log to redo log files. 3.User is informed COMMIT is complete 4.Server process records trans. Is complete and locks can be released.

1-23 Shared pool Redo log buffer LGWR Control files Redo log files Data files Database COMMIT Processing (cont.) Server process 1 2 User process 3 Database buffer cache 4 SGA Instance

1-24 SMON: System Monitor Automatically recovers the instance Automatically recovers the instance -Rolls forward changes in redo logs -Opens the database for user access -Rolls back uncommitted transactions Coalesces free spaces Coalesces free spaces Deallocates temporary segments Deallocates temporary segments

1-25 PMON: Process Monitor Cleans up after failed processes by: Rolling back the transaction Rolling back the transaction Releasing locks Releasing locks Releasing other resources Releasing other resources

1-26 Archiving Database archive mode Database archive mode - NOARCHIVELOG for databases that do not require recovery after disk failure - ARCHIVELOG mode for production ARC0 processARC0 process Automatically archives online redo log files Automatically archives online redo log files Preserves the record of all changes made to the database Preserves the record of all changes made to the database

1-27 Instance SGA Shared pool DBWRLGWR Database Control files Data files Redo log files User process Server process PGA Summary Password file Archived log files Parameter file

1-28 Summary (cont.) You should have learned: Explain the SGA, Instance, memory structures Explain the SGA, Instance, memory structures Explain the database files Explain the database files Explain the primary background processes (DBW0, LGWR, CKPT, PMON, SMON, ARC0) Explain the primary background processes (DBW0, LGWR, CKPT, PMON, SMON, ARC0) Explain SQL processing stepsExplain SQL processing steps Explain the COMMIT processExplain the COMMIT process