Estimate the amount of temp space an application take?

I have a query that is "SELECT * FROM Field_Name ORDER BY une_table DESC. une_table has an avg_row_len of 458 bytes and stats are updated. There are about 6 million lines in une_table.

TEMP is set at 500 MB and the request fails for lack of TEMP space. I show about 176MB TEMP is currently ongoing usage, so worst case scenario I 324 MB of free space.

So what calculation is correct for the amount of TEMP space is necessary:

(a) avg_row_len 458 * 6 000 000 = about 3 GB of space (and DBA_SEGMENTS agrees with this rough math). That's assuming that this puts the whole line in the genre.

(b) 6 000 000 lines * 4 bytes for a ROWID (I think they are 4 bytes) = 22 MB. That's assuming that it sorts just a bunch of pointers to rows (which is how I thought it would work).

Don't forget to add the length of the column in which the length of rowid will be sorted before you multiply. A rowid [url http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/logical.htm#CNCPT89008] has four pieces, a four bytes. Also, check your plan, in case there is more that just the kind going for you.

Appropriate Sort_area_size or target of the pga, you can reduce the need for temp. Pga memory management in the docs, see [url http://download.oracle.com/docs/cd/E11882_01/server.112/e16638/memory.htm#i49320] to start.

Tags: Database

Similar Questions

  • estimate the amount of temporary space for FEPs tbl creating index

    my temp tablespace is 32 GB and index estimated to be as big as 55GO, I need more room temp? That is to say at least 55 GB?
    I'm going todo

    CREATE a TEMPORARY TABLESPACE ts_tmp
    TEMPFILE 'E:\temp01.dbf' SIZE 10000M
    REUSE AUTOEXTEND ON LOCAL MANAGEMENT MEASURE;

    ALTER USER myuser TEMPORARY TABLESPACE ts_tmp;

    CREATING index...
    Temp ALTER USER myuser TABLESPACE TEMPORARY;
    DROP TABLESPACE ts_tmp;

    VA - I've seen any difficulty in return put the temporary tableapace for temp myuser and drop the newly created temporary tablespace?

    Published by: user9198889 on November 29, 2011 07:56

    user9198889 wrote:
    my temp tablespace is 32 GB and index estimated to be as big as 55GO, I need more room temp? That is to say at least 55 GB?

    Yes

  • to know the amount of free space in a tablespace

    Hello

    I'm learning to oracle 9i release 9.2.0.1.0. I had created a tablespace 'TOOLS' to use the default tablespace for Statspack.
    I would like to know the amount of free space available in this table space. To do this, I ran the following query, but there was no selected lines:-

    SQL > select tablespace_name, bytes from dba_free_space
    2 where nom_tablespace = 'TOOLS. '

    no selected line

    SQL > select name from v$ tablespace;

    NAME
    ------------------------------
    CWMLITE
    DRSYS
    EXAMPLE OF
    INDX
    ODM
    SYSTEM
    TOOLS
    UNDOTBS1
    USERS
    XDB
    TEMP

    Can someone say the reason for this.

    Strange that the difference of 0.625 MB does not appear in free_space...
    But anyway, this tablespace is good as COMPLETE.

  • Error message Microsoft Word "Word could not create the work file. Check the amount of disk space on your startup disk. »

    I have a MacBook Pro, retina 13inch OS X el Capitan Version 10.11.1 with 16 GB of memory. It's brand new and I have recently installed Microsoft Word/Powerpoint etc. a disc that I bought a few years to my previous MacBook. It seems to work very well, but whenever I want to open a word document a message comes up saying "Word could not create the work file. Check the amount of disk space on your startup disk '. However, once I click 'OK' this message disappears and my word file opens without a problem. I have 16 GB of memory on this laptop and it's new I have not reached anywhere near the maximum amount of storage so I'm puzzled as to what this message means. How can I avoid that this message popping up everytime I open Microsoft Word? Any help would be appreciated!

    This has nothing to do with memory - it's the SSD. Word tries to create a temporary file to use as a backup if the program crashes while you are working. First, run the Microsoft Update program to see if there are updates you have missed. Second, Microsoft currently supports only versions 2011 and 2016, so if yours is older, you should consider the upgrade. Thirdly, I suspect that the temporary file is not get created so that you have fewer cancellations (maybe any) and that if the program crashes you have to restore.

  • [ADF, JDev12.1.3] I would like to stress that af: table takes the entire width of page and column auto-augmenter/reduce their width in proportion to the amount of available space. How...?

    Hallo,

    I see that default ADF makes all the 100px wide columns and there is the possibility to stretch a column to take full available width.

    I would like to know if there is a function / approach in ADF which - occupies all the available space - auto-calcule the width of each column to 1) the width of DB fields and 2) space in the browser window.

    I could also set the with columns of table in columns (characters) or (better?) in pixels and the framework should only for reproportion widths according to the available width.

    Or track to follow is defining the width of the columns in the table (percentage) property?

    Thank you

    Federico

    There is the possibility to stretch a column to take full available width.

    AFAIK, you can stretch several columns (read the docs for this property)

    I would like to know if there is a function / approach in ADF which - occupies all the available space - auto-calcule the width of each column to 1) the width of DB fields and 2) space in the browser window.

    (1) as far as I know, no

    (2) you can add class AFStretchWidth to the styleClass property to af:table (or surround your table with af:panelCollection and add this style class here)

    Or track to follow is defining the width of the columns in the table (percentage) property?

    Is probably not.

    % has different interpretation in different browsers, so you should use the style class AFStretchWidth.

    Dario

  • Best way to determine the amount of disk space is required for a deployment of office?

    We are conducting an assessment on the Lake and he examines disk space total used by our desktop computers, but I want to determine how much space SAN we need for our driver. What is the best way to understand this assuming we go with linked Clones, but have yet to determine how many bases we have pictures...

    It is counting on the OS and the numbers of virtual machines, for linked clone images, you might need a few of them, one for the standard user, one for the user of the task and one for users with power "admins".

    Also, is that the application will be with the operating system or using ThinApp?

    All these he had to be consider about before you go to the design of the storage, think also about having the SSD in your host supported replica image "linked clone.

    Sent from my iPad

  • error ORA-1652 on tablespace with the amount of available space

    Can someone help me understand what is happening with this "ORA-1652: unable to extend segment temp of 128 in tablespace DWH_REP_DATA? Database is 11g (windows 2008)


    It seems that my tablespace has 15 free g but it is short of space. The size of the tablespace file = the maximum tablespace file size. If there is so much space why not is not it used? Another addition disc more table space how to fix this?

    View of datafile: Online status
    Size of the file (Mo) 32 750.00
    Auto expand Yes
    Increment (MB) 10.00
    Maximum file size (MB) 32,767.00



    Thank you for taking my question!
    Kathie

    If the related tables is permanent, it means that you have a great race of DDL statement that allocated a temporary segment in a permanent tablespace: given that the statement failed due to lack of space, temporary segment has been released.
    See http://coskan.wordpress.com/2007/12/05/temp-segments-in-normal-datafile-ora-1652/.

    You need to increase the permanent size of the tablespace or attempt to modify the DDL statement so it needs less temporary space.

  • How can I reduce the amount of disk space that Mail again?

    Mail library is currently more than 10 GB of space.  How can I reduce this?

    Move some of the (older) emails will receive on my Mac (that you create), then delete them or move them to an external backup drive. The only other way is to remove everything that you no longer need.

  • Bootcamp is not install due to the mistake of the amount of available space

    I try to install windows on my mac with bootcamp 10. But somehow when I go in the part "" Select task"he keeps popping up that I have 50 GB of free space on my boot drive to install. But I checked my mac storage, I have 50 GB available, can you guys please help me how to solve this problem? (appreciated!)

    50 GB is not enough free space. After you have created the 100GB + Boot Camp partition (I think 100 GB would be minimal for Windows) you must always leave enough free space for OSX to run.

  • Table 2D-fixed points allocated to the amount of disk space!

    Hello

    I'm trying to create a 2D table file that will be saved on a real-time target. And should be read by my application in real time.

    To create a file as small as possible I have it recorded in fixed point format. (integer 16 bits 6 bits)

    The table size is 1024 X 1024 data points which is ~ 1 M data.

    If I save the file to the DBL format I expect to get 8 MB (each data point is represented by b bytes) of the file - and that's what I

    If I save a U16 format, I expect to get 2 MB file - and that's what I indeed.

    I waited get a 2 MB file with fixed point format-, but as you can see in the screenshot - I did not!

    No explanation why the checkpoint file is fixed so great?

    Thank you

    The FXP is 64-bit internally.

  • take the amount of free space between other volumes

    Hi all, my C drive has 1% left, while my E drive has 29,42 GB and my Fdrive GB 58.69.   I need to renew my Norton 360 in a few days, so it's urgent. Can I easily increase my primary volume to steal say 30 GB of my disk f. - F disk is used, is only 1%. I am concerned about the loss of data to play with these things. Is it a simple question or better left to the experts? It would be useful to have these skills to help other friends of the PC. Kind regards. Ty

    Hi Ty46,

    ·         How long have you been faced with this problem?

    ·         Did you do changes on the computer before the show?

    I suggest to perform disk clean up and then check disk space on each disk.

    HOW TO: Use the Desktop Cleanup Wizard in Windows XP

    http://support.Microsoft.com/kb/306542

    You can also take backup of data in the C: drive & move it to some other patition.

    It is not possible to extend the C: drive.

    Hope this information helps.

  • Removal of documents does not increase the amount of available space (Cruzer facet)

    When I delete files on my drive Cruzer facet Flash to make room for other files, the available space does not increase and so I can't add more files. Everyone knows this? How should I do?

    You use a PC or a Mac? If you use a Mac, you must empty your trash, while the disc is still connected or will not remove the files.

  • Tried to reduce the amount of toolbars space used and click the view full screen. Now cannot retrieve toolbars. Help, please

    My mom has a Dell computer and its toolbars took a good deal of space in the top of the screen. I went to the icon VIEW and clicking full screen display. Now, I can't search toolbars of icons or no way for her to save, or anything. All this happens is when she puts the cursor on the top, a light menu and it can get online, but all of the previous icons have disappeared. How can I him out of the FULLSCREEN VIEW?  She has Windows Vista.

    It could be something as simple as pressing the F11 key which activates / deactivates the full screen power.

  • How to check the amount of memory occupied by application

    Hello

    I use PersistantStore to store the data locally.

    Is it possible to identify, how much memory is my application?

    Thanks in advance.

    Not really a pain, just create a MyVector or MyHashTable stretching from vector or Hashtable.

    Why is it like this?  I have always assumed that it is because if you use a class in your application, the data can really only be read by your application, so the operating system can happily remove it.  If you use a standard object, then everyone can read, so the operating system must err on the side of caution and assume that one another is actually use it.  But that's just my point of view.

  • How can I resize an iframe in apex based on the amount of available space on the screen with a button

    Hello.  I have a request to 4.2.2.00.11, llg Server Oracle apex.  The conditions for this application are to hide and display a navigation bar by clicking on the buttons leathers/display on the screen.  The right side of the screen has an iframe that is to fill up whats left of the estate of the web browser.  Search in google, I found a function that works on the laundry.  I need the iframe to resize when the browser hides and shows, but when I tried to create a dynamic action on click to call javascript, hide and show the features of the browser bar break.  The iframe is not also resize.

    Here's the code that I currently use.

    JavaScript in my page header

    <script language="JavaScript">
    <!--
    function autoResize(id){
        var newheight;
        var newwidth;
    
    
        if(document.getElementById){
            newheight=document.getElementById(id).contentWindow.document.body.scrollHeight;
            newwidth=document.getElementById(id).contentWindow.document.body.scrollWidth;
        }
    
    
        document.getElementById(id).height= (newheight) + "px";
        document.getElementById(id).width= (newwidth) + "px";
    }
    //-->
    </script>
    
    

    The source of the IFRAME area.

    < IFRAME SRC = "f? p = & I_FRAME_APEX_APP_ID: & I_FRAME_APEX_PAGE_ID.: & APP_SESSION.

    : NO::ROLE: & ROLE. "width ="100% "height ="200px"id ="iframe1"marginheight ="0"frameborder ="0"onLoad ="autoResize ('iframe1'); "> < / iframe >

    A colleague suggested this, and the width is now set properly.  the height is always not to fit properly in the window.  When I set the height to 100%, the default height for pixels, I put in the iframe.

    
    
    

Maybe you are looking for