First, you’re missing user-mode CPU time consumed by the Oracle session. The statistic that is supposed to hold this number is ‘CPU used by this session’ from v$sesstat. But there are bugs in that statistic. Second, some of the time that an Oracle process spends sleeping (because of context switches imposed by a timesharing operating system) isn’t counted either. See www.hotsos.com/dnloads/1/kevents/unaccounted-for.html for a start. Our Hotsos Clinic explains in complete detail.
Cary Millsap -----Original Message-----
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 I get the following results:
SID LONGON_SECS WAIT_SECS
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
|
Title: Message
- waits vs. logons Terrian, Tom
- Re: waits vs. logons Paul Baumgartel
- Re: waits vs. logons Anjo Kolk
- Re: waits vs. logons Cary Millsap
- Re: waits vs. logons Jared . Still