Doubt about tablespace temp

Hi all

DB version: 9.2.0.4.1
version of the operating system: windows 2003 server sp2 (64-bit)

the application team runs a job of loading each month which requires more temp tablespace.
so every time my colleague will create new tablespace temp with 30 GB in size and makes it as default.
He will be too old (old temp is also 30 GB).

(1) if we do not create a new, old temp will be reused?
(2) is it a bug in this version so that temp is not re-used? (unfortunately, my colleague don't know the answers for these)

also, according to my understanding, oracle will not release tablespace temp paques1861 once the work is completed. Instead it is attributed to another transaction when required.
Please correct if I am wrong.

Thanks in advance.

Glance,

It's pretty simple: just as it is easy to become addicted to alcohol and hard to get rid of him, it is easy to increase a tablespace and hard to reduce its size.
When you have
-SQL with the runaway temporary use
AND
-you are convinced Oracle must release tablespace temp (which it doesn't)
you use measures like your colleague has set up.

Apart from wasting your time (you'd better give that SQL), you do nothing.

Oracle does not release space for some reason:
outside the allocation and release of the extents over and over again are very expensive.
You want to avoid that.

--------
Sybrand Bakker
Senior Oracle DBA

Tags: Database

Similar Questions

  • Precisely how to find freespace in tablespace Temp

    DB version: 11.2.0.4

    Platform: Oracle Linux 6.4

    It seems that finding the space left in the temporary tablespace is not simple.

    Question1.

    These are the descriptions of column to see DBA_TEMP_FREE_SPACE

    ALLOCATED_SPACE: Total allocated space, in bytes, including the currently allocated space

    and used and the space that is currently allocated and available for reuse

    Free_space: Total free space available in bytes, including the space which is currently assigned and available for

    reuse and the space that is currently not allocated

    http://docs.Oracle.com/CD/E11882_01/server.112/e40402/statviews_5062.htm#REFRN23627

    I'm not native English, but aren't the words in red above for the column ALLOCATED_SPACE a wrong repetition?

    Question2. In 10g, when you see zero space left in the Temp tablespace, allows us to add more space to the tablespace TEMP immediately to prevent ORA-1652: unable to extend temp segment . 11 g, is there an architectural change by what TEMP segments are recycled internally (like UNDO segments) so that we don't have to worry much when we see the 0 space in tablespace temp?

    Question3. For the same database, the results of two queries are listed below. The news of freespace vary between QueryA and QueryB.

    Which is the correct output; QueryA or QueryB?

    -QueryA using dba_temp_free_space

    Select nom_tablespace,

    totalGB tablespace_size/1024/1024/1024,

    AllocSpaceGB ALLOCATED_SPACE/1024/1024/1024,

    free_space/1024/1024/1024 FreeSpaceGB

    of dba_temp_free_space;

    NOM_TABLESPACE TOTALGB ALLOCSPACEGB FREESPACEGB

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

    TEMP 125.99707 125.748047 69.9150391

    -QueryB using v$ sort_segment

    SELECT A.tablespace_name, D.gb_total, tablespace

    SUM (A.used_blocks * D.block_size)/1024/1024/1024 gb_used,)

    D.gb_total - SUM (A.used_blocks * D.block_size)/1024/1024/1024 gb_free)

    V $ sort_segment A.

    (

    SELECT B.name, C.block_size, SUM (C.bytes)/1024/1024/1024 gb_total

    V $ tablespace B, v$ tempfile C

    WHERE B.ts # = C.ts #.

    B.name GROUP, C.block_size

    ) D

    WHERE

    D.name = A.tablespace_name

    GROUP A.tablespace_name, D.gb_total;

    TABLESPACE GB_TOTAL GB_USED GB_FREE

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

    TEMP 125.99707 22.6992188 103.297852

    So, this could mean that oracle will be reuse TEMP segments internally and Temp space needs to be increased if

    you see errors ORA-1652 in the alerts log. Right?


    I rarely answer even in this case.  It is usually a transient problem with enriched work.  Only when it becomes quite persistent to impact business operations should I address it.  When I receive an event, the first thing we do is to go to the guy in charge of the related enterprise application and ask if his phone rings.  If this isn't the case, I don't worry about this. And even if it causes a business problem, the solution may be to increase the size of the TS but to identify a particularly evil-wise query.  The last time that I had to deal with this error was due to a broad and complex query generating a large intermediate result set.  The solution should not continue to increase the TEMP TS (which turned out be "whack-a-mole") but to create a materialized view to reduce the amount of data that had to be picked up and joined running.

  • Question about Tablespace default temporary

    Hi, all.

    It is a "Newbie Question"

    If I execute the following SQL statement:

    SQL > select tablespace_name, content from dba_tablespaces, this is what I get + other tablespaces.

    NOM_TABLESPACE... CONTENT

    SYSTEM ....................................... PERMANENT
    TEMP .......................................... TEMPORARY

    My question is about the TEMP tablespace. What is the default permanent tablespace defined by the system? In OEM grid control, where it is explicitly stated that it was defined by the permanent system default storage space?

    How to know for sure if storage space is the temporary tablespace default or not, without run the drop command and get the following message:

    SQL > temp DROP TABLESPACE;
    Drop tablespace temp
    *
    ERROR on line 1:
    ORA-12906: cannot remove the temporary tablespace default


    Thank you!

    Published by: ORA_UMAIR on February 18, 2009 10:12

    Published by: ORA_UMAIR on February 18, 2009 10:13

    Published by: ORA_UMAIR on February 18, 2009 10:13

    Select * from database_properties
    where property_name = 'DEFAULT_TEMP_TABLESPACE ';

    HTH...

  • Tablespace TEMP wash after system reboot

    I have problem with tablespace TEMP blocked about 12 g. I does not change, no matter what is happening on the system.

    I guess the TEMP tablespace is to store temporary data but, even after I database is arrested and put into service these 12 G are still there.

    Any idea?


    Linux x 86
    Oracle 10.2.0.1

    This isn't a bug, but the expected behavior. Segments in temporary tablespaces are not erased, but ready to be crushed by the new temporary data. Only solution is set as temporary tablespace default and create a new temporary tablespace. Later, you can remove the old TEMP.

    Werner

  • ORA-1652: unable to extend segment temp of 128 in tablespace TEMP

    Hi all

    We receive ora 1652 error because since a few days, I increased the temporary table space for nearly 20 GB, but it still keeps to launch error

    Following errors written to the alert log file. Please check

    **********************************************************************

    Date: 26/12/13 Thursday 22:44:01

    **********************************************************************

    ORA-1652: unable to extend segment temp of 128 in tablespace TEMP

    ORA-1652: unable to extend segment temp of 128 in tablespace TEMP

    ORA-1652: unable to extend segment temp of 128 in tablespace TEMP

    ORA-1652: unable to extend segment temp of 128 in tablespace TEMP

    ORA-1652: unable to extend segment temp of 128 in tablespace TEMP

    ORA-1652: unable to extend segment temp of 128 in tablespace TEMP

    ORA-1652: unable to extend segment temp of 128 in tablespace TEMP

    After some research, I found that query below is causing such huge operation & the invasion of the temporary space

    Select distinct s.serialnr, s.shipdate, s.cpc, s.country, s.description, s.soldt

    oparty, s.shiptoparty, s.ean_code, registration_crm_serial_n s.shipserialnr

    Join s Pascale registration_crm_serial_number s2 left s.serialnr = s2.shipseria

    NRL where (s2.serialnr =: 1 or s.serialnr =: 2) and s.shipserialnr is null

    I have only 10 GB of space left on my mount point and may not increase any more space for the temporary table space.

    version of database-10 g

    one question und an additional comment:

    1. is the separate necessary? This is the reason for sorting - and when I see a distinct, I always start to think if it is useful...

    2. an outer join with:

    left outer join t2 t1 (t1.col1 = t2.col1) where t2.col2 = 'something '.

    is therefore more an outer join for the t2.col2 condition = 'something' deletes all attachments outside your result NULL values

  • Doubts about licenses

    Hi all

    I have a few doubts about the price of licenses.

    I understand, I can deploy an APEX Server 11g XE free of charge, but what happens, if I want to install, a version no XE?

    Imagine a billing application, for 10 users, and I will assume that a Standard is sufficient. With the help of [this price list | http://www.oracle.com/us/corporate/pricing/technology-price-list-070617.pdf], how much exactly will cost?

    I understand I can get a license by user or server, or I have to license user and server too?

    Kind regards.

    Hello
    metric license is named plu user or license CPU (see the table of the core).

    for a quote, you can take a look in the oracle store or ask your dealer for an exact price oracle.

    concerning
    Peter

  • Tablespace Temp created primary not replicated to standby mode

    Hello

    I configured Oracle 9i data guard recently, while doing, that I was forced to restructure primary db since maxlog files was 5, so I used backup controlfile to trace and changed the maxlogfiles to 6 and then transported the remaining steps. While I was using the trace file and restructuring of the Db, I did not notice that I missed to add the temporary file and moving it in standby mode. Yest.Day once get a team request error, that I created a new tablespace temp and logs switch made, however this tablespace temp tempfile was not copied to the standby server. Does this cause anything serious or can I do now to copy it in standby? Only the manual copy with primary db shutdown or any other means?

    standby
    SQL > SELECT NAME FROM V$ TEMPFILE;

    no selected line

    Use the commands below

    SQL > alter tablespace add tempfile ' D:\ORACLE\ORADATA\CTSOC\TEMPNEW01. DBF' size 31457280;

    If you take controlfile trace (or) metadata, you can see command DDL that too.
    Thank you.

  • I have a doubt about the file .folio and publications

    Hello, I m new here.

    I want to start working with DPS, but I have a doubt about which version to buy.

    At the moment I have one customer just wants to publish a magazine, but my intention is to have more customers and publish more magazines.

    If I buy the unique edition of DPS, I read that I can publish a single file .folio. What it means? Each folio file represents a publication?

    Please, I need help to understand this before you purchase the software.

    Thank you very much

    Paul

    Here's a quick blog I wrote to compare the simple edition and

    multifolio apps:

    http://boblevine.us/Digital-Publishing-Suite-101-single-Edition-vs-multi-Folio-apps/

    Bob

  • Doubts about event handlers

    Hello

    I had some doubts about the event handlers in the IOM 11.1.1.5...

    (1) I want to use the same event handler for the message insert and update Post task... Can I use the same handler for this... If Yes, then how can I make...

    (2) can I create the single class of Plugin.xml and add all the jar files in IE single lib folder and zip them all together... If yes then what changes I need to do? Need only add that the plugin tags for different class in the plugin.xml file files? OR need to do something extra too...?

    (3) if I need to change something in any class handler... Is it need to unregister the plugin and register again...?
    If Yes... Is it need to delete the event handler using the weblogicDeleteMetadata command?

    (4) that we import the event handler of the path as event manager/db /... If we add all the evetn handler.xml files in this folder... As when importing weblogicImportMetadata called recursively all files in this folder... Now, if I need to change anything in one of the event handler class... so if import us from the same event manager/db folder... What to do... Create the copy of the eventhandlers? OR should I not add Eventhandler.xml files to class files, I made the changes...

    (5) given that I need to create emails on the creation of the user while recon and identification of email updated as a first name or surname updates... I had to use in the event handler.xml (entity-type = 'User' operation = "CRΘER") or something else...


    Help me clarify my doubts...

    Yes, on the update post you need to be check first if the first and last name change to update the mail electronic id, rather then calculation always email identification. So, you can check the path name are updated through the previous code.

    -Marie

  • UNDOTABLESPACE and TABLESPACE TEMP in cold or hot backup database

    Hello

    I have a BACKUP, including logs generated after the backup archive. What is the use of the UNDOTABLESPACE and TABLESPACE TEMP datafile data file backup? When it is used?


    Kind regards

    007

    >
    I have the archives which have all entries are committed in it. Undoinformation is necessary for the restoration and recovery of the database? Can u explain more clearly?
    >

    The archives are as congested entries of redo logs. And the redo logs contain all changes to the database. Information cancellation will be there in the segments of cancellation that there can be some uncommitted transactions active in the segments of cancellation. Cancellation information is necessary to put the database in a consistent state. It is one of very important storage similar to the control file and system tablespace to bring a database

    Edited: Imagine a scenario. You make a backup hot at 07:00. And there are a lot of transactions happening before and during hot backup. For ex, I run a massive update to a table. This will cause the recovery to write logs of recovery that will be eventually written to logs archived. Now, you finish the backup mode. But I have not validated or cancelled my transaction. Say to the reasoning, I roll back the transaction.

    Now, you restore the backup. Do you think that my transaction will be in inconsistent state? Redo logs and archiveed newspapers had my transaction changes/redo entries. If you are not using undo in recovery segments, what will happen to my operation that I rolled back? Without cancel, half of my transaction (even if they were not truly committed) will be sitting in the database. This is where undo tablespace helps us in rolling back the transaction during your recovery. Remember, the cancellation information "peuvent" not all in recovery if you do not a complete database recovery. But Oracle should know that. If you need to undo tablespace in your backup set.

    I hope it's clear now

    Published by: VenkatB on Sep 15, 2011 10:17

  • ORA-01543: tablespace 'TEMP' already exists

    I get this error? Take a look:

    SQL > create temporary tablespace TEMP tempfile ' / u07/oradata/DESQA/temp01.dbf' autoextend 100 m size large;

    ORA-01543: tablespace 'TEMP' already exists

    SQL > select tablespace_name, file_name from dba_temp_files;

    TEMP02 /u07/oradata/DESQA/temp02.dbf
    TEMP01 /u07/oradata/DESQA/temp03.dbf

    SQL > select tablespace_name of dba_data_files;

    TABLESPACE_NAME
    ------------------------------
    SYSTEM
    PPM_INT
    UNDOTBS1
    SYSAUX
    USERS
    KNTA_DATA
    CLOB

    Otherwise, no user has TEMP as temporary tablespace, there are some doesn´t!

    Thanks for your help!

    Please post output of:

     select tablespace_name from dba_tablespaces;
    

    Maybe you have a tablespace with no data more tempfiles/files?

  • How to resize tablespace Temp in rac asm configuration

    Hi all

    Please help me,

    How to resize the tablespace temp in asm in a rac configuration.

    OS: IBM AIX.

    Kind regards
    VAMSi.

    Try this:

    ALTER DATABASE TEMPFILE '+ ASMDB/gcprod/tempfile/temp.263.661355157' RESIZE 1000M;

  • is it OK to alter tablespace temp SYS of the running production database

    Dear,

    is it OK to alter tablespace temp of the user SYS of the running production database

    Business database version 10.2.0.5
    single instance on AIX

    We have two temp tablespace temp and temp2

    I'm trying to rebuild the index by using sys connection but its not working, cannot extend the temp tablepspace

    then I checked this system a default temp tablespace is of a size of 2 GB

    on the other hand, all other schemas has (including the owner of the index) have the temp of larger size.


    He suggests to change the tablespace temp of SYS.

    Ok. Then the answer is Yes, change the SYS temp tablespace should not be a problem. If you use SYS to reconstructions of index maintenance is another story. In any case, Yes, change the tablespace temp should not be a problem. Other sessions of this user would continue using the old tablespace until their completed transaction. New transactions will begin using the newly designated temp tablespace.

    Hope that helps,

    -Mark

  • create tablespace temp with parameters

    It's recommended to create tablespace temp with parameter (autoextend, maxbytes, maxblock and increment_by). ?

    If Yes, please help me with the syntax of the command.

    Kind regards.

    Please read the documentation before posting similar questions.

    CREATE TABLESPACE
    http://download.Oracle.com/docs/CD/E11882_01/server.112/e17118/statements_7003.htm#SQLRF01403

    CREATE TABLESPACE: examples
    http://download.Oracle.com/docs/CD/E11882_01/server.112/e17120/omf003.htm#ADMIN11501

    Thank you
    Hussein

  • Doubt about appsutil.zip in R12

    Hi all
    I have doubts about the application of rapid Clone on 12.1.3.I the latest patches have applied the fix using adpatch. After that, it must synchronize directories appsutil
    in RDBMS oracle home. I created appsutil.zip in the application layer and copied in the RDBMS oracle home. If I move the old appsutil to appsutil.old and extract appsutil.zip, the new appsutil directory should not constituted by the context file (I think). So, I have to run the automatic configuration based on the old cotextfile. Below, I have summarized the steps that I follow. Please check and correct me if I'm wrong.

    Copy appsutil.zip to $INST_TOP/admin/out of RDBMS oracle home
    CP $CONTEXT_FILE /tmp/mytest_vis.xml
    MV appsutil appsutil.orig
    unzip appsutil.zip
    Run autoconfig based on/tmp/mytest_vis.xml.


    Thank you
    Jay

    Jay,

    Is there a reason why do not use the old file context? What is the difference between the context file that will be generated by adbldxml.pl and the old file context?

    If there are updates in the application, it will be updated in the new xml file generated by adbldxml.sh, but he's not in the old file.

    So it is always best to run adbldxml.sh and autoconfig.

    Amulya

Maybe you are looking for

  • MacBook Air (2015) randomly freezes on me?

    My MacBook Air (2015) will freeze randomly on me unexpectedly. I noticed that it was mainly when I use Safari. Y at - it a bug in the computer or in Safari? All suggestions are welcome!

  • Satellite P200 - 10 c: where to find XP drivers?

    HelloI bought a portable satellite P200 - 10 c with Vista on it and I installed XP but I can not find drivers for XP.Is it possible to not exist?What I can do because I need Xp on this subject.Thank you

  • Where can I find/load/include agesa_32.dll?

    Hello When I used Labview 8.5.1 to start an application written in Labview 8.5, I get an error because the application could not find "agesa_32.dll". Previously, I had added under Labview 8.5\instr.lib\ agesa.lib and he has not complained. I was wond

  • Problem loading the scanner progam

    My desktop (Vista) does not recognize my new CD of scanner (CanoScan 9000F) program.  No Autorun and the file does not appear.  My laptop (Win7) shows all the files correcly, including AutoRun. The displayed files on the drive CD of my desktop are co

  • Text typing of blackBerry Smartphones

    Hi all recently changed the 9700 device when I type a SMS and I want a new paragraph, I used to be able to hit back for a new paragraph. On the 9700, it sends just the TEXT, any ideas? Much, I preferred the format SMS on my 8900, I download for the 9