TEMP TBS platzt...

Hallo,
habe ein Problem mit meinem TEMP TBS...
Ich mache ein "CREATE TABLE AS SELECT". Das SELECT geht auf eine VIEW mit ca. 3.000.000 Datensätzen.
Während das SELECT läuft kann man sehen, wie der TEMP TBS voll läuft und irgendwann abschmiert.
Wenn ich das Ganze auf einer Test-DB (8.1) mache, läuft die Kiste und das mit einem TEMP TBS mit nur 2.5GB!!!
Der einzige Unterschied (den ich jetzt so sehe) ist, dass die TBS in der Test-DB DICTIONARY MANAGT sind und auf der anderen DB (9.2) LOCALY MANAGT. Auch kann ich die TBS auf der 9er nicht DICTIONARY MANAGT anlegen. Ist das unter 9.2 nicht mehr möglich?
Mein TEMP ist so angelegt:
CREATE TEMPORARY TABLESPACE temp
TEMPFILE '/home/loc/TIS_Daten/dbs1/plmtst/temp01.dbf' SIZE 1000M,
'/home/loc/TIS_Daten/dbs1/plmtst/temp02.dbf' SIZE 1000M,
'/home/loc/TIS_Daten/dbs1/plmtst/temp03.dbf' SIZE 1000M,
'/home/loc/TIS_Daten/dbs1/plmtst/temp04.dbf' SIZE 1000M
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;
Danke!!!

Auch kann ich die TBS auf der 9er nicht DICTIONARY MANAGT anlegen. Ist das unter 9.2 nicht mehr möglich?Hi,
If I well understand you (with remember my german school training), you cannot create a dictionnary managed tablespace whenever your system tablespace is locally managed.
But to have more chance to find a help, as Yogesh said, try to reformulate your question in english.
HTH,
Nicolas.

Similar Messages

  • How can I know which queries run in the TEMP tbs (Oracle 9i and 10g) ?

    Dear friends, do you have a query which can shows which statements are running currenly in the TEMP tablespace?
    Many Thanks in advance, Marcelo.

    Marcelo,
    you can check DBMS_XPLAN.DISPLAY_CURSOR - if you find a column TempSpc there, it's using Temp space.
    select source from sys.source$ order by source;
    select * from table(dbms_xplan.display_cursor(NULL, NULL, NULL));
    PLAN_TABLE_OUTPUT
    SQL_ID  5ywbw0z6gupwk, child number 0
    select source from sys.source$ where rownum < 555555 order by source
    Plan hash value: 1381731087
    | Id  | Operation           | Name    | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT    |         |       |       |       | 11492 (100)|          |
    |   1 |  SORT ORDER BY      |         |   555K|    37M|    87M| 11492   (1)| 00:02:18 |
    |*  2 |   COUNT STOPKEY     |         |       |       |       |            |          |
    |   3 |    TABLE ACCESS FULL| SOURCE$ |   572K|    38M|       |  1834   (1)| 00:00:23 |
    ---------------------------------------------------------------------------------------or for all your statements currently available:
    SELECT t2.*
    FROM v$sql s, table(DBMS_XPLAN.DISPLAY_CURSOR(s.sql_id, s.child_number)) t ,
         table(DBMS_XPLAN.DISPLAY_CURSOR(s.sql_id, s.child_number)) t2
    WHERE t.PLAN_TABLE_OUTPUT like '%TempSpc%';Edit: Sorry, I didn't see you are also asking for 9i. DISPLAY_CURSOR is only available in 10g+ - but Tom Kyte and others have shown WorkArounds to use DBMS_XPLAN.DISPLAY from 9i to show the information for all available SQLs.
    2nd Edit:
    TempSpc only shows the estimation the optimizer makes.
    You can check V$SQL_PLAN_STATISTICS_ALL for the columns max_tempseg_size and tempseg_size. In Addition please have also a look on [http://antognini.ch/about/] Blog [http://antognini.ch/2009/05/wrong-information-about-temporary-space-usage/] .
    I used:
    select PARENT_ID, ID, DEPTH, POSITION,
           MAX_TEMPSEG_SIZE, LAST_TEMPSEG_SIZE
    from v$SQL_PLAN_STATISTICS_ALL
    where MAX_TEMPSEG_SIZE > 0;hth,
    Martin
    Edited by: berx on Jun 17, 2009 4:11 AM
    Edited by: berx on Jun 17, 2009 6:18 AM

  • Drop temp tbs without end

    Hi,
    Database is Oracle 8.1.7.4 about Windows NT.
    I have a temporary tablespace with a datafile wich take more than 2Go.
    I would like to create another temp tablespace locally managed with a tempfile to replace the first.
    When I drop the old temp tablespace (with a datafile) this take more than 30 minutes, and I didn't wait more, I killed this session.
    Why this one take to many time ? How can I make to make this quickly ?
    Nicolas.

    To run your database you need one temporary tablespace available and the method which you can use is that first create a temporary tablespace first and then make it your default temporary tablespace bounce your database in mount position and then make your newly created tablespace your default temporary tablespace and then open the database and drop the old one.

  • Drop temp tbs

    Hi,
    I'm in 8i and I want to drop TEMP tablespace. (I have already given another TEMP1 created to users).How can I see if any user uses TEMP1 ?
    Many thanks.

    861100 wrote:
    HI ,
    oracle 11g ASM RAC under OEL 5.6 ,
    i have temporary tablespace with size more than 100 GB so i create new one and make the new one as a default
    and then i drop the first one but it take more time and i change the default for temporary since 2 days ago
    so there is no data in old temp but when i execute the drop command it take more time ?
    SQL> select temporary_tablespace from dba_users;
    TEMPORARY_TABLESPACE
    TMP
    TMP
    TMP
    TMP
    TMP
    TMP
    TMP
    TMP
    TMP
    TMP
    TMP
    TEMPORARY_TABLESPACE
    TMP
    TMP
    TMP
    TMP
    TMP
    TMP
    TMP
    TMP
    TMP
    TMP
    21 rows selected.
    SQL> select name from v$tablespace;
    NAME
    SYSTEM
    SYSAUX
    UNDOTBS1
    TMP
    UNDOTBS2
    USERS
    ABS_MID
    ABS_MID_IND
    TEMP
    9 rows selected.
    SQL> set time on
    16:44:18 SQL> drop tablespace TEMP including contents and datafiles;
    ^Cdrop tablespace TEMP including contents and datafiles
    ERROR at line 1:
    ORA-01013: user requested cancel of current operation
    16:53:00 SQL>
    16:53:01 SQL>please advise why it take more time ?you could do as below prior to doing DROP TABLESPACE
    ALTER SESSION SET SQL_TRACE=TRUE;
    content of trace file will show what occurs during the DROP command

  • Drop TEMP (1 out of 2) datafile without dropping tbs?

    I added a datafile to TEMP tbs as i ran out temp space last week while running the payroll - Now i want to get rid of extra datafile from TEMP tbs. Can i do that in 10.2.0.2 without dropping the whole tablespace and re-creating?
    Please post your thoughts!

    If I were you , i would :-
    1. re create a new temp tablespace
    2. make that the default temporary tablespace
    3. drop this old tablespace in it's entirety.
    OR
    RESIZE the temporary datafile to the lowest file size posible.
    ALTER DATABASE TEMPFILE 1 RESIZE 1M;
    If you are adventurous
    http://www.psoug.org/reference/database.html
    ALTER DATABASE TEMPFILE <file_name | file_number> DROP;
    Use it at your own discretion.

  • Parallel creation of partitionned index and tablespace Temp size

    Hi,
    I'am not able to find the information if when building in parallel a locally partitionned index, Oracle will iterate on all the partition and then use temp tbs for one partitionned or it will compute for all the partitionned simultaneously ?
    Thanks for your help

    If I understand your question correctly, the temp tablespace is used for sorting, but there are temp segments created in the tablespaces where the indices will actually belong. See the demo on how to work it out for yourself: http://hemantoracledba.blogspot.com/2008/05/temporary-segments-in-dataindex.html
    Also find Randolf's blog for some other interesting factoids: http://oracle-randolf.blogspot.com/2011/02/parallel-dml-conventional-non-direct.html

  • Need help on extending my TEMP tablespace (Ora ver - 8.1.7.0.0)

    Hi
    I am having problem in executing the SQL query with certain parameters in the WHERE clause.
    ORA-01114: IO error writing block to file 4 (block # 524242)
    ORA-27069: skgfdisp: attempt to do I/O beyond the range of the file
    OSD-04026: Invalid parameter passed. (OS 524247)
    ORA-01114: IO error writing block to file 4 (block # 524242)
    ORA-27069: skgfdisp: attempt to do I/O beyond the range of the file
    OSD-04026: Invalid parameter passed. (OS 524247)
    I get the above listed error. And i assumed there may be some issue due to Temp tablespace. I also verified the space occupied by the TEMP tablespace and it was 99% occupied.
    Kindly let me know is there a way to extend the space without affecting the existing DB content
    Regards
    Srinivasan B

    Didn't you got a answer in your Getting error while executing the SQL ( ver 8.1.7.0.0), did you ?
    Furthermore, don't worry about the TEMP tablespace utilization, Oracle doesn't freed space until you need it. By the way, how your TEMP tbs is defined (AUTOEXTEND, DATAFILE/TEMPFILE...) ?
    Anyway, you have to be sure about the free space on your device. And check on metalink website to get some notes advices.
    Nicolas.

  • Missing TEMP datafile

    Not sure if I hit the right forum here.
    ORACLE RDBMS Version: 10.2.0.1.0
    I'm doing some 10g studying and came across recovering from non-critical files.
    Now the various books (2) indicate that you should take some action when you startup the database.
    However, when I delete the datafile making up the temp tablespace; at startup that file is just regenerated as;
    With out going into all the details this action:
    oracle@blue:/u1/app/oracle/oradata/qbase> rm -rf tempdijk01.dbf
    (this is the datafile of the default temp tbs).
    Lead to during db startup:
    Mon Mar 5 23:58:17 2007
    Re-creating tempfile /u1/app/oracle/oradata/qbase/tempdijk01.dbf
    Q. are there other circumstances that might need interaction at db startup, like drop and recreate the
    temp tbs is mount etc.?
    Thanks.
    -T

    Oracle tempfile happen to be very special datafile. The behavior of this file doesn't represent other datafiles of database.
    If you remove a regular datafile from OS level, you will need to do recovery before you can open the database for use.
    Check Oracle Backup/Recovery Guide for more insight
    http://download-west.oracle.com/docs/cd/B19306_01/backup.102/b14191/toc.htm

  • Clean the temp tablespace

    to clean i drop a temp tablespace and create another with same name..
    Have an another way to clean an temporary tablespace?

    Hi,
    when show full the tablespace i can't resizeDon't worry, see this other thread : Re: can not create table...!
    It's better do not to use an autoextend file for temp tbs.
    Nicolas.

  • ORA-1652: unable to extend temp segment by 128 in tablespace TEMP1/TEMP2

    db version: 11.1.0.7
    I detect the error log on dbTier's alertlog as below, BUT I think the temp tbs is enough because of the SQL output(you can see as below too)
    so I want to know why and how can I fix it. thanks
    ORA-1652: unable to extend temp segment by 128 in tablespace TEMP1
    ORA-1652: unable to extend temp segment by 128 in tablespace TEMP2
    SQL> select TABLESPACE_NAME,TOTAL_BLOCKS,USED_BLOCKS,FREE_BLOCKS from v$sort_segment;
    TABLESPACE_NAME-------TOTAL_BLOCKS-----------USED_BLOCKS--------------FREE_BLOCKS
    TEMP1 -------------1048448------------9472--------1038976
    TEMP2---------------1048448 -----------5248---------1043200
    TEMP--------0--------0-------------0

    Unless you are running the query against v$sort_segment at the point in time that you are getting the errors, I would strongly suspect that something tried to use more than 16 GB of TEMP space, the query died, and when you subsequently looked, nothing was attempting to use much TEMP space. That doesn't mean that some process wasn't eating up all your TEMP space earlier.
    My guess (no evidence, just a hunch) is that you have a query that is doing a Cartesian join, that query rapidly consumed all the space in the TEMP1 and TEMP2 tablespaces, encountered this error before exiting and freeing all the TEMP1 and TEMP2 space it had acquired before you ran your query.
    Justin

  • Temp data file corrupted.

    Hi.
    2 nodes RAC , Db version :  11.2.0.1
    One of temp file  is Temp table space is corrupted on node 1 .
    So we want to drop the corrupted temp file and create new one.
    Can some one please provide the  Steps to drop and create temp file on RAC>
    Do it requires any down time ?
    -Thanks

    Hi,
    - We will need to create a new temporary tablespace
    - ALTER DATABASE DEFAULT TEMPORARY TABLESPACE <new temp tablespace>; - This make sure all your users start using the new temp tablespace. You cannot drop a default temporary tablespace unless you assign another temporary tablespace.
    - Make sure that there are no other users using the old temp tablespace by querying v$sort_usage.
    - Once confirmed, you can drop this old tablespace(tbs) and start using the new temp tbs you created. If you want to use the old temp tablespaces, recreate it with the same name and repeat the procedure.
    Regards,
    Suntrupth

  • TEMP datafile siae

    Hi,
    my TEMP datafile increases to 32G.
    I have shudowned and restarted my DB no think allways 32G.
    Why it do that and how correct the situation.
    Any suggestion, thanks.

    Dont keep temp datafiles to auto extend option.
    You dont need to worry about temp tbs not releasing the space until you get an error like 'unable to extend temp tablespace extents'. Typicall temp tbs behaviour is like that,i.e. once allocated extends, won't deallocated, in fact, kept for future usage.

  • SMON is blocking temp tablespace drop

    Hi all,
    My TEMP TBS became 47G and I want to get rid of that monster. I created the second TEMP TBS, switched default TBS and wanted to drop the huge one, but it hangs there for ever... When I look on the database to see what's going on i see the following:
    09:47:33 db_manager@odsp8> @blocking
    BLOCKING_STATUS
    @bla-bla-bla-bla ( SID=329 ) is blocking SYS@bla-bla-bla-bla ( SID=301 )
    09:55:42 db_manager@odsp8> @whois
    Enter value for sid: 329
    old 3: where sid=&sid
    new 3: where sid=329
    USERNAME STATUS OSUSER MACHINE PROGRAM
    ACTIVE oracle bla-bla-bla-bla oracle@bla-bla-bla-bla *(SMON)*
    Definitely, am not gonna kill SMON, but I also need to throw this big TEMP away ASAP.
    Does anybody know how to do that and overcome the lock?
    Thanks in advance.
    M
    PS: Oracle 10.2.0.4 RHEL4 64bit
    Edited by: MarGur on Jul 20, 2010 9:04 AM

    >
    sqlplus
    / as sysdba
    shutdown immediate
    startup mountAnd then ??
    As soon as you open the database, SMON will pick up where it left .
    Even with another temp tablespace set to as default, SMON will continue cleaning up (coalescing) the extents.
    If I remember correctly, we had this also some years ago, we issued:
    ALTER DATABASE DATAFILE 'your tempfile' OFFLINE DROP;Then shutdown and restart the database in mount mode and drop the tablespace.
    After that open the database for use.
    This was then our last - most dirty - solution, while we had waited for 3 days for SMON to finish.
    HTH,
    FJFranken
    My Blog: http://managingoracle.blogspot.com
    P.S. If this answers your question, please set the thread to answered and award the points. It is appreciated

  • Workflow 2.6.4.0.0 configuration problem - Command window does not close

    I am trying to install Oracle Workflow 2.6.4.0.0. as part of Warehouse builder using the details mentioned in this link
    http://www.oracle.com/technology/obe/10gr2_owb/owb10gr2_gs/owb/lesson4/etl-mappings.htm
    From the Start menu click Programs > Oracle <Database HOME> > Configuration and Migration Tools >
    Workflow Configuration Assistant. The Assistant is started.
    Accept the default for Install Option
    Workflow Account: (Accept the default ) owf_mgr
    Workflow Password: owf_mgr
    SYS Password : <Enter the SYS account password>
    TNS Connect Descriptor: localhost:1521:orcl
    Click Submit.
    However following this document, the command window did not close, and I did not get any message stating that Workflow Configuration has successfully completed.
    The command window displays this message as the final step and does not close-
    WorkflowCA: Executing :C:\oracle\product\10.2.0\db_1\jdk\bin\java -jar C:\oracle
    \product\10.2.0\db_1\oc4j\j2ee\home\admin.jar ormi://localhost:6041 admin welcome -application WFALSNRSVCApp -testDataSource -location jdbc/WorkflowDS -username OWF_MGR
    Is this installation complete? How to resolve this?
    Please can any one help?
    Thanks very much
    Allan

    I ran into this problem. And it took me while to get it fixed, but It does work.
    First the TNS Desc is misleading. One would think that it would be host:port:sid. What it is really looking for is host:port:servicename. But if you want to use the "Change Tablespace" drop down list you need to, enter the sys password, change it to host:port:sid - Then use the drop list. And change it back before you press submit.
    The second thing that I found is that it wants to use the SYSTEM tablespace as temporary tablespace. THis is becuase it is looking for a temp tablespace called TEMP. If you look a the line default_temp = SYSTEM. And if you dont supply a tablespace it wanted to change it in the wfsysgnt.sql script in the $OH\wf\sql directory. You would think that what ever the default database tbs and temp tbs is - that owf would use that. No, it wanted to change it. Oracle needs to fix this.
    So here is how i fixed it. I had to create a temporary tablespace called TEMP, does not need to be big as I dropped it after it was done. Then i had to modify the wfinstall.csh script and use the install options. Not the /tablespace this option is obayed but it will try to use the SYSTEM as the temp tbs. Here is my example that I appended:
    /wfacct "owf_mgr" /wfpasswd "my_owf_mgr_pwd" /debug "true" /tnsConnDesc "my_host_ip:my_port:my_servicename" /syspasswd "change_on_install" /tablespace "OWF_TBS"

  • Pass tablespace(s) as a parameter to RMAN using batch file (windows2000)

    I want to make a backup of one or more than one tablespaces.
    For Example:
    Backup tablespace USERS,TOOLS;
    Backup tablespace USERS;
    In this regards I am using windows batch file. Below you find the code of batch file which I am using to perform this operation (windows 2000)
    Batch file (c:\rman.cmd)
    set tbs1=%1
    set tbs2=,%2
    if exist tbs1 == goto usage
    if exist tbs2 == goto usage
    echo BACKUP tablespace %tbs1% %tbs2% ; > c:\temp\tbs.rman
    rman TARGET / @ c:\temp\tbs.rman
    Problem
    I run this batch file on command line .
    When I issue this command its ok and backed up both the tablespaces.
    Host @c:\rman.cmd USERS,TOOLS
    But when I want to backup only one tablespace and issue the command like that:
    Host @c:\rman.cmd USERS
    It gave the following error
    BACKUP tablespace users , ;
    Found comma after first tablespace.
    Point of focus
    How to get rid of the comma after first tablespace on run time, when I want to backup only one tablespace.
    BACKUP tablespace users , ;
    How to avoid that comma on run time when I only want to make a backup of single tablespace.
    Please check this matter it is only the batch file side problem.
    With Best Regards
    Fawad Ahmed

    I am not expert is DOS but I think you can fix this with
    a simple programming logic elements in the script.
    You have 2 cases:
    1 case ) When you have only one parameter
    2 case ) When you have more or equal than two parameters
    if exist tbs1 == goto mark1
    if exist tbs2 == goto mark2
    mark2:
    echo BACKUP tablespace %tbs1% %tbs2% ; > c:\temp\tbs.rman
    goto end
    mark1:
    echo BACKUP tablespace %tbs1% ; > c:\temp\tbs.rman
    goto end
    end:
    rman TARGET / @ c:\temp\tbs.rman
    This can be one the case for 1 or 2 parameters . If
    you think to pass more parameters you have to use
    another logic.
    I hope this can help you!
    Joel P�rez

Maybe you are looking for

  • TS1717 itunes will not start automatically when the phone is plugged in

    My iTunes will not start on my pc when I plug the phone in and the box to check is greyed out

  • Is SP needed for windows 8 clients?

    I run a small office with a NW6.5 server. Back in the day (20 years+), I was a support guy. I've stuck with NW since. I rarely do maintenance, so I'm always rusty. Good sign for NW! So we upgraded the hardware on our XP workstations twice over the ye

  • How do you change app type?

    I want to update an app from v25 to v27 and change it from "Multi Folio" to "Multi Folio with Entitlement and Subscription." When I go into app builder, the app type field is grayed out and defaulted to "Multi Folio." There is no other option or drop

  • Slow 1tb macbook pro 8.1 problem

    Hi, i make a Upgrade of my Hd in my macbook pro I7 for the samsung 1TB and my computer is very very slow, some times i only see the color circle "think" "think" "think" I check for some solutions but not found. Tks

  • 7.0.2 How to view all music files on iPod

    I upgraded my iTunes version on my Mac and now I am having some issues deleting songs off a playlist. Basically I have a podcast playlist and then I just have all my music dumped on the iPod not on a playlist. After I had finished listening to a bunc