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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Users and Temp segments

RE: Users and Temp segments

From: Jack Silvey <jack_silvey_at_yahoo.com>
Date: Wed, 08 May 2002 19:03:20 -0800
Message-ID: <F001.0045C54A.20020508190320@fatcity.com>


Here is a sorter script that I have in my archive:

select t1.tablespace
, sum( t1.blocks * to_number( t3.value ) ) / 1024 / 1024 mb_used

, sum( t1.extents ) tot_extents 
, t2.username 
, t2.osuser 
, t2.SID ||','|| t2.serial# SID_PID 
, t4.spid ,

t5.sql_text,
t1.segtype
from v$sort_usage t1
, v$session t2 
, v$parameter t3 
, v$process t4 ,

v$sqlarea t5
where t1.SESSION_ADDR = t2.SADDR
and t3.name = 'db_block_size'
and (t2.PROCESS=t4.SPID or t2.paddr = t4.addr) and t2.sql_address=t5.address
and t2.status = 'ACTIVE'
group by
t1.tablespace
, t2.username 
, t2.osuser 
, t2.machine 
, t2.schemaname 
, t2.program 
, t2.SID ||','|| t2.serial# 
, t4.spid,

t5.sql_text
,t1.segtype
/

hth,

jack


Do You Yahoo!?
Yahoo! Shopping - Mother's Day is May 12th! http://shopping.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jack Silvey
  INET: jack_silvey_at_yahoo.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed May 08 2002 - 22:03:20 CDT

Original text of this message

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