Find sessions consuming high memory
SELECT ss.SID,se.status,se.command,
ss.VALUE CPU,
se.username,
se.program,
se.module,
se.SQL_HASH_VALUE,
se.logon_time
FROM v$sesstat ss, v$session se
WHERE ss.statistic# IN
(SELECT statistic#
FROM v$statname
WHERE NAME = 'session uga memory') AND se.SID=ss.SID AND ss.SID>6 AND se.username IS NOT NULL AND se.username<>'SYS'
ORDER BY 4 DESC
Regards
Manoj
No comments:
Post a Comment