Rick ,
            This query will help you to find who is using the space 
 
SELECT
a.username, a.osuser, a.sid||','||a.serial# SID_SERIAL, c.spid Process,
b.tablespace tablespace, a.status, sum(b.extents)* 1024*1024 space
FROM     v$session a,v$sort_usage b, v$process c, dba_tablespaces d
WHERE    a.saddr = b.session_addr
AND      a.paddr = c.addr
AND      b.tablespace=d.tablespace_name
--ORDER BY b.tablespace, b.segfile#, b.segblk#, b.blocks
group by a.username, a.osuser, a.sid||','||a.serial#,c.spid,
b.tablespace, a.status

 
Thanks
Shibu

 
 

        -----Original Message----- 
        From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
        Sent: Tue 11/4/2003 6:49 PM 
        To: Multiple recipients of list ORACLE-L 
        Cc: 
        Subject: Who is using temp tablespace?
        
        





        Hi All,
        
        How can I determine who is using temp tablespace?  I have a 1 gb
tablespace
        and it is almost full. I want to know who and what sql is using most
        of it.
        
        Thanks
        Rick
        
        --
        Please see the official ORACLE-L FAQ: http://www.orafaq.net
        --
        Author:
          INET: [EMAIL PROTECTED]
        
        Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
        San Diego, California        -- Mailing list and web hosting services
        ---------------------------------------------------------------------
        To REMOVE yourself from this mailing list, send an E-Mail message
        to: [EMAIL PROTECTED] (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).
        



DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. 
Before opening attachments please check them for viruses and defects. MindTree 
Consulting Private Limited (MindTree) will not be responsible for any viruses or 
defects or any forwarded attachments emanating either from within MindTree or outside. 
If you have received this message by mistake please notify the sender by return  
e-mail and delete this message from your system. Any unauthorized use or dissemination 
of this message in whole or in part is strictly prohibited.  Please note that e-mails 
are susceptible to change and MindTree shall not be liable for any improper, untimely 
or incomplete transmission.

<<winmail.dat>>

Reply via email to