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: Average response time

Re: Average response time

From: <Jared.Still_at_radisys.com>
Date: Fri, 14 Sep 2001 10:14:40 -0700
Message-ID: <F001.0038EFFC.20010914102818@fatcity.com>

!! Please do not post Off Topic to this List !!

Paul,

Try this:

select ( s.service_seconds + w.wait_seconds) / user_calls service_time from (

   select
   (sum(value)/100) / ( 3600 * 24 ) service_seconds    from v$sysstat
   where upper(name) like '%CPU%'
   and class in (1,64) -- User and SQL
) s,
(

   select

      sum(time_waited/100) wait_seconds
   from v$system_event
   where event not like '%timer'
   and event not like '%from client'
) w,
(

   select

      sum(value) user_calls
   from v$sysstat
   where name like 'user%'
) u
/

While you may find this a useful number as a DBA, I'll bet your users won't buy it.

On my SAP system it shows a 0.025 second reponse time. While that may be accurate on a per call database, I don't think many queries are returned that quickly. :)

Could be that I'm not getting the right numbers, but I don't believe that determining
an average response time is quite that simple.

Jared

                                                                                       
                             
                    Paul.Parker_at_bm                                                     
                             
                    wna.com              To:     Multiple recipients of list ORACLE-L 
<ORACLE-L_at_fatcity.com>        
                    Sent by:             cc:                                           
                             
                    root_at_fatcity.c       Subject:     Average response time            
                             
                    om                                                                 
                             
                                                                                       
                             
                                                                                       
                             
                    09/14/01 09:35                                                     
                             
                    AM                                                                 
                             
                    Please respond                                                     
                             
                    to ORACLE-L                                                        
                             
                                                                                       
                             
                                                                                       
                             




!! Please do not post Off Topic to this List !!

Hi List,

I am trying to calculate the average database response time for a data center audit currently underway. Without "expensive" monitoring tools, is it possible to determine this from database statistics. So far, I'm using
(Service Time + Wait Time) / calls where this translates into

Service Time         = 'CPU used by this session' from v$sysstat
Wait Time            = sum(time_waited) from v$system_event (excluding idle
events)
User calls           = 'user calls' from v$sysstat

Am I way off the mark here?

Interestingly, it seems as if Craig Shallahamer (www.orapub.com) is preparing a paper which addresses this very issue - determing response time from database statistics - but it is only due out later this year.

Anybody with any ideas or reasons why the above is not feasible?

TIA
Paul

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: Paul.Parker_at_bmwna.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). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: Jared.Still_at_radisys.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 Sep 14 2001 - 12:14:40 CDT

Original text of this message

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