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.

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

Each hash bucket has an associated hash chain. When a searched-for object is hashed to a bucket, the bucket's chain is sequentially searched looking for the object. If the object is not found in the hash chain, we know the object is not anywhere in the entire hashing structure. If the hash chain is short, the sequential search occurs extremely fast. Even better is a zero chain length if the object is not in the cache.

Oracle's CBC structure, as this is called, is a complex memory structure, and Oracle must maintain serialization control. So it employs one of its serialization structures: a latch or a mutex. As of Oracle Database 11g, Oracle is still using the latching scheme.

Figure 6-9 is a small example of an Oracle hashing structure consisting of two CBC latches (CS 800 and CS 810), six CBCs (CBC 00 through CBC05), and eleven buffer headers (BH nnnn). This is a very small example, but it does show all the key pieces with their proper associations. It is common for Oracle CBCs to have a zero length. Oracle does this to help minimize collisions. As I'll describe next, Oracle goes to great lengths to minimize collisions, and only a very unfortunate situation would lead to a buffer chain more than six buffer headers long.

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