Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Who is sorting
Bass, Below is a script that I downloaded from www.revealnet.com's
Pipeline. I've modified it a little to suit me. Hope it helps you,
also.
Dennis Buddenborg
OCP DBA
VALEO ELECTRICAL SYSTEMS
#FILE: tempwho.sql
col filename format a20
col sql_text format a65 wrapped
SELECT
w.sid session_id
,s.username username ,s.osuser osuser ,w.event wait_event ,a.sql_text
,v$session s ,sys.v_$sqlarea a ,v$datafile f ,sys.file$ ff ,sys.user$ u
AND w.p1text = 'file#' AND w.sid = s.sid AND s.user# = u.user# AND w.event like 'db file%' AND a.address(+) = s.sql_address
Bass Chorng wrote:
> Does anybody know if there is a way to find out who
> is taking up the temporary segments for sorting ?
>
> We have had several experiences that temporary tablespace
> got used up. But all you can find out from dba_segments
> are the temp segment ID and owner SYS. I really like to
> locate the SID associated with that.
>
> Thanks for any advice in advance.
>
> -Bass Chorng
> DBA
> Lucent Technologies
Received on Wed Dec 09 1998 - 12:40:37 CST
![]() |
![]() |