Determining datafile size for temp tablespace

Is there a rule of thumb for determining the size of the temporary tablespace, or at least a common starting value?
-Thanks
Chuck

Rule of thumb ... trial and error.
That is what your test environment is for.
We have over 200 databases with TEMP ranging from 50Mb up to 56Gb. So go figure!!!

Similar Messages

  • Optimal size for TEMP tablespace tempfiles

    Hi all,
    I've rumaged through Oracle documentation on the above topic but can't find the answer I'm seeking:
    How do you determine the optimal size for your tempfiles? Are there rules to guide one in this area? For example for a 50G database, how do you determine if it's 2G, 3G or 4G that's best for the database? What about a 500G database?
    Anwers will be appreciated.
    Regards

    It's the size of the sets, as you say. And in a data warehouse, the data sets can be very large. I'd say that in an OLTP database, then the useage of temp would (should) be low; but in a data warehouse, all bets are off: one-off end of month runs; director wants a monolithic report running; all that sort of DWH-related type of processing, which, by its nature, happens all the time. Similarly, a large number of users (e.g. users of, say, a Third Party BI tool) amy lead to lots of big sorts, owing to the ad hoc nature of their queries. Standard DWH stuff.
    I don't often see tiddly-widdly bits of SQL in data warehouses, like your SELECT COUNT(*) FROM tab$ example. It could be done, sure, but more likely will be bit, fat queries, which a DWH is designed to deal with. And a lot of temp may be required.
    From that 6-years old (but relevant) article (my emphasis): "For example, if you join two *large* tables, and Oracle cannot do the sort in memory (see SORT_AREA_SIZE initialisation parameter), *space will be allocated in a temporary tablespace for doing the sort operation*."
    Regards - Don Lewis

  • Size for TEMP tablespace

    I don't know if this is a "valid" question. We have users running reports on our production system. The sometimes complain about the temp space being too small (due to their queries crashing when using too much temp space).
    But I also have a feeling that you can keep throwing disks at TEMP space, and that it will never be enough.
    What should the size of a database's TEMP space be - is there a rule of thumb for this ?
    Dirk

    There are several considerations that you should take into account when you try to size your temporary tablespace:
    First, how much sort does you average transaction need and how many concurrent transactions does your system need to support. This number gives you a starting point for the minimum workable size for normal operations.
    Now, how big is the largest table on your system and do you wish to be able to support select * from biggest order by ? Supporting an unqualified select on your largest table may not be required.
    How big is the largest index in your system? It is likely that you need to have enough temp space available to recreate this index in the event of corruption without having to take special action to allocate more space to temp on a temporary basis. But having to add space in the event of a diaster might be acceptable.
    Figure out what the largest sort operation you need to be able to support is and then add enough space to handle the number of concurrent average transactions that would be expected to be on the system at the same time. This is the size you should use for your temporary tablespace.
    It is better to have all the space you will need for any normal and for any maintenance operation available at all time rather than trying to find additional file space to support special maintenance tasks or diaster recovery operations.
    HTH -- Mark D Powell --

  • To shrink the size of TEMP tablespace

    Dear all,
    There is a databse with RAC, now in OEM the size of TEMP tablespace has been reached at 99.9%. now we want to shrink the size of TEMP tablespace.
    how to we do that???????
    plz help me...........

    Temporary tablespaces usually show they are full, however this space is not actually in use. It is rather allocated. Oracle has evaluated the best way to obtain the most of performance, and he said it is better to allocate once than allocate-deallocate-reallocate extents, so temporary space is not 'released'.
    If you want to feel psychologically more confortable with lower allocated space, you can drop your tablespace (create an interim default temporary tablespace first) and recreate it.
    You can also rebuild temporary datafiles:
    alter tablespace temp add tempfile 'C:\ORACLE\ORACLEXE\ORADATA\XE\TEMP01.dbf' size 32m;
    SQL> select name from v$tempfile;
    NAME
    C:\ORACLE\ORACLEXE\ORADATA\XE\TEMP.DBF
    C:\ORACLE\ORACLEXE\ORADATA\XE\TEMP01.DBF
    SQL> alter database tempfile 'C:\ORACLE\ORACLEXE\ORADATA\XE\TEMP01.DBF' drop including datafiles;
    Database altered.

  • How to add a datafile in the temp tablespace

    how i can add a datafile in the temp tablespace.
    becuase i am getting tyhe following error
    SQL> select aa.question_desc,a.answer_desc from answer a ,
    2 (select * from question_t where rownum <=100 order by dbms_random.random) aa
    3 where a.question_id = aa.question_id
    4 /
    select aa.question_desc,a.answer_desc from answer a ,
    ERROR at line 1:
    ORA-01652: unable to extend temp segment by 256 in tablespace TEMP

    select * from question_t where rownum <=100 order by dbms_random.random<br>After all the discussion about random select a random generated number... why don't you go for one of the suggestion like :<br>
    select *
    from (select * from question_t order by dbms_random.random)
    where rownum <=100 The result is different.<br>
    In your query, you take 100 rows and order randomly, in the second query, order randomly, and take 100 first rows...<br>
    As you can see above, with your last query, output row are always same, but in different order :<br>
    SCOTT@demo102> select ename from emp where rownum<=5 order by dbms_random.random;
    ENAME
    SMITH
    ALLEN
    MARTIN
    JONES
    WARD
    SCOTT@demo102> /
    ENAME
    MARTIN
    JONES
    SMITH
    ALLEN
    WARD
    SCOTT@demo102> /
    ENAME
    JONES
    ALLEN
    MARTIN
    SMITH
    WARD
    SCOTT@demo102> /
    ENAME
    ALLEN
    SMITH
    WARD
    MARTIN
    JONES
    SCOTT@demo102> <br>
    Anyway, I don't restart this discussion here.<br>
    For your actual problem, Pierre has already give you a suggestion.<br>
    <br>
    Nicolas.

  • Storage parameter for Temp tablespace

    Hi all,
    Greetings of the day...
    DB version is 10.2.0.4 ..Size of db is 550gb and in that temp tablespace is 40gb... daily and frequently we used to unable to extent temp segments...Saw the storage parameters of temp segments it has only 'EXTENT MANAGEMENT LOCAL UNIFORM SIZE 16777216'
    Please suggest as how to define storage parameters for temp tablespace...Am able to find the query which uses temp segments...Just needed to know abt the storage parameters for it..
    thanks,
    baskar.l

    CREATE TEMPORARY TABLESPACE TEMP TEMPFILE
    '/u02/TSTLOG/temp01.dbf' SIZE 15360M AUTOEXTEND ON NEXT 100M MAXSIZE 32767M
    TABLESPACE GROUP ''
    EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;
    Hope this will work.
    Regards
    Asif Kabir

  • Best Oracle datafile size for a SAP ECC6 database.

    Hello,
    We plan to migrate our ECC6 SAP database on a new Windows X64 plateforme running with :
    - Windows 2008 R2
    - Oracle 10.2.0.5.
    The actual Oracle database size is more 2 Tbytes.
    Please could help me to find the best size for the Oracle datafile in this new plateform ?
    Today we create Oracle Tablespace for SAP with 8 GBytes datafiles but we have too many datafiles to managed.
    Do you have experimented 16 GBytes, 32 GBytes, 64 Gbytes datafiles for Oracle Tablespaces on this kind of SAP Plateform ?
    Thank you very much for your reply.
    Best regards.
    Jean-Pascal.

    Hello Jean-Pascal,
    well the answer as usual - it depends )
    We already discussed that topic some time ago - please check this thread:
    big file or small file
    Your storage sub system and stripping matters of course too.
    Regrds
    Stefan

  • Can we reduce datafile size for tablespce ??

    Hi,
    I have two tablespace with 8GB datafile ..
    Used of datafile size is 750 MB for each datafile ...
    Can we reduce a datafile size from 8GB to 2GB !
    while it is use to store data around 750 MB data ..
    If it allow will impcat on my data ???
    SSM

    If used amount is 750MB then yes you can resize to 2G.
    Try issueing the following (example)
    SQL> alter database datafile 'c:\oracle\ora92\ORCL\userdata01.dbf' resize 2000m;
    If it is not possible, oracle will complain with error number ORA-03297.

  • Maximum datafile size for sqlloader

    Hi,
    I would like to load data from 4GB xls file into oracle database by using sql*loader. Could you please tell me the maximum datafile size that can support sql*loader?
    Thanks
    Venkat
    Edited by: user12052260 on Jul 2, 2011 6:11 PM

    I would like to load data from 4GB xls file into oracle database by using sql*loader. Could you please tell me the maximum datafile size that can support sql*loader?you can post this question in SQL loader forum questions. CLose the thread here.
    Export/Import/SQL Loader & External Tables

  • Maxsize 0 after autoextend turned off for Temp tablespace!

    Hi,
    DB:11.1.0.7
    We had earlier the tempfiles with maxszie unlimited as below:
    select FILE_NAME,TABLESPACE_NAME,BYTES/(1024*1024) "Size",MAXBYTES/(1024*1024) "Maxsize",AUTOEXTENSIBLE from dba_temp_files;
    February 10, 2011 Tablespace used by DEV database
    ===================================
    FILE_NAME
    TABLESPACE_NAME Size Maxsize AUT
    /oradata/DEV/temp01.dbf
    TEMP 1024 32767.9844 YES
    /oradata/DEV/temp02.dbf
    TEMP 1024 32767.9844 YES
    /oradata/DEV/temp03.dbf
    TEMP 3072 32767.9844 YES
    Now after turning autoextend off, why maxsize is showing as '0' instead of being at unlimited as earlier?
    Please see below:
    select FILE_NAME,TABLESPACE_NAME,BYTES/(1024*1024) "Size",MAXBYTES/(1024*1024) "Maxsize",AUTOEXTENSIBLE from dba_temp_files;
    February 10, 2011 Tablespace used by DEV database
    ===================================
    FILE_NAME
    TABLESPACE_NAME Size Maxsize AUT
    /oradata/DEV/temp01.dbf
    TEMP 1024 0 NO
    /oradata/DEV/temp02.dbf
    TEMP 1024 0 NO
    /oradata/DEV/temp03.dbf
    TEMP 3072 0 NO
    Could anyone please explain?
    Thanks for your time!
    Regards,

    Handle:      user10088255
    Status Level:      Newbie
    Registered:      Mar 4, 2009
    Total Posts:      87
    Total Questions:      62 (62 unresolved)
    so many questions without ANY answers.
    http://forums.oracle.com/forums/ann.jspa?annID=718

  • Setting a Pre determined Font size for an Application.

    I have a Swing application that is running on Windows and the FONT size
    expands on the GUI if I change the Appearance of the Font in Windows XP
    This normally should not happen as the appearances of the Windows Font size
    should have no impact on the application that is running.
    But to be on a safer side,can can I use any method that will have a predetermined
    FONT size when the Swing application executes:
    like : setFont(new Font("Courier", Font.PLAIN, 12));
    The code below is the starting point of the application.
    public class RFApp extends SingleFrameApplication {
         private RFMainFrame mainFrame;
         @Override
         protected void startup() {
              mainFrame = new RFMainFrame();
              setMainFrame(mainFrame);
              show(mainFrame);
    public class MainFrame extends JFrame {
         private final ToolBar toolBar = new ToolBar(this);
         private final StatusBar statusBar = new StatusBar(this);
         private final MainPanel mainPanel = new MainPanel(this);
         public MainFrame() {
              super("Main Frame"); // This has a BIG FONT increase
              initComponents();
         private void initComponents() {
              setLayout(new BorderLayout());
              getContentPane().add(toolBar, BorderLayout.NORTH);
              getContentPane().add(mainPanel, BorderLayout.CENTER);
              getContentPane().add(statusBar, BorderLayout.SOUTH);
    }

    Since you really need to change foreground and etc. Use the following code to list all the resources that may set the font colors you want (the example only excludes background color resource, so it may set more than what you want, you need to pin point specific color resouces from the print out to suit your own need).
    UIDefaults defaults = UIManager.getLookAndFeelDefaults();
    for(Iterator i = defaults.keySet().iterator(); i.hasNext();) {
    String name = (String)i.next();
    Object value = defaults.get(name);
    if (value instanceof ColorUIResource && !name.endsWith("Background")
    && !name.endsWith("background")) {
    System.out.println(name);
    UIManager.put(name, new ColorUIResource(Color.red));
    }

  • Actual tables size is different than tablespace,datafile size

    Hi,
    I had created 10 tables with minimum extents of 256M in the same tablespace. The total size was 2560M. After 3 months run, all tables sizes were not increased over 256M. But the datafile size for that tablespace was increased sharply to 20G.
    I spent a lot of time on it and could not find anything wrong.
    Please help.
    Thanks,

    The Member Feedback forum is for suggestions and feedback for OTN Developer Services. This forum is not monitored by Oracle support or product teams and so Oracle product and technology related questions will not be answered. We recommend that you post this thread to the Oracle Technology Network (OTN) > Products > Database > Database - General forum.

  • ASM on SAN datafile size best practice for performance?

    Is their a 'Best Practice' for datafile size for performance?
    In our current production, we have 25GB datafiles for all of our tablespaces in ASM on 10GR1, but was wondering what the difference would be if I used say 50GB datafiles? Is 25GB a kind of mid point so the data can be striped across multiple datafiles for better performance?

    We will be using Redhat Linux AS 4 update u on 64-bit AMD Opterons. The complete database will be on ASM...not the binarys though. All of our datafiles we have currently in our production system are all 25GB files. We will be using RMAN-->Veritas Tape backup and RMAN-->disk backup. I just didn't know if anybody out there was using smallfile tablespaces using 50GB datafiles or not. I can see that one of our tablespaces will prob be close to 4TB.

  • Maximun size for  a datafile

    Hi,
    Oracle Version :10.2.0.1
    Operating system:Linux
    Can any please tell me what is the maximum size that a datafile can grow and the maximum size for tablespace.
    Here i am having one tablespace which is having 4 datafile in that 2 datafile are 33 gb and the other 2 datafile size are 1gb and 400 mb.But in my OEM it is showing that your tablespace ECA_DATA is 88 percent full.
    I think there is no maximum size for the tablespace but why it is how it is showing the my tablespace is 88 percent full.

    Hi,
    Here is the output of the query which you have given.Can you pleas tell me what is the
    FILE_ID|FILE_NAME|ALLOCATED|USED|FREE
    1|/u02/oradata/eca/system01.dbf|901775360|894435328|7274496
    2|/u02/oradata/eca/undotbs01.dbf|4881121280|47841280|4833214464
    3|/u02/oradata/eca/sysaux01.dbf|713031680|698744832|14221312
    4|/u02/oradata/eca/users01.dbf|13851688960|595197952|13256425472
    5|/u03/oradata/eca/ECAPROD_01.dbf|131072||65536
    6|/u03/oradata/eca/ECA_DATA_01.dbf|34358951936|31995723776|2363097088
    7|/u02/oradata/eca/ECA_INDX_01.dbf|17028874240|6012272640|11016536064
    8|/u02/oradata/eca/ECAUAT_01.dbf|104857600||104792064
    9|/u02/oradata/eca/ECAPREPROD|106496||65536
    10|/u02/oradata/eca/ECA_DATA2|34358951936|33730527232|628293632
    11|/u02/oradata/eca/ecadump.dbf|12582912||12517376
    12|/u02/oradata/eca/ecaread.dbf|18517721088|12014845952|6502809600
    13|/u03/oradata/eca_80504.dbf|104857600||104792064
    14|/u03/oradata/eca_80505.dbf|104857600||104792064
    15|/u03/oradata/ECAVAPDL.dbf|104857600|4784128|100007936
    16|/u02/oradata/eca/ECA_DATA3|1048576000|1048313856|196608
    17|/u02/oradata/eca/ecadump1.dbf|419430400||419364864
    18|/u02/oradata/eca/ECA_DATA3.dbf|419430400|419364864|
    19|/u02/oradata/eca/CKM_PROD_P2.dbf|11943804928|11925979136|17760256
    20|/u02/oradata/eca/CKM_PROD_p3.dbf|12575178752|12431785984|143327232
    21|/u02/oradata/eca/CKM_PROD_p4.dbf|13187809280|13187743744|Here my tablespace ECA_DATA contains datafile are
    FILE_ID|FILE_NAME|ALLOCATED|USED|FREE
    6|/u03/oradata/eca/ECA_DATA_01.dbf|34358951936|31995723776|2363097088
    10|/u02/oradata/eca/ECA_DATA2|34358951936|33730527232|628293632
    16|/u02/oradata/eca/ECA_DATA3|1048576000|1048313856|196608
    18|/u02/oradata/eca/ECA_DATA3.dbf|419430400|419364864|Edited by: SIDDABATHUNI on Nov 30, 2009 2:29 AM

  • INCLUDED_IN_DATABASE_BACKUP for temporary tablespace

    Hi,
    The query output from v$tablespace shows the INCLUDED_IN_DATABASE_BACKUP value for temp tablespace in my db is "YES". The only way to have the value "NO" is to configure rman to exclude tbs. But you can not exclude temporary tablespace. Based on the size of total full backup files, the temp tablespace does not seem to be backup by rman. Is this a bug or is there other way to set this value for temporary tablespace to "NO"? I'm using 9iR2. Thanks.

    >...The only way to have the value "NO" is to configure rman to exclude tbs. But you can not exclude temporary tablespace.
    RMAN doesn't include the temporary tablespace in the backups.
    SQL> select * from v$tablespace;
           TS# NAME                           INC
             0 SYSTEM                         YES
             7 TEST                           YES
             3 USERS                          YES
            4 TEMP YES
             6 UNDO                           YES
    RMAN> list backup of tablespace TEMP;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of list command at 01/26/2006 20:04:06
    RMAN-06004: ORACLE error from recovery catalog database: RMAN-20202: tablespace not found in the recovery catalog
    RMAN-06019: could not translate tablespace name "TEMP"
    RMAN> list backup of tablespace UNDO summary;
    List of Backups
    ===============
    Key     TY LV S Device Type Completion Time #Pieces #Copies Tag
    3125    B  0  A DISK        22-JUL-05       1       1       TAG20050722T102731
    3207    B  0  A DISK        24-OCT-05       1       1       TAG20051024T163622
    3248    B  1  A DISK        02-NOV-05       1       1       TAG20051102T225318
    3360    B  F  A DISK        23-JAN-06       1       1       TAG20060123T172135Aron

Maybe you are looking for