Preface 1Performance Tuning Methodology: A Review Course Structure 1-2 Lesson Objective 1-3 Concepts 1-4 Determining the Worst Bottleneck 1-5 Understanding.

Slides:



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

9 Copyright © 2006, Oracle. All rights reserved. Automatic Performance Management.
13 Copyright © 2005, Oracle. All rights reserved. Monitoring and Improving Performance.
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
The Architecture of Oracle
Introduction to Oracle
4 Copyright © 2005, Oracle. All rights reserved. Managing the Oracle Instance.
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)
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.
12 Copyright © 2005, Oracle. All rights reserved. Proactive Maintenance.
1 - Oracle Server Architecture Overview
Harvard University Oracle Database Administration Session 2 System Level.
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)
Redo Waits Kyle Hailey #.2 Copyright 2006 Kyle Hailey Log File Waits  Redo is written to disk when  User commits  Log Buffer.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
1 Copyright © 2009, Oracle. All rights reserved. Exploring the Oracle Database Architecture.
Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical.
2 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Overview.
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
1Introduction Objectives 1-2 Course Objectives 1-3 Oracle Products 1-4 Relational Database Systems 1-5 How the Data Is Organized 1-6 Integrity Constraints.
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.
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.
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.
Anton TopurovIT-DB 23 April 2013 Introduction to Oracle2.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
15 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Summary.
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.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
11 Copyright © 2006, Oracle. All rights reserved. Checkpoint and Redo Tuning.
INTRODUCTION TO ORACLE DATABASE ADMINISTRATION Lynnwood Brown President System Managers LLC Introduction – Lecture 1 Copyright System Managers LLC 2003.
Oracle 10g Database Administrator: Implementation and Administration Chapter 5 Basic Storage Concepts and Settings.
Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 1 Backup and Recovery Overview MSCD642 Backup and Recovery.
3 Copyright © 2006, Oracle. All rights reserved. Statistics and Wait Events.
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.
Oracle9i Performance Tuning Chapter 4 Tuning the Shared Pool Memory.
8 Copyright © 2006, Oracle. All rights reserved. Tuning the Shared Pool.
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.
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
Chapter 21 SGA Architecture and Wait Event Summarized & Presented by Yeon JongHeum IDS Lab., Seoul National University.
Oracle Architectural Components
Oracle Memory Internals
Oracle Architectural Components
Index Index.
Presentation transcript:

Preface 1Performance Tuning Methodology: A Review Course Structure 1-2 Lesson Objective 1-3 Concepts 1-4 Determining the Worst Bottleneck 1-5 Understanding Workload Characteristics 1-6 A Simple Methodology 1-7 State the Problem 1-9 Find the Problem Stack 1-15 Drill Down and Find the Worst Bottleneck 1-19 Fix It 1-21 Test Against the Baseline 1-22 Repeat Until You Hit Your Goal 1-23 Detecting Performance Problems 1-24 Database Server Stack 1-25 Database Server Tuning 1-26 Summary Enqueue Structures Objectives 2-2 Introduction to Oracle Lock Types 2-3 Enqueues 2-4 Enqueue Identifiers 2-5 Enqueue Modes 2-6 Enqueue Compatibility 2-7 Resources and Locks 2-8 Resource Structure 2-10 Client and Managed Enqueues 2-11 State Objects 2-13 Hashing and Latching 2-14 Resource Free List 2-17 Initialization Parameters 2-18 Lock Acquisition 2-19 Lock Conversion 2-20 Lock Release 2-21 Enqueue Operations 2-22 Enqueue Operations Example 2-23 Wait Event: Enqueue 2-25 Tuning Enqueue Waits 2-27 Deadlock Detection 2-28 Diagnostics: State Object Dump 2-30 Diagnostics: Enqueues Dump 2-34 Diagnostics: V$LOCK 2-36 Diagnostics: V$RESOURCE 2-37 Contents iii

Diagnostics: V$LOCKED_OBJECT 2-38 Diagnostics: Scripts 2-39 Summary 2-41 References Understanding Lock Contention Objectives 3-2 Data Dictionary Locks 3-3 Row Cache Locks 3-4 Wait Event: Row Cache Lock 3-5 Library Cache Locks 3-6 Wait Event: Library Cache Lock 3-7 Library Cache Pins 3-8 Wait Event: Library Cache Pin 3-9 DML Locks 3-10 DML Table Locks: Implementation 3-11 Disabling DML Table Locks 3-12 DML Row Locks 3-14 Row-Level Locks 3-15 Row-Level Conflict 3-16 Resolving Row-Level Conflict 3-18 ITL Contention 3-20 Transaction Locks 3-21 Transaction Identifiers 3-22 Transaction Table Dump 3-24 Finding the Row That Is Locked 3-25 Buffer Locks 3-26 Wait Event: Buffer Busy Waits 3-27 Buffer Lock Contention 3-29 Data Block Contention 3-31 Undo Segment Contention 3-33 Diagnosing Undo Segment Header Contention 3-34 Index Block Contention 3-36 Free List Contention 3-37 Resolving Free List Contention 3-38 Wait Event: Write Complete Waits 3-39 Sort Locks 3-40 ORA SMON Functions 3-42 Coalescing Free Space 3-43 Disabling Background Coalescing 3-44 Temporary Segment Cleanup 3-45 Disabling Temporary Segment Cleanup 3-46 Summary 3-47 References 3-48 iv

4Latch Internals Objectives 4-2 Purpose of Latches 4-3 Latch Characteristics 4-4 Latch Implementation 4-5 Oracle Latch Implementation 4-6 Latch Attributes 4-7 Latch Levels 4-9 Latch Declaration 4-10 Internal Latch Structures 4-11 Latch Interface Routines: Examples 4-12 Waiting for a Latch 4-13 Latch Acquisition in No-Wait Mode 4-15 Latch Acquisition in Wait Mode 4-16 Latch Release 4-18 Latch Cleanup Function 4-19 Wait Event: Latch Free Example 4-20 Using V$ Views 4-30 Latch Contention 4-32 Tuning the Spin Count 4-33 Highly Used Latches 4-34 Diagnostics: Latch Views 4-36 Diagnostics: Latches Dump 4-38 Latch Contention Diagnosis: Example 4-40 Latch Monitoring Summary 4-45 Summary 4-46 Reference Memory Management Objectives 5-2 Memory Areas 5-3 System Global Area 5-4 Dynamic SGA Memory Allocation 5-5 Granule Size 5-7 Granule Memory Manager 5-8 SGA and Shared Memory 5-10 Configuring Shared Memory 5-12 SGA Shared Memory Allocation 5-14 Fixed Area 5-16 Database Block Buffers 5-17 Redo Buffers 5-19 Variable Area 5-20 Heaps and Subheaps 5-21 More on Subheaps 5-22 The Shared Pool 5-23 v

Allocation Classes 5-24 Allocation Classes Viewed in X$KSMSP 5-26 Chunk Allocation: Free Lists 5-27 Chunk Allocation: LRU Lists 5-29 Chunk Allocation: Hidden Free Memory 5-31 The Reserved Pool 5-32 Keeping Objects 5-33 Flushing the Shared Pool 5-34 The Large Pool 5-35 The Java Pool 5-36 Process Global Area 5-37 User Global Area 5-38 Call Global Area 5-39 Heap Dumps 5-40 Subheap Dumps 5-42 Summary 5-43 References The Buffer Cache Objectives 6-2 The Kernel Buffer Cache 6-3 Buffer Cache 6-4 Kernel Layout 6-5 Source Code 6-6 Basic Terminology 6-7 Hash Buckets and Chains 6-8 Overview of Buffer Cache 6-9 Buffer Header (kcbbh) 6-10 Multiple Buffer Pools 6-11 Buffer Pool (kcbwbpd) 6-12 LRU 6-13 Multiple LRU lists 6-14 LRU Lists 6-15 Working Sets (kcbwds) 6-17 Working Sets 6-18 Buffer Cache Users 6-19 Buffer Get 6-20 Buffer Gets 6-21 Getting Current Buffers 6-22 Buffer Management 6-23 Touch Count 6-25 Write Priority 6-27 DBWR and Checkpoints 6-28 Working Sets and DBWR 6-29 DBWR Invocation 6-30 DBWR: Make Clean Buffers 6-31 vi

Checkpoints 6-33 DBWR: LGWR Invocation 6-34 Checkpoint and File Queues 6-35 Checkpoint Queues 6-37 Checkpoint Queue Management 6-38 DBWR: Flush DBA Range 6-39 DBWR: Flush Invalidated Range 6-40 Buffer Cache Events 6-41 Buffer Cache Statistics 6-43 DBWR Statistics 6-45 Buffer Cache Latches 6-46 Buffer Cache Fixed Tables 6-48 Tuning the Buffer Cache 6-49 Buffer Busy Waits 6-51 Free Buffer Waits 6-53 Initialization Parameters 6-54 Additional Tips 6-56 Summary 6-57 References The Library Cache 7-1 Objectives 7-2 The Library Cache 7-3 Library Cache Objects 7-4 Shared Cursors 7-5 Library Cache Architecture 7-7 Hash Buckets 7-8 Object Handles 7-9 Heap 0 (Object) 7-10 Object Types 7-11 Object Names 7-13 Object Flags 7-14 Object Tables 7-16 Object Data Blocks 7-18 Library Cache Object 7-19 Object Heaps 7-20 Locks and Pins 7-22 Lock and Pin Persistence 7-23 Lock Modes 7-24 Lock Compatibility 7-25 Pin Modes 7-26 Library Cache Latches 7-27 Causes of Library Cache Contention 7-29 Sharing Cursors 7-31 Checking for Cursor Sharing 7-32 Diagnostics: V$LIBRARYCACHE 7-34 vii

Diagnostics: Library Cache Dump 7-36 Library Cache Dump Interpretation 7-37 Diagnostics: V$SGASTAT 7-42 Diagnostics: V$SQLAREA 7-44 Other Tuning Tips 7-45 Library Cache Contention Diagnosis 7-47 Latch Contention Diagnostics 7-48 Summary 7-49 References Redo and Archiving 8-1 Objectives 8-2 Redo Architecture Concepts 8-3 Logging Methods 8-4 Oracle9 i Architecture Diagram 8-6 Redo Logging in the Oracle Server 8-7 Page Fix Rule 8-8 Write-Ahead Logging 8-9 Log Force at Commit 8-10 Logical Ordering of Redo 8-11 Redo Log 8-12 Redo Byte Address 8-13 Redo Log Buffer 8-14 Redo Generation 8-16 Writes to Redo Log Files 8-19 LGWR Algorithm 8-21 Redo Wait Events 8-23 Redo Statistics 8-25 Redo Latches 8-27 Optimizing the Redo Buffer 8-28 Tuning Redo Latch Contention 8-30 Redo-less Operations 8-32 NOLOGGING Performance 8-33 Redo with NOLOGGING 8-34 Archiving 8-35 Events that Post the Archiver 8-36 ARCH Process Flow 8-37 Archiver Operations 8-39 Tuning ARCH 8-40 Multiple Archive Log Processes 8-43 Archive Problem Solving 8-44 Summary 8-46 References 8-47 Appendix A Appendix B viii