Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> SQL*Plus Question

SQL*Plus Question

From: Ed_Zep <ed_zep_at_ntlworld.com>
Date: 8 Jun 2006 06:13:55 -0700
Message-ID: <1149772435.783220.22890@i39g2000cwa.googlegroups.com>


This should be easy but...

I'm trying to get a list from v$session of users logged in more than once with the same username but on different machines.

I can do:

select logon_time, username, osuser, machine, count(1) from v$session group by logon_time,username, osuser, machine having count(1) > 1

but this will only give me one line per user. I need to see the same username, etc for say "JSMITH" 3 times if he's logged in three times on different machines...

I'd like to exclude rows where the user is logged on twice on the same machine.

Many thanks,

Ed. Received on Thu Jun 08 2006 - 08:13:55 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US