Code:col sid format 999999 col tablespace format a10 col username format a25 col noexts format 9999 head EXTS col proginfo format a30 trunc col mbused format 999,999.90 set verify off select s.sid,s.serial#, s.sql_hash_value sesshash, u.SQLHASH sorthash, s.username, u.tablespace, sum(u.blocks*p.value/1024/1024) mbused , sum(u.extents) noexts, u.segtype, s.module || ' - ' || s.program proginfo from v$sort_usage u, v$session s, v$parameter p where u.session_addr = s.saddr and p.name = 'db_block_size' group by sid,serial#,sql_hash_value,sqlhash,s.username,tablespace, u.segtype, s.module || ' - ' || s.program order by 6;




Reply With Quote