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: to much time to execute query

Re: to much time to execute query

From: <Jared.Still_at_radisys.com>
Date: Tue, 28 Jan 2003 17:33:59 -0800
Message-ID: <F001.0053CC1D.20030128173359@fatcity.com>


try:

select sum(value)/1024||' KB' as Kilo,b.name from v$sesstat a,v$statname b
where b.name like '% uga %'
and a.statistic# = b.statistic#
group by b.name
/

brain_damage_at_eth.net
Sent by: root_at_fatcity.com
 01/28/2003 04:09 PM
 Please respond to ORACLE-L  

        To:     Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
        cc: 
        Subject:        to much time to execute query


Hello list,

This query is taking to much time (26 secs). What can be the problem ? Is the query not written properly ? All other queries involving v$sesstat amd v$statname do not take this much time.

--->

select sum(value)/1024||' KB' as Kilo,b.name from v$sesstat a,v$statname b where a.statistic# in (select b.statistic# from v$statname where b.name like '% uga %') group by b.name;


TIA Tc

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: brain_damage_at_eth.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).




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: Jared.Still_at_radisys.com

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 Tue Jan 28 2003 - 19:33:59 CST

Original text of this message

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