Book Image

Oracle Database 11gR2 Performance Tuning Cookbook

By : Ciro Fiorillo
Book Image

Oracle Database 11gR2 Performance Tuning Cookbook

By: Ciro Fiorillo

Overview of this book

Oracle's Database offers great performance, scalability, and many features for DBAs and developers. Due to a wide choice of technologies, successful applications are good candidates to run into performance issues and when a problem arises it's very difficult to identify the cause and the right solution to the problem. The Oracle Database 11g R2 Performance Tuning Cookbook helps DBAs and developers to understand every aspect of Oracle Database that can affect performance. You will be guided through implementing the correct solution in a proactive way before problems arise, and how to diagnose issues on your Oracle database-based solutions. This fast-paced book offers solutions starting from application design and development, through the implementation of well-performing applications, to the details of deployment and delivering best-performance databases. With this book you will quickly learn to apply the right methodology to tune the performance of an Oracle Database, and to optimize application design and SQL and PL/SQL code. By following the real-world examples you will see how to store your data in correct structures and access and manipulate them at a lightning speed. You will learn to speed up sort operations, hack the optimizer and the data loading process, and diagnose and tune memory, I/O, and contention issues. The purpose of this cookbook is to provide concise recipes, which will help you to build and maintain a very high-speed Oracle Database environment.
Table of Contents (21 chapters)
Oracle Database 11gR2 Performance Tuning Cookbook
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Index

Tuning resources to minimize latch contention


In this recipe we will see how to identify the resources that need to be tuned to minimize latch contention.

Getting ready

In this recipe we will present how to diagnose a latch contention problem using a Statspack report, obtained with the procedures used in Chapter 1.

How to do it...

To identify the resources to be tuned to avoid latch contention we need to:

  1. Execute a Statspack report.

  2. See in the Instance Efficiency Indicators section the value for Latch Hit %.

  3. See in the Top 5 Timed Events section if there is a latch free wait event.

  4. Verify the Latch Activity section to identify the kind of latches that are eventually experiencing misses (and sleeps for willing-to-wait requests).

  5. Verify the Latch Sleep breakdown section to identify the type of latches with the highest misses.

  6. Verify the Latch Miss Sources section to identify, among the latch requests experiencing sleeps, where the latch misses occur.

How it works...

After executing a statspack report...