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.
PleaseOut 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.
-------------------------------
Figure 2-12. This is the code to retrieve information about a specific block. This is very useful when linking Oracle's analysis with the application and the operating system. This code is the core of the OSM objfb.sql script.
If we perform a few more samples, we will get a good idea of the objects the session is waiting for and also where the objects reside. This information provides a very important 3-circle analysis link to the application and also to the operating system.
In this example, from an application perspective, we should expect to find SQL that is requesting blocks from the orders table. Look for that SQL. You will find it. It must be there, because if it were not run, it would be impossible for a session to be waiting for a block in the orders table. From an operating system perspective, if the average wait time is significant, we should expect the device where the associated database file resides to be very busy, or the path from the server process to the database file to be hindered in some way. This example demonstrates that with only limited but very specific information, you can make a pinpoint diagnosis.
©2009, 2010 by Craig Shallahamer. This is copyrighted material.
PleaseOut 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.
|