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: waits vs. logons

Re: waits vs. logons

From: <Jared.Still_at_radisys.com>
Date: Wed, 04 Sep 2002 16:23:30 -0800
Message-ID: <F001.004C7FC5.20020904162330@fatcity.com>


Could be "SQL*Net message from client"

Query v$session_event to see what else a session has waited on:

select

   sess.username,
   sess.sid,

   se.event,
   se.total_waits,
   se.total_timeouts,
   se.time_waited/100 time_waited,
   se.average_wait

from v$session_event se, v$session sess
where event like '%'
and sess.sid = se.sid
and sess.username is not null
order by username, sid;

Jared

"Terrian, Tom" <tterrian_at_daas.dla.mil>
Sent by: root_at_fatcity.com
 09/04/2002 01:59 PM
 Please respond to ORACLE-L  

        To:     Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
        cc: 
        Subject:        waits vs. logons


I run the following query to compare the total waits for a session verses the seconds logged on:  

select a.sid, a.ontime longon_secs, round(b.waittime) wait_secs from
(select sid, (sysdate - logon_time)*24*60*60 ontime
   from v$session ) a,
(select sid, sum(time_waited)/100 waittime
   from v$session_event
   group by sid) b
where a.sid = b.sid;
I get the following results:  

       SID LONGON_SECS WAIT_SECS
---------- ----------- ----------

         1      595995     595989
         2      595994     471204
         3      595994     595585
         4      595994     594580
         5      595994     595492
         6      595994     593639
         9      595993     577157
        14        4943       1303
        24      595844     588441
        26        1733       1728
        27        5308       2478
        29      517269          0
        32          53          0
        35      415158         13
        50      140478     140371
        51         719        507
        56       14507       8706
        59        2269        221
 

I am very much a novice when it comes to wait statistics. When a session, for example #51, has been logged on for 719 seconds but has experienced only 507 wait seconds, what did it do the rest of the time? I am assuming some kind of work? Any way to determine what?  

Tom      

-- 
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 Wed Sep 04 2002 - 19:23:30 CDT

Original text of this message

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