Sunteți pe pagina 1din 11

Oracle Database

Performance Tuning Guide


10g Release 2 (10.2)
B14211-03

March 2008

Oracle Database Performance Tuning Guide, 10g Release 2 (10.2)


B14211-03
Copyright 2000, 2008, Oracle. All rights reserved.
Primary Author:

Immanuel Chan

Contributors: Aditya Agrawal, James Barlow, Vladimir Barriere, Ruth Baylis, Eric Belden, Pete Belknap,
Qiang Cao, Sunil Chakkappen, Sumanta Chatterjee, Alvaro Corena, Benoit Dageville, Dinesh Das, Karl Dias,
Vinayagam Djegaradjane, Harvey Eneman, Bjorn Engsig, Mike Feng, Cecilia Gervasio, Bhaskar Ghosh, Ray
Glasstone, Leslie Gloyd, Prabhaker Gongloor, Connie Dialeris Green, Russell Green, Joan Gregoire, Lester
Gutierrez, Lex de Haan, Karl Haas, Brian Hirano, Lilian Hobbs, Andrew Holdsworth, Mamdouh Ibrahim,
Hakan Jacobsson, Christopher Jones, Srinivas Kareenhalli, Feroz Khan, Stella Kister, Paul Lane, Sue K. Lee,
Herve Lejeune, Yunrui Li, Juan Loaiza, Diana Lorentz, George Lumpkin, Joe McDonald, Bill McKenna,
Mughees Minhas, Valarie Moore, Sujatha Muthulingam, Gary Ngai, Michael Orlowski, Kant C. Patel,
Richard Powell, Mark Ramacher, Shankar Raman, Yair Sarig, Uri Shaft, Vinay Srihari, Sankar Subramanian,
Margaret Susairaj, Hal Takahara, Misha Tyulenev, Mark Van de Wiel, Venkateshwaran Venkataramani,
Nitin Vengurlekar, Stephen Vivian, Simon Watt, Andrew Witkowski, Graham Wood, Khaled Yagoub,
Mohamed Zait
The Programs (which include both the software and documentation) contain proprietary information; they
are provided under a license agreement containing restrictions on use and disclosure and are also protected
by copyright, patent, and other intellectual and industrial property laws. Reverse engineering, disassembly,
or decompilation of the Programs, except to the extent required to obtain interoperability with other
independently created software or as specified by law, is prohibited.
The information contained in this document is subject to change without notice. If you find any problems in
the documentation, please report them to us in writing. This document is not warranted to be error-free.
Except as may be expressly permitted in your license agreement for these Programs, no part of these
Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any
purpose.
If the Programs are delivered to the United States Government or anyone licensing or using the Programs
on behalf of the United States Government, the following notice is applicable:
U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data
delivered to U.S. Government customers are "commercial computer software" or "commercial technical
data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental
regulations. As such, use, duplication, disclosure, modification, and adaptation of the Programs, including
documentation and technical data, shall be subject to the licensing restrictions set forth in the applicable
Oracle license agreement, and, to the extent applicable, the additional rights set forth in FAR 52.227-19,
Commercial Computer Software--Restricted Rights (June 1987). Oracle USA, Inc., 500 Oracle Parkway,
Redwood City, CA 94065.
The Programs are not intended for use in any nuclear, aviation, mass transit, medical, or other inherently
dangerous applications. It shall be the licensee's responsibility to take all appropriate fail-safe, backup,
redundancy and other measures to ensure the safe use of such applications if the Programs are used for such
purposes, and we disclaim liability for any damages caused by such use of the Programs.
Oracle, JD Edwards, PeopleSoft, and Siebel are registered trademarks of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective owners.
The Programs may provide links to Web sites and access to content, products, and services from third
parties. Oracle is not responsible for the availability of, or any content provided on, third-party Web sites.
You bear all risks associated with the use of such content. If you choose to purchase any products or services
from a third party, the relationship is directly between you and the third party. Oracle is not responsible for:
(a) the quality of third-party products or services; or (b) fulfilling any of the terms of the agreement with the
third party, including delivery of products or services and warranty obligations related to purchased
products or services. Oracle is not responsible for any loss or damage of any sort that you may incur from
dealing with any third party.

Contents
Preface ............................................................................................................................................................. xxiii
Audience...................................................................................................................................................
Documentation Accessibility .................................................................................................................
Related Documents .................................................................................................................................
Conventions .............................................................................................................................................

xxiii
xxiii
xxiv
xxiv

What's New in Oracle Performance? ............................................................................................ xxv


Part I
1

Performance Tuning

Performance Tuning Overview


Introduction to Performance Tuning....................................................................................................
Performance Planning .......................................................................................................................
Instance Tuning ..................................................................................................................................
Performance Principles ..............................................................................................................
Baselines .......................................................................................................................................
The Symptoms and the Problems.............................................................................................
When to Tune .............................................................................................................................
Proactive Monitoring ..........................................................................................................
Bottleneck Elimination ........................................................................................................
SQL Tuning .........................................................................................................................................
Query Optimizer and Execution Plans ....................................................................................
Introduction to Performance Tuning Features and Tools ................................................................
Automatic Performance Tuning Features ......................................................................................
Additional Oracle Tools ....................................................................................................................
V$ Performance Views ...............................................................................................................

Part II
2

1-1
1-1
1-1
1-2
1-2
1-2
1-3
1-3
1-3
1-3
1-4
1-4
1-5
1-5
1-5

Performance Planning

Designing and Developing for Performance


Oracle Methodology ................................................................................................................................
Understanding Investment Options.....................................................................................................
Understanding Scalability......................................................................................................................
What is Scalability? ............................................................................................................................
System Scalability...............................................................................................................................

2-1
2-1
2-2
2-2
2-3
iii

Factors Preventing Scalability .......................................................................................................... 2-4


System Architecture................................................................................................................................. 2-5
Hardware and Software Components ............................................................................................ 2-5
Hardware Components.............................................................................................................. 2-5
CPU ........................................................................................................................................ 2-5
Memory ................................................................................................................................. 2-5
I/O Subsystem ..................................................................................................................... 2-5
Network ................................................................................................................................ 2-6
Software Components ................................................................................................................ 2-6
Managing the User Interface.............................................................................................. 2-6
Implementing Business Logic ............................................................................................ 2-6
Managing User Requests and Resource Allocation........................................................ 2-6
Managing Data and Transactions...................................................................................... 2-7
Configuring the Right System Architecture for Your Requirements ......................................... 2-7
Application Design Principles.............................................................................................................. 2-9
Simplicity In Application Design.................................................................................................. 2-10
Data Modeling ................................................................................................................................. 2-10
Table and Index Design.................................................................................................................. 2-10
Appending Columns to an Index or Using Index-Organized Tables .............................. 2-11
Using a Different Index Type................................................................................................. 2-11
B-Tree Indexes .................................................................................................................. 2-11
Bitmap Indexes ................................................................................................................. 2-11
Function-based Indexes .................................................................................................. 2-11
Partitioned Indexes........................................................................................................... 2-11
Reverse Key Indexes......................................................................................................... 2-12
Finding the Cost of an Index .................................................................................................. 2-12
Serializing within Indexes ...................................................................................................... 2-12
Ordering Columns in an Index .............................................................................................. 2-12
Using Views ..................................................................................................................................... 2-12
SQL Execution Efficiency ............................................................................................................... 2-13
Implementing the Application ..................................................................................................... 2-14
Trends in Application Development............................................................................................ 2-15
Workload Testing, Modeling, and Implementation ...................................................................... 2-16
Sizing Data ....................................................................................................................................... 2-16
Estimating Workloads .................................................................................................................... 2-17
Extrapolating From a Similar System ................................................................................... 2-17
Benchmarking........................................................................................................................... 2-17
Application Modeling .................................................................................................................... 2-18
Testing, Debugging, and Validating a Design ............................................................................ 2-18
Deploying New Applications ............................................................................................................. 2-19
Rollout Strategies ............................................................................................................................ 2-19
Performance Checklist.................................................................................................................... 2-20

Performance Improvement Methods


The Oracle Performance Improvement Method ................................................................................ 3-1
Steps in The Oracle Performance Improvement Method............................................................. 3-2
A Sample Decision Process for Performance Conceptual Modeling.......................................... 3-3

iv

Top Ten Mistakes Found in Oracle Systems .................................................................................. 3-4


Emergency Performance Methods ........................................................................................................ 3-6
Steps in the Emergency Performance Method............................................................................... 3-6

Part III
4

Optimizing Instance Performance

Configuring a Database for Performance


Performance Considerations for Initial Instance Configuration ....................................................
Initialization Parameters ...................................................................................................................
Configuring Undo Space...................................................................................................................
Sizing Redo Log Files ........................................................................................................................
Creating Subsequent Tablespaces....................................................................................................
Creating Permanent Tablespaces - Automatic Segment-Space Management ...................
Creating Temporary Tablespaces .............................................................................................
Creating and Maintaining Tables for Good Performance ...............................................................
Table Compression ............................................................................................................................
Estimating the Compression factor ..........................................................................................
Tuning to Achieve a Better Compression Ratio .....................................................................
Reclaiming Unused Space.................................................................................................................
Indexing Data .....................................................................................................................................
Specifying Memory for Sorting Data .......................................................................................
Performance Considerations for Shared Servers ...............................................................................
Identifying Contention Using the Dispatcher-Specific Views ....................................................
Reducing Contention for Dispatcher Processes .....................................................................
Identifying Contention for Shared Servers.....................................................................................

4-1
4-1
4-3
4-3
4-4
4-4
4-5
4-5
4-6
4-6
4-6
4-6
4-7
4-7
4-7
4-8
4-9
4-9

Automatic Performance Statistics


Overview of Data Gathering.................................................................................................................. 5-1
Database Statistics .............................................................................................................................. 5-2
Wait Events .................................................................................................................................. 5-2
Time Model Statistics ................................................................................................................. 5-3
Active Session History (ASH) ................................................................................................... 5-3
System and Session Statistics .................................................................................................... 5-4
Operating System Statistics .............................................................................................................. 5-4
CPU Statistics............................................................................................................................... 5-5
Virtual Memory Statistics .......................................................................................................... 5-5
Disk Statistics............................................................................................................................... 5-5
Network Statistics ....................................................................................................................... 5-5
Operating System Data Gathering Tools................................................................................. 5-6
Interpreting Statistics......................................................................................................................... 5-6
Overview of the Automatic Workload Repository ............................................................................ 5-7
Snapshots............................................................................................................................................. 5-8
Baselines .............................................................................................................................................. 5-8
Space Consumption ........................................................................................................................... 5-8
Managing the Automatic Workload Repository ................................................................................ 5-9
Managing Snapshots....................................................................................................................... 5-10

Creating Snapshots ..................................................................................................................


Dropping Snapshots ................................................................................................................
Modifying Snapshot Settings .................................................................................................
Managing Baselines ........................................................................................................................
Creating a Baseline ..................................................................................................................
Dropping a Baseline ................................................................................................................
Transporting Automatic Workload Repository Data ................................................................
Extracting AWR Data ..............................................................................................................
Loading AWR Data..................................................................................................................
Using Automatic Workload Repository Views ..........................................................................
Generating Automatic Workload Repository Reports ..............................................................
Running the awrrpt.sql Report ..............................................................................................
Running the awrrpti.sql Report .............................................................................................
Running the awrsqrpt.sql Report ..........................................................................................
Running the awrsqrpi.sql Report ..........................................................................................
Running the awrddrpt.sql Report .........................................................................................
Running the awrddrpi.sql Report .........................................................................................
Generating Active Session History Reports ................................................................................
Running the ashrpt.sql Report ...............................................................................................
Running the ashrpti.sql Report..............................................................................................

Automatic Performance Diagnostics


Introduction to Database Diagnostic Monitoring .............................................................................
Automatic Database Diagnostic Monitor ............................................................................................
ADDM Analysis Results ...................................................................................................................
An ADDM Example...........................................................................................................................
Setting Up ADDM..............................................................................................................................
Diagnosing Database Performance Issues with ADDM...............................................................
Running ADDM Using addmrpt.sql........................................................................................
Running ADDM using DBMS_ADVISOR APIs.....................................................................
Views with ADDM Information ......................................................................................................

6-1
6-2
6-3
6-3
6-4
6-5
6-5
6-6
6-8

Memory Configuration and Use


Understanding Memory Allocation Issues .........................................................................................
Oracle Memory Caches .....................................................................................................................
Automatic Shared Memory Management ......................................................................................
Dynamically Changing Cache Sizes................................................................................................
Viewing Information About Dynamic Resize Operations....................................................
Application Considerations..............................................................................................................
Operating System Memory Use.......................................................................................................
Reduce paging .............................................................................................................................
Fit the SGA into main memory .................................................................................................
Allow adequate memory to individual users .........................................................................
Iteration During Configuration........................................................................................................
Configuring and Using the Buffer Cache............................................................................................
Using the Buffer Cache Effectively ..................................................................................................
Sizing the Buffer Cache .....................................................................................................................

vi

5-10
5-10
5-11
5-11
5-11
5-12
5-12
5-13
5-14
5-15
5-15
5-16
5-16
5-17
5-17
5-18
5-19
5-20
5-20
5-21

7-1
7-2
7-2
7-3
7-4
7-4
7-5
7-5
7-5
7-5
7-5
7-6
7-6
7-6

Buffer Cache Advisory Statistics .............................................................................................. 7-6


Using V$DB_CACHE_ADVICE ............................................................................................... 7-6
Calculating the Buffer Cache Hit Ratio.................................................................................... 7-8
Interpreting and Using the Buffer Cache Advisory Statistics ..................................................... 7-9
Increasing Memory Allocated to the Buffer Cache ............................................................. 7-10
Reducing Memory Allocated to the Buffer Cache .............................................................. 7-10
Considering Multiple Buffer Pools............................................................................................... 7-11
Random Access to Large Segments....................................................................................... 7-11
Oracle Real Application Cluster Instances........................................................................... 7-12
Using Multiple Buffer Pools ................................................................................................... 7-12
Buffer Pool Data in V$DB_CACHE_ADVICE ............................................................................ 7-12
Buffer Pool Hit Ratios ..................................................................................................................... 7-12
Determining Which Segments Have Many Buffers in the Pool ............................................... 7-13
KEEP Pool......................................................................................................................................... 7-14
RECYCLE Pool ................................................................................................................................ 7-15
Configuring and Using the Shared Pool and Large Pool .............................................................. 7-15
Shared Pool Concepts ..................................................................................................................... 7-16
Dictionary Cache Concepts .................................................................................................... 7-16
Library Cache Concepts .......................................................................................................... 7-16
SQL Sharing Criteria................................................................................................................ 7-17
Using the Shared Pool Effectively ................................................................................................ 7-18
Shared Cursors ........................................................................................................................ 7-19
Single-User Logon and Qualified Table Reference ............................................................. 7-19
Use of PL/SQL ......................................................................................................................... 7-20
Avoid Performing DDL .......................................................................................................... 7-20
Cache Sequence Numbers ...................................................................................................... 7-20
Cursor Access and Management ........................................................................................... 7-20
Reducing Parse Calls with OCI ...................................................................................... 7-21
Reducing Parse Calls with the Oracle Precompilers ................................................... 7-21
Reducing Parse Calls with SQLJ..................................................................................... 7-21
Reducing Parse Calls with JDBC .................................................................................... 7-21
Reducing Parse Calls with Oracle Forms ...................................................................... 7-21
Sizing the Shared Pool.................................................................................................................... 7-21
Shared Pool: Library Cache Statistics.................................................................................... 7-22
V$LIBRARYCACHE................................................................................................................ 7-22
Shared Pool Advisory Statistics ............................................................................................. 7-24
V$SHARED_POOL_ADVICE ........................................................................................ 7-24
V$LIBRARY_CACHE_MEMORY .................................................................................. 7-24
V$JAVA_POOL_ADVICE and V$JAVA_LIBRARY_CACHE_MEMORY............... 7-24
Shared Pool: Dictionary Cache Statistics .............................................................................. 7-24
Interpreting Shared Pool Statistics ............................................................................................... 7-26
Increasing Memory Allocation............................................................................................... 7-26
Allocating Additional Memory for the Library Cache ............................................... 7-26
Allocating Additional Memory to the Data Dictionary Cache .................................. 7-26
Reducing Memory Allocation ................................................................................................ 7-27
Using the Large Pool ...................................................................................................................... 7-27
Tuning the Large Pool and Shared Pool for the Shared Server Architecture ................. 7-27

vii

Determining an Effective Setting for Shared Server UGA Storage ...........................


Checking System Statistics in the V$SESSTAT View .................................................
Limiting Memory Use for Each User Session by Setting PRIVATE_SGA................
Reducing Memory Use with Three-Tier Connections.................................................
Using CURSOR_SPACE_FOR_TIME...........................................................................................
Caching Session Cursors ................................................................................................................
Configuring the Reserved Pool .....................................................................................................
Using SHARED_POOL_RESERVED_SIZE..........................................................................
When SHARED_POOL_RESERVED_SIZE Is Too Small...................................................
When SHARED_POOL_RESERVED_SIZE Is Too Large ..................................................
When SHARED_POOL_SIZE is Too Small .........................................................................
Keeping Large Objects to Prevent Aging ....................................................................................
CURSOR_SHARING for Existing Applications .........................................................................
Similar SQL Statements...........................................................................................................
CURSOR_SHARING ...............................................................................................................
When to use CURSOR_SHARING ........................................................................................
Maintaining Connections...............................................................................................................
Configuring and Using the Redo Log Buffer ..................................................................................
Sizing the Log Buffer ......................................................................................................................
Log Buffer Statistics ........................................................................................................................
PGA Memory Management ................................................................................................................
Configuring Automatic PGA Memory ........................................................................................
Setting PGA_AGGREGATE_TARGET Initially ..................................................................
Monitoring the Performance of the Automatic PGA Memory Management ................
V$PGASTAT......................................................................................................................
V$PROCESS.......................................................................................................................
V$PROCESS_MEMORY ..................................................................................................
V$SQL_WORKAREA_HISTOGRAM ...........................................................................
V$SQL_WORKAREA_ACTIVE......................................................................................
V$SQL_WORKAREA.......................................................................................................
Tuning PGA_AGGREGATE_TARGET ...............................................................................
V$PGA_TARGET_ADVICE ............................................................................................
How to Tune PGA_AGGREGATE_TARGET ..............................................................
V$PGA_TARGET_ADVICE_HISTOGRAM ................................................................
V$SYSSTAT and V$SESSTAT ................................................................................................
Configuring OLAP_PAGE_POOL_SIZE .....................................................................................

I/O Configuration and Design


Understanding I/O ...................................................................................................................................
Basic I/O Configuration ..........................................................................................................................
Lay Out the Files Using Operating System or Hardware Striping.............................................
Requested I/O Size.....................................................................................................................
Concurrency of I/O Requests ...................................................................................................
Alignment of Physical Stripe Boundaries with Block Size Boundaries ..............................
Manageability of the Proposed System ...................................................................................
Manually Distributing I/O ...............................................................................................................
When to Separate Files ......................................................................................................................

viii

7-28
7-28
7-29
7-30
7-30
7-30
7-31
7-32
7-32
7-32
7-32
7-33
7-33
7-34
7-34
7-34
7-35
7-35
7-36
7-36
7-37
7-38
7-39
7-39
7-39
7-41
7-42
7-42
7-44
7-44
7-46
7-46
7-49
7-50
7-51
7-51

8-1
8-1
8-2
8-2
8-3
8-3
8-4
8-4
8-5

Tables, Indexes, and TEMP Tablespaces .................................................................................


Redo Log Files .............................................................................................................................
Archived Redo Logs ...................................................................................................................
Three Sample Configurations...........................................................................................................
Stripe Everything Across Every Disk.......................................................................................
Move Archive Logs to Different Disks ....................................................................................
Move Redo Logs to Separate Disks ..........................................................................................
Oracle-Managed Files ........................................................................................................................
Tuning Oracle-Managed Files...................................................................................................
Choosing Data Block Size .................................................................................................................
Reads.............................................................................................................................................
Writes............................................................................................................................................
Block Size Advantages and Disadvantages ............................................................................

Understanding Operating System Resources


Understanding Operating System Performance Issues....................................................................
Using Operating System Caches......................................................................................................
Asynchronous I/O......................................................................................................................
FILESYSTEMIO_OPTIONS Initialization Parameter ............................................................
Memory Usage....................................................................................................................................
Buffer Cache Limits ....................................................................................................................
Parameters Affecting Memory Usage......................................................................................
Using Operating System Resource Managers................................................................................
Solving Operating System Problems ...................................................................................................
Performance Hints on UNIX-Based Systems .................................................................................
Performance Hints on Windows Systems ......................................................................................
Performance Hints on HP OpenVMS Systems ..............................................................................
Understanding CPU.................................................................................................................................
Finding System CPU Utilization ...........................................................................................................
Checking Memory Management .....................................................................................................
Paging and Swapping ...............................................................................................................
Oversize Page Tables .................................................................................................................
Checking I/O Management..............................................................................................................
Checking Network Management.....................................................................................................
Checking Process Management .......................................................................................................
Scheduling and Switching ........................................................................................................
Context Switching ......................................................................................................................
Post-wait Driver ...................................................................................................................
Memory-mapped System Timer........................................................................................
List I/O Interfaces to Submit Multiple Asynchronous I/Os in One Call....................
Starting New Operating System Processes .............................................................................

10

8-5
8-5
8-6
8-7
8-7
8-7
8-7
8-7
8-8
8-8
8-8
8-8
8-9

9-1
9-2
9-2
9-2
9-3
9-3
9-3
9-3
9-4
9-4
9-5
9-5
9-5
9-7
9-8
9-8
9-8
9-8
9-8
9-8
9-9
9-9
9-9
9-9
9-9
9-9

Instance Tuning Using Performance Views


Instance Tuning Steps .......................................................................................................................... 10-1
Define the Problem ......................................................................................................................... 10-2
Examine the Host System .............................................................................................................. 10-2

ix

CPU Usage ................................................................................................................................


Non-Oracle Processes.......................................................................................................
Oracle Processes................................................................................................................
Oracle CPU Statistics........................................................................................................
Interpreting CPU Statistics ..............................................................................................
Detecting I/O Problems..........................................................................................................
Network.....................................................................................................................................
Examine the Oracle Statistics.........................................................................................................
Setting the Level of Statistics Collection...............................................................................
V$STATISTICS_LEVEL ...................................................................................................
Wait Events ...............................................................................................................................
Dynamic Performance Views Containing Wait Event Statistics.......................................
System Statistics .......................................................................................................................
V$ACTIVE_SESSION_HISTORY ...................................................................................
V$SYSSTAT .......................................................................................................................
V$FILESTAT......................................................................................................................
V$ROLLSTAT....................................................................................................................
V$ENQUEUE_STAT ........................................................................................................
V$LATCH ..........................................................................................................................
Segment-Level Statistics..........................................................................................................
Implement and Measure Change..................................................................................................
Interpreting Oracle Statistics ..............................................................................................................
Examine Load ................................................................................................................................
Changing Load .......................................................................................................................
High Rates of Activity ...........................................................................................................
Using Wait Event Statistics to Drill Down to Bottlenecks.......................................................
Table of Wait Events and Potential Causes ...............................................................................
Additional Statistics......................................................................................................................
Redo Log Space Requests Statistic.......................................................................................
Read Consistency ..................................................................................................................
Table Fetch by Continued Row............................................................................................
Parse-Related Statistics..........................................................................................................
Wait Events Statistics..........................................................................................................................
SQL*Net Events .............................................................................................................................
SQL*Net message from client ..............................................................................................
Network Bottleneck........................................................................................................
Resource Bottleneck on the Client Process..................................................................
SQL*Net message from dblink.............................................................................................
SQL*Net more data to client.................................................................................................
buffer busy waits...........................................................................................................................
Causes ......................................................................................................................................
Actions .....................................................................................................................................
segment header ...............................................................................................................
data block .........................................................................................................................
undo header.....................................................................................................................
undo block .......................................................................................................................
db file scattered read.....................................................................................................................

10-3
10-3
10-3
10-3
10-3
10-4
10-5
10-5
10-5
10-6
10-6
10-6
10-8
10-8
10-8
10-8
10-8
10-8
10-8
10-8
10-9
10-9
10-10
10-10
10-10
10-10
10-12
10-13
10-13
10-13
10-14
10-15
10-16
10-17
10-17
10-17
10-18
10-18
10-18
10-18
10-18
10-19
10-19
10-19
10-19
10-20
10-20

Actions .....................................................................................................................................
Managing Excessive I/O.......................................................................................................
Inadequate I/O Distribution ................................................................................................
Finding the SQL Statement executed by Sessions Waiting for I/O ...............................
Finding the Object Requiring I/O .......................................................................................
db file sequential read ..................................................................................................................
Actions .....................................................................................................................................
direct path read and direct path read temp ..............................................................................
Causes ......................................................................................................................................
Actions .....................................................................................................................................
Sorts to Disk ....................................................................................................................
Full Table Scans...............................................................................................................
Hash Area Size ................................................................................................................
direct path write and direct path write temp............................................................................
Causes ......................................................................................................................................
Actions .....................................................................................................................................
enqueue (enq:) waits .....................................................................................................................
Finding Locks and Lock Holders.........................................................................................
Actions .....................................................................................................................................
ST enqueue.......................................................................................................................
HW enqueue....................................................................................................................
TM enqueue.....................................................................................................................
TX enqueue ......................................................................................................................
events in wait class other .............................................................................................................
free buffer waits.............................................................................................................................
Causes ......................................................................................................................................
Actions .....................................................................................................................................
Writes................................................................................................................................
Cache is Too Small..........................................................................................................
Cache Is Too Big for One DBWR ..................................................................................
Consider Multiple Database Writer (DBWR) Processes or I/O Slaves..........................
DB_WRITER_PROCESSES............................................................................................
DBWR_IO_SLAVES .......................................................................................................
Choosing Between Multiple DBWR Processes and I/O Slaves ...............................
latch events.....................................................................................................................................
Actions .....................................................................................................................................
Example: Find Latches Currently Waited For ...................................................................
Shared Pool and Library Cache Latch Contention............................................................
Unshared SQL .................................................................................................................
Reparsed Sharable SQL..................................................................................................
By Session.........................................................................................................................
cache buffers lru chain ...................................................................................................
cache buffers chains........................................................................................................
row cache objects ............................................................................................................
log file parallel write.....................................................................................................................
library cache pin ............................................................................................................................
library cache lock...........................................................................................................................

10-20
10-20
10-21
10-21
10-21
10-21
10-22
10-22
10-23
10-23
10-23
10-23
10-23
10-24
10-24
10-24
10-24
10-25
10-25
10-25
10-26
10-26
10-26
10-27
10-27
10-27
10-27
10-27
10-27
10-28
10-28
10-28
10-28
10-28
10-29
10-29
10-29
10-31
10-31
10-31
10-31
10-32
10-32
10-33
10-33
10-33
10-33

xi

S-ar putea să vă placă și