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.

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

If you ask a group of performance analysts about their experiences with cursor sharing, you'll immediately get a seemingly conflicting and passionate discussion. Some, like myself, have had wonderful experiences with the similar option; others have had all sorts of problems. Some who have used the force option have seen their application SQL so aggressively transformed that the SQL result set was actually different.3 For example, instead of returning ten rows, the SQL returned two rows, effectively breaking the application!

Obviously, you need to talk to your colleagues, check with Oracle support, and test the various options in your particular environment. If physically altering the SQL to use bind variables is not possible or extremely painful, cursor sharing can work marvelously. But you must be very diligent in your testing before your use the option in a production environment.

From a searching perspective, the library cache is architected in a hashing structure. So just like with the buffer cache chains, we can alter the number of hash buckets and, if used, the number of latches. When mutexes are used, Oracle sets the mutex memory structure relationship. For example, as shown in Figures 7-5 and 7-6, each library cache object has its own mutex.

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