Temporary tablespace

Posted on 2007-10-06
Last Modified: 2013-12-19
My Oracle 10G temporary tablespace size is increasing abnormally.
it went to 33 GB in just 3 hours.

Why it is getting huge?
Question by:imran_fast
    LVL 7

    Accepted Solution

    You may be doing large sorts. Have a look at what SQL you are executing.
    LVL 5

    Assisted Solution

    you can use:

    SELECT * FROM v$tempseg_usage;

    and see what sessions consume most of the temporary tablespace when active.
    Then investigate what these sessions are doing.
    LVL 28

    Expert Comment

    select sum(bytes)/1024/1024 size_in_mb from dba_temp_files;
    select sum(bytes)/1024/1024 size_in_mb  from v$tempfile;

    The above should give u the size of your temp tablespace.

    You can use the below to see which query is taking the TEMP tablespace..

    SELECT *
    FROM v$sql
    WHERE hash_value IN (
    SELECT sql_hash_value  
        FROM v$session s, v$sort_usage u
        WHERE s.saddr = u.session_addr
        AND u.CONTENTS = 'TEMPORARY' ) ;


    LVL 28

    Author Comment

    I increased the hash_area_size  and its fine.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    PRTG Network Monitor: Intuitive Network Monitoring

    Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

    This post first appeared at Oracleinaction  ( Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
    From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
    This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
    This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now