Hi all,

>From my testing in 8.1.6 and 8.1.7, it appears to me that the ANALYZE
defaults to "FOR ALL COLUMNS SIZE 1".  I found this by checking the
DBA_TAB_HISTOGRAMS view before and after an "ANALYZE TABLE bleah COMPUTE
STATISTICS".  I then compared those results to a before/after using
DBMS_STATS first with "METHOD_OPT => NULL", then "METHOD_OPT => 'FOR ALL
COLUMNS SIZE 1'".

So, can anyone tell me where the hell this is documented for the ANALYZE
command?  It's not in "Oracle8i SQL Reference" under ANALYZE, where one
would think it should be, nor does it show up in a search on
http://tahiti.oracle.com.  Same for Metaclink.

I've been pulling my hair out trying to determine why I've been getting
different explain plans between DBMS_STATS and ANALYZE, until I discovered
this.  DBA need beer.  One "Three Floyd's" left in fridge.  Mmmmm...

TIA,
Rich Jesse                           System/Database Administrator
[EMAIL PROTECTED]              Quad/Tech International, Sussex, WI USA
http://www.realbeer.com/battleofthebeers
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jesse, Rich
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to