User idle time

SELECT sid, osuser, username, status,
TO_CHAR(logon_time, ‘DAY HH24:MI:SS’) LOGON_TIME,
FLOOR(last_call_et/3600)||’:’||
FLOOR(MOD(last_call_et,3600)/60)||’:’||
MOD(MOD(last_call_et,3600),60) IDLE, program
FROM v_$session
WHERE username IS NOT NULL
ORDER BY last_call_et;

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: