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.

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

Let's now put this all together and walk through an example. Figure 6-9 will represent the entire CBC structure. In this example, I will make certain abstractions or simplifications, focusing on areas that I have already covered and that are useful for performance firefighting. As you progress through the next chapters, the story will become increasingly detailed, bringing together all that you've learned.

Suppose you are a server process executing a SQL statement. Based on the SQL statement and Oracle's data dictionary, you discover there is row you must access located in file number 35 with a block number of 2435.

You hash 35,2435, which hashes to CBC 02. If the hash function and the number of buckets have not been changed, hashing this block will always point to CBC 02. So, if the block does exist in the buffer cache, it absolutely must reside in CBC 02. Referencing the CBC, you realize that you must acquire latch CS 800 in shared mode. You go through the spinning and sleeping algorithm, burning CPU and sleeping (screaming "latch free cache buffer chain!"), but finally do acquire latch CS 800.

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