Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> strange explain plan
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
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
![]() |
![]() |