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: SQL and TEMP segments

RE: SQL and TEMP segments

From: Mark Leith <mark_at_cool-tools.co.uk>
Date: Fri, 14 Feb 2003 04:18:39 -0800
Message-ID: <F001.0054D611.20030214041839@fatcity.com>


select distinct b.sid,

       b.serial#,
       substr(b.username, 1, 8) USERNAME,
       b.process,
       substr(c.segment_name, 1, 8) SEGMENT_NAME,
       bytes BYTES,
       substr(b.osuser, 1, 7) OS_USER,
       substr(b.machine, 1, 6) M_NAME,
       substr(b.program, 1, 12) PROGRAM
  from v$access a,
       v$session b,
       dba_segments c
 where c.owner = a.owner
   and a.sid = b.sid

   and b.status = 'ACTIVE'
   and c.segment_type = 'TEMPORARY';

HTH Mark


 Mark Leith             | T: +44 (0)1905 330 281
 Sales & Marketing      | F: +44 (0)870 127 5283
 Cool Tools UK Ltd      | E: mark_at_cool-tools.co.uk
===================================================
           http://www.cool-tools.co.uk
       Maximising throughput & performance

-----Original Message-----
Sent: 14 February 2003 11:49
To: Multiple recipients of list ORACLE-L

Quick question, I want to find out what sql is currently using my temporary segments. Is their a simple solution. Am getting the ORA-1652 for my locally managed temporary tablespace and I would like to find out what sql is causing this. My temp tablespace is currently 1.2GB. Oracle 8.1.7.3 on HPUX 11.
TIA With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Mark Leith
  INET: mark_at_cool-tools.co.uk

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: 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 Fri Feb 14 2003 - 06:18:39 CST

Original text of this message

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