SQL> SELECT sid,serial#,username,program,machine,status,last_call_et FROM v$session
2 WHERE username='SCOTT';
SID SERIAL# USERNAME PROGRAM MACHINE STATUS LAST_CALL_ET
----- ---------- ------------ --------------------------------- ------------ -------- ------------
10 12 SCOTT sqlplus@linux006 (TNS V1-V3) linux006 INACTIVE 2