Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Query tuning exercise: what to look for in a 10053 trace
You may be able to figure it out with a 10046 trace and a simple explain
plan on the statement, then compare the estimated cardinalities to the
actual number of rows returned from each step and most likely there will
be a significant difference between the estimate and the actual in at
least one place and that will usually point you in the right direction.
From there you have to figure out why the estimate is off - probably due
to skewed data - then see if histograms will help, or if you have to
hint the SQL or use stored outlines (or SQL profiles in 10g). I don't
have much experience with the 10053 trace either so can't really help
you on that one. Wolfgang Breitling has a good white paper on it that
you might find useful in case you haven't already read that - should be
able to find it on google.
Regards,
Brandon
From: Schultz, Charles
Sent: Tuesday, July 25, 2006 12:39 PM
I have a query that is going bad when new stats are gathered on the underlying tables. I checked the stats, and they seem accurate.
Privileged/Confidential Information may be contained in this message or attachments hereto. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of this company shall be understood as neither given nor endorsed by it.
-- http://www.freelists.org/webpage/oracle-lReceived on Tue Jul 25 2006 - 13:13:08 CDT