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.
-------------------------------
This example demonstrates that a relatively simple ORTA, combined with a quick 3-circle analysis, results in a spot-on diagnosis, a number of solution possibilities, and graphics to help everyone understand the situation.
Remember your school report card? It may have included your current term's grade point average and also an accumulated grade point average. Both statistics are important, yet based on a different data set. Oracle reports based on performance views can also yield current or single-term data (think interval) or accumulated data (think since instance start). For example, running a quick SQL statement referencing an Oracle performance view, such as v$sysstat, does not necessarily represent what is currently occurring, what just occurred, or what has recently occurred. It represents what has been occurring since the Oracle instance started! Therefore, unless you are careful, you can be deceived.
Suppose an Oracle instance has been running for two months and you wanted to know the cache hit ratio for the buffer cache. Querying v$sysstat once would give you the average cache hit ratio since the instance has started. If you wanted to know the cache hit ratio over a specific period, you would need to have beginning and ending values. Think in terms of Statspack and AWR. Before you run the report, you must set both the start and end points. This provides an interval, or period of time, so your calculations are relevant to the time period desired. I call the interval calculations the blue line, and the simple v$sysstat query the red line, as illustrated in Figure 1-5.
©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.
|