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: time_waited unit in v$active_session_history

Re: time_waited unit in v$active_session_history

From: John Kanagaraj <john.kanagaraj_at_gmail.com>
Date: Thu, 3 May 2007 15:43:36 -0700
Message-ID: <2ead3a60705031543u72812b2fl231787271fc18e8e@mail.gmail.com>


Alex,

Although not specified, the TIME_WAITED in V$ACTIVE_SESSION_HISTORY is in Microseconds. Try this SQL out - shows up session events that took a second or more (and indirectly shows that TIME_WAITED is micro seconds).

select sample_time, session_id|| ','|| session_serial# ses_sid, session_state, event, seq#, p1,p2,p3, wait_class, wait_time, round(time_waited/1000000) time_waited_sec,

blocking_session_status from v$active_session_history
where round(time_waited/1000000) > 0
order by session_id, sample_time;

Other views specifically have this named as "TIME_WAITED_MICRO" (Metrics and System/Session Event views) so there is no confusion but this is not true for this core ASH view :(

-- 
John Kanagaraj <><
DB Soft Inc
Phone: 408-970-7002 (W)

Co-Author: Oracle Database 10g Insider Solutions
http://www.amazon.com/gp/product/0672327910/
** The opinions and facts contained in this message are entirely mine
and do not reflect those of my employer or customers **
--
http://www.freelists.org/webpage/oracle-l
Received on Thu May 03 2007 - 17:43:36 CDT

Original text of this message

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