Temporary tablespace growth

Hello guys,.

I have an Oracle (10g version 10.1.0.5.0) database that is not too big, but my phase of temporary tablespace (LMT) too (20 GB)
How can I save a normal or more regular size?

Kind regards.

There are reasons of servral why your app (has nothing to do with the size of the database) is using a lot of temporary space. Get your temporary tablespace to small size can not solve. It will still grow after that.

You might want to take a look at these discussions on the parameters of the PGA, etc.

Re: Problem with memory PGA - Oracle 10.2.0.4 on windows 2003
Re: Details on using in the memory of the PGA

If you must reduce the size of your tablespace temp of smaller size, an option is to create a new temp tablespace, change username for this tablespace, drop the old temp tablespace and re-create for small size chosen, then switch users back.

Avoid creating your temporary tablespace with temporary file extension. The size of your tempfiles properly and not use AUTO EXTEND on creating temp tablespace.



Oracle database FAQ

Tags: Database

Similar Questions

  • When I do exp (expdp), why use the temporary tablespace?

    Dear

    Imp (impdp) is using temporary tablespace.

    but I'm not using tablespace temp, while exp (expdp) is running.

    I think that exp (expdp) will not use temporary tablespace. is it not?

    Please let me know?

    He could.  It must run queries on the data dictionary.  Some of these applications may require the temp tablespace.

    Hemant K Collette

  • cancellation by default and temporary tablespace issue

    (Oracle 10g)

    Sorry, I don't have access to a database at the moment to try this out, so I ask here.

    If we create these, the system gets used.

    (1) but if we create these and you do not specify a default undo tablespace or default temporary tablespace - what this means system will still get used?

    (2) what happens if we specify cancel default and temporary storage spaces, to give the user a quota on these or the user automatically uses?

    Thank you.

    Hello

    I'll try to be clear...

    2875396 wrote:

    (Oracle 10g)

    (1) but if we create these and you do not specify a default undo tablespace or default temporary tablespace - what this means system will still get used?

    (A) to CANCEL, Yes, SYSTEM is used but a few transactions more tablespace SYSAUX & SYSTEM are permitted.

    operations on other storage space you need for an UNDO tablespace configured.

    Test:

    SQL> show parameters undo
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    undo_tablespace                      string
    
    SQL> drop table cdc.tab_dummy purge;
    
    SQL> create table cdc.tab_dummy(id number) tablespace system;
    
    Table created.
    
    SQL> insert into cdc.tab_dummy values(1);
    
    1 row created.
    
    SQL> rollback;
    
    Rollback complete.
    
    SQL> drop table cdc.tab_dummy purge;
    
    SQL> create table cdc.tab_dummy(id number) tablespace sysaux;
    
    Table created.
    
    SQL> insert into cdc.tab_dummy values(1);
    
    1 row created.
    
    SQL> rollback;
    
    Rollback complete.
    
    SQL> drop table cdc.tab_dummy purge;
    
    SQL> create table cdc.tab_dummy(id number) tablespace users;
    
    SQL> insert into cdc.tab_dummy values(1);
    insert into cdc.tab_dummy values(1)
                    *
    ERROR at line 1:
    ORA-01552: cannot use system rollback segment for non-system tablespace 'USERS'
    
    SQL> alter system set undo_tablespace='UNDOTBS1';
    
    SQL> insert into cdc.tab_dummy values(1);
    
    1 row created.
    
    SQL> select * from cdc.tab_dummy;
    
            ID
    ----------
             1
    
    SQL> rollback;
    
    Rollback complete.
    
    SQL> select * from cdc.tab_dummy;
    
    no rows selected
    

    (B) for TEMP, depends on:

    At the time of creation of database:

    IF = LMT SYSTEM THEN

    you have to specify a temporary tablespace

    ON THE OTHER

    the SYSTEM tablespace can be used as temporary tablespace

    END IF

    Doc http://docs.oracle.com/cd/B19306_01/server.102/b14220/physical.htm#i10741

    (2) what happens if we specify cancel default and temporary storage spaces, to give the user a quota on these or the user automatically uses?

    (A) to CANCEL,

    No, this storage space is for the feature "Internal (read consistency, etc.)" and you don't have to worry about the users quota.

    You can query the view dba_undo_extents separate owner and you can see that all extensions are owner of SYS.

    You can test it to create a new user with any quota on undo tablespace.

    (B) for the TEMPERATURE,

    No, this storage space is for the feature "in-house (sort operations, etc.)" and you don't have to worry about quotas users

    You can test it create a new user with any quota on the temporary tablespaces, performing a sort of big or creating an index.

    Thank you.

    Kind regards

    Juan M

  • Problem when droping temporary tablespace

    After changing the temporary tablespace default temp for TEMP3, when I try to drop the TEMP tablespace hangs until I have terminate with CTRL + C.

    The reason is there sessions using TEMP that will not disconnect.

    I guess connections SYSAUX will leave if I close SGD, but what of the APPLICATION of substantive processes? I can't stop this instance for such a stupid task.

    Looking at the LAST_ETL_TIME and the STATUS of the RCGB bg process, I realized that they are ASSETS since the database started upward, 21/09/2012.

    Any ideas?

    Thank you.

    Col tablespace format a10

    Col username format a6

    Col osuser format a6

    Pass program format a27

    SELECT a.INST_ID, b.tablespace, b.segfile #, b.segblk #, b.blocks, a.sid, a.serial #, a.username, a.osuser, a.program, b.segtype, to_char (a.logon_time, ' dd/mm/yy HH24') logon_time, a.status, a.last_call_et

    GV $ session has, gv$ sort_usage b

    WHERE a.saddr = b.session_addr

    ORDER BY 1, 2, 3, 4, 5, 6;

    INST_ID SELECT TABLESPACE SEGFILE # SEGBLK # BLOCK SID, SERIAL # USERNA OSUSER PROGRAM SEGTYPE LOGON_TIME STATUS LAST_CALL_ET

    ---------- ---------- ---------- ---------- ---------- ---------- ---------- ------ ------ --------------------------- --------- -------------- -------- ------------

    1 oracle TEMP 201 2766464 128 640 31865 SYSMAN SGD INDEX 16/10/13 10:50 56 INACTIVE

    1 oracle TEMP 201 2856192 128 640 31865 SYSMAN GIVEN WHO 16/10/13 10:50 56 INACTIVE

    1 oracle TEMP 201 2865664 128 695 45433 SYSMAN SGD INDEX 16/10/13 10:50 22 INACTIVE

    1 oracle TEMP 201 2865792 128 695 45433 SYSMAN GIVEN WHO 16/10/13 10:50 22 INACTIVE

    1 oracle TEMP 201 2865920 128 695 45433 SYSMAN GIVEN WHO 16/10/13 10:50 22 INACTIVE

    1 oracle TEMP 201 2866048 128 695 45433 SYSMAN SGD INDEX 16/10/13 10:50 22 INACTIVE

    1 oracle TEMP 201 2894976 128 640 31865 SYSMAN GIVEN WHO 16/10/13 10:50 56 INACTIVE

    1 oracle TEMP 201 2895104 128 695 45433 SYSMAN GIVEN WHO 16/10/13 10:50 22 INACTIVE

    1 oracle TEMP 201 2895232 128 695 45433 SYSMAN SGD INDEX 16/10/13 10:50 22 INACTIVE

    1 oracle TEMP 201 2895360 128 640 31865 SYSMAN SGD INDEX 16/10/13 10:50 56 INACTIVE

    1 oracle TEMP 201 2895488 128 640 31865 SYSMAN SGD INDEX 16/10/13 10:50 56 INACTIVE

    1 oracle TEMP 201 2895616 128 640 31865 SYSMAN GIVEN WHO 16/10/13 10:50 56 INACTIVE

    1 oracle TEMP 201 2895744 128 640 31865 SYSMAN GIVEN WHO 16/10/13 10:50 56 INACTIVE

    1 oracle TEMP 201 2933120 128 695 45433 SYSMAN GIVEN WHO 16/10/13 10:50 22 INACTIVE

    1 TEMP3 203 136192 128 392 8811 WEB_ES person don't httpd@weblxfe03 (V1 - V3 TNS) DATA 04/04/14 15:00 IDLE 0

    DC81

    Oracle TEMP 201 490368 128 337 55503 SYSMAN 2 the WHO DATA 16/10/13 10:49 52 INACTIVE

    Oracle TEMP 201 628992 128 337 55503 SYSMAN 2 SGD INDEX 16/10/13 10:49 52 INACTIVE

    Oracle TEMP 201 640768 128 337 55503 SYSMAN 2 SGD INDEX 16/10/13 10:49 52 INACTIVE

    Oracle TEMP 201 701056 128 337 55503 SYSMAN 2 SGD INDEX 16/10/13 10:49 52 INACTIVE

    Oracle TEMP 201 744064 128 337 55503 SYSMAN 2 the WHO DATA 16/10/13 10:49 52 INACTIVE

    Oracle TEMP 201 757760 128 337 55503 SYSMAN 2 the WHO DATA 16/10/13 10:49 52 INACTIVE

    Oracle TEMP 201 762752 128 337 55503 SYSMAN 2 the WHO DATA 16/10/13 10:49 52 INACTIVE

    2 TEMP 201 3033728 128 55 1 oracle [email protected] (Application) DATA 21/09/12 09:51 48402541 ACTIVE

    2 TEMP 201 3033984 128 55 1 oracle [email protected] (Application) of the INDEX 21/09/12 09:51 48402541 ACTIVE

    2 TEMP 201 3034368 128 55 1 oracle [email protected] (Application) DATA 21/09/12 09:51 48402541 ACTIVE

    2 TEMP 201 3048448 128 55 1 oracle [email protected] (Application) of the INDEX 21/09/12 09:51 48402541 ACTIVE

    2 TEMP 201 3048576 128 55 1 oracle [email protected] (Application) DATA 21/09/12 09:51 48402541 ACTIVE

    2 TEMP 201 3048704 128 55 1 oracle [email protected] (Application) DATA 21/09/12 09:51 48402541 ACTIVE

    2 TEMP 201 3048832 128 55 1 oracle [email protected] (Application) of the INDEX 21/09/12 09:51 48402541 ACTIVE

    3 oracle TEMP 201 3033728 128 55 52181 SYSMAN GIVEN WHO 16/10/13 10:49 25 INACTIVE

    3 oracle TEMP 201 3033984 128 55 52181 SYSMAN SGD INDEX 16/10/13 10:49 25 INACTIVE

    3 oracle TEMP 201 3034368 128 55 52181 SYSMAN GIVEN WHO 16/10/13 10:49 25 INACTIVE

    3 oracle TEMP 201 3048448 128 55 52181 SYSMAN SGD INDEX 16/10/13 10:49 25 INACTIVE

    3 oracle TEMP 201 3048576 128 55 52181 SYSMAN GIVEN WHO 16/10/13 10:49 25 INACTIVE

    3 oracle TEMP 201 3048704 128 55 52181 SYSMAN GIVEN WHO 16/10/13 10:49 25 INACTIVE

    3 oracle TEMP 201 3048832 128 55 52181 SYSMAN SGD INDEX 16/10/13 10:49 25 INACTIVE

    3 TEMP3 203 239616 128 286 50245 WEB_ES person don't httpd@weblxfe21 (V1 - V3 TNS) DATA 04/04/14 15:03 IDLE 0

    DC81

    37 selected lines.

    # Note: 'oracle2.local' is the host name and domain.

    Here is the solution: http://danielrobertosoto.blogspot.com.ar/2014/04/11gr2-result-cache-feature.html

  • ORA-02180 temporary tablespace creating

    SQL > show parameter DB_CREATE_FILE_DEST

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    db_create_file_dest chain + DATA

    SQL > CREATE TEMPORARY TABLESPACE TEMP3 SIZE 1 G;

    *

    ERROR on line 1:

    ORA-02180: opcion no valida para don't CREATE TABLESPACE

    Oracle docs say: "you can omit the TEMPFILE clause only if the DB_CREATE_FILE_DEST initialization parameter has been set. "In this case, Oracle creates a 100 tempfile Oracle MB managed in the default file destination specified in the parameter.

    Therefore, it seems that I can not specify the size of the table if space I omit the TEMPFILE clause, which is a little weird for me. Do I really have to use 2 orders, as follows? :

    SQL > CREATE TABLESPACE TEMPORARY-TEMP3;

    Tablespace created.

    SQL > modify the database temporary '+ DATA/cvtst/tempfile/temp3.265.843651289' resize 1 g;

    Base datos modificada.

    Thank you.

    I found the answer to my own question:

    In order to specify the size of the storage space, without having to specify the full name of the tempfile (because I use the OMF), it is possible to use only the diskgroup under the temporary file name: + DATA. For example:

    create temporary tablespace petit_fichier TEMP3 tempfile '+ DATA' size 1024 M REUSE AUTOEXTEND ON NEXT 512 m MAXSIZE 16384 M MANAGEMENT UNIFORM LOCAL MEASURE SIZE 1 M;

    Kind regards!

  • How to rename the temporary tablespace group name

    How to rename the temporary tablespace group name?  I have to remove all the temporary tablespace under the Group and then re-create the temporary tablespace again.

    EBS r12.1.1

    Database 11.0.1.7

    Please see any id doc.

    concerning

    pritesh Rodriguez

    Thanks for your update. I have solved my problem by creating a new group and add temporary tablespace to new goup.

    concerning

    pritesh Rodriguez

  • Undo and temporary tablespace structure

    I have a silly question.  Suppose a block contains 100 lines and access 1 row, then oracle will bring the entire block (100 lines) in the buffer cache and 1 row to return.

    What is the case though

    a. I'm updating 1 row, undo tablespace will pre image of the block?

    b. my satisfied request 1 row block and A complete block will be in the temporary tablespace.

    a. No. UNDO holds vectors of change, not pre-image of the [whole] blocks.

    b. TEMPORARY tablespace is used for sorting and certain other operations. Space TEMP several times in memory is sufficient, and the temporary tablespace is never touched. Temporary segments contain data specific to your application and not the full original block. A query cannot to use temporary space.

    http://docs.Oracle.com/CD/E11882_01/server.112/e25789/logical.htm#CNCPT305

    Found a reliable confirmation of my first speech...

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:729373100346730466

    Post edited by: BrianBontrager

  • sorting data - more great temp tablespace and temporary tablespace

    Hello

    Using oracle 11.2.0.3 and have a general question.

    If have a query which has to say read 100 million records and the Group results it takes a bigger temporary tablespace to sort these data

    Rathet than agnist an identical query summed up version of table (mview) including 25% of this amount - gbe that same but cliniquesdans need to read much less lines.

    s.EG
    select dimesnion.attribute1, dimesnion,.attribute2..., sum(sales)
    
    from fact, dimension
    where ....
    
    group by dimesnion.attribute1, dimesnion,.attribute2
    Thank you very much

    If I understand your question right, I think both group by must take the same temporary as space ' group by ' sorts data in the end after read data. As both the results of queries in the same number of lines, so group by clause will take same tablespace temporary unless there are fewer columns in the materialized view as the original table.

  • Can't set MAXSIZE to a temporary tablespace to 11.2?

    DB version: 11.2.0.3
    Platform: Solaris 10

    I wanted for my temporary tablespace the MAXSIZE value. But it did not work. I could create only without MAXSIZE clause
    SQL> CREATE TEMPORARY TABLESPACE EXPIMP_TEMP
     TEMPFILE '/u05/oradata/orcl/expimp_temp_01.dbf' SIZE 2G MAXSIZE 2G;  2
    
    SQL> create temporary tablespace temp_expimp
     tempfile '/u05/oradata/orcl/expimp_temp_01.dbf' size 2g maxsize 2g;  2
     tempfile '/u05/oradata/orcl/expimp_temp_01.dbf' size 2g maxsize 2g
                                                                         *
    ERROR at line 2:
    ORA-02180: invalid option for CREATE TABLESPACE
    
    
    SQL>  create temporary tablespace temp_expimp tempfile '/u05/oradata/orcl/expimp_temp_01.dbf'
     size 2g reuse extent management local maxsize 2g;  2
     size 2g reuse extent management local maxsize 2g
                                           *
    ERROR at line 2:
    ORA-02180: invalid option for CREATE TABLESPACE
    
    
    SQL>  create temporary tablespace temp_expimp tempfile '/u05/oradata/orcl/expimp_temp_01.dbf'
     size 2g extent management local ;  2
    
    Tablespace created.

    Max wrote:
    DB version: 11.2.0.3
    Platform: Solaris 10

    I wanted for my temporary tablespace the MAXSIZE value. But it did not work. I could create only without MAXSIZE clause

    SQL> CREATE TEMPORARY TABLESPACE EXPIMP_TEMP
    TEMPFILE '/u05/oradata/orcl/expimp_temp_01.dbf' SIZE 2G MAXSIZE 2G;  2
    
    SQL> create temporary tablespace temp_expimp
    tempfile '/u05/oradata/orcl/expimp_temp_01.dbf' size 2g maxsize 2g;  2
    tempfile '/u05/oradata/orcl/expimp_temp_01.dbf' size 2g maxsize 2g
    *
    ERROR at line 2:
    ORA-02180: invalid option for CREATE TABLESPACE
    
    SQL>  create temporary tablespace temp_expimp tempfile '/u05/oradata/orcl/expimp_temp_01.dbf'
    size 2g reuse extent management local maxsize 2g;  2
    size 2g reuse extent management local maxsize 2g
    *
    ERROR at line 2:
    ORA-02180: invalid option for CREATE TABLESPACE
    
    SQL>  create temporary tablespace temp_expimp tempfile '/u05/oradata/orcl/expimp_temp_01.dbf'
    size 2g extent management local ;  2
    
    Tablespace created.
    

    must be used with AUTOEXTEND ON

  • How to assign the temporary tablespace to a table

    How to assign the temporary tablespace to a table

    temporary tablespace can be attributed to the user.

  • Unknow temporary tablespace

    How can busy temporary tablespace tablespace 4Gig, I delete this tempspace. Name of the segment is in numbers. I don't know what is happening here.

    Any help much appreciated.
    select  owner
    ,     segment_name
    ,     segment_type
    ,     mb
    from     (
         select     owner
         ,     segment_name
         ,     SEGMENT_TYPE
         ,     bytes / 1024 / 1024/1024 "MB"
         from     dba_segments
         order     by bytes desc
         )
    WHERE     ROWNUM < 11
    /
    ABC     34.396      TEMPORARY     4.1630859375

    A TEMPORARY segment is automatically deleted when the operation that created it is completed (successfully or unsuccessfully). If the same temporary segment persists, log an SR with Oracle's Support.

    Hemant K Collette

  • temporary tablespace

    Hello

    I want to know when I add 2g datafile to temporary tablespace.will that the same 2 GB space is used in operating systems or when the sort operation occurs in this space of time 2g will be used as the os

    Concerning

    user13364785 wrote:
    Then, when released used space.

    Concerning

    space inside TEMP tablespace will be reused as needed, but NOT returned to the operating system

  • Temporary tablespace: size of the measure

    Move us our DWH (1 to) to new hardware and upgrade to 11g DB. The system made heavy use of temporary storage during sorts / joins. That's why we'll go temporary tablespace groups different discs/pins.
    Now, we wonder if the size of the measure for the managed temporary tablespaces locally will also contribute to the performance. Standard measurement site is 1 M. Is there something to consider?

    Salvation;

    Please check the notes that might be useful for your question below:
    What size should have when creating temporary Segments to PERMANENT Tablespace [ID 163427.1]
    How to choose the measurement for a temporary Tablespace size prevent ORA-3232 [ID 125271.1]

    Respect of
    HELIOS

  • To pass temporary tablespace

    How can I switch to a newly created temporary tablespace?
    anyone could help provide the detailed steps to do?

    Also, if I can see two temporary tablespaces of the dba_tablespaces view, then how can I know that one is in use?
    Note: these two temporary tablespace do not belong to the same group of tablespace.

    How can I switch to a newly created temporary tablespace?
    anyone could help provide the detailed steps to do?

    TEMPORARY TABLESPACE ALTER USER2 TEMP2;

    Also, if I can see two temporary tablespaces of the dba_tablespaces view, then how can I know that one is in use?

    Both can be 'in service' by different users

  • The loss of the temporary tablespace planted the Instance?

    DB version: 10 gr 2 and higher

    The loss of the temporary tablespace planted the DB. A database can survive without sorting and Index - rebuilt (main uses of the Temp tablespace). Right?

    sb92075 wrote:
    Handle: J.Kiechle
    Status level: Beginner
    Join date: January 21, 2008
    Messages total: 129
    Total issues: 22 (16 pending)
    many questions and so few answers.
    :-(

    What this has to do with Sb?

    Results complete post of
    SELECT * from version of v$.

    OP mentioned 10 gr 2 and higher. But otherwise too, it won't really matter as this seems to be a generic question IMO. The only difference version that would leave 10 g, restart the db would make the temporary tablespace once again, that's all!

    Aman...

Maybe you are looking for

  • Context menu (including all the other menus) does not work after a while.

    I use ubuntu 12.04 LTS, 33.0 firefox (thunderbird also same problem). Context menu and all menus are not works after a while (maybe 30 min)? I have to close all firefox windows to make the menus work (make an another new firefox windows does not solv

  • USB Bluetooth adapter problems

    Hello I recently got a new Toshiba Tecra S1 (PM725) and an adapter Bluetooth usb (with More4you software). But I can't make it work with my nokia 6310i I installed new battery BT (Bluetooth Stack for Windows by Toshiba (3.10.00). Analysis of my nokia

  • Satellite A500D - fan does not stop

    Hello Two days ago I updated the Bios to version 1.20 win, and since then, the fan is constantly at 72% and the temperature of the CPU at 36 º. At Toshiba, I say it is normal, but the fan does not stop at any time and the noise is annoying. Anteriorm

  • Bug: The screen does not sleep when the phone is plugged in / recharge

    The screen is not automatically timeout if the phone is connected via USB - it doesn't seem to be an option to change this.

  • The laptop ITunes is to change languages by himself

    Hello. For some unknown reason, iTunes - English Japanese on my laptop (Windows 10 64-bit, iTunes 12.3.2) suite of other discussions I've done the following without result: 1 uninstalled iTunes, made sure that I had the most recent version and reinst