Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: runaway temporary tablespace
I have seen similar behavior when poorly formed SQL queries create "Cartesian product" result sets due to a missing "join" condition, and then the programmer works around it by doing a "SELECT DISTINCT...". This will cause all the rows to be sorted and merged in the TEMP tablespace.
Check "EXPLAIN PLAN" output to see how many rows are actually being processed at each step of the query execution...
WCK wrote:
>
> my oracle 8.0.6 is on NT 4.0 with SP6. My new database starts with a 100mb
> temporary tablespace and a 3gb data tablespace but now the temporary
> tablespace has increased to 2.5gb in size. any idea what cause it to expand
> so drastically and how can i go about to maintain it? it shows to have over
> 95% in use.
> Thanks.
> WCK
Received on Sun Jan 28 2001 - 12:07:56 CST