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: Script for checking temp usage

Re: Script for checking temp usage

From: Lucy Lin <llin_at_versus.dmz.advance.net>
Date: Mon, 10 Sep 2001 09:50:18 -0700
Message-ID: <F001.0038851A.20010910093519@fatcity.com>

try this query:

SELECT s.username, s.serial#, s.sid, u.tablespace, u.contents, u.extents, u.blocks
 FROM v$session s, v$sort_usage u
 WHERE s.saddr=u.session_addr;

Lucy

On Mon, 10 Sep 2001, Jenkins, Michael wrote:

> Does anybody have a script that will tell you which session_ids are using
> temp and how much they are using? We occasionally get runaway sessions that
> don't release temp and this would allow us to easily locate the offending
> session.
>
> I've already checked OraMag and used google with no significant results.
>
> Thanks in advance.
>
> --Michael
>

-- 
Lucy Lin Oracle DBA

condenet.com 212-286-3852

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Lucy Lin
  INET: llin_at_versus.dmz.advance.net

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 Mon Sep 10 2001 - 11:50:18 CDT

Original text of this message

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