Skip to content

Instantly share code, notes, and snippets.

@RichVRed
Forked from ryanthames/login_origin.sql
Created April 28, 2017 23:56
Show Gist options
  • Save RichVRed/69ec611637031fcbe6fc006a3aa1a4ee to your computer and use it in GitHub Desktop.
Save RichVRed/69ec611637031fcbe6fc006a3aa1a4ee to your computer and use it in GitHub Desktop.
select username, osuser, program, module,
machine, process,
count(1) as login_count
from v$session
where type = 'USER'
group by username, osuser, program, module,
machine, process;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment