Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: DBMS_STATS [resend chomped version]

RE: DBMS_STATS [resend chomped version]

From: <Jared.Still_at_radisys.com>
Date: Thu, 17 Jun 2004 09:20:35 -0700
Message-ID: <OF9201816C.97E967E3-ON88256EB6.00599A34-88256EB6.0059C45D@radisys.com>


Expect changes in execution plans, possibly not for the better.

I had at one time collected histograms for all indexed columns on a problem database, and was convinced that this shotgun approach is not really a good idea.

Currently, we aren't collecting any histograms, IIRC.

Jared

Barbara Baker <barbarabbaker_at_yahoo.com> Sent by: oracle-l-bounce_at_freelists.org
06/16/2004 03:12 PM
Please respond to
oracle-l_at_freelists.org

To
oracle-l_at_freelists.org
cc

Subject
RE: DBMS_STATS [resend chomped version]

Regarding #1:
(9.2.0.4 Solaris 9)
We have a recommendation from the sw vendor to compute with histograms using

exec dbms_stats.gather_schema_stats(ownname => 'SCOTT', estimate_percent =>
dbms_stats.auto_sample_size, method_opt => 'for all columns size skewonly', cascade => true);

as an initial method to gather the stats. I did a bit of looking and a bit of testing, and it looks good to me. Down side: it did take several hours to gather the initial set of stats.

What are other folks doing with histograms??

Barb



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
Received on Thu Jun 17 2004 - 11:17:45 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US