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.
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.
-------------------------------
<p>With the file number and block number known, we can build a script around the dba_extents view to determine the object's owner, name, segment type, tablespace name, and even the database file in which the block resides! Figure 2-11 shows the output from such a script. The objfb.sql script referenced in Figure 2-11 is somewhat complicated, so it is shown in Figure 2-12.
p><p>Figure 2-11. Knowing a session is waiting for a specific file and block number in conjunction with accessing Oracle's data dictionary, you can determine the block's type, name, owner, tablespace affiliation, and even the database file where it resides. The core code for the script is shown in Figure 2-12.
p><p>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.
p>
©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.
|
|
Know what's important before it's too late!
OraPub's Performance Training is like no other...
More Class Pics...
Get student testimonials!
|