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.

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

While hashing may seem rather dull at this point, this section will clearly demonstrate why two syntactically exact SQL statements are treated as two distinct and different SQL statements! If you have every wondered why select * from dual is considered different from select * from Dual, read on!

Before a library cache object is associated with a bucket, it must be hashed. If you look closely at each library cache object shown in Figure 7-6, you'll see each has a hash value. Oracle creates this hash value based on its own proprietary algorithm. Once the hash value is generated, it is then entered into Oracle's proprietary library cache hashing algorithm, which results in the bucket number.

The library cache object hashing situation is more complicated than with block hashing. We're not dealing with a file number and a block number. This situation requires hashing the object's text. So if a SQL statement or a package is 2,000 lines long, Oracle may choose to hash all this text.

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