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

Home -> Community -> Mailing Lists -> Oracle-L -> Defaults for ANALYZE

Defaults for ANALYZE

From: Jesse, Rich <Rich.Jesse_at_qtiworld.com>
Date: Mon, 04 Mar 2002 13:33:32 -0800
Message-ID: <F001.0041EC7B.20020304133332@fatcity.com>


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
Rich.Jesse_at_qtiworld.com              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: Rich.Jesse_at_qtiworld.com

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: ListGuru_at_fatcity.com (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).
Received on Mon Mar 04 2002 - 15:33:32 CST

Original text of this message

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