-
-
Save RichVRed/68b53d242bf203b01b2ac7807839a790 to your computer and use it in GitHub Desktop.
View current logins in Oracle (https://app.pluralsight.com/library/courses/oracle-performance-tuning-developers/table-of-contents)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select username, osuser, program, module, | |
machine, terminal, process, | |
to_char(logon_time, 'YYYY-MM-DD HH24:MI:SS') as logon_time, | |
status, | |
case status | |
when 'ACTIVE' then null | |
else last_call_et | |
end as idle_time | |
from v$session | |
where type = 'USER'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment