How to Speed Up inset and Update?

I have a script which WRITES records from one table to
another .... and table has records more than 600,000, can
anybody advise me how to speed up this process so that its takes
less amount of time ... it takes about 3 hours to insert records
into another table ..... kindly advise

One of the main factors affecting the insert speed wil be the existance of index and constraints on the target table. If you can disable constraints and drop indexes before the insert, then enable/recreate them afterwards you might find it more efficient. In particular you can create the indexes in parallel, and also do the insert n parallel.
Are there already rows of data in the target table?

Similar Messages

  • How to add new row and update existing rows at a time form the upload file

    hi
    How to add new row and update existing rows at a time form the upload file
    example:ztable(existing table)
    bcent                      smh            nsmh         valid date
    0001112465      7.4                       26.06.2007
    0001112466      7.5                       26.06.2007
    000111801                      7.6                       26.06.2007
    1982                      7.8                       26.06.2007
    Flat file structure
    bcent                       nsmh         valid date
    0001112465     7.8     26.06.2007  ( update into above table in nsmh)
    0001112466     7.9     26.06.2007  ( update into above table in nsmh) 
    000111801                     7.6      26.06.2007 ( update into above table in nsmh
    1985                      11              26.06.2007   new row it should insert in table
    thanks,
    Sivagopal R

    Hi,
    First upload the file into an internal table. If you are using a file that is on application server. Use open dataset and close dataset.
    Then :
    Loop at it.
    *insert or modify as per your requirement.
    Endloop.
    Regards,
    Srilatha.

  • Trying to update to ios6. Download it fully then it finishes and says the connection timed out and tells me to check my network settings. How do I fix this and update my iPhone?

    Trying to update to ios6. Download it fully then it finishes and says the connection timed out and tells me to check my network settings. How do I fix this and update my iPhone?

    Just what happenede when you signed out and signed back in in Settings>iTunes and App Store? What does "fail" mean?

  • How do I order ResultSet AND update? My attempts yield ORA-00907 or  ORA_01732

    I am using JDev 9.0.3 to create an application I run using Java 1.3.1 and Oracle 9.2.0.1.0 JDBC drivers.
    I want to select the rows of a single table ordered by a "sortorder" column, iterate through the records, update as required, and occasionally move to the insert row, insert a record, and move back to where I left off.
    Can anyone supply the recommended way to do this?
    Now if I drop the "order by" clause/requirement I can do this just fine.
    However, if I add the "order by" clause (as below) I get error ORA-01732 "manipulation operation not legal on this view" when issuing rs.insertRow() (note NOT moveToInsertRow(), updateLong(), etc. but the actual insertRow() )
    myconn.prepareStatement(
    "select rowid, temptopsort.* from temptopsort order by sortorder"
    , ResultSet.TYPE_SCROLL_INSENSITIVE
    , ResultSet.CONCUR_UPDATABLE
    I get this same result with ResultSet.TYPE_SCROLL_SENSITIVE, with JDK 1.4.1 (and appropriate Oracle ojdbc14.jar, etc.)
    So again my questions is HOW DO YOU ITERATED THROUGH AND ORDERED RESULT SET AND UPDATE/INSERT?
    Thanks
    R.Parr
    Temporal Arts

    Thomas,
    Oracle was the first RDBMS I used (way back, around the year 1990, I believe). Several years later, I moved from Oracle to Informix. It took me a long time to realize that, although Informix and Oracle are both RDBMSs, they are very different. What I needed to do was forget how I used to work with Oracle, and learn how to work with Informix.
    Naturally, before I came to this realization, I spent a lot of energy cursing Informix and wondering, "why doesn't it work like Oracle does?"
    However, after I made the "mind-switch", and learned to do things the Informix way, everything was smooth sailing (and very enjoyable, too :-)
    So I'm only guessing, of-course, but I get the feeling that you may be encountering a similar reaction to me, now that you are migrating from "MySQL" to "Oracle".
    The usual advice I see given to people in (what I assume to be) your situation, is to peruse the Oracle documentation and/or the book "Expert One-on-One Oracle" by Thomas Kyte.
    Good Luck,
    Avi.

  • How multiple users can open and update it same time in Sharepoint 2010, excel file

    we are using SharePoint 2010, multiple users can open and update the file at same time in SharePoint, I have searched a lot and
    read it, some suggestions were can create the file as share work book and then save on Share point and other were its supported only with Office web Apps, Excel Web App, we don't have office Web apps or excel web app, is there any other suggestion,
    any help will be great, thanks in advance

    Hi,
    You need office web apps for co-authoring, see Software version requirements for co-authoring in SharePoint 2013 and SharePoint Online section in below link -
    http://technet.microsoft.com/en-us/library/ff718249(v=office.15).aspx
    and
    http://office.microsoft.com/en-us/sharepoint-foundation-help/document-collaboration-and-co-authoring-HA102772333.aspx
    Edit: Link for SP 2010
    http://technet.microsoft.com/en-us/library/ff718249(v=office.14).aspx
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • How I fixed iTunes 5 and Updater 2005-09-23 problem

    After a frustrating couple of weeks I have music back on my iPod! (BTW, I drove to an Apple store 60 miles from home and the Genius told me that if this was a major problem Apple would shortly be releasing another update to fix what this update broke. I would have to just wait for Apple to release some more new software.)
    I didn't like that advice. Since I knew that everything worked just fine before the updates I decided to "go back". You can't download old releases over new ones so here is what I did.
    1. I copied the iTunes music folder to my desktop just to be sure I wouldn't lose my music.
    2. Then I deleted everything connected with iTunes and iPod (including Quick Time) off my computer.
    3. Then I used the CD that came with my iPod to re-load everything.
    4. iTunes did not populate with my music so I dragged the music folder into my library. It was still in My Music as well as on the desktop.
    5. I connected my iPod and everything worked perfectly!
    Yippee!

    Correction. There are other problems with iTunes and the iPod 2005 update. First I tried to download the iPod software update, and then when I went to install it, a message came up saying that there is nothing to install. So I quit iTunes 5.0, and went to the Utilities folder.
    There I chose the iPod updater. I assumed it supported the iPod that has the touch wheel and dock connector. I go to update my iPod later to find that the application I chose to update it does not support my model. This is very frustrating!!! On the website it says it supports and updates all models!!!! I am not going to the Apple store to buy a new iPod just so that I can upload my purchased music. Something has to be done about this!
    Any suggestions?
    Frustrated iPod owner
    After I tried to update my iPod it erased all my music. And now it is not even connecting to the computer or responding. It is almost as if the battery died, and there is nothing I can do to bring back the music.

  • How to execute ATP check and update schedule lines for existing sales order

    Hello all,
    After stock quantity has been updated, we’d like to perform ATP check and update schedule lines for sales documents which have not been delivered yet.
    Is BAPI_SALESDOCUMENT_CHANGE useful to do so?
    If so which fields should I set ‘X’?
    At the moment, I called BATCH INPUT and execute ATP check.
    But I'm wondering if this is not a smart way.
    Thank you
    Yuko

    Hi arnab
      one way of achieving your requirements is
    after creating the sales order you can execute the SALEs order MRP using MD50 transaction enter the order # and MRP control parameters 1,3,1,2. and execute.
    Ensure the following before MRP.
    1. All the master data are maintained for the schedule line creation for the components ( Source list, Scheduling agreements)
    2. Material master with valid MRP data.strategy group having MTO strategy.
    after sales order MRP you will get the schedule line created for the components
    also MRp will create the cpacity requirements as we run the MRP with Lead time scheduling.
    Hope this helps
    SK
    Reward your points

  • How to speed up applications and Mac OS X start?

    hello there, I find my applications start too slow on my Macbook pro Core Duo despite a T7400 Intel processor, 2,16 Ghz .Is Mac OS X for Intel Core Duo really optimized and his applications too? How can I speed up the performance of applications? I'm newbie. I 'd like to have advice, reports and suggestions. Thanks

    Application and OS start times are not uniform. Due to heavy use of caching, start times are initially long, but get shorter as time goes on. For example, if you install OS X or a system update that changes the system, the next restart may be very long or may involve a double restart. The next time you restart will be faster, and subsequent startups will be faster still. This is because OS X will progressively build up a startup cache of the items that start up, so they don't have to be loaded from nothing each time. OS X startup times should get shorter until you modify the system again due to an update or installing a new kernel extension.
    Applications are similar. Photoshop, for example, takes a long time to start the first time after a system restart. If you exit Photoshop and then start it again, the second time starts up faster. Again, OS X is caching the application data in RAM, but that gets thrown out if you restart. If you restart your computer, Photoshop startup time is back to the longer first-time duration.
    My Mac laptop is much older than yours, but it starts up in 35 seconds and applications can start in a few seconds if I've already started them once during the current session. I, and many other Mac users, avoid restarting the machine unnecessarily. Because OS X is based on Unix server software, it is designed for long times between restarts.
    I will typically restart or shut down my Mac every week or two. This gives you two advantages we have been talking about: You never wait through the startup time because you are only waking it from sleep, and it means the caches for the current session can stay in use and not get thrown out on restart, so application startup times stay short.
    Try using your Mac by simply sleeping it when you don't want it on, instead of shutting it down, and see if that makes any difference. If it does not, there is a possibility that you don't have enough RAM for the types of applications you use.

  • How to reinstall remote desktop and update

    Somehow I bunged up my ARD. So I followed instructions to completely remove it and I want to reinstall. Problem is, mine is an ancient copy --- version 3.0  I have updated all along using Software Update. However, I seem to be in a loop as it won't complete the install so I can update. I'm on 10.10.

    Hi Stephen Spector,
    Welcome to the Apple Support Communities!
    The attached article explains how to install and run Apple Remote Desktop in Yosemite. Please use the article as a reference for information on how to complete this process.
    Installing Apple Remote Desktop 3.3 in OS X Lion or later - Apple Support
    Cheers,
    Joe

  • I'm told my Adobe Reader plug in is blocked because it's a old version, so how do I delete it and update to newer one?

    I currently have a plugin Adobe Reader 9.1.0.163 installed. It says it is known to be unstable and should be updated. I also got a message that says Adobe Reader 9.5.1 and lower has been blocked for my protection. So how do I go about UNINSTALLING it to update the new version?

    What version of Adobe Reader or Adobe Acrobat do you have? Updating that should take care of the plugin automatically. If it doesn't, we can detail how to track down the old plugin and remove it.
    To update your Adobe product, open it directly (outside Firefox) then on the Help menu, choose Check for Updates. If it claims to already be up-to-date, could you re-open the Help menu and choose the "About" item to check your current version number?
    After updating Adobe Reader/Acrobat, you may need to exit and start Firefox up again before the change is detected. Any improvement?

  • How do I  save project and update changes in MAC and extternal drive

    I make music on my IMAC> I have an extrenal hard drive for extra storage and backup.
    Say I make Song A and save it onto my docs in the Mac.....how do I create a backup of that project to be placed in the exteranl drive, and in future sessions, I will make changes made to SONG A, and be able to update the backup copy with the changes to the song?
    Similarly, I want to have all my pictures in the MAC and backup of all pictures in the drive. But when I bring ine new pcitures I want to be able to store new pics in both MAC and external drive in one snap
    thaanks
    thanks

    One solution is to wait until next year for Leopard. The Time Machine features seems to do what you want.
    I doubt you can set up a RAID-1 volume with an external drive, nor would you really want to given the slower interface to the external drive.
    That only really leaves backup software. I'm sure there are lots of free or inexpensive backup/synchronization tools. I use RsyncX, but it's not the most intuitive tool for the uninitiated.

  • How to read XML file and update the data in MS CRM 2011?

    Hi Folks,
    Can anyone please help me finding some references to read XML files and push the data to MS CRM 2011 preferably by using a console application.
    Please let me know if any ways of handling it in simple ways.
    Thanks,
    Sri

    HI,
    How to read XML file:
    https://social.msdn.microsoft.com/Forums/en-US/5dd7261b-86c4-4ca8-ba87-95196ef3ba50/need-to-display-xml-file-in-textboxes-edit-the-data-and-save-the-new-xml-file?forum=csharpgeneral
    How to work with CRM:
    ClientCredentials credentials = new ClientCredentials();
    credentials.Windows.ClientCredential = new System.Net.NetworkCredential("USER", "Password", "Domain");
    Uri uri = new Uri("http://server/Organization/XRMServices/2011/Organization.svc");
    OrganizationServiceProxy proxy = new OrganizationServiceProxy(uri, null, credentials, null);
    proxy.ServiceConfiguration.CurrentServiceEndpoint.Behaviors.Add(new ProxyTypesBehavior());
    IOrganizationService service = (IOrganizationService)proxy;
    //using "service" you can create, update and retrieve entities.
    More information here about service functions:
    https://msdn.microsoft.com/en-us/library/gg328198.aspx

  • Office 365 Shared External Contacts - how do I delegate Edit and Update permissions to users

    Hello
    Office 365 Shared External Contacts - how do I delegate Create/Update/Delete/Edit permissions to users who are not Admins? These Contacts are in the Global Address List. Not Outlook personal Contacts. O365 Small Business Premium

    Hi,
    To grant users delegate permissions, open Outlook, go to FILE -> Info -> Account Settings -> Delegate Access -> Add -> Search and add the user, click OK -> Edit the permission of the user. We can set different permissions in the dropbox
    of Contacts.
    There are four permisssions for Contacts:
    1. None
    2. Reviewer (can read items)
    3. Author (can read and create items)
    4. Editor (can read, create, and modify items)
    Select the permission that you want to grant the user.
    We can also modify the permission later in this section.
    I hope the information is helpful, if I misunderstood anything, feel free to correct me and provide more detailed description of the question.
    Regards,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • HT4623 I need to download iOS but there is no update in my settings. How can I go ahead and update my iOS???!

    I need help updateing my iOS. I need ios6. But I go into settings and there are nonupdates. How can I get iOS 6????

    Updates over the air didn't become an available feature until iOS 5, so if you don't have iOS 5 or later, that option won't be in Settings > General. You will need to update using iTunes on your computer.
    Update your device using iTunes
    Ensure that you're using the latest version of iTunes.
    Connect your device to your computer using the included USB cable.
    After iTunes opens, select your device when it appears in iTunes under Devices.
    Click "Check for Update" in the Summary pane to check for available updates.
    If an update is available, iTunes prompts you to download and install the update. Do not disconnect your device until the update has finished.
    Or you can use http://support.apple.com/kb/HT1414?viewlocale=en_US

  • How can I make playlists and update ipod from music stored on a NAS?

    I recently bought a new computer and before doing so, I transferred all my mp3/music files onto my NAS device.  I am able to share that music and play it from my Itunes, but I cannot make playlists from it or update my ipod.  I tried searching and following what some people have said with no luck.  Please help, as I'd like to keep all my music files on the NAS and not have them taking up space on my local computer hard drive.

    Read my blog :
    [Create and add a TABLE in iWeb|http://www.wyodor.net/blog/archives/2010/01/entry_297.html]
    [More about a TABLE in iWeb|http://www.wyodor.net/blog/archives/2010/01/entry_298.html]

Maybe you are looking for