How to speed up a query that is using TEMP tablespace for hash join?
Hi all,
I have a query that appears to be using a TEMP tablespace for hash join and it is very SLOW - it takes hours to complete.
SID, OSUSER, PROCESS, SQL_ID, SEGTYPE, MB, TABLESPACE
385, johndoe, 7996:7864, g38vkuhbycc6q, HASH, 3614, TEMP_CALOMS
I don't know if using the TEMP tablespace - TEMP_CALOMS - is slowing down the query or not but I think it is. SO my question how do I improve the query?
I am using Oracle 11gR2. The database is using AMM (Automatic Memory Management). Here's is some details of the database details....
SQL> show parameter target