Flash Disks for TEMP space

Hi,
I have noticed that whenever a SQL statement needs to make heavy use of TEMP (GROUP BY, SORT, Etc.) with large amounts of data (2GB up to 50GB) execution time slows considerably. A large part of that time (As reported by OEM SQL-MONITOR) is waiting on reads/writes to TEMP. It occured to me that I could cut off a portion of my cell flash, configure it into grid disk, and create a small disk group for Flash temp space. This wouldn't need to be mirrored, as it is TEMP space. Has anybody tried this? (This is a data warehouse with a large amount of data, so it's not unusual for queries to use 5GB to 10GB of TEMP).
Thanks,
Doug

All,
Well, I had a chance to test this & it actually works very well. The first thing I found was that it is very fast & easy to configure some of the flash into grid disks, and there is no need to even take the databases down or cycle them. On each Cell (using DCLI lets it all be scripted up) you simply drop the flash cache, recreate it smaller, and configure the rest into grid disk. (Reversing it is just as easy). Then, since TEMP does not need to be mirrored, you simple create a disk group specifying External redundancy. Create a TEMP tablespace in this disk group, and you are off and running.
I created a simple SQL that did a GROUP BY and SORT on 10 columns of a 500M row table. That SQL ran 1min, 5 secs using hard disk TEMP and 1 minute flat using flash temp. I ran these repeatedly, and the timings were consistent. This wrote 4GB to TEMP. Then I doubled the amount of data by doing a UNION ALL of the table with itself (in an inline view). This wrote 8GB to TEMP, and the difference between hard and flash temp times grew to about 15 secs. I doubled this a few more times, and the more data written to TEMP, the larger the improvement in run times. (I don't think writes to flash are slower than writes to hard disk ... they seem to be faster. The Oracle engineers would have to answer that one, but the statistics from OEM show the writes to flash TEMP as being faster than to hard disk ... particularly as the volume of data gets larger).
In any event, we have some processes that rebuild a large number of MVs at a time (requiring about 400GB of TEMP). I'm looking at putting someting in place to build a flash TEMP to support this load, and then drop it when the load is complete. We'll try it manually first ... I think we may be looking at cutting significant time off the process.
Thanks,
Doug

Similar Messages

  • HT4906 Erase the disk for more space but ilife software are all missing!!!

    Hey, I just erase the disk for more space, when I reinstall mountain lion, the I life software are all missing! And in app store it shows up that I need to buy them! So ridiculous !!! Why I can use them before

    What's ridiculous? You erased the apps. They're not part of the OS. So, reinstall them for wherever their original source was.

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

  • Hacking around temp space SS enqueues

    Metalink Notes 465840 (Configuring Temporary Tablespaces for RAC Databases for Optimal Performance) and 459036 (Temporary tablespace SS Contention In RAC) refer.
    I have the following bugs occurring with a vengeance on 10.1.0.3:
    Bug 4882834 - EXCESSIVE SS AND TS CONTENTION ON NEW 10G CLUSTERS
    Bug 6331283 - LONG WAITS ON 'DFS LOCK HANDLE'
    I'm trying to find a work around for many background processes running 24x7 processing a lot of data. These are run in a single schema (VPDB applies and this schema is the owner and exempt from FGAC).
    What would be nice is to have something similar to SET TRANSACTION to select a specific dedicated undo space.. but for temp space. If I can get each of my major job queues (home rolled FIFO and LIFO processing queues using DBMS_JOB) to use a different temp space, SS contention should be hopefully reduced.. or not?
    Anyone else sitting with this problem or did in the past? And if past, exactly what Oracle patchset resolved the problem?
    Edited:
    Fixed the spelling error in subject title

    > How big per trasnaction sort size and pga size?
    Fairly large. A typical transaction can select up to 50+ million rows and aggregate it into a summarised table. There are a couple of these running in parallel. Given the nature of the volumes we process, there's very little flexibility in this regard (besides growing data volumes and an increasing complexity of processing)...
    Though, when a process does go through without butting its head against an Oracle bug (fortunately more often than not), performance is pretty impressive.

  • RunInstaller fails to find temp space

    I am installing Oracle 11.1.0 on my HPUX 11.31 Itanium system. I have followed all of the preinstallation tasks and have downloaded the software.
    I have logged into the oracle account, and have cd's to the directory that contains my expanded oracle installation kit. I have defined my DISPLAY for the GUI, and have TMPDIR and TEMP set to /tmp, which has almost 1GB of free space. The directory containing the oracle installation kit is owned by the oracle user account.
    When I invoke ./runInstaller, I receive the following text:
    Error in GetCurrentDir(): 2
    Error in GetCurrentDir(): 2
    Error in GetCurrentDir(): 2
    Starting Oracle Universal Installer…
    Error Returned::: No such file or directory
    Checking temp space: 0 MB available, 415 MB required. Failed <<<<
    Checking swap space: must be greater than 150 MB. Actual 8192 MB. Passed
    Checking monitor: must be configured to display at least 256 colors. Actual 256. Passed
    Some requirement checks failed. You must fulfill these requirements before continuing with the installation, at which time they will be rechecked.
    I found out that the GetCurrentDir() is a binary function in the install/.oui application. Where is the installation when the GetCurrentDir() function is called? Why is the installing indicating that there is 0 MB available for temp space when I know that I have pleny of available temp space? Has anyone seen something like this. I'm stumped!
    Regards, Rob

    I have created a new temporary location for the installation on /opt1/tmp
    echo $TMP
    /opt1/tmp
    echo $TMPDIR
    /opt1/tmp
    echo $TEMP
    /opt1/tmp
    I originally tried this with $TMP, $TMPDIR and $TEMP pointing to /tmp, and received the same errors.
    df -k /opt1
    /opt1 (/dev/vg01/lvol1): 20170896 total allocated Kb
    12010598 free allocated Kb
    8160298 used allocated Kb
    41% allocation used
    - Rob

  • Installed flash disk does not boot (Solaris 10 on Fore CPU-50 VME cpu-card)

    Greetings,
    After installation of Solaris on a system with a flask disk as system disk, the disk is not bootable.
    Configuration:
    System: Fore CPU-50 VME cpu-card (sparc50)
    OS: Solaris 10 (Sparc version, CD-media)
    System-disk: ADTRON S35FA-8GC20N Smart Storage 3.5” SCSI Flash pack.
              (configured as c0t1d0)
    Error message at boot:
    Can’t read disk label
    Can’t open disk label package
    When I mount the installed disk on another system I can read and inspect the flash disk.
    The logging files begin.log, finish.log and install_log in the /var/sadm/system/logs/ directory don’t mention any errors during installation phase.
    The logging file /var/sadm/system/logs/install_log begins with:
    Configuring disk
    -     Creating Solaris disk label (VTOC)
    Creating and checking UFS filesystems
    -     Creating / (c0t1d0s0)
    -     etc.
    This install_log file ends with:
    Installing boot information
    -     Installing boot blocks (c0t1d0s0)
    -     Updating system firmware for automatic rebooting
    How can I make this flash disk bootable?
    Thanks,
    Herm

    It's a G3 with the integrated 5 i Smart array
    controller. There are driver updates for Sol 10 on
    the HP side. Just filter for OS. There you get the 5i
    driver !
    greets
    D@veI searched the HP site, but wasn't able to find the driver for Solaris 10. Could you give me the url? I did find links for drivers for Solaris 8 & 9 though.
    Thanks,
    -Jeff

  • How much TEMP space needed for datapump import?

    How does one accurately predict how much TEMP table-space is needed prior to starting a data-pump import (via impdp)?  I need a way to predetermine this BEFORE starting the import.  It is my understanding that in data-pump imports, temp table-spaces are primarily used for the building of indexes among other operations.

    Yes, I could use autoextend but that just shifts the problem of checking the logical table-space size to checking the physical space to see that it has enough room to extend.
    I was really hoping for a formula to calculate the amount of TEMP space it would take up.  For example, RichardHarrison's post above about setting the TEMP table-space size to be twice as large as the largest index, but wasn't sure on the accuracy of that statement.  I was hoping someone has encountered this kind of scenario before and found an accurate way to predict how much space is really needed, or a good estimate to go by.
    I will try out the idea of setting the TEMP space size to be twice the size of the largest index and see how that goes, as it doesn't seem there is a practical way of accurately determining how much space it really needs.
    Thanks everyone.
    Ben.

  • Unable to Extend TEMP space for CLOB

    Hi,
    I have a data extract process and I am writing the data to a CLOB variable. I'm getting the error "Unable to Extend TEMP space" for the larger extracts. I was wondering if writing the data to a CLOB column on a table and then regularly committing would be better than using a CLOB variable assuming time taken is not an issue.

    You do not need to add more temp files. This is not a problem of your temp tablespace. This is the problem of temp segments in your permanent tablespace. You need to add another datafile in EDWSTGDATA00 tablepsace. This happens when you are trying to create tables and indexes. Oracle first does the processing in temp segments(not temp tablespace) and at the end oracle converted those temp segments into permanent segments.
    Also, post the result of below query
    select file_name,sum(bytes/1024/1024)in_MB,autoextensible,sum(maxbytes/1024/1024)in_MB from dba_data_files where tablespace_name='STAGING_TEST' group by file_name,autoextensible order by FILE_NAME;

  • Startup disk is almost full message- what can I do to delete files for more space?

    I'm getting a msg saying my startup disk is almost full, what should I do?? to delete fuiles for more space??

    Music... Video... Photos take up a lot of space...
    See here for tips on 
    Free Disc Space
    http://www.thexlab.com/faqs/freeingspace.html

  • What is the types of file store in item Other in Hard disk and how to clear them up for more space

    What is the types of file store in item Other in Hard disk and how to clear them up for more space.
    Thank you in advance for helping..

    See here for answer about the OTHER which is taking up space:
    http://pondini.org/TM/30.html
    and here:
    http://pondini.org/OSX/DiskSpace.html
    See Kappys excellent note on the rest of “other” files taking up your space:
    What is "Other" and What Can I Do About It?

  • Can we add additional hard disk for 64gb macbook air, since only 3gb is available as space.

    can we add additional hard disk for 64gb macbook air ? since only 3gb is available as space. Is their any other way. Kindly suggest.

    Try http://eshop.macsales.com/shop/SSD/OWC/Aura_Pro_Air_2012
    Allan

  • New Mac Pro internal PCIe flash disk Ae cache - partition?

    I have ordered a new Mac Pro, 8-core, D700s, 64 GB RAM, and the 1TB PCIe internal flash boot drive.  I would like information directly from Adobe on how to best utilize the internal flash drive as my cache drive for Ae, Pr, Au and Ps.. With 1TB, I figure I can allocate half towards being my dedicated cache for Adobe apps.  My question is, is it best to just create a folder on the boot drive to use as my cache, or is it better to partition the drive into two halves-one half for the boot and documents, and the second partition as the dedicated cache drive?  I'm thinking it might be a good idea to partition so that the boot half of the drive is protected from wear from the heavy writes incurred by the caches?  Any other advice specific to optimizing Adobe apps for the nmp would be appreciated too.  Thanks.

    Wear leveling is done at the drive level, not the partition level, so partitioning won't help with that issue.
    Partitioning has the advantage of making it so that if your cache fills up it won't run your boot disk out of space, which Mac OS still doesn't handle very gracefully.
    What I opted to do was to get an external SSD drive for cache. Why? Because caching puts a lot of stress on the drive and it's a lot cheaper to replace a standard SATA SSD drive than it is to replace the built-in Apple-specific SSD.
    That was my thinking anyway. We'll all know more after the new MacPros have been out for a year or two.
    Bob Currier
    Synthetic Aperture

  • I'm trying to restore my win7 with HP USB Recovery Flash Disk I get the following two messages

    I'm trying to restore my win7 with HP USB Recovery Flash Disk  I get the following two messages:
    "Fail to Create C:\Users\User\AppData\Local\Temp; c:\arc\01Script\FormatUFD.sp" and messsage "Fail to create".
    How do I port HP_recovery drive to my flash-drive?
    Windows 7 x64, HP G62-144DX
    This question was solved.
    View Solution.

    Hi:
    I can't help you with that specific issue, but if you can't get it resolved and you can read the 25 character Microsoft Windows product key on the bottom of your PC, make your own W7 installation media to reinstall W7.
    Here's how:
    If you can read the 25 character Microsoft windows 7 product key, you can download plain Windows 7 ISO files to burn to a DVD for the version of windows that came installed on your PC, and that is listed on the Microsoft COA sticker on your PC's case.
    Burn the ISO using the Burn ISO option on your DVD burning program and burn at the slowest possible speed your program will allow. This will create a bootable DVD.
    Or use the Windows 7 USB/DVD installation tool to compile the ISO file you download from Digital River. Link and instructions below. You need a 4 GB flash drive to use the USB method of compilation.
    http://www.microsoftstore.com/store/msstore/html/pbPage.Help_Win7_usbdvd_dwnTool
    Use the 25 character product key on the PC to activate the installation.
    The key will activate either a 32 or 64 bit installation.
    Then go to the PC's support and driver page to install the drivers you need.
    Link to the W7 ISO file downloads is below.
    http://www.mydigitallife.info/official-windows-7-sp1-iso-from-digital-river/
    Paul

  • How can I make a bootable disk for Mountain Lion?

    How can I make a bootable disk for Mountain Lion?

    Make Your Own Mountain/Lion Installer
    1. After downloading Mountain/Lion you must first save the Install Mac OS X Mountain/Lion application. After Mountain/Lion downloads DO NOT click on the Install button. Go to your Applications folder and make a copy of the Mountain/Lion installer. Move the copy into your Downloads folder. Now you can click on the Install button. You must do this because the installer deletes itself automatically when it finishes installing.
    2. Get a USB flash drive that is at least 8 GBs. Prep this flash drive as follows:
    Open Disk Utility in your Utilities folder.
    After DU loads select your flash drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    Click on the Erase button. The format process can take up to an hour depending upon the flash drive size.
    3. Locate the saved Mountain/Lion installer in your Downloads folder. CTRL- or RIGHT-click on the installer and select Show Package Contents from the contextual menu. Double-click on the Contents folder to open it. Double-click on the SharedSupport folder. In this folder you will see a disc image named InstallESD.dmg.
    4. Plug in your freshly prepared USB flash drive. You are going to clone the content of the InstallESD.dmg disc image to the flash drive as follows:
    Double-click on the InstallESD.dmg file to mount it on your Desktop.
    Open Disk Utility.
    Select the USB flash drive from the left side list.
    Click on the Restore tab in the DU main window.
    Select the USB flash drive volume from the left side list and drag it to the Destination entry field.
    Drag the mounted disc icon from the Desktop into the Source entry field.
    Double-check you got it right, then click on the Restore button.
    When the clone is completed you have a fully bootable installer that you can use without having to re-download Mountain/Lion.
    Note: The term Mountain/Lion used above means Lion or Mountain Lion.

  • Simple question:  I want to use iCloud as a back up disk for my documents folder.  How can I do this?  If I cannot do this, why am I paying for access to "the cloud?"

    Simple question:  I want to use iCloud as a back up disk for my documents folder.  How can I do this?  If I cannot do this, why am I paying for access to "the cloud?"

    iCloud does not provide general file storage or backup, so you cannot back up your Documents folder using it. You will need to find a third-party alternative - this page examines some options (some are free):
    http://rfwilmut.net/missing3
    iCloud at basic level, with 5GB is storage, is free: you only pay anything if you want to increase the storage space.

Maybe you are looking for

  • Problem with JPanel's mouse listener!

    I am developing a Windows Explorer-like program. I have an JPanel and added JLabels to that panel to reprensent the folders. I think, I kind of have to add mouse listener to JPanel to interact with mouse clicks, gaining and losing focus of JLabels et

  • Please help me in doing this

    hi, I'm new for the JSP and got struck at this point . I have a JSP page wherein it consists of a table and the servlet that retrieves the data from the DB(MY SQL). Now i need to fill the contents of the table as mentioned below. First 5 rows must ge

  • System Preferences Compatability Issue

    I recently went from Leopard to tiger after a system crash, and now I am unable to open my system preferences (using tiger OS X). Is there any way to get back the tiger system preferences with out completely wiping my drive?

  • How to manually install an app in the iPhone simulator

    Hi, I have tried to copy my app to ~/Library/Application Support/iPhone Simulator/User/Applications but it doesn't appear in the iPhone Simulator. What else do I need to do? Or where do I have to copy it? Thanks, Albert

  • Can I downscale only part of a sequence?

    Let me explain: I have a series of 1080p clips of a presentation with various animations and slides interspersed between each clip. Currently, when exporting, the video is 2.18gb. This doesn't do well when piped down a dedicated T1 from an overseas s