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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Urgent help needed, gurus

Re: Urgent help needed, gurus

From: Mark Richard <mrichard_at_transurban.com.au>
Date: Sun, 29 Dec 2002 14:38:42 -0800
Message-ID: <F001.00523E94.20021229143842@fatcity.com>


Hi,

I hope my response isn't too late...

It may well be because when you do "select function(x) from table" the query can return after processing the first few rows only (ie: FIRST_ROWS) type execution. As soon as you ask for a count of those rows though it must process every row (ie: ALL_ROWS). If the table is very large then this is most likely your problem - although it's not a "problem" its just the way things go.

Of course if you are running "select function(x) from table" through a product like SQL*Plus that will print all the rows to the screen and this is still much quicker then you might have a problem worth looking into. To be honest I'm not sure if sort area size has a big impact on a simply "select count(*)" but it might since a type of sort is used to count the rows. I also have a feeling that using a function on a table normally prevents parallel querying so perhaps there are some opportunities there - but I cannot offer any specific advice.

Regards,

     Mark.

                                                                                                                   
                    "mac"                                                                                          
                    <mac_at_telequote       To:     Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>       
                    .net>                cc:                                                                       
                    Sent by:             Subject:     Urgent help needed, gurus                                    
                    root_at_fatcity.c                                                                                 
                    om                                                                                             
                                                                                                                   
                                                                                                                   
                    24/12/2002                                                                                     
                    20:03                                                                                          
                    Please respond                                                                                 
                    to ORACLE-L                                                                                    
                                                                                                                   
                                                                                                                   




Oracle 817 on W2k:

SELECT FUNCTION(X) FROM TABLE works fine.

SELECT COUNT (*) FROM
 (SELECT FUNCTION(X) FROM TABLE) where the function and the table are the same as above, takes hours and hours, without any result, and I have to stop
it. There is NO ERROR MESSAGE.
The same story (no result, no error message) it's happening when: INSERT INTO TABLE1 SELECT FUNCTION(X) FROM TABLE I need some help.

Merry Christmas,

Ciprian MAFTEI
Systems Analyst
Telequote Network
Romania

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: mac
  INET: mac_at_telequote.net

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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). <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<---->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Privileged/Confidential information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply e-mail or by telephone on (61 3) 9612-6999. Please advise immediately if you or your employer does not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Transurban City Link Ltd shall be understood as neither given nor endorsed by it. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<---->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Mark Richard INET: mrichard_at_transurban.com.au Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- 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 Sun Dec 29 2002 - 16:38:42 CST

Original text of this message

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