Probelm doing a large insert. Can anyone help?

Hi Folks.
I am trying to run the following piece of code.
For some reason the system hangs and crashes after about 8000 rows have been inserted. Makes no odds whether I do one big commit at the end of the process or do one every thousand rows (as with this example)...
-- Prior to getting here the duplicates should have been removed.
PROCEDURE PARSE_MASTER_DCH_LOAD IS
v_direction CHAR(2);
v_vpmn CHAR(5);
v_hpmn CHAR(5);
v_tap_no NUMBER(6);
v_sdr_value NUMBER(12,4);
v_sdr_rate NUMBER(12,4);
v_sdr_tax_amount NUMBER(12,4);
v_file_version NUMBER(3);
v_duplicate_string VARCHAR2(400);
v_duplicate_test NUMBER(2);
v_errnum NUMBER(10);
v_errtxt VARCHAR2(200);
v_counter NUMBER(10);
v_pmn CHAR(5);
v_commit_set NUMBER(12);
CURSOR c_select_ap_ar_entries IS
SELECT DIRECTION, VPMN, HPMN, TAP_SEQUENCE_NO, SDR_TOTAL_CHARGE, SDR_TOTAL_TAX
FROM DCH_MASTER_DATA_LOAD;
BEGIN
DELETE FROM DCH_TAP_SEQUENCE_NOS_AR;
DELETE FROM DCH_TAP_SEQUENCE_NOS_AP;
COMMIT;
SELECT COUNT(1) INTO v_counter
FROM DCH_MASTER_DATA_LOAD;
:LOAD_DATA.LOAD_DATA_PROCESSING := 'Total records to process = '||v_counter;
SYNCHRONIZE;
v_commit_set := v_counter - 1000;
FOR a_dch_row IN c_select_ap_ar_entries LOOP
v_counter := v_counter - 1;
:LOAD_DATA.LOAD_DATA_PROCESSING := v_counter;
SYNCHRONIZE;
v_direction := NULL;
v_vpmn := NULL;
v_hpmn := NULL;
v_tap_no := NULL;
v_sdr_value := NULL;
v_sdr_tax_amount := NULL;
v_direction := a_dch_row.direction;
v_vpmn := a_dch_row.vpmn;
v_hpmn := a_dch_row.hpmn;
v_tap_no := a_dch_row.tap_sequence_no;
v_sdr_value := a_dch_row.sdr_total_charge;
v_sdr_tax_amount := a_dch_row.sdr_total_tax;
IF v_direction = 'RF' THEN
INSERT INTO DCH_TAP_SEQUENCE_NOS_AR (PMN, PARTNER_PMN, TAP_FILE_SEQUENCE_NO, TAP_FILE_DATE, SDR_VALUE, TAX_AMOUNT)
VALUES (v_vpmn, v_hpmn, v_tap_no, SYSDATE, v_sdr_value, v_sdr_tax_amount);
ELSIF v_direction = 'PF' THEN
INSERT INTO DCH_TAP_SEQUENCE_NOS_AP (PMN, PARTNER_PMN, TAP_FILE_SEQUENCE_NO, TAP_FILE_DATE, SDR_VALUE, TAX_AMOUNT)
VALUES (v_hpmn, v_vpmn, v_tap_no, SYSDATE, v_sdr_value, v_sdr_tax_amount);
END IF;
IF v_counter = v_commit_set THEN
COMMIT;
v_commit_set := v_commit_set - 1000;
END IF;
END LOOP;
COMMIT;
-- Then calculate the tax rates for the AR and the AP tap files.
UPDATE DCH_TAP_SEQUENCE_NOS_AR SET TAX_RATE = ROUND((TAX_AMOUNT / SDR_VALUE) * 100, 0)
WHERE SDR_VALUE > 0;
UPDATE DCH_TAP_SEQUENCE_NOS_AP SET TAX_RATE = ROUND((TAX_AMOUNT / SDR_VALUE) * 100, 0)
WHERE SDR_VALUE > 0;
COMMIT;
EXCEPTION WHEN OTHERS THEN
v_errnum := SQLCODE;
v_errtxt := SUBSTR(SQLERRM,1,200);
MESSAGE ('The error code was :'||v_errnum||' and the message was: '||v_errtxt);
END;
This program unit is called in a Forms 6i application on a Windows 2000 system running a Oracle 9.0.1
This has worked successfully in the past but now it just hangs. I think there could be a memory problem but I am not getting any useful error message generated.
Any thoughts/comments would be appreciated.
Many thanks
Simon

Is it hanging at the exact same record every time you try it?
Have you tried just committing after each insert?

Similar Messages

  • When I open a word document attachment in mail for IOS 7.1.1 the previous jpeg is showing on the first page. When I open the attachment from mail in mac OS X the jpeg does not appear. Can anyone help?

    When I open a word document attachment in mail for IOS 7.1.1 the previous jpeg is showing on the first page. When I open the attachment from mail in mac OS X the jpeg does not appear. Can anyone help?

    gonsa47 wrote:
    When I open it in pages or word the correct company logo appears.
    Does the mail app display whatever is in the document without the ability to differentiate between hidden or non hidden images?
    The mail app will not display fillable form fields in PDF files that can be seen in real PDF apps. I say real PDF apps because the form fields in PDF apps will not appear in the iBooks app either. IMO, iBooks is not a real PDF app.
    So, I would say that the mail app cannot differentiate between hidden and non hidden items

  • My Adobe Reader XI 11.0.09 fails to open pdf's. Error message - "because the associated helper application does not exist." Can anyone help me?

    My Adobe Reader XI 11.0.09 fails to open pdf's. Error message - "because the associated helper application does not exist." Can anyone help me?

    Okay. I will try this again. I did remove and reinstall earlier, but will
    do it now.
    regards, Mike
    On Wed, Oct 15, 2014 at 12:55 PM, Sabian Zildjian <[email protected]>

  • I was changing my desktop screen saver in system preferences screen protection.  Now it says it is "Loading Images" and won't stop.  The Colourful wheel goes around for ever and It does not stop. Can anyone help me?

    I was changing my desktop screen saver in system preferences>screen protection.  Now it says it is "Loading Images" and won't stop.  The Colourful wheel goes around for ever and It does not stop. Can anyone help me?

    Welcome to the Apple Support Communities
    I have seen a lot of cases like your issue, and it's easy to solve.
    First, open Disk Utility, select Macintosh HD in the sidebar and repair permissions. Sometimes, a permission can be damaged and it makes that an application doesn't work properly.
    If that doesn't work, open Finder, select Go menu > Go to Folder, type ~/Library/Prefereces, delete "com.apple.desktop.plist" and "com.apple.systempreferences.plist" and restart

  • HT1848 I synced my on my iPad 2 to my pc yesterday and now I can not open any of my apps on my iPad2, those purchased and those that are free.  All it does if I click on the app is flicker but does not open.  can anyone help?

    I was told I could sync my music on my pc with my ipad2 by an apple agent.  I hooked my ipad2 up to my pc and did so, but now I can not open any of my apps on my ipad2.  when I try it just flickers and does not open.  Can anyone help?

    On you iPad, force close all the Apps in the multitask window.
    Follow these steps to force an app to close:
    From the Home screen, click the Home button twice. 
    Tap and hold on the app. 
    When it starts to jiggle, tap the to close it on by one until all cleared
    Now do a Soft reset of your iPad:
    Hold both Home and Sleep button for around 10secs until you see the Apple logo then release. After it returns to Home screen, try your Apps again and see if this resolves the issue.

  • When I try to share a project to theater I get the message Your Theater could not be opened.There was a problem reading your movies from iCloud and the project does not share. Can anyone help?

    When I try to share a project to theater I get the message Your Theater could not be opened.There was a problem reading your movies from iCloud and the project does not share. Can anyone help?

    Set up iMovie Theater and iCloud
    In order to take full advantage of the capabilities of iMovie Theater, you must be signed in to iCloud. If you are signed in to iCloud, movies and trailers shared to iMovie Theater are automatically uploaded to iCloud. You can also turn off automatic uploading, and upload just the movies and trailers you want, or delete individual movies and trailers from iCloud. For more information about the Theater, see iMovie Theater overview.
    If you sign out of your iCloud account on your Mac, all iCloud movies disappear from the Theater, but they are not deleted; the movies reappear when you sign in again. If you ever run out of space in iCloud, an alert icon appears in the top-right corner of your movie, indicating that you can’t upload new movies. For more information, click the icon. After you upgrade your iCloud storage or clear space, your movies automatically appear in iCloud again.
    Hide
    Set up automatic iCloud uploading
    Choose Apple menu > System Preferences, and click iCloud.
    Make sure you’re signed in, and then select the Documents & Data checkbox.
    Click the Options button next to Documents & Data.
    Make sure the iMovie checkbox is selected.
    In iMovie, choose iMovie > Preferences.
    Select the “Automatically upload content to iCloud” checkbox.
    To turn off automatic uploading, deselect the checkbox.

  • Recently, I can't get any sound from my game applications.  Sound works fine with video, streaming, etc, but not my game applications.  I've tried powering down and re-booting, but the sound does not return.  Can anyone help me?

    Recently, I can't get any sound from my game applications.  Sound works fine with video, streaming, etc, but not my game applications.  I've tried powering down and re-booting, but the sound does not return.  Can anyone help me?

    Have you got notifications muted ? Only notifications (including games) get muted, so the Music and Videos apps, and headphones, still get sound.
    Depending on what you've got Settings > General > Use Side Switch To set to (mute or rotation lock), then you can mute notifications by the switch on the right hand side of the iPad above the volume switch, or via control centre : swipe up from the bottom edge of the screen and it's the right-most of the 5 icons in the middle of it (if the icon is white then it's 'on', tap it to turn it grey and 'off'). The function that isn't on the side switch is set via control centre instead : http://support.apple.com/kb/HT4085

  • Since installing ICloud, and updating IO, programs and websites close whenever I scroll, going back to home page. I have tried turning it off, but that does not work. Can anyone help me out? Also, the keyboard is very slow.

    I am frustrated with the new update and the ICloud. Any program i open, or website I am in, closes suddenly, an returns to the Home page. Also the keyboard is very slow. None of this existed until I did the two updates. Can anyone help?

    MaryAmanda wrote:
    Does anyone know anything about onsite specifics?
    I'm wondering where the onsite warranty can be in effect.  Like, can it be used in ANY city in the US?  Can it be used only in metrololitan areas?  What is a metro area in Lenovo's eyes?
    Does anyone know where I can get better and accurate info on the onsite warranty?  Like a coverage map would be very helpful.  Because why should I spend the money on it, if I can't access it?
    Looking forward to more info...thanks.
    There is no coverage map as such.
    I live in what is considered a rural area and had techs driving 60-70 miles one way to get to me, never an issue.
    Obviously, YMMV.
    In my not-so-modest experience, both onsite and accidental damage upgrades are worth every penny if one intends to keep their ThinkPads for an extended period of time.
    Good luck.
    Cheers,
    George
    In daily use: R60F, R500F, T61, T410
    Collecting dust: T60
    Enjoying retirement: A31p, T42p,
    Non-ThinkPads: Panasonic CF-31 & CF-52, HP 8760W
    Starting Thursday, 08/14/2014 I'll be away from the forums until further notice. Please do NOT send private messages since I won't be able to read them. Thank you.

  • I am trying to load a 2006 package in cd form onto my apple mac when I try and down load it it comes up in like foreign script, and says does not operate dos, can anyone help I am a lot of a novice. grateful - Carol

    Yes Im a lot of a novice so be patient with me lol I am trying to put a 2006 Edition of a weight programme on my laptop, but when I down load it it just comes up in weird script and says cannot operate in Dos mode can anyone help.
    Thanks

    Welcome to Apple Support Communities.
    Sounds like you have a program designed to run on Microsoft Windows, or even older (1980's) MS-DOS, rather than Mac OS X. If you have Windows on your Mac installed via Boot Camp, try booting into Windows first, and then loading the CD.  If you don't have Windows, it's probably cheaper to buy a new program designed for Mac than to purchase a copy of Windows (US$120 or more), not even knowing for certain if your old program will run.

  • TS4242 since updating and restoring my iphone 3gs it no longer can find my sim itunes cant activate it because no sim inserted can anyone help

    since updating and restoring my iphone 3gs it no longer can find my sim itunes cant activate it because no sim inserted can anyone help

    That usually means the phone was hacked or jailbroken to unlock the phone and when you update the phone it locked back up again.
    Only way to resolve this issue, is to find out who the orignal carrier was and have them unlock it.  If you bought this from a 3rd party contact the seller and have him/her unlock it for you by contacting the phone carrier.

  • My IQ500 has stopped recognising when a cd rom is inserted, can anyone help?

    When I insert a cd there is no icon appearing in my computer. and I cannot see anything on the disc, as if there was no disc inserted.

    Thanks Skydiver119,  it's kind of you to suggest this.  
    Am I wrong in thinking we can't do this now because the iPad has lost all power?
    We've used the small amount of power left trying all the different answers suggested elsewhere on Apple Forum and Support where others have had the same problem with their iPhones & iPads.... (cleaning out fluff from socket with a pin... using alcohol cleaner to wipe muck from the charger plugs.... etc..) 
    With no power left on the iPad, we can't reset or recharge, so far as I know...
    Will take it into the Bromley UK Apple Store (in the chaos that will be Good Friday shopping) and hope they can help... hopefully it's something as simple as a new charger...
    Given similar problems others have had with their iPhone chargers, too, it does strike me as a serious flaw in Apple's usually brilliant design... oh how we miss Steve Jobs.... We shouldn't be paying the prices we do with this BASIC flaw in design of the charger socket... Apple surely know it wears out very quickly.... ? 
    Perhaps not...?
    Any other answers will be very welcome... Thank you again,  kindly, Mark 

  • My iphone 4 types and moves etc on its own, and at times the left side of the phone does not work. Can anyone help me??, my iphone 4 types and moves etc on its own, and at times the left side of the phone does not work. Can anyone help me??

    I have an iphone 4S and it has been doing crazy things like typing on its own.  IT's like someone is shadowing my phone.  Also, the left side of the phone keys get frozen, any suggestions or help would be greatly appreciated. Nothng worst when you need to call or text someone urgently and i can not do it as computer takes over... thank and have a wonderful day!!

    More than likely a failing display. You can try restoring it to see if that helps, but you'll probably have to have the phone replaced. make an appointment at the genius bar.

  • The settings on my Mac got changed some how so now everything is really large. Can anyone help me figure out how to change it back?

    I really need help with changing the display on my Mac mini, I think the kids changed it and now the display is really large and I can't figure out how to change it.

    Turn off Zoom from the Universal Access and Keyboard & Mouse panes of System Preferences.
    (103509)

  • IPhone 4 - my "Show my Caller ID" button is white and does not work. Can anyone help?

    I have recently updated my iPhone 4 to ios7 and also restored it to my latest backup. For some reason, I can't change my "Show my caller ID" - it doesn't even show as "Off". Any suggestions?

    Hi Thanks for coming back to me.  Yep it is an HP Photosmart.  We have actually had the printer and the Ipad in the Apple Shop and they made them work with there.  Also I have wirelessly logged onto someone elses router in the building and printed on to their HP Photosmart.  On another forum someone suggested the Airport Extreme but apparently this is not a modem .... not sure what effect that would be.... does this help?  Thanks again

  • So i can't get my creative cloud window to open. is anyone else experiencing the same thing. i tried to download the software again but it still does the same thing. can anyone help?

    Trying to figure out how to get my creative cloud pop-up window to open up for me on command. Last night I kept getting the busy icon and today it won't even open for me. How can I fix this issue?

    BLANK Cloud Screen http://forums.adobe.com/message/5484303 may help
    -and step by step http://forums.adobe.com/thread/1440508?tstart=0
    -and http://helpx.adobe.com/creative-cloud/kb/blank-white-screen-ccp.html
    Mac Spinning Wheel https://forums.adobe.com/message/5470608
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

Maybe you are looking for