Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: DBMS_STATS [resend chomped version]
... and this is (pretty much) precisely what ADDM in 10g does:
it monitors your SQL workload, filters out the "problematic" high-load SQL,
and then suggests to run the SQL Tuning advisor on those statements.
one of the tasks the Tuning advisor performs is a thorough statistics check.
it does many other smart things too, but that's less relevant in this
discussion;
it just hightlights the right approach: don't waste any efforts on
non-problematic SQL...
(and this includes the gathering of statistics on the underlying database
objects)
Kind regards,
Lex.
-----Original Message-----
Guess I'll go back to Mogens' recommendations (shown below) as the best
posted thusfar. Especially this part:
"There's no correct answer to this question - if there was, it would be part
of the DBMS_STATS thing now, I bet :-)"
I would suggest the following (subject to debate, please):