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.

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

Once the address of the child latch is known, the developer must also know whether the latch should be acquired in shared mode or exclusive mode. Shared mode is likely to be acquired more quickly, because multiple processes can share a latch, but only one process can acquire and hold a latch in exclusive mode. If the memory structure is only to be scanned, but not changed, then perhaps the developer can ask for the latch in shared mode. But if the memory structure is going to be altered in some way, an exclusive mode request is required.

The developer also needs to know if the latch request type is immediate or willing to wait. An immediate latch request, sometimes called a nowait request, is a single "give me the latch this instant" request. This is commonly called a fast get, and this Fast_Get function is shown in Figure 3-7.

Essentially, the Oracle process checks the latch's memory address to see if another process is already associated with the latch. A more colorful illustration is thinking of this as if a person is trying to acquire a latch. Picture a man running into a room where that specific latch (or child latch) is being requested and then making a single grab for the latch (think token or baton). The man then looks in his hand and either sees the latch or does not see the latch. If the latch has been successfully acquired the man yells, "I've got it!" Otherwise, he says, "Dang! I didn't get the latch!" What happens next is when it really gets interesting.

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