Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Statspack ratios help

RE: Statspack ratios help

From: Cary Millsap <>
Date: Wed, 7 Jun 2006 10:59:00 -0500
Message-ID: <>

> though the fact that almost all of your parses are soft is a good

Man, I was onboard 'til that last sentence. :)

I think the right statement about this is the same one Terry used in his first paragraph. Rephrasing slightly, I'd say, "It might be good. But it might not. You can't tell by looking only at this."

To me (normally pessimistic), so many parse calls are a red flag indicating that the application is doing something stupid: either parsing inside a loop, or closing and reopening cursors too often, or doing the 2-tier thing of disconnecting and connecting instead of the 3-tier thing of sharing Oracle sessions.

I think Terry's point is that having a bunch of soft parses probably beats having the same number of hard parses, but my point is that what we're seeing here is probably way short of good enough.

My favorite close-enough definition of "soft parse" is this: "How the Oracle kernel handles a parse call that the application should never have made in the first place." Think about it...

One final point: I HATE doing analysis with wait-wait-don't-tell-me data like the basis of this thread. To Jonathan's point, you simply can't tell from data like this what the performance IMPACT of the change is going to be. If we were looking at profiles instead of Statspack data, then we'd be able to tell exactly how many seconds per business task this behavior is costing someone.

That may sound self-serving because I'm a profiler company guy, but the factual basis behind this statement is WHY I have dedicated my career to becoming a profiler company guy.

Cary Millsap
Hotsos Enterprises, Ltd.
Nullius in verba  

Hotsos Symposium 2007 / March 4-8 / Dallas Visit for curriculum and schedule details...

-----Original Message-----
[] On Behalf Of Terry Sutton Sent: Tuesday, June 06, 2006 8:04 PM
Subject: Re: Statspack ratios help


You've gotten some comments which may be confusing. I'll have to disagree
with the concept that "a 100% buffer cache hit ratio is bad". That's not
true. A 100% BCHR is not bad. Nor is it good. That's why wise folk tell
you not to use ratios to judge/improve performance. The ratio is mostly irrelevant.

What you want to look at is the section of Statspack that is half a page below these ratios-- the Wait Event and CPU usage statistics. Is your system spending a large amount of time waiting? If it's not waiting, is the
CPU usage high (relative to the number of CPUs you have). If the answer to
these questions is no, then you don't have a system-wide problem. But that
doesn't mean that you might not have problems with individual processes, which may not show up in system-wide statistics. Are your users complaining? Is your application sufficiently fast? If something is running slowly, you want to concentrate on that process (which is where you
use 10046 traces and such, as someone mentioned).

But the ratios below don't tell you what you need to know (though the fact
that almost all of your parses are soft is a good thing).


> Hi,
> I am running OLTP system on Oracle 10.2 and J2EE weblogic.
> I am getting some ratios as:
> Load Profile Per Second Per
> ~~~~~~~~~~~~ ---------------

> Redo size: 156,162.18
> Logical reads: 26,407.64
> Block changes: 904.27
> Physical reads: 0.39
> Physical writes: 34.01
> User calls: 5,863.32
> Parses: 981.47
> Hard parses: 0.01
> Sorts: 16.97
> Logons: 5.54
> Executes: 1,085.95
> Transactions: 51.70
> Rollback per transaction %: 44.17
> Buffer Nowait %: 100.00 Redo NoWait %: 99.97
> Buffer Hit %: 100.00 In-memory Sort %: 100.00
> Library Hit %: 100.00 Soft Parse %: 100.00
> Execute to Parse %: 9.62 Latch Hit %: 99.88
> Parse CPU to Parse Elapsd %: 69.06 % Non-Parse CPU: 91.60
> With 100% soft parse, execute to parse ratio is so low. Is it bad, how
> I can I improve it?
> I see rollback per transaction as 44.17. We are using Hibernate that
> generates database mapping and produces most of the SQLs. How can I
> invetigate further? But I doubt if application is doing some big time
> rollbacks.
> Thanks for help
> Sandeep
> --

Received on Wed Jun 07 2006 - 10:59:00 CDT

Original text of this message