Oracle Performance Firefighting
by Craig Shallahamer

Get the book here



Craig Shallahamer's Blog

You were brought to this page based on an internet search and as a free service to Oracle DBAs.

The text below is an except from the book, Oracle Performance Firefighting, written by Craig Shallahamer of OraPub, Inc. Figures and tables are not included on this page, only their reference.
To order the book in either print or PDF form, click here.


©2009, 2010 by Craig Shallahamer. This is copyrighted material.
Please—Out of respect for those involved in the creation of the book and also for their familes, we ask you to respect the copyright both in intent and deed. Thank you.

-------------------------------

Figure 7-11. Shown is an example of severe library latch contention when mutexes are not used. While not shown, Oracle is consuming all the available host CPU, and because the load is based on a PL/SQL loop, recursive SQL is consuming over half of the Oracle CPU.

Figure 7-12 is based on the same load and interval as Figure 7-11. The only difference is library cache mutexes have been enabled by setting the instance parameter _kks_use_mutex_pin to true (which is actually the default). Notice the top wait event is cursor: pin S. This is the result of the cursor being repeatedly and intensely opened and closed.

While the percentage of recursive SQL was the same with mutexes enabled and disabled, when latches were used, the total CPU consumption was nearly twice as much! In fact, look closely and compare the time waited for library cache-related events in Figures 7-11 and 7-12. Once again, mutexes are shown to be more efficient than latches.

©2009, 2010 by Craig Shallahamer. This is copyrighted material.
Please—Out of respect for those involved in the creation of the book and also for their familes, we ask you to respect the copyright both in intent and deed. Thank you.


Know what's important before it's too late!

OraPub's
Performance Training

is like no other...





More Class Pics...
Get student testimonials!