One Temp Tablespace vs 2 Temp Tablespaces in a Group

I run a massive group by that generally takes up about 325GB of temp and on the system that it works on I have 1 tablespace this size that it works on, but I'm building a new system that has my Temp tablespaces on much faster disks, but I was trying to utilize 2 temporary tablespaces to get some parallelism accomplished, so I have 2 196GB tablespaces, but one of them fills up before the other one does...is their anyway to regulate what temp tablespace is used..should these 2 equally distribute the load when one fills up? My query just keeps blowing up when it runs out of the one temp tablespace. Any help is appreciated.

I run a massive group by that generally takes up about 325GB of temp and on the system that it works on I have 1 tablespace this size that it works on, but I'm building a new system that has my Temp tablespaces on much faster disks, but I was trying to utilize 2 temporary tablespaces to get some parallelism accomplished, so I have 2 196GB tablespaces, but one of them fills up before the other one does...is their anyway to regulate what temp tablespace is used..should these 2 equally distribute the load when one fills up? My query just keeps blowing up when it runs out of the one temp tablespace. Any help is appreciated.

Similar Messages

  • Having one single tablespace versus multiple tablespace?

    My database version is
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE 11.1.0.7.0 Production
    TNS for Linux: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    My os version is
    Linux damdat01 2.6.18-128.7.1.el5 #1 SMP Wed Aug 19 04:00:49 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
    My database is OLP system.
    My question is what are the advantages and disadvantages having one single tablespace versus multiple tablespace?
    Easy to maintain when you have single tablespace. but hard to track the IO issues.
    Any other input from any one? Please let me know.

    Billy  Verreynne  wrote:
    EdStevens wrote:
    Does the term "keeping all your eggs in one basket" mean anything ....Well, in the majority of cases, even when using multiple tablespaces they will be on the same storage array or same file system. So the "+all eggs in one basket+" goes a lot a deeper down the storage layer than just the top part where you deal with logical tablespace storage containers.
    Absolutely. Except for the bazillion microscopic solid-state switches and a layer of rust on a spinning platter, everything else is just layers of abstraction. One's thinking and frame of reference depends on what layer of abstraction one is dealing with.
    The major problem with multiple tablespace for a single application And here is where there was some 'fuzz' in the OPs question. I don't recall him specifying one TS per application. Maybe he assumed that, but I read it as one (user) TS per database.
    a) deciding the space allocation of each tablespace
    b) managing what is created in which tablespace
    This comes down do an issue of micro-managing space versus simply chucking everything into a single container and let god ASM/Oracle/LUN/driver/whatever sort them out.
    Issues like transportable tablespaces... separating your logical data into different containers... and the like? That is not really sufficient justification to me for having to micro-manage space for a 101 tablespaces. This simply creates a huge workload on the space management part of the database - that is complex and difficult to deal with. Free space from an underutilised (incorrectly sized) tabelspace cannot simply be moved and reallocated to a tablespace stressed for more space. Everything but...
    Which is why I prefer having fewer tablespaces as this means not having to micro-manage space and continually having to wave a threatening lead pipe around to make sure that applications and developers play rigidly within the large set of strict rules of how these many tablespaces are to be used.Agreed. One can go way overboard, and a lot of this discussion hinges on the OP's intent, as I mentioned above -- one TS per ... what? My default position is one TS per application schema. Normal human users all default to one USERS ts, but don't have any quota because they don't have any reason to create objects.

  • Can one profit center be attached to two profit center groups?

    Hi
    Can one profit center be attached to two profit center groups? how ?
    Regards
    Rakesh

    Hi
    It is possible but that is only for reporting purposes.
    To enable to do that you need to activate Enterprise Structure with Alternative Heirarchy.
    You can have more info on this at the following link.
    http://help.sap.com/saphelp_47x200/helpdata/en/eb/13811243c411d1896f0000e8322d00/frameset.htm
    Regards,
    Suraj

  • ORA-00600 Error, when Dropping one temporary tablespace

    Hi,
    I am using Oracle 10.1.0.2.0 on WinXPP, after I created a new temp tablespace and assigned one user to it as its temp tablespace, then trying to drop the old temp tablespace , I am getting the following Error . Can anybody pl. explain the reason.
    Steps I followed as...
    SYSTEM@orcl>create temporary tablespace checkup_tmp tempfile 'c:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL \CHECKUP_Tmp.dat' size 500M;
    Tablespace created.
    SYSTEM@orcl> alter user checkup temporary tablespace checkup_tmp;
    User altered.
    SYSTEM@orcl> drop tablespace CHECKUP_TEMP including contents;
    drop tablespace CHECKUP_TEMP including contents
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [krf_gen_drop_tablespace-1], [], [],
    SYSTEM@orcl> drop tablespace CHECKUP_TEMP ;
    drop tablespace CHECKUP_TEMP
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [krf_gen_drop_tablespace-1], [], [],
    Thanks in advance

    this is the bug 3984486
    consider upgrading.
    the workaround seems to flashback the DB...

  • One single tablespace for the entire db of 3.3T

    One of the db i am supporting has about 3.3 Terabytes capacity and the application is using only 1 huge tablespace with one big file.
    the system is linux 4 , 32 bit.
    oracle version is 10.2.0.4
    Is there a limit of space for a tablespace when you consider insert/delete/query performance?
    Thanks,
    Chau

    It's really depends on how your storage been setup. Besides the lack of parallel backup ability like other user pointed out. There shouldn't be any other major performance impact solely because of big tablespace. Or bigfile tablespace alone doesn't cause performance problem. It's only a problem if you setup is wrong. For example setup this file on system that doesn't support striping.
    Since you have 3.3 TB size tablespace with one single datafile, that means you must have a big file tablespace which only support one datafile.
    Performance of database opens, checkpoints, and DBWR
    processes should improve if data is stored in bigfile
    tablespaces instead of traditional tablespaces.
    However, increasing the datafile size might increase
    time to restore a corrupted file or create a new
    datafile.That is in the event of media crash, that could be only affect one or two small files in traditional setup, but in your case, you need to restore whole big file.
    Some more information about big file tablespace here,
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/tspaces.htm#ADMIN01102
    and here
    Considerations with Bigfile Tablespaces
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/physical.htm#sthref489

  • One to Many table join -- concat field per record grouped by id

    Post Author: wm5
    CA Forum: Formula
    Hello,
    I am using Crystal Reports XI and have two tables that have a one to many relationship and are joined by an JobID (number).
    Below is a sample with relative fields for each table.
    job_table: JobID (number), Manager (text), Status (text)
    jobaudit_table : JobAuditID (number), JobID (Number), FormID (Number)
    There is a one to many relationship with jobaudit_table having multiple records for each JobID in job_table.
    I have created a Group Header using the job_table.JobID and suppressed the detail section.
    In the group header for each JobID I display the JobID, Manager, Status. I also use the below formula to determine if any records in the jobaudit_table has a record where FormID = 90. If so, I display "Yes". If not, "No".
    So my report currently looks like.
    JobID     Manager     Status     Audit Performed
    1           Manager 1  Closed           N
    2          Manager 2   Closed           Y
    Here are the formula's I use to determine if any records in jobaudit_table contains a record where FormID = 90.
    @ja90exists
    if {jobaudit_table.FormID} = 90 then    1else    0;
    if sum({@ja90exists},{job_table.JobID}) = 0 then    "No"else    "Yes";
    Everything so far works fine. What I would like to do now is add a hyperlink to a script to view the job audit when in the above report the "Audit Performed" column is "Yes"
    So Report is now:
    JobID     Manager     Status     Audit Performed
    1           Manager 1  Closed           N
    2          Manager 2   Closed           Y (hyperlink to view audit)
    I cannot figure out how to gather the valid JobAuditIDs where FormID = 90 grouped by JobID to be used in the Group Heading section of the report.
    Also, it is unlikely, but possible that more than one job_audit record exists with FormID = 90 per JobID. So, my hyperlink could look like http://mysite.com/viewjobaudit.aspx?jobid=[jobaudit_table.JobAuditID],[jobaudit_table.JobAuditID] .
    Thanks for any help. And if this post is not clear let me know and I will clarify.
    wm5

    Post Author: bettername
    CA Forum: Formula
    Although I can't think of a way to get multiple hyperlinks, this should be a start.  It (should) hyperlink to the last job/audit in the group that formID of 90.  Oh, I assumed that the hyperlink should have been  xxxx...jobID,jobAuditID! 
    I think there may be a way of getting hyperlinks to every "90" record, but that will involve a subreport, so lets try this first...
    1 - everything from your group header to the group footer...
    2 -  add a formula into the group header that says:
    whileprintingrecords;
    stringvar jobauditID="";
    stringvar jobID:=";
    3 - Then add a formula to the details section:
    whileprintingrecords;
    stringvar jobauditID;
    stringvar jobID;
    if {jobaudit_table.FormID} = 90
    then (jobID:=totext({job_table.job_id},0,""); jobauditID:=totext({jobaudit_table.jobaudit_id},0,"")
    4 - Finally, on your "Audit Performed" formula, have a conditional hyperlink that says:
    whileprintingrecords;
    stringvar jobauditID;
    stringvar jobID;
    if {@audit performed} = "Y" then http://mysite.com/viewjobaudit.aspx?jobid=jobID","+jobauditID

  • TS1468 If all tracks on an album are written by one artist, but have other supporting artists, can I group them all as one album under the original artist without having to group them as a compilation and being called "Various Artists"?

    I'm pretty sure I've tried all the suggestions I've found, but I can't seem to find a satisfactory option.
    I'll use a CD I just bought as an example.  I just bought "The Best of Sergio Mendes", all songs are written by Sergio Mendes, but some include Brasil '66.  iTunes thinks this album is a compilation, but I really just want to group it all as Sergio Mendes rather than Various Artists, but I still want to have the information about which songs include Brasil '66.  For some reason the tab "Sorting" does absolutely nothing, but it seems like the idea behind it would be really useful if it actually worked...  Is there a way of doing this or will I have to settle with a more confusing or less informative option?  I feel like this must be possible, or else it's a pretty big flaw for me as I have a fair few albums this would apply to.
    Thanks in advance for any help.

    Indeed, generally all you need to do is fill in an appropriate Album Artist. For more details see my article on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
    Don't try to use sort fields to merge different things together as it quickly goes wrong. These should be used consistently to make all things with one value sort as if they had a different one, e.g. Bowie, David to make David Bowie sort under B.
    tt2

  • Hi gurus, can any one tell me where can i add the material group

    hi there,
    i wana add material group, external material group and product hierarchy in the sap?
    can any one let me know the program name or the t-code
    thanks

    Hi,
    Follow the below T.Code and the path for the required information..
    Material Group  - OMSF
    External Material Group -
    SPRO --> Logistics - General --> Material Master --> Settings for Key Fields --> Maintain External Material Groups
    Product Hierarchy -
    SPRO --> Logistics - General -->Material Master --> Settings for Key Fields --> Data Relevant to Sales and Distribution --> Define Product Hierarchies.
    Hope this helps..
    Regards,
    Siva

  • Copying database objects and data from one server database to another server database in AG group

    Hi,
    I am still trying to wrap my head around sql clusters and AGs and I have a project that requires I take a vendor's database and restore it weekly so its available on the production server which is clustered.
    The vendor's database on the cluster is in an AG group and encrypted.
    Right now, I plan to restore the database on a sql staging server and use the SSIS Transfer SQL Server Objects Task to copy the table structure and data from Stage to the Production database of same name and I would first drop the objects in production
    database using the same task.
    I am concerned that this might cause issues with the passive cluster due to "logging" from active to passive. The database is about 260 MBs and I am not sure how many tables.
    Has anyone run into this type of scenario before or have a better solution?
    Thanks
    Sue

    IF I understand anything about clustered sql and logging, the sql server should take the log file and recreate the same scenario on the passive side of the cluster.
    Is that correct?
    Hi Sue,
    Yes, for AlwaysOn Availability Group, the transaction log is basically replayed from the primary to all of the secondary's.
    Besides, from my point of view, as we cannot directly restore a database that is part of an Availability Group, it is a good way using SSIS task to drop and recreate all tables then transfer data from the restored database to the primary replica. Schema changes
    and data changes will also happen on the secondary  replica.
    There are some similar links for your reference.
    http://dba.stackexchange.com/questions/21404/do-schema-changes-break-sql-server-2012-alwayson-or-are-they-handled-transpare
    http://blogs.msdn.com/b/sqlgardner/archive/2012/08/28/sql-2012-alwayson-and-backups-part-3-restore.aspx
    Thanks,
    Lydia Zhang
    If you have any feedback on our support, please click
    here.
    Lydia Zhang
    TechNet Community Support

  • 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.

  • TEMP Tablespace Groups

    In Datawarehouse environment, Database verion 10gR2:
    Created two temp tablespaces TEMP1 and TEMP2 with 10GB each in a temp tablespace group(TEMP_GROUP) and assigned the TEMP_GROUP as default temporary tablespace to user "BATCH", expecting the batch user can use 20GB of temp tablespace.
    When a process needs a temp tablespace of more than 10GB, the process fails with an error unable to extend temp tablespace. It is not utilizing the other 10GB TEMP tablespace.
    When I assign a dedicated TEMP tablespace TEMP3 with 15GB as the default temp tablespace, the process succeeds.
    It looks like when a session starts it assigns one TEMP tablespace(from group), if that fills up it is not taking advantage of the other TEMP tablespace in the group, which makes me think that Groups are not helping here.
    Is there an other way around to utilize multiple temp tablespaces for a single user.
    Can we expect an improvement of this feature in the future releases or is that not a possible scenario?

    -- Using a tablespace group, rather than a single temporary tablespace, can alleviate problems caused where one tablespace is inadequate to hold the results of a sort, particularly on a table that has many partitions. A tablespace group enables parallel execution servers in a single parallel operation to use multiple temporary tablespaces.
    CREATE TEMPORARY TABLESPACE TEMP2 TEMPFILE '/u10/oracle/oradata/dbt1/datafile/temp02.dbf'
    SIZE 20M
    TABLESPACE GROUP tempgroup1;
    CREATE TEMPORARY TABLESPACE TEMP3 TEMPFILE '/u10/oracle/oradata/dbt1/datafile/temp03.dbf'
    SIZE 20M
    TABLESPACE GROUP tempgroup2;
    ALTER TABLESPACE temp TABLESPACE GROUP tempgroup1;
    select * from v$tempfile ;
    select * from dba_tablespace_groups ;
    alter user ABCD temporary tablespace tempgroup1 ;
    -- Verify that temp group is assigned to user
    select * from dba_users where username='ABCD' ;
    After you assign the group to the user abcd then retry your operation as abcd user.
    This time it will use both the temporary tablespaces for sort operations.
    Thanks
    GC

  • TEMP tablespace

    I see the TEMP tables space currently allocating 32GB and is 100% full.
    Can someone give me a quick explanation of what this is for and if I can delete all data from this or re-create it?

    #change temp tablespace
    1. create new temp tablespace.
    CREATE TEMPORARY TABLESPACE TEMP TEMPFILE
    '/oracle/product/oradata/syslog/temp01.dbf' SIZE 2048M AUTOEXTEND ON NEXT 50M MAXSIZE UNLIMITED
    TABLESPACE GROUP ''
    EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;
    2. make it default
    ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp;
    3. drop the old one
    drop tablespace temp2 including contents and datafiles.
    Regards
    Asif Kabir

  • Drop temp tablespace goes forever

    Hi,
    Trying to drop temp tablespace.
    I made new default temp tablespace and that part went fine. I can see system using it immediately.
    Then I tried to drop the old one.
    drop tablespace temp including contents and datafiles;
    .... no go .... altough content is gone now. Tablespace was full before this now it's empty.
    My command still hangs in sqlplus.
    Any idea?
    Oracle 10.2.0.1 on Linux x86.

    You either wait until it's finish. Or kill the session that held it.
    SELECT s.sid,
           s.serial#,
           s.osuser,
           s.program
    FROM   v$session s;
    ALTER SYSTEM KILL SESSION 'sid,serial#'

  • Multiple TEMP tablespaces

    RDBMS version:11.2, 10.2
    We usually create only one temporary tablespace (TEMP) for a database. But, our application team is asking us to create two more dedicated Temporary tablespaces for 2 of its DB schemas which have high activity and assign it as the default temporary tablespaces for it.
    Are there any advantages in creating separate TEMP tablespaces for highly active schemas ? Can't I just have one tablespace and increase the size of this TEMP tablespace instead ?

    SM_308 wrote:
    RDBMS version:11.2, 10.2
    We usually create only one temporary tablespace (TEMP) for a database. But, our application team is asking us to create two more dedicated Temporary tablespaces for 2 of its DB schemas which have high activity and assign it as the default temporary tablespaces for it.
    Are there any advantages in creating separate TEMP tablespaces for highly active schemas ? Can't I just have one tablespace and increase the size of this TEMP tablespace instead ?I would recommend single larger TEMP tablespace

  • Reasons to use separate temp tablespace for user tablespace

    Hi,
    I know that guideline says is not use system tablespace for user tables. But need i create for user tablespace separate TEMP teblespace or i can use same TEMP tablespace for all tablespaces?

    Hi,
    >>But need i create for user tablespace separate TEMP tablespace or i can use same TEMP tablespace for all tablespaces?
    You can use one temp tablespace for a database , Temp tablespace usage are for sorting the data.
    for more detail you can go with  :Creating Tablespaces
    HTH

Maybe you are looking for