Gene,

This is not much help I'm afraid but are the statistics etc on both the old
and new table at the same stage (preferrable both up to date)?.  

I've tried to recreate this on NT with no success, 

keep me informed.

Dave Leach
-----Original Message-----
Sent: 06 July 2001 14:36
To: Multiple recipients of list ORACLE-L


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: [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).


**********************************************************************
The above information is confidential to the addressee and may be 
privileged.  Unauthorised access and use is prohibited.

Internet communications are not secure and therefore this Company does
not accept legal responsibility for the contents of this message.

If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on
it, is prohibited and may be unlawful.

Claybrook Computing Limited is a subsidiary of 
Claybrook Computing (Holdings) Limited
Registered Office: Abbey House. 282 Farnborough Road, Farnborough,
Hampshire GU14 7NJ
Registered in England and Wales No 1287205

A Hogg Robinson plc company
**********************************************************************
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Dave Leach
  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