Any way to avoid the hit on the TEMP tablespace?

I'm running a CTAS query that unions 13 tables with about 7,000,000 rows each, inner joins that union again against a global temporary table with 13 rows, and then doing a GROUP BY against the result, summing about 6 fields. The resulting query runs in about 2 hours with about a 16 Gig hit on the TEMP tablespace.
In production I will need to join 52 tables with about that many rows against a GTT with 52 rows. I haven't experimented with it yet but I'm guessing the time and memory increase will be linear (i.e. 8 hours, 64 Gig hit).
I'm being asked if there's any way to avoid the hit on the TEMP tablespace. It was suggested that I look into using a materialized view, but won't that just transfer the hit from the harddrive to the RAM? I don't think this particular database has 64 Gigs of RAM dedicated to it, and I'm sure the row counts will grow in the future anyway.
Thoughts?
Thanks
Joe

I don't have visibility to the TEMP tablespace on their database so I don't know if the hit there is any less.
If you have privileges you can use SQL*PLUS autotrace (or possibly Oracle trace, if you're really that interested) to get run-time statistics on a query as you run it. Waiting for the 2-hour results will be a bit tedious though. If you don't have privileges for autotrace it won'r work; the error messages explain what's wrong rather well ;)
SQL> set autotrace on
SQL> select * from dual;
D
X
Execution Plan
Plan hash value: 3543395131
| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT  |      |     1 |     2 |     2   (0)| 00:00:01 |
|   1 |  TABLE ACCESS FULL| DUAL |     1 |     2 |     2   (0)| 00:00:01 |
Statistics
          1  recursive calls
          0  db block gets
          3  consistent gets
          2  physical reads
          0  redo size
        204  bytes sent via SQL*Net to client
        234  bytes received via SQL*Net from client
          2  SQL*Net roundtrips to/from client
          0  sorts (memory)
          0  sorts (disk)
          1  rows processedI still haven't figured out why selecting from dual is doing 3 consistent gets and 2 physical reads ;)

Similar Messages

  • Any way to avoid the dreaded activation fee?

    "Activation fee" my little finger. This charge always annoys me. I know it will be waived for businesses; any way to avoid it for individual plans?

    Ask at an AT&T store. My guess is that they won't waive it, though.

  • Any way to avoid adjusting the ring volume?

    Any way to avoid adjusting the ring volume? Don't know how but after using the phone for a day or two, the ring volume is adjusted. Is it because I adjust the volume of iPod or other apps. Is there a way to fix the ring volume at a constant level and won't be changed until actually changing the ring volume setting itself?
    Anyone?
    Thanks
    Gaston

    The ring volume is seperate from the iPod or 3rd party apps volume. You can have these at seperate levels. As a test, I made sure the ringer volume is at 100%. I started playing a song and lowered the iPod volume to 50%. I stopped the song and checked the ringer volume which remained at 100%.
    There is no lock setting for this. If you adjust the volume when not using the iPod or when not playing a 3rd party app, it will adjust the ringer volume.

  • HT1766 When I have iCloud Backup ON, the battery runs down on my iphone really quickly.  Is there any way of avoiding this ?  Thanks

    When I have iCloud Backup ON, the battery runs down on my iphone really really quickly.  Is there any way of avoiding this.  I want to backup my iphone but don't want to be recharging all day.  Many thanks

    Are you sure the iCloud backup is causing this?  Unless you initiate an iCloud backup manually, it will only back up once per day when the phone is connected to your charger and wi-fi and has the screen locked.  It shouldn't otherwise be consuming any power.

  • Any way to remove the History pulldown?

    Is there any way to remove the '''History '''pulldown from the main menu bar? It is absolutely useless, at least to me, and it is kind of annoying to keep hitting it by accident.
    PS: I meant as a user. It is possible others do, indeed, find some use for it, and it is kind of a given that Mozilla developers will not remove it.

    Add code to userChrome.css below the default @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    The customization files userChrome.css (interface) and userContent.css (websites) are located in the chrome folder in the user profile folder.
    *http://kb.mozillazine.org/Editing_configuration
    You can use this button to go to the Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #history-menu { display:none!important; }
    </nowiki></pre>

  • Is there any way to edit the standard Firefox context menu for displayed Web pages?

    Is there any way to edit the standard Firefox context menu for displayed Web pages? I frequently want to save a picture appearing on a page. Sometimes I "slip" and hit "Send Image" when I want "Save Image As", and have to sit and wait for a default send-mail page to come up, then close it, fiddling with its "are you sure" dialogs. This is a painful way to handle a slip-up. I basically NEVER want to e-mail an element directly from a page. Is there any way I can just delete "Send Image" from the context menu?

    You can remove entries in the context menu with code in the userChrome.css file
    *http://kb.mozillazine.org/userChrome.css
    Some IDs are listed in this MozillaZine Knowledge Base article:
    *http://kb.mozillazine.org/Chrome_element_names_and_IDs
    To find the ID of others you will have to use the DOM Inspector.
    * https://support.mozilla.org/kb/DOM+Inspector
    * https://developer.mozilla.org/En/DOM_Inspector
    * https://developer.mozilla.org/en/Introduction_to_DOM_Inspector
    * DOM Inspector: https://addons.mozilla.org/firefox/addon/dom-inspector-6622/

  • Any way to update the library automatically?

    As amazing as it sounds, I only recently tried Itunes for Windows after using Windows Media Player for years.
    Is there any way to have the library update automatically when I download music files to my music folder the way WMP does, without having to import them?

    The lack of a watch folder is probably to avoid people setting the download folder of thier PvP program as watched. Anything you purchase from the iTunes music store will go directly into iTunes, anything you rip from CDs using iTunes will also go their automatically. Almost all other purchased music is protected WMA which won't even play in iTunes. So the only songs that won't go directly are the fairly uncommon legal mp3 downloads, and all the illegal ones. (and I know about all the legal FLAC stuff out there, but that will have to be converted as well, since iTunes doesn't support FLAC).
    12" PB, Mac Mini (x2), G3 iMac (x3), G4 iMac, G5 iMac, Centris 610, SE30, Mac+   Mac OS X (10.4.4)   3G iPod, iPod shuffle, iPod nano

  • Iphone 3 dropped in salt water. Appears non-functional - won't turn on. Nothing on SIM card -- had that checked. Is there ANY way to retrieve the photos and contacts. There is no backup of them.

    iphone 3 dropped in salt water. Appears non-functional - won't turn on. Nothing on SIM card -- had that checked. Is there ANY way to retrieve the photos and contacts. There is no backup of them.

    leave the phone in rice for >24 hours to see if it will recover
    you can check itunes as well to see if there are backups there from the top of the screen hit edit (itunes on mac) > preferences > devices , and see if a backup is listed
    also check icloud.com to see if you had any of the information backed up there (only possible if have have a 3gs or higher)
    also there are data recovery companies that can recover data even from wrecked hard drives but its not cheap, if your interested in that I would say lookup a company called drivesavers, I believe they are authorized to work on even in warranty iphones
    good luck

  • Is there any way to know the T-code from the screen?

    Hi friemds,
    it s a general question. but I found relavant for posting here.
    I saw our group friens giving some T-codes for spro functions (eg: SNRO, M/06), bbut how to know the transaction from path. i.e. If I go to condition types screen, there I could not see any transaction. is there any way to know the T-code from the screen?

    Hi,
    Listed here are the various ways you can find the list of transaction codes and their usage:
    Use transaction SE11 - ABAP Dictionary:
    Fill in the Database table name and click the Display button.
    - TSTC   table will contain all the Tcodes and
    - TSTCT table will contain all the Tcodes with Texts.
    Once you entered the screen, click in Top Menu - Utilities - Table contents - Display
    If you want to display all the transaction code (total - 57,048) you have to change the Fields: Maximum number of hits to 99999 (default 500).
    or
    Simply goto transaction SM01, although this tcode is to Lock/Unlock any transaction code, you can also view all the tcode available in the R/3 system from here.
    or
    Goto transaction SE93
    There are two ways where you can find the list of transaction codes in SE93.
    Method 1:
    You must be familiar with the starting characters strings for each of the R/3 application modules.
    Assuming you know that most Materials Management transaction codes start with MM.
    In the Fields: Transaction code, type in MM* and press the function key F4
    The list of transaction code starting with MM will be displayed.
    Method 2:
    On the Top Menu, click Utilities - Find - Execute and the first 500 transaction will be display.
    If want to display all the tcodes, make sure you remembered to change the Fields: Maximum no. of hits right at the bottom of the screen.
    I know a particular T Code and can enter and work on it.  How do I know what is the menu path for that T Code?
    Enter Search_SAP_Menu in the command box and when the pop box appears enter, the Tcode and it will give the nodes and menu path. 
    This is helpful only in case of SAP Menu not in case of SPRO - ie IMG.....
    Reward if Helpful,
    Regards,
    Archit.

  • Is there any way to prevent the OS from querying the Superdrive when start

    Just a random question. Whenever my MacBook Pro starts up (either from sleep or a complete/fresh start, the OS queries the drive slot to see if there is a disc present. While this may be normal behavior, it seems to slow down the start up process. (I rarely ever have a disc in the drive). Just curious if this, in fact, normal, or if there's something awry.

    Is there any way to prevent the OS from querying the Superdrive when start
    No
    he OS queries the drive slot to see if there is a disc present.
    How can you tell? Based on the noise it makes?

  • Is there any way to retreive the FileName in the mapping

    Is there any way to retreive the FileName and so that I can use that in my mapping. This is FILE2RFC scenario with NO BPM.
       I am using the adapter specific message attributes in the file sender CC.
    Thanks,
    Ravi
    null

    Yes you can retreive it.  Create an simple user defined function in the mapping and use the following code.
    Imports: com.sap.aii.mapping.api.*;
    Parameter: String filename
    Paramter: String filename;
    filename = fileName + ".DAT";
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
    conf.put(key, filename);
    return filename;
    Or
    Just do whatever mentioned in this weblog:
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    ---Satish

  • Is there any way to repeat the last action on a new selection?

    I'm playing with Pages to see if I can use it instead of Word. I'm very expert with Word, just starting with Pages. Like some things, don't like some, but I think it's worth continuing to play with it to see if it will work for me. One problem I've been having is repeating an action. In Word, if you do something (in the particular situation I just had, it was deleting a row in a table), and then click on another place and do command-Y, it repeats what you did. Similarly, if you format a word as bold, say, and then select another word and do command-Y the second word will also be made bold. I realize the latter can be done in pages by selecting "emphasis" style for the second word, but I couldn't figure out any work-around for deleting the table rows (I tried selecting several non-adjacent rows, but "delete row" was greyed out on the actions menu). Any way to do this that I've missed?

    Thanks anyway. I'm sorry that Apple didn't include a "repeat" keyboard shortcut - going to the Inspector and then the actions wheel and then "delete row" time after time wasn't fun.
    I'm afraid I failed to communicate well about outline format - I didn't mean a bulleted or numbered list, I do know how to do that, but rather making a single character (or in my particular interest a symbol, the diamond and heart suit symbols) appear in outline text format. You can do it by going to format->font->outline, but if I want to do it for several occurrences of the same thing (or a few different things), it's not much fun to do it that way. But maybe I can define a character format that's outline and that will work. Still would prefer to have a keyboard shortcut to apply the character format though.
    Incidentally, while I'm talking about diamonds and hearts, is there any way to change the amount of space that gets put in after the diamond and heart symbols if you insert them using Edit->Special Characters? I write a lot of documents that use those symbols and lines end up unevenly spaced because of the large amount of space below each symbol (I've figured out a partial work-around - I defined a style for "body after suit symbol" that is raised enough to get the line spacing right, but that only works when I want to have a hard return at the end of the line with the suit symbols, since if the lines wrap, both lines have to have the same paragraph formatting. This problem isn't really Pages related - I have the same difficult with Word .

  • Is there any  way to Mask the Name when  a select statement is issued?

    Dear all,
    Is there any way to mask the name .. i mean if User issue a select statement in a customer table the real name should come like ' ABCXXXDEFXXCFXX'... Which is not the actual name?
    e.g if Name: CHIEV SONG MEE
    If user issue a statment select * from customers;
    The Result Should come something Like this:
    Name
    CHXXV SXNG MXX
    Thank You

    user3029023 wrote:
    but it seems there is no option in oracle it self which can be used as there they are saying to get a data masking software which we can't due to some internal issues....I would not say that. How one implements masking depends entirely on the requirements that need to be met.
    For example, schema A owns all the tables. Schema B can be created as a "trusted" schema - in other words, schema A trusts schema B and allows it full access (with grants) to its tables. Schema B implements data masking as views. For each table in A, a view exists in B that implements the required masking. B can now grant select access on these views to user C. User C will see the same data object names in B as it would have if it used A - only, by using the B data objects it uses masked data objects and not the original source data objects.
    Another example - schema Dev is to have all the data objects of schema Prod, but masked where needed. One can use CTAS (Create Table As Select) to create the required tables in Dev with masked values where relevant. This Dev schema can be "refreshed" on weekends by dropping all tables and getting a new fresh copy of production data and masking it - ready for the next week's development cycle.
    If the application use is for example APEX, then instead of coding SQL directly as reporting regions to display, a function is used instead. APEX supports reporting regions where it calls a function and this function provides the APEX run-time with the SQL to execute and contents to render. It is easy to use this approach to implement logic in functions that masked column data depending on who the APEX user is, the security/role attributes of the user, and so on.
    No there is not a single "+mask this column!+" feature in Oracle.. but that does not mean that such a feature is not supported and cannot be implemented. Oracle has a very comprehensive and rich set of tools - more so than most (if not all) other RDBMS products.
    It is up to the architect/designer/developer to use this toolkit in creating a system that meets the specific requirements at hand.

  • Is there any way to identify the particular socket connection is closed ?

    Is there any way to identify the particular socket connection is closed or not ?
    Any methods ???
    How can the program knows the connection is lost or some thing ...
    Is the socket throws some excpetions when there is no active connection ???
    namanc

    If you get an IOException when you try to use the socket, the connection was obviously closed.
    The correct way for an application to know if the socket was closed is:
    1) the server sends a message indicating that the socket should be closed
    2) the client closes the socket itself

  • Is there any way to get the height/width of an image before importing it in the indesign document.

    Hi All,
    I need to obtain an image's attributes such as dimensions (height, width in pixels) without placing image in indesign document.
    I have full path of the image (say abc.jpg is stored at c:\my pic\abc.jpg).
    I have obtained the IDFile for this image, tried getting size using GetFileSize() which correctly return size in bytes.
    Is there any way to get the height/width of image without importing it in the indesign document.
    Please, give me some hints. I have spent quite a lot time digging in CHM. I have searched in FileUtils, IDFile API's but found no method which serves this purpose.
    At this point I am clueless where to search next.
    Any help will be appriciated.
    Just a point to mention, I am able to get image height and width for an image in indesign doc though Its not my requirement.
    Thnx,
    D.

    You might be able to examine the contents of the PlaceGun after calling kImportAndLoadPlaceGunCmdBoss without actually placing the image in a document. Not sure, but would be worth looking at.
    Otherwise you will probably have to write platform specific code, ideally with a generic platform-independant wrapper (see SDKSamples/paneltreeview/PlatformFileSystemIterator).
    For the Mac, look at CGImageGetWidth() etc., not sure what the best option is for windows.
    Perhaps Quicktime could provide you with a platform independant solution.

Maybe you are looking for

  • HT1883 using the apple hardware test

    Lion was downloaded from app store so I have not install disk and option D does not bring hardware test app as the support document suggests. Using an itel imac GH

  • DB startup failed with return code 12

    Hi, we have installed ECC6.0 on cluster in HPUX plotform and oracle database. Some temp. problem the server was swithced off automatically. After that i tried to start server but not started. first i started lsnrctl start in ora user in db host. then

  • Nokia N95 8gb cannot hear anything when I call out...

    When making calls to other mobiles I cannot hear the ringing or the other person but they can hear me. This is very frustrating and costs me a lot of money because it takes four calls to get it to work correctly. I have tried switching to loud speake

  • Photo in MSS

    Hi, We have implemented MSS 6.1 on SP12. Our problem is that when loading the employee review page, a popup window is showed up asking for user/password. when entering the user and password of the R/3 system, the photo is displayed correctly. Does an

  • Unable to install update even as Administrator

    I keep getting the "The update could not be installed. Please make sure there are no other copies of Firefox running on your computer, and then restart Firefox to try again." message. My solution has been to stop Firefox and then use Internet Explore