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.

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

A key library cache characteristic is the object relationships. In Figure 7-3, notice that table TBL 400 is associated with the three child cursors CCSR 600, CCSR 610, and CCSR 620. So, if table TBL 400 is altered, Oracle knows which library cache objects to invalidate. For example, if table TBL 400 were altered and Oracle deemed the alteration severe enough to invalidate the library cache entry, then all the associated library cache objects would also be invalidated. And, of course, serialization must be maintained, so you can see how even a relatively small library cache can become quite intense.

Also note the impact of using mutexes instead of latches. Since a mutex is associated with each library cache object, entire hash chains will not be made unavailable, resulting in a significant reduction in false contention as well as the acquisition CPU consumption, and therefore improved response time.

Now, let's take the conceptual model to a much more realistic level to clarify the library cache object relationships. Three figures are involved in this example. Figure 7-4 is the actual shell script containing the SQL. I simply copied and pasted the code into my Oracle user Linux session. Figure 7-5 is a library cache model with the actual real-life object references. Figure 7-6 shows the relevant parts extracted from the actual trace file.

©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!