Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. set lines 200 pages 50
  2. column inst format 9999
  3. column serial# format 9999999
  4. column username format a15
  5. column sid format 9999
  6. column osuser format a19
  7. column program format a33
  8. column machine format a26
  9. column name format a16
  10. column logon format a15
  11. column event format a30
  12. select inst_id INST,
  13. sid,
  14. serial#,
  15. username,
  16. to_char(logon_time,'DD/MM-HH24:MI:SS') logon,
  17. last_call_et,
  18. osuser,
  19. program,
  20. status,
  21. machine, event, sql_id
  22. from gv$session
  23. where (program not like 'ORACLE.EXE%'
  24. or program is null)
  25. --and status ='ACTIVE'
  26. and username is not null
  27. /*where program = 'sqlplus.exe'
  28. or program like '%ElinIoCore%'
  29. or program like '%CommSrv.exe%'*/
  30. order by Status desc, last_call_et, username, logon_time;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement