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.
-------------------------------
DBMS_MONITOR is a wonderful Oracle package. While it does not solve all profiling challenges, it is truly a giant leap forward. It's flexibility in purpose and use, and the fact that no additional license is required make it something every Oracle DBA should at least be familiar with.
Some would say instrumentation is the best performance statistics gathering approach, but others would say periodic sampling is the best. After all, nearly all third-party tools rely on polling, which is sampling. Just as Iron Man's Tony Stark would say, "Is it too much to ask for both?" And this is exactly what Oracle has done.
The classic performance view v$sysstat is based on instrumentation, since when a database call completes, the respective statistics are updated. The wait interface is clearly an instrumentation approach, with the additional gettimeofday system calls inserted into Oracle's kernel code. The time model views are based on a combination of instrumentation (since the view is not updated if a session is in the middle of a wait) and sampling due to the frequent getrusage calls. But with the introduction of Oracle's active session history, or ASH for short, Oracle has clearly implemented a very aggressive statistical sampling collection strategy. So Oracle has indeed begun using both instrumentation and sampling.
©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.
|