Temporary tablespace groups - all available temp files not used

We have a temporary tablespace group TEMP_GROUP made of the following pre-existing temp files. I have placed the size in MB in brackets. Names have been changed to protect our privacy. NLS is spanish
SQL> select * from dba_tablespace_groups;
TEMP_GROUP TEMP1 --(1024)     
TEMP_GROUP TEMP2 --(2000)
TEMP_GROUP TEMP3 --(8048)
This tablespace group is the default temp tablespace of this database, and is the default temp tablespace of sys in the example that follows
connect sys/password
alter INDEX schema1.idx1 rebuild
ERROR en línea 1:
ORA-01652: no se ha podido ampliar el segmento temporal con 128 en el tablespace TEMP1
-- this coinicdes with the TEMP1 showing 100% used
NOTE that the message refers to the tempfile TEMP1 and not the TEMP_GROUP, which has 11GB of space available
The size of the index is small enough to be handled by this TEMP_GROUP, although quite large to be handled by TEMP1 on its own.
SQL> SELECT sum(bytes)/1048576 Megs, segment_name
2 FROM dba_extents
3 WHERE segment_name = 'IDX1'
4 GROUP BY segment_name
5 /
MEGS SEGMENT_NAME
840 IDX1
What appears to be happening is that when the rebuild index has used all the space available in TEMP1 tempfile, it does not go on to use the space available in the other two tempfiles that make up the TEMP_GROUP. This seems to be contrary to the very idea of having set up a TEMP_GROUP.
This suposition is born out by the repitition of the operation using the owner of the index, whose default temp file is not TEMP_GROUP as a whole, but the component tempfile TEMP_3 which has 8048MB available
connect schema1/password
SQL> alter INDEX schema1.idx1 rebuild
Índice modificado.
-- This time the index does get rebuilt, pesumably because there is space available in TEMP_3 to carry out the rebuild.
My questions are
1. ¿Why does the original operation fail out when it has reached the limit of tempfile TEMP1 instead of using the further space availbel within TEMP_GROUP? ¿Isn´t the point of temporary tablespace groups the explicit avoidance of this type of issue?
2. Depending on the answer to #1, and asuming that the behaviour is normal (ie, that a rebuild index should not be expected to take place using more than one temp file), does anyone have any idea ¿what dicatates the order of usage of the component temp files in a group?. ¿Is it alphabetical order of tempfile name?, ¿file create time? or ¿something else?
3. As I mentioned the group was created out of existing tempfiles, rather than creating some temp file specifically to form the group. ¿Could this fact explain the inability of the operation to move onto the next temp file, once the first is exhausted. There is nothing in the documentation to suggest that there should be any difference in behaviour between a temp group created with new temp files, or the inclusion of existing temp files when creating a temp group.
As you can see, we have worked round this problem, but it is an issue of importance given that it may affect other operations that leverage this temp file group. Any information or pointers to documented instances of similar occurances would be greatly appreciated. Thank you.
Edited by: user602617 on 06-may-2009 0:57

Half solved. This thread seems to suggest that there should be n expectation that a sort operation will begin to use the n+1 member of a temp tablespace group once it has exhausted member n.
TEMP Tablespace Groups
But this does not answer my secondary question as to how to determine which temp tablespace member is used first. I guess the solution would be to drop the the group and recreate it with three adequatly sized temp tablespaces.

Similar Messages

  • 10G: TEMPORARY TABLESPACES GROUP

    제품 : ORACLE SERVER
    작성날짜 : 2004-05-25
    10G: TEMPORARY TABLESPACES GROUP
    ==================================
    PURPOSE
    이 문서에서는 10g New Feature 인 Temporary tablespace 의 group 에 대해 알아 보도록 한다.
    Explanation
    10g 에서는 temporary tablespaces 에 대해 group 을 지정하여 생성할 수 있고
    consumer group 을 지정하여 resource manager 와 함께 적용하여 사용이 가능하다.
    다음은 Temporary tablespace group 지정을 위한 기본적이 사항이다.
    1. 하나의 temporary tablespace group 은 적어도 하나의 tablespace 가 존재해야 하고
    maximum number tablespace 에 대한 limit 은 정해져 있지 않다.
    2. Ttemporary tablespace 와 group name 을 동일하게 지정할 수 없다.
    3. Temporary tablespace group 은
         1) 한 group 에서 다른 group 으로 move 가 가능하고
         2) Group 내에서 삭제 될 수 있으며
         3) 추가적으로 add 가 가능하다.
    4. Temporary tablespace group 사용으로 인해
         1) Sort 결과를 유지하여 space 낭비를 막을 수 있고
         2) 동시에 여러개의 session connect 시에도 서로 다른 temporary tablespaces 를 사용함으로써
         temporary tablespaces 의 사용을 분산 시킬 수 있다.
         3) Parallel operation 시에도 multiple temporary tablespaces 사용이 가능하다.
    Example
    1. GROUP1 을 지정하고 GROUP1 에 속하는 temporary tablespace LMTEMP 1 를 생성한다.
    이 때 GROUP 1 을 따로 생성할 필요 없고 temporary tablespace 생성시에 지정하도록 한다.
    SQL> create temporary tablespace LMTEMP 1
    tempfile 'D:\ORACLE10\ORCL\temp1_01.dbf' size 50M
    tablespace group GROUP1;
    SQL> select * from dba_tablespace_groups;
    GROUP_NAME TABLESPACE_NAME
    GROUP1 LMTEMP1
    2. LMTEMP2 를 GROUP1 에 새로 추가한다.
    SQL> create temporary tablespace lmtemp2
    tempfile 'D:\ORACLE10\ORCL\temp1_02.dbf' size 2M
    tablespace group group1;
    Tablespace created.
    SQL> select * from dba_tablespace_groups;
    GROUP_NAME TABLESPACE_NAME
    GROUP1 LMTEMP1
    GROUP1 LMTEMP2
    3. 기존에 존재하는 LMTEMP1 를 GROUP2 로 move 한다.
    SQL> alter tablespace LMTEMP1 tablespace group GROUP2 ;
    Tablespace altered.
    SQL> select * from dba_tablespace_groups;
    GROUP_NAME TABLESPACE_NAME
    GROUP2 LMTEMP1
    GROUP1 LMTEMP2
    4. LMTEMP1 이 속해 있던 GROUP2 에서 LMTEMP1 를 제외 시키고 다시 포함시킬 수 있다.
    SQL> alter tablespace LMTEMP1 tablespace group '';
    Tablespace altered.
    SQL> select * from dba_tablespace_groups;
    GROUP_NAME TABLESPACE_NAME
    GROUP1 LMTEMP2
    SQL> select tablespace_name from dba_tablespaces where contents='TEMPORARY';
    TABLESPACE_NAME
    TEMP
    LMTEMP1
    LMTEMP2
    SQL> alter tablespace LMTEMP1 tablespace group GROUP1;
    Tablespace altered.
    5. Temporary tablespace 와 group name 을 동일하게 지정할 경우 ORA-10918 에러가 발생한다.
    즉, temporary tablespace 와 group name 을 동일하게 지정이 불가능하다.
    SQL> create temporary tablespace lmtemp5
    tempfile 'D:\ORACLE10\ORCL\temp1_05.dbf' size 50M
    tablespace group lmtemp5;
    create temporary tablespace lmtemp5
    ERROR at line 1:
    ORA-10918: TABLESPACE GROUP name cannot be the same as tablespace name
    6. 존재하던 모든 temporary tablespaces 를 drop 하게 되면 group 은 자동으로 remove 된다.
    SQL> create temporary tablespace LMTEMP3
    tempfile 'D:\ORACLE10\ORCL\temp1_03.dbf' size 2M
    tablespace group GROUP2;
    Tablespace created.
    SQL> create temporary tablespace LMTEMP4
    tempfile 'D:\ORACLE10\ORCL\temp1_04.dbf' size 2M
    tablespace group GROUP2;
    Tablespace created.
    SQL> select * from dba_tablespace_groups;
    GROUP_NAME TABLESPACE_NAME
    GROUP1 LMTEMP1
    GROUP1 LMTEMP2
    GROUP2 LMTEMP3
    GROUP2 LMTEMP4
    SQL> drop tablespace lmtemp3 including contents and datafiles;
    Tablespace dropped.
    SQL> drop tablespace lmtemp4 including contents and datafiles;
    Tablespace dropped.
    SQL> select * from dba_tablespace_groups;
    GROUP_NAME TABLESPACE_NAME
    GROUP1 LMTEMP1
    GROUP1 LMTEMP2
    7. Group 에 user 사용이 가능하도록 지정할 수 있다.
    SQL> alter user scott temporary tablespace GROUP1;
    User altered.
    8. Temporary tablespace group 을 database level 의 default temporary tablespace 로도 지정할 수 있다.
    SQL> alter database <db_name> default temporary tablespace GROUP1;
    Database altered.
    만약, temporary tablespaces 가 default database temporary tablespace group 에 속해 있는경우
    drop 시 ORA-10921 에러가 발생하게 된다. 즉, default temporary tablespace group 에 속해 있는 경우
    drop 할 수 없다.
    SQL> drop tablespace LMTEMP2 including contents and datafiles;
    drop tablespace lmtemp2 including contents and datafiles
    ERROR at line 1:
    ORA-10921: Cannot drop tablespace belonging to default temporary tablespace
    group
    Reference Documents
    <NOTE. 245645.1>

    Hi,
    Take a look in
    1 - DBA_TEMP_FILES :http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96536/ch2398.htm
    2 - V$TEMPFILE: http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96536/ch3225.htm
    Cheers,
    Marcello M.

  • 'Availability.h' file not found

    Xcode 4.4
    Upon constrir a project, sends me the following error, "'Availability.h' file not found", please can you help me solve it,

    Hi,
    Yes u have to first make a heaher file...
    Suppose ur java prog is hello.java,
    then on command prompt write
    javah -jni hello it will result
    in a hello.h file
    Sheeba

  • Macbook Pro 10.6.8 - Cursor moves by itself, types by itself, opens dashboard by itself, stops responding to keysto22000 there you go! Have switched out keyboards to no avail. Do not use wireless.

    Cursor moves by itself, types by itself, opens dashboard by itself, stops responding to keysto22000 - there be a good example. Seems to like the number 2. Have switched out keyboards to no avail. Do not use wireless. Does not start immediately upon turning on computer. Everything is okay from 10 to 20 minutes, then bang. Can deattach then attach keyboard and get a few moments of quiet. All this started today.

    If the same erratic behavior occurs when the external KB and mouse are completely disconnected, I think it's time for a Genius Bar appointment to have the problem diagnosed.
    http://www.apple.com/retail/geniusbar/
    You'll probably want to get the machine revved up ahead of time so it's misbehaving when you walk in the door, rather than count on it to act up — or not — after you and the Genius have been standing around waiting for a while. (BTW, I'm assuming that once it starts acting up, it continues to do so until you give up and shut it down. Is that true?)

  • External swf file not using URLRequest

    Good morning guys.
    You can load an external swf file not using URLRequest? Since embed html code is setted as <param value="never" name="allowscriptaccess"/>
    I have this problem and I need to load a swf skin
    thank you

    are you loading a swf (done during runtime) or importing one (done during authortime)?
    in either case, the allowscriptaccess parameter of the external swf (that your loading or importing) is irrelevant.  allowscriptaccess is assigned in the main (loading or importing) swf's embedding html page and is used to control html/js access of the main and loaded swfs.
    if you trust the swf you're loading, you can change allowscriptacess to always.  if you're importing a swf, none of its actionscript will execute anyway so it doesn't matter whether its trusted or not.

  • Is there a way to hibernate tab groups so that they do not use RAM memory?

    Is there a way to hibernate tab groups so that they do not use RAM memory? I have a lot of tabs open and have organized them into tabgroups but my computer still uses a lot of the RAM on mozilla. Can I hibernate some of the tabgroups in any way?

    There was a bug filed in 2010, but it seems like it's halted.
    *https://bugzilla.mozilla.org/show_bug.cgi?id=591775 <sub>Please don't comment on bug reports. See [https://bugzilla.mozilla.org/page.cgi?id=etiquette.html Bugzilla etiquette]
    I found an extension that might do this, but it's incompatible for me (Nightly in Linux)
    *https://addons.mozilla.org/en-US/firefox/addon/bartab/

  • All pictures say file not found..

    all my pictures say File Not Found. I cant edit any at all.. what do i do at this point?

    Don't import again yet, it is usually the last thing to do as you will lose many settings and work you have done already.
    Can you tell us your OS please and Lightroom version...
    Also please upload a screen shot like this:

  • I  would like to update or upgrarde my iphone from 4.2  to  5.0 or higher how can I do this task  A.  my phone does not have a "update" setting  I was told to reset all the settings to new B. will this earase all my contact, files ,notes emails  ??? C.

    I want to update or upgrade my iphone 4  to 5.0 or 6 higher how can I do this ?  I my unable to sign into Itunes    I was told to reset all the settings to "factory"  If I reset evevything ,will I loose all my contacts, emails, notes, or any other information that I have saved into my phone  (photos, apps, emails, )  Just as if I had a brand new phone ?    I am not very experience with computers or high tech devices I would have a difficult time uploading on my computer or tranfering data

    Don't reset anything, just connect it to iTunes. If you don't have iTunes on a computer, then find someone who does, turn off auto sync, then connect your iphone and click 'check for updates'. iTunes will download the update, then update that software to your phone. Before you update though, I'd make a backup, just to be on the safe side.

  • Historical reports - All available DB connections in use

    Hello all,
    We just started receiving DB connection errors when trying to login to the Historical reports.
    the error says: "All available connections to database server are in use by other client machines. Please try again and check the log file for error 5054"
    However I can't see where anyone is logged into the tool. Is there a way to see who is logged into Historical reports? Also is there a way to kill sessions to Historical reports.
    We are on UCCX 7.0 (1) SR05_Build504
    Thanks for any help that you can provide.

    NM stands for Node Manager.
    You can got o Widnows Services and restart Node Manager( after hours. I know you mentioned that no one is logged in at this
    time but somehow sessions are stuck and restarting NM should fix that.
    Please also increase this value below. This would hopefully resolve the problem in furture.
    Increased the number of "Max DB Connections for Report Client Sessions"
    field under tools >>historical reporting.

  • How to print pdf file not using the the adobe reader ?

    hello,
    i used the adobe sdk to open a pdf file in read and modify it serveral times and each time save it to another directory,and now i need to write a program to print the pdf file in this directory.when print the file,i want to continue my work also,so who i tell me how to solve this problem?
    thanks.

    The SDK is only a collection of documentation and headers that show you how to interact with and automate Adobe Acrobat and to some extent Adobe Reader. You need a copy of Acrobat or Reader installed on the system in order to use any of the SDK functions. You cannot "print not using the Adobe Reader", unless you have Adobe Acrobat installed on the system instead of Reader.

  • MENU - mmx file not used by form 6

    Hi,
    I have created a "tree root" menu with submenus, I compile them and get a .mmx with the menu name, however this menu is not used by runform.
    Should I set a parameter in a config file to change which menu is taken into account?
    Many thanks for your reply :-)

    Hi again ,
    The menu was REPLACED in a When New Form Instance trigger.

  • Profile Manager deleted all of my files - not just the profile. Any tips on what happened and how to resolve?

    I created a profile with Profile Manager. It dumped a lot of files into the directory that I selected. At that point I wanted to delete the profile and the associated files. When I selected the Delete Profile and Delete Files option it delete all files and folders in the directory - not just the profile files. It offered no warning that it was going to delete more than the profile files. Why did it do this and is there a way to recover the missing files? OS = Windows 7.

    You should never select a folder to be used as profile folder that already has files in it.<br />
    You should always choose a new and empty folder because you can use the Profile Manager to take up an existing profile by choosing the location.<br />
    Removing the profile and opting to delete the files will remove all the files in that folder and remove the folder as well, so be cautious with doing that.

  • Where can I find a list of all available add-ons, not just the ones I already have?

    It is incredibly frustrating to go through hundreds (thousands?) of addons, even if they are broken down in sub-categories. I understand that new ones are being added regularly, but surely a list in some format might be available every month or so?
    Thank you for your efforts.
    Aurel Guillemette

    ''aurel2015 [[#question-1055162|said]]''
    <blockquote>
    It is incredibly frustrating to go through hundreds (thousands?) of addons, even if they are broken down in sub-categories. I understand that new ones are being added regularly, but surely a list in some format might be available every month or so?
    Thank you for your efforts.
    Aurel Guillemette
    </blockquote>
    a list of only the new additions DOESN'T solve the problem, this would mean that I would have to do a very LONG search of the entire listings, THEN do a regular search of the new additions. It makes me wonder if the creators of the system, or the creators of the addons don't want to be noticed and chosen?

  • All available radio players (not iTunes) for airport express?

    Besides Airfoil, what other players will play over the airport express base station, window media player (.wmx) and realplayer (.ram) live streams?
    I would also like to know about playing the same files, (.wmx & .ram), via a PC on wXP & the same airport express base station - what software is needed.
    Thank you.

    There is no equivalent Airfoil application for
    Windows XP that I am aware of.
    Rogue Amoeba have now released a version of Airfoil for Windows.
    http://www.rogueamoeba.com/airfoil/windows/
    iFelix

  • EPS File Not Using Proper Fonts in Illustrator

    I am trying to import an EPS file that I created in Finale 2014 into Illustrator CS6 (64 bit). It seems to not want to use the Maestro font for the noteheads, rather replacing it with Myriad Pro. I have tried this on multiple machines with the same result. I have tried to switch the font manually, but it will not change.
    Likewise, I can open the file in Photoshop just fine with all fonts intact.
    I need it as an EPS file because I need to be able to ungroup the vectors and alter them in Illustrator.

    devinc,
    Maybe the maestro font is not up the requirements.
    Illy is particularly particular about the quality of fonts, because she can work with them at a deeper/higher level than most, so you can easily have a font that works in all other applications, but Illy refuses to recognize it as a font.
    Some failing fonts discussed in earlier threads have turned out to have rather basic flaws, such as redundant, superfluous, or (if I remember rightly) even stray points, or other clear errors in the paths that they consist of.
    You may need to look for similar fonts that Illy is willing to work with.

Maybe you are looking for