Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: segment monitoring, stats, histograms
My $0.02 worth based on experience at a current site
I'd opt explicit dbms_stats facilities on some/most tables, with monitoring and gather_stale as the fallback option for those without any specific requirement. My main reasons for not relying solely on monitoring and/or auto sample size are:
Our process automatically turns on monitoring for any tables not covered by special requirements, and runs a gather stale at regular intervals (the fewer the better - we try to minimise the amount of statistics runs we do - generally once per release). We've detected no overheads with monitoring (although admittedly we haven't really spent a great deal of time looking for them)
Other small exceptions - we've got dynamic sampling set to 2 (because the app uses temp tables heavily) and we've stats on the dictionary (app does lots of parsing, and having dyn sampling set to 2 means dictionary queries also invoked dyn sampling).
hth
connor
> What is the current state of the art WRT CBO best practices?
>
> I'm working on 9.2.0.4 and considering the 'automated statistics gatherin=
> g' approach. This involves turning on monitoring for any and all tables =
> that need to ever have stats updated, then periodically running dbms_stat=
> s in gather_stale mode.
>
> How is this working for people? Does monitoring impact DML operations, a=
> nd if so, how much?
>
> Does this approach make any kind of intelligent decisions about sample si=
> zes and block sampling?
>
> When histograms are present, does this approach always/never/sometimes re=
> generate the histogram with the correct number of buckets?
>
> Does it seem to reliably choose the correct tables to analyze?
>
> --
> Jeremiah Wilton
> ORA-600 Consulting
> http://www.ora-600.net
>
>
> --
> http://www.freelists.org/webpage/oracle-l
>
Coming Soon! "Oracle Insight - Tales of the OakTable"
"GIVE a man a fish and he will eat for a day. But TEACH him how to fish, and...he will sit in a boat and drink beer all day"
-- http://www.freelists.org/webpage/oracle-lReceived on Thu Feb 03 2005 - 20:01:15 CST