Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Temporary tablespace growth
hgha wrote:
> my temporary tablespace has grown to it's maximum (32GB) in two
> separate incidents. is there
> any way I can find out what query has been responsible for this growth?
> V$sort_usage doesn't tell me much.
>
> thanks
In addition to what has already been suggested, one possible way to track this down, assuming that the user who executed the SQL statement has not disconnected from Oracle, and the SQL statement has not aged out of the shared pool, is to use something similar to the following to track down the user who made extensive use of the temporary tablespace: SELECT
S.SID, S.USERNAME, S.PROGRAM, S.MACHINE, S.OSUSER,
V$SESSION S, V$SESSTAT SS, V$STATNAME SN
S.SID, S.USERNAME, S.PROGRAM, S.MACHINE, S.OSUSER,