Want to make the sql insert run faster

Hi,
Need a small advice to make an insert statement of 7 million run faster.Currently taking 30min +.What is the difference between the following methods?which is the best method to adopt?
1)Drop Table Single
2)Create Table Single NoLogging
As
Select * From table1
Union All
Select * From table2
Union All
Select * From table3
Union All
3)Enable Constraints
or
1)Truncate table
2)disable constraints
3)INSERT /*+ APPEND */
INTO table
Select * From table1
Union All
Select * From table2
Union All
Select * From table3
Union All
4) Enable constraints
Thanks

Hi,
>>What is the difference between the following methods?
As far as I know direct-path load will bypass the buffer cache and will write directly to blocks within the tables you are loading. I'm no sure about CTAS method ...
SQL> alter system flush shared_pool;
System altered.
SQL> alter system flush buffer_cache;
System altered.
SQL> set timing on
SQL> create table tt1 nologging as select table_name from dba_tables;
Table created.
Elapsed: 00:00:36.59
SQL> truncate table tt1;
Table truncated.
Elapsed: 00:00:00.23
SQL> alter system flush shared_pool;
System altered.
Elapsed: 00:00:00.04
SQL> alter system flush buffer_cache;
System altered.
Elapsed: 00:00:00.54
SQL> insert /* +APPEND */ into tt1 nologging select table_name from dba_tables;
23480 rows created.
Elapsed: 00:00:02.89Cheers
Legatti

Similar Messages

  • I want to use the SQL query IF EXIST to update or insert data in a ms access table, but it doesn´t work

    Hi,
    I want to use the SQL query IF EXIST to update or insert data in a ms access table, but it doesn´t work
    (fault number -2147217900)
    I want to search for a value in a ms access table , if it exist i want to update it, if not i want to insert a new row.
    Working with LabView 7.1, database con. toolset.
    Who can HELP?
    Thanks a lot
    Marco

    Hello,
    I think that If exist is not a standar SQL command (I know it exists I think in Oracle and SQL server), MS access doesn't support it, so I think the best way to do it is first make a Select and then either an Update or an insert, sorry...
    Paulo

  • I have an old macbook which is running on OS X 10.6.8.  I want to make the switch from moblie me to icloud.  I went to download the new OS X Lion so I can connect and it is telling me I need a Core 2 duo.  I only have a Core duo on this mac.  What to do?

    I have an old macbook which is running on OS X 10.6.8.  I want to make the switch from moblie me to icloud.  I went to download the new OS X Lion so I can connect to the icloud and it is telling me I need a Core 2 duo.  I only have a Core duo on this mac.  What to do?

    Unfortunately there is little you can do, Lion will not run on your machine.
    However it is possible to access some features of iClould while staying with SL. If you go to iCloud you will see the web interface for the cloud.
    Some but not all functionality is here. Check it out and see if it meets your needs.

  • How can I make my mac mini run faster? Everytime i try to download a internet page I get the circle with colors. It takes too long. Help

    How can I make my mac mini run faster. Loading internet pages is too slow

    i have the same problem...it can take 10-15 seconds to just switch tabs..i think i will solve it by taking mine back

  • How to make Adobe Flash Player run faster

    how do you make adobe flash player run faster my child has a game and the game is running to slow to play/use some of the features
    please please help

    Welcome to our community
    I see this is your first post here. I'm guessing that you aren't using Adobe Captivate.
    I'm unsure exactly how you managed to end up posting your question here, but you seem to lost and unsure exactly where to post.This forum is where we help one another with the Adobe Captivate product.
    Click the link below to visit the main forums landing page. From there, you will either click an icon or click a drop-down list where you may choose from a gob of different forums. I'm guessing you want the forum for Flash Player.
    Click here to view
    Cheers... Rick

  • I want to make the switch from 5 iphone5 to pay the difference and how much?

    I want to make the switch from 5 iphone5 to pay the difference and how much??he's locked icloud already bought it so now I'm not using as too expensive and thought this possibility .... you guys can help me ... thank you for it helped

    Unfortunately there is little you can do, Lion will not run on your machine.
    However it is possible to access some features of iClould while staying with SL. If you go to iCloud you will see the web interface for the cloud.
    Some but not all functionality is here. Check it out and see if it meets your needs.

  • Cannot resize the albums in album view in Itunes 11.  For those of us with large libraries (160gb), this is extremely frustrating.  I want to make the artwork smaller.  This seems to be a serious oversight.

    Cannot resize the albums in album view in Itunes 11.  For those of us with large libraries (160gb), this is extremely frustrating.  I want to make the artwork smaller.  This seems to be a serious oversight.

    I agree.
    It was very useful to reduce everything to small and quickly scan down looking for missing artwork.
    Particularly useful when I only connect to the machine with iTunes via screen sharing, so everything can be a bit slower to scroll through at times.
    In fact, itunes 11 when used purely as a server for Apple TV etc is a downgrade in usability IMO, as they've got rid of some of the useful views that helped me manage my library remotely.

  • I want to use the SQL Toolkit of NI and SQL Server as my databasis on a server. Do I need to install a client in each computer I want to handle the data into SQL tables or I need only a ODBC driver?

    I want to use the SQL Toolkit of NI and SQL Server as my databasis on a server. Do I need to install a client in each computer I want to handle the data into SQL tables or I need only a ODBC driver?

    You only need the ODBC driver on each computer. If you are distributing the SQL Toolkit app as an executable and do not install the whole toolkit on each computer, you'll need the SQL Toolkit support files. This is about a dozen files. You can get the list at http://digital.ni.com/public.nsf/websearch/b814be005f9da9258625658700550c75?OpenDocument.

  • I would like to be able to size images by kilobytes instead of pixels--is this possible?  I use I-Contact which requires a maximum of 70kb per image.  For best quality I want to make the images as close to 70 as possible.  Currently I choose a size of 300

    I would like to be able to size images by kilobytes instead of pixels--is this possible?  I use I-Contact which requires a maximum of 70kb per image.  For best quality I want to make the images as close to 70 as possible.  Currently I choose a size of 300 pixels on the shortest side but sometimes this gives me an image of slightly greater than 70kb and sometimes the image is just 30-40kb.  Is there a way to be more precise in reaching but not exceeding 70 kb?

    That is not a feature of iPhoto - suggest to Apple - iPhoto Menu ==> provide iPhoto feedback.
    You can opnly resize using the available options and file size is not one of them
    LN

  • VERSIONS in tcode ME22N I want to MAKE the COMPLETED screen mandatory.

    In VERSIONS in tcode ME22N I want to MAKE the COMPLETED screen mandatory.
    When I press F1 it shows PROGRAM RM_MEPO_GUI SCREEN 0014, when I double click on Screen 0014 it gives message Screen Does not exist.
    Please help, correct answer will be highly rewarded.
    Thanks,
    LALIT

    Hi,
    Goto se80 enter program RM_MEPO_GUI SCREEN to see if screen 0014 exist.
    Cheers.
    ...Reward if useful.

  • I currently have a licensed version of CS6 for my PC but I want to make the switch over to MAC soon.  Is there a less expensive way to have CS6 without having to buy it all over again?

    I currently have a licensed version of CS6 for my PC but I want to make the switch over to MAC soon.  Is there a less expensive way to have CS6 without having to buy it all over again?

    Order product | Platform, language swap
    Mylenium

  • On a MAC (10.6) I want to make the icons/tool bar text bigger. How???

    Simple. I want to make the icons/tool bar text bigger. i.e., the words "Home" "Reload" "Stop" "History", etc in toolbar are way, too small. I need bigger icons, toolbar text, and bigger text on TABS. How can I do this?

    See:
    *Theme Font & Size Changer: https://addons.mozilla.org/firefox/addon/theme-font-size-changer/

  • How to monitor the sql statement running?

    Hi ,
    i need to check the status of the sql script running on the database.
    what is the way to chect that?
    if the particular query is taking very long time what might be the reason?

    Since you are [relatively] new at this ..
    the recommended technique will change based on version of Oracle database, the edition of the database, the options of the database and the operating system.
    For example, I would normally suggest a newbie with Oracle Database 10g or 11g Enterprise Edition to use the Enterprise Manager Diagnostics Pack. A demo thereof is on the Oracle BY Example site (http://otn.oracle.com) - look for Tutorials towards the top.
    As for why ... it's waiting on things. Which things may depend on the database, the operating system, the disk subsystem, the network subsystem, memory allocation, sorting, other load, and even how well or badly the SQL statement was written.

  • I want to make the page resize to fill browser

    Hi There
    I want to make the page of my muse site resize to fill browser
    http://fresh0401.businesscatalyst.com/index.html
    So if its big screen the site is big but if the screen is smaller the site is smaller
    Like this - http://www.tropicana.co.uk/
    Cheers

    Hi thomasatherton123
    The site : http://www.tropicana.co.uk/ is based on responsive layout, Adobe Muse currently does not support Responsive layout.
    It has already been logged as a feature request : http://forums.adobe.com/message/5876129#5876129
    I would suggest you to add your vote and valuable comments to the post.
    Regards
    Anshul Sharma

  • I want to make the keyboards numerical keys shortcuts for buttons.

    I want to make the keyboards numerical keys shortcuts for buttons, without a modifier key is this possible ? e.g. press '1' on the keyboard button 1 is pressed on the GUI.

    The number keys are not valid hot keys for our controls. The easiest workaround would be to use fhe F keys instead (F1 for button 1, etc.) However, if you are set on the number keys you could implement this with a panel callback. You could have a panel callback that monitors all keypress events and then, depending on the key pressed, calls the code that would be called with a button press of the button for that key.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

Maybe you are looking for

  • Need help configuring Excel Services

    I've configured both the Excel Serives and Secure Store Target applications and continually receive the following error message when trying to view the Simple Projects List sample report: An error occurred while accessing application id ProjectServer

  • Delete of my account - skype name from skype direc...

    Hello. I am wish to delete my account (Skype Name from the Skype directory) I have already taken all steps described in: 'Can I delete my Skype account?' ...deleted all personal information (name, e-mail, etc...) I also tried to contact the customer

  • Dreamweaver Auto update deleted my Snippets

    I just received an update from Adobe for my Dreamweaver.  Since then my custom snippets folder has disappeared from my snippets collection.  I must have a full years worth of Snippets in there that i use all the time. Infact I'm quite lost without th

  • Cant get iphoto to be default for opening photo cd

    Whenever i open the system preferences and try and change the actions when a picture cd is loaded to open with iphoto i get ignore and cant seem to change the option tried deleting preferences file but still get the same option wont chance from ignor

  • Adobe download manager wont work

    everytime i open it it says download error, Help (windows 7 64 BIt)