Hi,
select n.name,s.valuefrom
v$statname n,V$sesstat swhere n.statistic# = s.statistic#and
value > 0 and
s.sid = (select a.sid from v$process p,v$session a where p.addr =a.paddr and a.audsid = userenv('sessionid'))order by n.class,n.name
why do you refer to v$process ? isn't this enough?
Code:
select n.name, s.value
from v$statname n, v$sesstat s, v$session a
where n.statistic# = s.statistic#
and value > 0
and s.sid = a.sid
and a.audsid = userenv('sessionid')
order by n.class, n.name
/
Bookmarks