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.
PleaseOut 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.
-------------------------------
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.
Figure 7-12. Shown is an example of severe library cache contention when mutexes are enabled. The same exact load and reporting interval was used as in Figure 7-11.
As was shown in Figure 7-9, Oracle is very particular about what it considers a similar SQL statement. Every statement must be parsed, and if the cursor is not found in the library cache, the cursor must be completely built (a hard parse). Hard parsing requires library cache-related latches and locks, so if hard parsing becomes so intense the related wait events are driven to the top of our reports, we will look for ways to create similar SQL statements. Oracle provides two powerful methods to do this.
©2009, 2010 by Craig Shallahamer. This is copyrighted material.
PleaseOut 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.
|