Chapter 21 SGA Architecture and Wait Event 2008. 07. 25. Summarized & Presented by Yeon JongHeum IDS Lab., Seoul National University.

Slides:



Advertisements
Similar presentations
Office of the Accountant General (A&E) Andhra Pradesh Hyderabad
Advertisements

The Architecture of Oracle
1 Chapter 16 Latch and Mutex Contention. 2 Architecture Overview of Latches Protect Oracle’s SGA Prevent two processes from updating same area of SGA.
Buffer Cache Waits. #.2 Copyright 2006 Kyle Hailey Buffer Cache Waits Waits Disk I/O Buffer Busy Library Cache Enqueue SQL*Net Free Buffer Hot Blocks.
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)
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
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)
IS 4510 – Database Administration Module – 1 Database Architecture 9/14/20141Compiled by: Zafar Iqbal Khan.
Redo Waits Kyle Hailey #.2 Copyright 2006 Kyle Hailey Log File Waits  Redo is written to disk when  User commits  Log Buffer.
Redo Waits Kyle Hailey #.2 Copyright 2006 Kyle Hailey Redo REDO Lib Cache Buffer Cache Locks Network I/O.
Oracle Architecture Client Computer Application Server Oracle Database Lan Or Internet Lan Or Internet Client Server Environment Application By Java or.Net.
Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical.
Agenda Journalling More Embedded SQL. Journalling.
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.
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.
1 Robert Wijnbelt Health Check your Database A Performance Tuning Methodology.
Part II : Waits Events Kyle Hailey
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
Oracle9i Performance Tuning Chapter 2 Tuning the Buffer Cache.
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.
Backup and Recovery Overview Supinfo Oracle Lab. 6.
Anton TopurovIT-DB 23 April 2013 Introduction to Oracle2.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
Using Procedures & Functions Oracle Database PL/SQL 10g Programming Chapter 9.
Introduction to Oracle. Oracle History 1979 Oracle Release client/server relational database 1989 Oracle Oracle 8 (object relational) 1999.
Outline Introduction to Oracle Memory Structures SGA, PGA, SCA The Specifics of the System Global Area (SGA) Structures Overview of Program Global Areas.
1 Chapter 17 Shared Memory Contention. 2 Overview Specifically talking about SGA – Buffer Cache – Redo Log Buffer Contention in these areas of SGA – Can.
D Copyright © Oracle Corporation, All rights reserved. Loading Data into a Database.
Process Architecture Process Architecture - A portion of a program that can run independently of and concurrently with other portions of the program. Some.
11 Copyright © 2006, Oracle. All rights reserved. Checkpoint and Redo Tuning.
Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 1 Backup and Recovery Overview MSCD642 Backup and 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.
Oracle9i Performance Tuning Chapter 4 Tuning the Shared Pool Memory.
8 Copyright © 2006, Oracle. All rights reserved. Tuning the Shared Pool.
6 Copyright © Oracle Corporation, All rights reserved. Backup and Recovery Overview.
3 Copyright © 2004, Oracle. All rights reserved. Database Architecture Comparison.
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.
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.
10 Copyright © 2007, Oracle. All rights reserved. Managing Undo Data.
Initialization Parameters
Kyle Hailey Redo Waits Kyle Hailey
Oracle Architectural Components
Introduction To Oracle 10g
Oracle Memory Internals
Oracle Architectural Components
CS347 Spring 2017 – Quiz 5 Preparation - Solutions UTEID _________
Database administration
Presentation transcript:

Chapter 21 SGA Architecture and Wait Event Summarized & Presented by Yeon JongHeum IDS Lab., Seoul National University

Copyright  2008 by CEBT Primary Components of Oracle 2

Copyright  2008 by CEBT System Global Area(SGA)  Memory Structure of Instance  Shared Pool Used to store the most recently executed SQL Used to Most recently used data definitions  Database Buffer Cache Stores copies of data block that have been retrieved from the data files  Redo Log Buffer Cache Records all changes made to the database data blocks 3

Copyright  2008 by CEBT Shared Pool  Library cache Contains statement text, parsed code, and execution plan  Data dictionary cache Contains definitions for tables, columns, and privileges from the data dictionary tables  UGA Session information for Oracle Shared Server user when large pool is not configured 4

Copyright  2008 by CEBT Library Cache  Used to store SQL statements and PL/SQL blocks to be shared by users  Managed by an LRU algorithm  Used to prevent statement reparsing 5

Copyright  2008 by CEBT Tuning Shared Pool  Shared Pool Size SHARED_POOL_SIZE SHARED_POOL_RESERVED_SIZE V$SHARED_POOL_RESERVED  Wait Event V$SESSION_WAIT or Statspack Latch Free Wait Event Library Cache Load Lock Wait Event Library Cache Lock Wait Event 6

Copyright  2008 by CEBT Database Buffer Cache  Stores copies of data block and rollback block for caching that have been retrieved from the data files that server read  Enables great performance gains when you obtain and update data  Managed through a least recently used(LRU) algorithm 7

Copyright  2008 by CEBT Diagnostic Tools for DB Buffer Cache 8

Copyright  2008 by CEBT Latch of Database Buffer Cache  Cache Buffer Chain Latch Guarantee buffer header serialize access(protect hash chain) Processes need to acquire latch to get buffer header lock Assign to each Hash Bucket  Cache Buffer LRU Chain Latch Guarantee LRU list serialize access Assign to each LRU List 9

Copyright  2008 by CEBT Tuning Database Buffer Cache  Sizing Database Buffer Cache DB_CACHE_SIZE DB_KEEP_CACHE_SIZE DB_RECYCLE_CACHE_SIZE  Wait Event Buffer Busy Wait Event Free Buffer Wait Event Local Write Wait Event Buffer Dead Lock Wait Event Direct Path Write Wait Event Direct Path Read Wait Event Write Complete Wait Event 10

Copyright  2008 by CEBT Redo Log Buffer  Processes copy redo entries from the user’s memory space to the redo log buffer for each DML or DDL statement  The redo entries contain the information necessary to reconstruct or redo changes made to the database by INSERT, UPDATE, DELETE CREATE, ALTER, or DROP operations.  Used for database recovery  Take up continuous, sequential space in the buffer 11

Copyright  2008 by CEBT Latch of Redo Log Buffer  Redo Copy Latch Write log data to redo log buffer Two times of CPU number  Redo Allocation Latch Check and assign free spaces of redo log buffer to processes Write log data order by time Only one in the database  Redo Writing Latch Write data of redo log buffer to redo log file by LGWR Guarantee that only one LGWR executes 12

Copyright  2008 by CEBT Tuning Redo Log Buffer  Sizing the Redo Log Buffer Adjust the LOG_BUFFER parameter Default value : OS-specific, generally 500k  Wait Event Log Buffer Space Wait Event LGWR Wait For Redo Copy Wait Event Log File Sequential Redo Wait Event Log File Parallel Write Wait Event Log File Single Write Wait Event Log File Sync Wait Event Log File Switch Completion Wait Event Log File Switch(Check Incomplete) Wait Event Log File Switch(Archive Needed) Wait Event Log File Switch(Clear Log File) Wait Event Switch Log File Command Wait Event Redo Switch/Archive Wait Event 13