Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: how to get exactly how much temp tablespace a query is using
Hi!
Use:
select su.username, su.tablespace, su.contents, su.blocks, s.sql_text
from v$sort_usage su, v$sql s
where su.sqladdr = s.address
and su.sqlhash = s.hash_value;
Or use v$sql_workarea & v$sql_workarea_active if you're on 9i+
Tanel.
> query or session level. I had this query in a script on my last project,
but forgot to bring it with me. Now I'm having a brain fart and can't figure
out the joins. I know its v$sort_usage to some where. I think its a 3 table
join.
> Can anyone give it to me?
> ----------------------------------------------------------------
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> ----------------------------------------------------------------
> To unsubscribe send email to: oracle-l-request_at_freelists.org
> put 'unsubscribe' in the subject line.
> --
> Archives are at http://www.freelists.org/archives/oracle-l/
> FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
> -----------------------------------------------------------------
>
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Mon Jul 26 2004 - 09:11:09 CDT
![]() |
![]() |