SQL Performance (MOSC)

MOSC Banner

How to speed up a query that is using TEMP tablespace for hash join?

edited Oct 5, 2016 12:41PM in SQL Performance (MOSC) 20 commentsAnswered

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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center