Takes a lot of time using forall delete

Hello

I'm insertions and deletions of rows via forall. Insert taking less time to insert the lines but by coming to

delete, it takes more than 5 days, a lot of time to remove 18.5 millions of rows in a table using forall.

the main table with 70 million lines.

the code is...

Get the ref_typ COLLECT LOOSE l_id_tbl LIMIT 10000;

Start

FORALL i in 1.l_id_tbl. COUNTY

INSERT INTO change_test (id,

history,

transaction,

date)

VALUES (seq.nextval,

"CHANGE_HIS,"

l_id_tbl (i),

SYSDATE);

exception

while others then

null;

end;

Start

FoRALL i in 1.l_id_tbl. COUNTY

DELETE FROM change_his

where id = l_id_tbl (i);

exception

while others then

null;

end;

end loop;

so please give me a good solution to remove lines of less than 5 days...

> exception when other then null;

Seriously. You want to REMOVE the lines, even if they did not get inserted? You don't care to if they are deleted?

Tags: Database

Similar Questions

  • Installation... Using Windows 7 64 bit - Install takes a LOT of time... is this normal?

    Installation... Using Windows 7 64 bit - Install takes a LOT of time... is this normal?   It's been over an hour...

    then you have probably lost connectivity.  If you are using a wireless connection, try a wired.

    If necessary, you can use a download with direct download manager,

    Downloads available:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

  • Firefox has become very slow. It takes a lot of time to load any website. I reinstalled FF but the fleeting problem.

    Firefox has become very slow. It takes a lot of time to load any website. I reinstalled FF but the rest of the problem.
    As a test, I downloaded Chrome and it is much faster.
    But I love FF and would be very happy if you can help me solve this problem.

    Hi Reos,

    When you reinstall Firefox it always uses your old profile with all the old things that you had. That said, you're lucky, there is a new feature that lets you "Reset" of Firefox. This will remove some of the pieces that might cause problems while it keeps your bookmarks and other important things safe.

    Check it out and let me know if it works: Refresh Firefox – reset the parameters and modules

  • When I turn on my computer until the start menu is ready before I click on internet, it really takes a lot of time

    When I turn on my computer until the start menu is ready before I click on internet, it really takes a lot of time. Why?

    Hello

    Did you do last changes before the show?

    I would like the season you follow the steps in the link and check if that helps.

    Method 1: Perform a boot clean and chcek if it helps.

    How to configure Windows XP to start in a "clean boot" State

    Note: Once the diagnosis has been made, make sure you try the step to configure Windows to use a Normal startup state in the article in order to reset the computer as usual.
     
    Method 2: You can also check out the link and check if it helps.
  • My win 7 laptop HP takes a lot more time at the stop

    MY LAPTOP ABOUT 4 WEEKS IT Y HAS SUDDENLY STARTED TAKING AGES TO STOP

    CONFIGURATION SYSTEM USED IVE, DISK CLEANUP, DEFRAGMENTATION IT REGUALLY.

    CAN ANYONE ADVISOR AS TO WHETHER BACKGROUND PROGRAMS COULD BE INITIALLY - AND HOW DO I FIND AND REMOVE?

    MY LAPTOP RUNNING WINDOWS 7 HOME PREMIUM SUDDENLY TAKES A LOT OF TIME DOWN

    Here's one thing you can check which will give information in some cases: http://windows.microsoft.com/en-US/windows7/Why-wont-my-computer-turn-on-or-off-quickly

  • Table statistics generation takes a lot of time in 10g R2 (10.2.05)

    Hello Oracle Experts!

    Need your urgent help...

    Question - generation of Table statistics takes a lot of time in 10g R2 (10.2.05) and even ends in mnts in a different database. As well the database are hosted on the server VM, RAM, CPU, storage and database initialization parameters are the same.

    Table - size 34 GB

    Name of the table - SLPDOCTAX

    SQL - exec dbms_stats.gather_table_stats (ownname = > 'FAST', tabname = > 'SLPDOCTAX', estimate_percent = > 30, cascade = > true, level =)
    (> 5, method_opt = > 'for all COLUMNS INDEXED' granularity = > 'ALL');

    Measures taken so far-

    1. 1) checked the IO by the dd, no problems on the side of DISK command
    2. 2) use memory and CPU as normal

    Please advise what measures must be taken to solve this problem

    Dear all,

    We have identified the problem... It was the index and even has been resolved by rebuilding the index.

    Rgds

    Farvacque

  • Windows 7 and update MSSE take a lot of time

    Hi, I have reinstall my windows 7. But, when I try to check the updates he comes to see the verification of updates for a long time. I'm trying to update Microsoft Security essentials too, but it just search for updates and it takes a lot of time too. But, when I restart the Windows Update service, and then start the download of the Microsoft Security Essentials updates and install it, but not for windows, it keeps looking for updates when I try to update. Microsoft Security Essentials does not download the update that automatically even my computer is connected to the internet, I have to press the Refresh button on MSSE, and sometimes I need to restart the windows update service too.

    When I do the update for windows for the first time, Windows update tell me to install the Windows Update Agent 7.6.7600.320. And install it.

    Please, please help. Any who...

  • I downloaded Blacklight compensation via torrent, but it takes a lot of time to patch. Can I use steam to update?

    I installed all the existing manual patches including patch 0.983 but the Launcher starts always patch and it's very slow. This game is also available on steam so I thought I should download steam and then install blacklight compensation (which I downloaded from torrent) in the folder "steamapps" and later in the download folder. Steam use the code 209870 for blacklight compensation and I then renames the folder 'blacklight compensation OB' at 209870. Then when I start to download the game on steam it must first check the existing installation files and will detect the game. So I will bypass the download stage and the steam will just update the game to the latest patch automatically and it would be much faster to use the Launcher.

    I'll be able to play the game this way?
    «I'm NOT cheating by avoiding buying the game because it is a 'free to play' FPS.»
    I tried my "fix", but it did not work. So I downloaded the game on steam and it was already up to date. Game works fine and now iam also enjoy. In any case thanks for the reply :)
  • Mac Pro book takes a lot of time to load Web sites

    MY Mac Book Pro purchased last Aperil began to take a while to load Web pages. Photos and videos on the pages add all the time.

    The computer is a MacBook Pro, retina, 15 inch, mid-2014. 2.5ghz Intel core 17.

    16GB 1600 MHz DDR3 memory

    Mail and all other functions work fine.

    My wife MacBook works fine.

    Any ideas?

    Go step by step by step and test.

    1. turn off the power to the router. Unplug it from the wall. Wait a while.

    Plug it in, back to the wall. Turn on the router. Wait for all lights are light up properly. It will take a while.

    Restart the computer.

    Boot mode safe.

    https://support.Apple.com/kb/PH18760?locale=en_US

    2 remove Caches.db

    Close all windows and close all applications.

    Hold down the 'option' key, then click on the "Go" menu in the Finder menu bar.

    Select 'Library' in the menu dropdown.

    Library > Caches > com.apple.Safari > Caches.db

    Right-click on the Caches.db file and select "move to trash".

    Close the windows.

    Restart and restart Safari.

    3 empty Caches

    Safari > Preferences > advanced

    Tick the box "Show develop menu in menu bar."

    Develop menu will appear in the Safari menu bar.

    Click on develop and select 'Empty cache' in the menu dropdown.

    4. remove the Cookies

    Safari > Preferences > privacy > Cookies and other data from the website:

    Click on the button "Details".

    Delete all cookies except those from Apple, your internet service provider and the banks.

    5 Disable Extensions and test them.

    Safari > Preferences > Extensions

    Uncheck 'Enable the Extension' and test.

    Enable the Extensions one by one and test.

    To uninstall any extension, select it and click the "Uninstall" button

    6. remove the test and com.apple.Safari.plist file.

    Empty the trash.

    Quit all applications.

    Hold down the option key and click on the "Go" menu in the Finder menu bar.

    Select 'Library' in the menu dropdown.

    Library > Preferences > com.apple.Safari.plist

    Right-click on it and select "place it in the trash.

    Close the Finder window.

    Turn it back on.    Restart Safari.

    If this does not help, "put back" the com.apple.Safari.plist

    Right click on the trash icon in the Dock, then select 'open '.

    Right-click on the com.apple.Safari.plist and select 'Put Back'.

  • Satellite A300-1ME - startup takes a lot of time

    Hello!

    I bought a Satellite A300-1ME a week ago and I had a few problems.
    When I arrived home, I picked up the phone and connected to the power adapter and the Vista installation. Then, with the loan of PC, I uninstalled Google Desktop and toolbar Google which for me are useless and is preinstalled.

    Then I rebooted and surprise: after the Windows Orb during the connection, it came to a wait... screen, and he stood here for an hour, so I did a hard reset and the same story, I can t reach the login screen.

    Started on mode without failure all well, done a restoration of the system, reboot and nothing the same problem. Started by using the recovery system in the laptop and tried to make another system of recovery here. He started and when it reached the end this game me an error because he says ' there is zero of the file to restore "or something else. I used the other recovery system which format and reinstall Windows. Once again, on the desktop, I rebooted and the same thing: wait...

    Went to the dealer the day of purchase, and they gave me another. Now, it seems to work well, but the boot time of the Windows Orb on the screen to login, it takes about 1 minute in the best of cases, also uninstalled McAfee Security Suite and nothing.

    So I would like to know if this is normal due to being a laptop, well as my other PC with 8 years and with Vista is faster when connecting (not not to use it). I think it may be because of all the drivers and all that which is preinstalled, but I fear to uninstall Google Desktop on it and my computer being useless new m.

    And put XP inside, what guarantees mean? Will I have lost if I install XP with all the drivers of Toshiba and the SATA driver that I found for this laptop?

    Thank you very much for reading.

    Hello!

    Are already in the forum discussion on this topic. You will find, if you are looking for a little bit.

    You can make Vista faster, if you defragment the HARD disk, remove the software that you don't need, configure the program sartup and disable services.
    Here is a good article on services in Vista:
    http://www.speedyvista.com/services.php

    I m sure the Satellite A300 is faster than your 8 years old PC. ;)

    If you want to install XP, it is no problem. You will not lost the warranty, because you do not modify the materials or disassemble the laptop.
    And Yes, you need SATA drivers. You can download it from the site Web of Toshiba (Intel Storage Manager). Copy the drivers on a floppy disk, or you build your installation disc on with nLite.

    Good bye

  • External sample clock change takes a lot of time on the SMU-5186

    Hello

    I use the external Lv - niScope EX Clocking.vi example to define SMU-5186 using an external sample clock.  However, it takes a long time, 5-6 minutes, before I can get the first block of data acquisition.

    Then I run the example 'niScope EX Acquisition.vi Configured' to switch to dashboard clock. There are also 5 to 6 minutes on the first acquisition.

    I think maybe the SMU-5186 made some calibration when I change the source of the clock.

    Anyway is to ignore the calibration? Or make it faster?

    Thank you very much

    Yiming

    Yiming,

    Delays in acquisition are caused by calibration routines that must be performed on the engine to sample (ADC) every time that changes sampling rate.  This ensures our justified precision specifications.

    I don't know if you've noticed also calibration of Power-Up, which will take 5-10 minutes to complete when the unit is turned on.  This is mentioned in our specifications at page 18:

    http://www.NI.com/PDF/manuals/373257b.PDF#page=18

    I hope this helps.

    Nathan

  • Take pictures of severy it takes a lot of time

    Hello

    We use VBAI 2012 and Basler Ace cameras for an application. We want to take three images one after the other on the highest speed. The pictures are set to 1ms exposure time.

    When you do a test photo the first cue point is 1ms, the second need photo 14ms and the third 27ms.

    We tried with immediate photo and take each picture.

    is there a trick how we can manage to make several images one after the other?

    Thank you

    Oliver

    How much time it take the camera to take a picture?  An exposure time of 13 ms would create at that interval.  It also depends on how long it takes the camera to reflect the image.  Speed max on the camera is about 60 Hz, if give you on this rate.

    Reduce the exposure time will speed up the game.  Reduce the size of the image is the only way to reduce transfer times.

    See how fast MAX gives you in free run mode.  Who will be the best rate, you can get even with the outbreak.  It takes just the camera, a minimum amount of time to take an image and read in the sensor until it is ready for the next picture.

    Bruce

  • PXI-6289 DAC takes a lot of time defining

    I use a PXI-6289 and a controller SMU-8101. The controller is configured with an operating system in real time. Recently, I moved to LabWindows/CVI 2012-2013. When I made changes to my application on the PXI system, I had to update the software on the PXI system so it would be compatible with the software in the LabWindows/CVI. After I did I recompiled my application PXI and noticed a bad behavior. I finally reduced to the part where I'm putting the DAC on the PXI-6289. I noticed that it takes 80ms to alter the output DAC. I have I think maybe installed software that has some compatibility issues with the OS for real-time PXI. The software installed is the driver OR DAQmx 9.7.5. Anyone had similar problems?

    Would probably not noticeable in most applications, but I can see it because I'm able the transient response of a RC filter so I'll try to catch changing the setting DAC while I'm acquires a waveform with ESA. As I said this only started happening after I moved out of LabWindows/CVI 2012-2013, so I think it may be the software. An excerpt from fo code that defines data acquisition; Maybe there is a better way to do this.

    DAC_statusMessages_t SetDACoutput (dual output)
    {
    DAC_statusMessages_t status = DAC_OUT_STATUS_OK;
    float64 VoltageLevel;
    char ErrorMessage [DAC_ETHERNET_MESSAGE_LEN];
    char DAQ_ErrorMessage [DAC_MESSAGE_LEN];
    TaskHandle taskDACOut;
    returnDAQmx_status of Int32;
    char DeviceName [AO_6289_CHAN_TEXT_SIZE];

    strncpy (DeviceName, PXI_6289_NAME_STR, sizeof (DeviceName));
    strncat (DeviceName, DAC_OUT_CHAN_0, sizeof (DeviceName));
    VoltageLevel = (float64) (output);

    returnDAQmx_status = DAQmxCreateTask ("DACOutTask", & taskDACOut);
    If (0! = returnDAQmx_status)
    {
    strncpy (ErrorMessage, "CAD a mistake:", DAC_ETHERNET_MESSAGE_LEN);
    DAQmxGetErrorString (returnDAQmx_status, DAQ_ErrorMessage, DAC_MESSAGE_LEN);
    strncat (ErrorMessage, DAQ_ErrorMessage, DAC_ETHERNET_MESSAGE_LEN);
    strncat (ErrorMessage, "\n", DAC_ETHERNET_MESSAGE_LEN);
    SendRT_ErrorMessage (ErrorMessage);
    Disable the task
    DAQmxClearTask (taskDACOut);
    Return DAC_OUT_STATUS_NOK;
    }
    returnDAQmx_status = DAQmxCreateAOVoltageChan(taskDACOut,DeviceName,"",-10.0,10.0,DAQmx_Val_Volts,"");
    If (0! = returnDAQmx_status)
    {
    strncpy (ErrorMessage, "CAD a mistake:", DAC_ETHERNET_MESSAGE_LEN);
    DAQmxGetErrorString (returnDAQmx_status, DAQ_ErrorMessage, DAC_MESSAGE_LEN);
    strncat (ErrorMessage, DAQ_ErrorMessage, DAC_ETHERNET_MESSAGE_LEN);
    strncat (ErrorMessage, "\n", DAC_ETHERNET_MESSAGE_LEN);
    SendRT_ErrorMessage (ErrorMessage);
    Disable the task
    DAQmxClearTask (taskDACOut);
    Return DAC_OUT_STATUS_NOK;
    }
    /*********************************************/
    Starting code DAQmx
    /*********************************************/
    returnDAQmx_status = DAQmxStartTask (taskDACOut);
    If (0! = returnDAQmx_status)
    {
    strncpy (ErrorMessage, "CAD a mistake:", DAC_ETHERNET_MESSAGE_LEN);
    DAQmxGetErrorString (returnDAQmx_status, DAQ_ErrorMessage, DAC_MESSAGE_LEN);
    strncat (ErrorMessage, DAQ_ErrorMessage, DAC_ETHERNET_MESSAGE_LEN);
    strncat (ErrorMessage, "\n", DAC_ETHERNET_MESSAGE_LEN);
    SendRT_ErrorMessage (ErrorMessage);
    Disable the task
    DAQmxClearTask (taskDACOut);
    Return DAC_OUT_STATUS_NOK;
    }

    /*********************************************/
    DAQmx write code
    /*********************************************/
    returnDAQmx_status = DAQmxWriteAnalogF64(taskDACOut,1,1,10.0,DAQmx_Val_GroupByChannel,&VoltageLevel,,);
    If (0! = returnDAQmx_status)
    {
    strncpy (ErrorMessage, "CAD a mistake:", DAC_ETHERNET_MESSAGE_LEN);
    DAQmxGetErrorString (returnDAQmx_status, DAQ_ErrorMessage, DAC_MESSAGE_LEN);
    strncat (ErrorMessage, DAQ_ErrorMessage, DAC_ETHERNET_MESSAGE_LEN);
    strncat (ErrorMessage, "\n", DAC_ETHERNET_MESSAGE_LEN);
    SendRT_ErrorMessage (ErrorMessage);
    Disable the task
    DAQmxClearTask (taskDACOut);
    Return DAC_OUT_STATUS_NOK;
    }
    g_SetDACActual = GetTimeUS();  get the time to sort out how often this function is taken at the end
    Disable the task
    DAQmxClearTask (taskDACOut);

    return the situation;
    }

    I found that the SetDACoutput() function takes 80ms to complete. I fixed it by this function split in three functions

    Create and configure the task

    The value of the DAC

    Disable the task

    I create and configure the task at the beginning of my request. And disable the task at the end of my request. During the test I only cal DAQmxWriteAnalogF64().

    It has worked well. Still do not understand why the times changed so much LabWindows/CVI, but work around is better still.

  • The configuration step of the calendar after the call to DAQm angular encoder, takes a lot of time vey even to 1000 samples per second. No idea why?

    I use an encoder in quadrature with DAQmx 6259, the call to read the outputs of the meter is slow, much slower than the sampling rate? No idea why?
    Thank you

    Hello Roxanne,

    In the title of this thread, you mention that the calendar configuration step takes a long time.  Is now called node configuration several times in your code?  You may find that your code runs faster if the channel configurations and the task doesn't occur once.

    Our example of the expedition, ' counting digital Events.vi ' may be of interest to you.

    Can be found by browsing our example search tool:

    'Help' examples

    Once opened, the example Finder you can find this example by browsing:
    "" material input and output"DAQmx" counter measures "County Digital Events.vi

    Best regards.

  • Sound applet takes a lot of time answering

    (Note: this post was created on behalf of another user)

    The applet in the control panel (Volume control, etc.) takes more than a minute to appear at the launch.  Currently using windows 7 64 bit.  Have analyzed viruses and malicious software and the system is clean.

    Can someone please help?

    Thank you.

    I think I have it solved. My initial suspicions were confirmed: I stopped the ATI Radeon Catalyst Control Center to run automatically at startup. The next time I booted up, problems with the sounds disappeared - applet the applet appears as soon as I click it, instead of this long delay. I don't know what the ATI CCC is at it, maybe just a little problem with this particular version.

    If anyone happens to have this problem and if they have ATI Radeon CCC running at startup, do what I did and see what happens.

    You can close this thread. :)

    Thank you

    Tim

Maybe you are looking for

  • Basket of all

    You will bring 'Trash All' for IO 10 Mail that I and others use it all the time to get rid of the huge amount of spam. Thank you Cbweldon

  • How can I disable the shortcut settings?

    I use iPad Air and there is a status bar on the top of the screen - one that displays the 4 G connection on the left hand, the time in the Middle, the number of connections hotspot on the right hand, but also a number of icons such as the State of th

  • Cannot access anything in the Start Menu.

    Original title: problems with Start Menu... Can Hi anyone help here please... I can access is more things in my Start menu, Control Panel, My Documents. My photos, my computer etc, etc, all died in the start menu. Whenever I click to open these thing

  • Outlook express mail

    Ho you filter out all e-mail senders except those in your address book and divert rejects it in a folder of rejection?

  • How to remove someone else from your computer completely

    My grandson is here and get as an administrator. I need to remove completely