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.
-------------------------------
Based on how server process activity is identified, the best DBMS_MONITOR procedure will become apparent. Tracing and statistics collection are independently switched on and off by their own procedures; that is, if you want to trace and collect instance statistics, two procedures will be called to turn on the collection, and then two different procedures must be called to turn off the collection. A simple describe of DBMS_MONITOR will produce a couple pages of options. If you want to gather all actions for a specific module, you can use the dbms_monitor.all_actions procedure as an argument. Table 5-1 is sorted by turning collection on or off, and then tracing or statistics collection.
Don't be impatient. If you are collecting based on a group or type of user, make sure to collect plenty of data. DBAs tend to collect just enough data to do a cursory analysis, but you want enough data to perform a convincing analysis.
If you are collecting statistics, you must query from the appropriate view before you disable collection. If you first disable statistics collection and then query, zero rows will be returned.
©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.
|