ptheriault
IS-IT--Management
I've written the following query to return me info for each active session.
I would like to see the Total CPU time for these sessions as well. I tried to join on the V$SESSTAT view but was taking way to long to return a result set. My question is...
Is there an already made view which is similar to 'sp_who2' in SQL server for Oracle 10G?
Thanks
- Paul
- If at first you don't succeed, find out if the loser gets anything.
Code:
SELECT a.Spid
,b.Username
,b.Status
,b.Osuser
,b.Process
,b.Machine
,b.Program
,b.Sid
,a.Spid
FROM V$PROCESS a
JOIN V$SESSION b
ON a.Addr = b.Paddr
WHERE b.USERNAME like 'APOLL%'
AND b.STATUS = 'ACTIVE'
Is there an already made view which is similar to 'sp_who2' in SQL server for Oracle 10G?
Thanks
- Paul
- If at first you don't succeed, find out if the loser gets anything.