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.
-------------------------------
Let's use Figure 5-12 as an example. Figure 5-12 is OraPub's interactive instance-level ORTA report. In summary, it gathers initial statistics, sleeps for the given interval (in this case 120 seconds), wakes and gathers statistics again, and reports their differences. Basic stuff, I know, but this report shows both service time and wait time, and sample active SQL during the report interval (not shown). Given the same workload (which is not shown on this earlier version of rtsysx.sql), our objective is to reduce the response time (shown as 305 seconds)-not just reduce the service time (shown as 119 seconds) or the wait time (shown as 186 seconds).
Figure 5-12. This OraPub 120-second interval response time report clearly shows Oracle processes are suffering from intense cache buffer chain latch contention. A response time-focused analysis will work on reducing the response time, not only the wait time or the service time.
Most Oracle DBAs will look at the 168 seconds of cache buffer chains time and focus on reducing the wait time, without regard to the effect on service time or the Oracle workload (not shown). Suppose they decide to increase the spin count. While this may indeed reduce latch sleep time, it will very likely also increase CPU consumption! If the DBA is lucky, this may result in a net response time decrease. While we appreciate luck and take it when it comes, that's no way to optimize systems or build a career. The solution here is to focus on reducing response time, because that is closer to what the user experiences.
©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.
|