Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> group by clause filling up temp space
I have this query which filled up 12GB of temp space. tableA has 500K
records where tableB has 5M records. sid are indexed. The 2 tables
combine only 200 mega bytes and yet this query needs more than 12GB of
temp space to perform. I am thinking it's the multiple group by that
is causing trouble? Is there any workaround on this? Thanks.
SELECT a.id, a.type1, a.type2, count(b.sid)
FROM tableA a, tableB b
WHERE a.sid = b.sid
and b.status = 'Y'
GROUP BY a.id, a.type1, a.type2;
The database is 9.2 EE. The involved tables are analyzed. Received on Tue Aug 30 2005 - 14:11:33 CDT
![]() |
![]() |