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

Home -> Community -> Mailing Lists -> Oracle-L -> strange explain plan

strange explain plan

From: Gene Gurevich <g_u_r_e_v_i_c_h_at_yahoo.com>
Date: Fri, 06 Jul 2001 06:18:16 -0700
Message-ID: <F001.00342A4C.20010706053544@fatcity.com>

Hi.

This is a second attempt. My first Email never got posted.

I have the following query:

select a1.MBR_TYP_CDE MBR_TYP_CDE,
 (COUNT ( DISTINCT a1.NOVS_NTWRK_MBR_KYD )) DISTINCTALLMERCHCO
 from MDSS_STAR.NOVUS_NETWRK_MBR_D a1
group by a1.MBR_TYP_CDE

The explain plan for it is as follows:

0-0-5898 1.5898 SELECT STATEMENT    SQL1 Cost = 5898
1-0-1  2.1 SORT GROUP BY
2-1-1   3.1 SORT GROUP BY
3-2-1    4.1 SORT GROUP BY
4-3-1     5.1 TABLE ACCESS FULL NOVUS_NETWRK_MBR_D


It has three group by's and the query fails with 0ra-0600 [15851].

when I create a new table as select * from the old table the plan changes:

0-0-9721 1.9721 SELECT STATEMENT    SQL1 Cost = 9721
1-0-1  2.1 SORT GROUP BY
2-1-1   3.1 TABLE ACCESS FULL NOVUS_NETWRK_MBR_D_TMP

and the query works. Does anyone have any guess as to what is going on?

thank you for any help

Gene




Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
--

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

Author: Gene Gurevich
  INET: g_u_r_e_v_i_c_h_at_yahoo.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 Fri Jul 06 2001 - 08:18:16 CDT

Original text of this message

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