IDLE TIME - not in effect [message #515873] |
Wed, 13 July 2011 23:13 |
gkrishn
Messages: 506 Registered: December 2005 Location: Putty a dark screen
|
Senior Member |
|
|
# I am trying to list all users that are "Idle" for more than a day. (ie, Idle ,and on same wait).
select s.username,s.sid,round(w.seconds_in_wait/60/60) "Idle Hour"
from v$session_wait w,v$session s where w.wait_class='Idle' and w.wait_time='0' and w.seconds_in_wait>86400
and s.sid=w.sid and
s.username is NOT NULL order by 3,1 desc
/
USERNAME SID Idle Hour
---------- ---------- ----------
SCOTT 2147 176
SCOTT 724 350
SCOTT 861 350
SCOTT 586 350
SCOTT 1864 351
SCOTT 1998 400
SCOTT 1424 401
I have checked SCOTT user profile, has this but
IDLE_TIME KERNEL 240
CONNECT_TIME KERNEL UNLIMITED
Any idea why IDLE_TIME is not working correctly ? or is it problem with my first query ? Thanks
|
|
|
|
|
|