When i execute code, it shows "Record 1/?" and takes too much of time to execute.

Hi all,
I have s form with push_button (SEND TO BACKUP).
For this push button - SEND TO BACKUP, i have coded the below for Trigger - WHEN BUTTON PRESSED.
DECLARE
  CNT NUMBER;
  TEMPDATE DATE;
CURSOR C1 IS SELECT MAT_DESC, FRAME, FSIZE,    POLES, NUMS, DRG_NO,    RM_WT, FIN_WT, RATE,    FRAMENAME, FTYPE, CHND_DATE,RATESOFPO
FROM RMC_INACTIVE_MAT_RATES_MP;
BEGIN
  FOR I IN C1 LOOP
   SELECT COUNT(CHND_DATE) INTO CNT FROM RMC_INACTIVE_MAT_RATES_MP_PREV WHERE CHND_DATE=I.CHND_DATE;
  IF CNT > 1 or cnt=1 THEN
   MESSAGE('INACTIVE MATERIAL RATES FOR MEGAPACK  ALREADY EXIST IN BACKUP WITH THIS DATE ');
  MESSAGE(' ');
  Raise Form_Trigger_Failure;
  end if;
end loop;
  FOR I IN C1 LOOP
  INSERT INTO RMC_INACTIVE_MAT_RATES_MP_prev(MAT_DESC, FRAME, FSIZE, POLES, NUMS, DRG_NO,    RM_WT, FIN_WT, RATE,    FRAMENAME, FTYPE, CHND_DATE,
  RATESOFPO )
  VALUES(I.MAT_DESC, I.FRAME, I.FSIZE, I.POLES, I.NUMS, I.DRG_NO,    I.RM_WT, I.FIN_WT, I.RATE,    I.FRAMENAME, I.FTYPE, I.CHND_DATE,I.RATESOFPO  );
  END LOOP;
  COMMIT  ;
  MESSAGE('DATA HAS SENT SUCCESSFULLY ');
  MESSAGE(' ',NO_ACKNOWLEDGE);
END;
It is working but with lot of delay, it takes too much of time.
After i run this form & as i press the button, it shows "Record 1/?" in the below and it takes almost 5 mins to execute completely and dhow the message.
Can you tell why is it showing "Record 1/?" below ???
How to reduce the delay??
Thank You.
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production

If you want to suppress the message shown in status you can set the sevearity like :system.message_level          := '20';
Can you change your code like
:system.message_level          := '20'; --- To suppress the default messages
DECLARE
  CNT NUMBER;
  TEMPDATE DATE;
CURSOR C1 IS SELECT MAT_DESC, FRAME, FSIZE,    POLES, NUMS, DRG_NO,    RM_WT, FIN_WT, RATE,    FRAMENAME, FTYPE, CHND_DATE,RATESOFPO
FROM RMC_INACTIVE_MAT_RATES_MP;
BEGIN
  FOR I IN C1 LOOP
   SELECT COUNT(CHND_DATE) INTO CNT FROM RMC_INACTIVE_MAT_RATES_MP_PREV WHERE CHND_DATE=I.CHND_DATE;
  IF cnt >= 1 THEN
   MESSAGE('INACTIVE MATERIAL RATES FOR MEGAPACK  ALREADY EXIST IN BACKUP WITH THIS DATE ');
  MESSAGE(' ');
  Raise Form_Trigger_Failure;
  end if;
end loop;
  FOR I IN C1 LOOP
  INSERT INTO RMC_INACTIVE_MAT_RATES_MP_prev(MAT_DESC, FRAME, FSIZE, POLES, NUMS, DRG_NO,    RM_WT, FIN_WT, RATE,    FRAMENAME, FTYPE, CHND_DATE,
  RATESOFPO )
  VALUES(I.MAT_DESC, I.FRAME, I.FSIZE, I.POLES, I.NUMS, I.DRG_NO,    I.RM_WT, I.FIN_WT, I.RATE,    I.FRAMENAME, I.FTYPE, I.CHND_DATE,I.RATESOFPO  );
  END LOOP;
  COMMIT  ;
  MESSAGE('DATA HAS SENT SUCCESSFULLY ');
  MESSAGE(' ',NO_ACKNOWLEDGE);
END;

Similar Messages

  • When I start MacBook Pro13 shows gray Screen and flashing file Image with question mark

    When I start MacBook Pro13 shows gray Screen and flashing file Image with question mark , it's brand new I just receive it from Apple Store .

    Startup Manager to select Startup disk.
    http://support.apple.com/kb/HT1310
    Repair Disk
    Steps 2 through 8
    http://support.apple.com/kb/PH5836

  • Hi, i received my iPad 2, and i tried to use my iTunes, but when I opened it, it showed itunes U and podcast only..no other data like in pc..just only that 2.What i will do.

    Hi, i received my iPad 2, and i tried to use my iTunes, but when I opened it, it showed itunes U and podcast only..no other data like in pc..just only that 2.What i will do? There is no download tabs or anything at all. Please help!

    When you erased the disk did you select Mac OS Extended Journaled as the format option?

  • What is the preferred virus scan program for iphone? I believe that I have a virus. My phone will come on by itself and it appears to be recording audio. I have read about spyware/surveilance viruses that will record audio and take photos.

    What is the preferred virus scan program for iphone? I believe that I have a virus. My phone will come on by itself and it appears to be recording audio. I have read about spyware/surveilance viruses that will record audio and take photos.

    My phone is not jailbroken.  I don't know what you mean about hacked.   Maybe it is hacked?   This is what is happening: About three times over the past few months I've noticed that my phone while "off" will come on (light up) and the screen shows an arrow towards the bottom; an arrow such that you would see on various "players" in order to "play" video or audio, I've searched my phone and cannot find any app that produces this particular screen though. Once I pick up the phone when this screen myseriously appears out of nowhere and press anything, it goes away and goes to the standard "slider" front page to unlock the phone.

  • Recording vocals and guitar at the same time, using the Alesis IO dock!

    Hi there!
    I have an Ipad 2 with the newest OS installed etc. And I rea the other posts in here.
    I bought an IO dock from Alesis the other day and was full of exspectations, but I got a bit disappointed -> Garageband! When I bought the Ipad dock I exspected that I would be able to record (or just play and hear the inputsound from two devices) at the same time in my headphones! But I wasn't... Now I'm wondering if this is going to be fixed in an update or not? I think it would be a shame if this issue isnt adressed, due to the huge abilities the Ipad/garageband/Ipad docks withhold.
    So anyone know anything? I went to my musicstore and spent about an hour or so with the tech dude there trying dfferent setups, but unfortunatly without luck! Just to clarify that I didt just plugged in my guitar and got mad that it wasnt apple intuative!
    Hope someone can help :)

    I am wondering if I can record audio and midi at the
    same time in Logic 7 Express. I am running my guitar
    thrugh a Roland GR 33, and a line out and using the
    GR 33 to trigger sounds in the Logic's synth section
    but cant seem to record all three tracks at once. If
    any one knows how let me know. Oh and I am running
    the GR Synth and Guitar into the Prosonus Fire Fox
    and have the GR 33 out midi to the Fire Box as well.
    So I guss the question is how do I sent up two audo
    tracks and one midi track to record in real time.
    Thanks Victor
    Try arming the audio tracks, select one of the tracks, then while holding down the shift key, select the midi track you want to record, arming the "r" on the midi track. Press "record".....
    HL

  • Can't recording  Midi  and Audio at the same time

    I'm in GREAT need of help. I can't record midi and audio at the same time. I'm using an M AUDIO project mix I/O. I know this is VERY basic stuff but I can't seem to get it to work.I can record multiple audio at once. ANd I can record midi but not at the same time. PLEASE help . Is there a setting somewhere I need to change ? Thanks
    Tracy

    Hi!
    Enable all audio tracks (R) you wish to record. Then make sure you select the audio instrument you are using on the left of the arrange page (track list). If you here your input, hold shift, then highlight (gray) the mentioned audio tracks you wish to record on. When R is red, and the proper tracks are grey, you can record. Hope that made sense!

  • Recording Audio and Midi at the same time in Logic 7 Express Can it be done

    I am wondering if I can record audio and midi at the same time in Logic 7 Express. I am running my guitar thrugh a Roland GR 33, and a line out and using the GR 33 to trigger sounds in the Logic's synth section but cant seem to record all three tracks at once. If any one knows how let me know. Oh and I am running the GR Synth and Guitar into the Prosonus Fire Fox and have the GR 33 out midi to the Fire Box as well. So I guss the question is how do I sent up two audo tracks and one midi track to record in real time. Thanks Victor

    I am wondering if I can record audio and midi at the
    same time in Logic 7 Express. I am running my guitar
    thrugh a Roland GR 33, and a line out and using the
    GR 33 to trigger sounds in the Logic's synth section
    but cant seem to record all three tracks at once. If
    any one knows how let me know. Oh and I am running
    the GR Synth and Guitar into the Prosonus Fire Fox
    and have the GR 33 out midi to the Fire Box as well.
    So I guss the question is how do I sent up two audo
    tracks and one midi track to record in real time.
    Thanks Victor
    Try arming the audio tracks, select one of the tracks, then while holding down the shift key, select the midi track you want to record, arming the "r" on the midi track. Press "record".....
    HL

  • I have purchased the Acrobat pro subscription for 1 year and have followed the steps to install it. But when i go to start it, It crashes and it does this every time! I have restarted my mac pro and also restarted in safe mode but it just doesn't work! PL

    I have purchased the Acrobat pro subscription for 1 year and have followed the steps to install it. But when i go to start it, It crashes and it does this every time! I have restarted my mac pro and also restarted in safe mode but it just doesn't work! PLEASE HELP!!

    Hi jim1287,po
    Check for the latest updates. Installing latest updates should resolve this problem.
    Also, try to ran disk repair using safe mode in Mac, for instructions please visit: http://support.apple.com/kb/PH14204
    Try enabling root user profile on mac and try to check. OS X Mavericks: Enable and disable the root user
    Regards,
    Ajlan Huda.

  • TS3276 When I send an email no matter how small it now seems to take a much longer time than usual (by watching the gear wheel spinning). Anyone have any ideas how I can get my sending back to a much shorter time?

    When I send an email no matter how small it now seems to take a much longer time than usual (by watching the gear wheel spinning). Anyone have any ideas how I can get my sending back to a much shorter time?

    Have you burned Discs with other programs using this computer? Are you certain that you have a drive that will burn discs?

  • I get an error message when I connnect my digital camera to my Ipad 2 to dump pictures.  Something about the device (camera) takes too much power?

    I get an error message when I connect my digital camera to my Ipad 2.  Something to the effect that the device takes too much power...Any ideas how to remedy?

    Kevin-
    I've read that Apple reduced the current limit for their Camera Connection kit, with one of the iOS updates.  It is a known problem, so they may have made an adjustment with a later update.  Be sure you have the latest version (4.3.3) on your iPad 2.  If you continue to have the problem, report the details to Apple at
    <http://www.apple.com/feedback/>.
    One thing to try is to use your camera's memory card directly with the Camera Connection kit.  (Use a card-to-USB adapter if the card is not SD.)
    Fred

  • If I plug a guitar into iPhone GarageBand using an interface, can I still use the built in microphone to record vocals and guitar at the same time?

    If I plug a guitar into iPhone GarageBand using an interface, can I still use the built in microphone to record vocals and guitar at the same time?

    Hi John,
    I think the only way is to get an iMic...
    http://www.bhphotovideo.com/bnh/controller/home?O=&sku=797644&is=REG&Q=&A=detail s

  • Recording audio and midi at the same time ??

    Is it possible to record audio and midi at the same time in logic?? It doesnt seem to work for me, im assuming there must be unchecked box somewhere that I need to check. thanks,
    Dan

    Daniel,
    You should be able to accomplish this by hitting record on the audio track, and then while holding the "Shift" key down, hitting record on the MIDI track (or visa versa).

  • I got my iphone4 updated via wifi and its shows downloaded and when i install it, it shows verifying software and then says error occured while installing ???

    hi, there, i got my iphone4 updated via wifi n its downloaded, its shows when i check the software update n when i install it, it shows verifying the software n after a couple of seconds comes back with "error while installing ios6" failed so many attempts and even tried to reset the phone, but no use, then i tried latest updated itunes too, can u believe it, it took ages to download n when it was 880mb of the 899mb file, error occured , so many failed attempts, can some one tell me what to do ? are there any issues with iphone4 updates? m scared to update it now, but really wanna get it on my phone.

    I have experienced a similar error with the iPhone 4S.  The new version of iTunes will not let me restore the phone, it must be updated and nothing appears to be happening.  Suffice it to say I am not amused.  Apple needs to work this out - I had trouble updating to 8.0.2 as well.

  • Query takes too much time in fetching last records.

    Hi,
    I am using oracle 8.1 and trying to execute a SQL statement, it takes few minutes and display records.
    When trying to fetch all the records, it is fast up to some level and takes much time to fetch last record.
    Ex: If total records = 16336 , then it fetches records faster up to 16300 and takes app.500 sec to fetch last 36 records.
    Could you kindly let me know the reason.
    I have copied the explain plan below for your reference.Please let me know if anything is required.
    SELECT STATEMENT, GOAL = RULE               4046     8     4048
    NESTED LOOPS OUTER               4046     8     4048
      NESTED LOOPS OUTER               4030     8     2952
       FILTER                         
        NESTED LOOPS OUTER                         
         NESTED LOOPS OUTER               4014     8     1728
          NESTED LOOPS               3998     8     936
           TABLE ACCESS BY INDEX ROWID     IFSAPP     CUSTOMER_ORDER_TAB     3966     8     440
            INDEX RANGE SCAN     IFSAPP     CUSTOMER_ORDER_1_IX     108     8     
           TABLE ACCESS BY INDEX ROWID     IFSAPP     CUSTOMER_ORDER_LINE_TAB     4     30667     1901354
            INDEX RANGE SCAN     IFSAPP     CUSTOMER_ORDER_LINE_PK     3     30667     
          TABLE ACCESS BY INDEX ROWID     IFSAPP     PWR_CONS_PARCEL_CONTENT_TAB     2     2000     198000
           INDEX RANGE SCAN     IFSAPP     PWR_CONS_PARCEL_CONTENT_1_IDX     1     2000     
         TABLE ACCESS BY INDEX ROWID     IFSAPP     PWR_CONS_PARCEL_TAB     1     2000     222000
          INDEX UNIQUE SCAN     IFSAPP     PWR_CONS_PARCEL_PK          2000     
       TABLE ACCESS BY INDEX ROWID     IFSAPP     CONSIGNMENT_PARCEL_TAB     1     2000     84000
        INDEX UNIQUE SCAN     IFSAPP     CONSIGNMENT_PARCEL_PK          2000     
      TABLE ACCESS BY INDEX ROWID     IFSAPP     PWR_OBJECT_CONNECTION_TAB     2     20     2740
       INDEX RANGE SCAN     IFSAPP     PWR_OBJECT_CONNECTION_IX1     1     20     Thanks.

    We are using PL/SQL Developer tool. The time what we have mentioned in the post is approximated time.
    Apologies for not mentioning these details in previous thread.Let it be approximate time but how did you arrive at that time? When a query fetches records how did you derived that one portion is fetched in x and the remaining in y time limit?
    I would suggest this could be some issue with PL/SQL Developer (Never used this tool by myself) But for performance testing i would suggest you to use SQL Plus. Thats the best tool to test performance.

  • How to debug a background task that takes a lot of time to execute

    My workflow consists of a background task which takes a significant amount of time to execute completely. I have executed the BO method from SWO1 and it works fine.. takes just few secs to execute.
    But when this method is executed through workflow as a background task, it takes more than 20 mins to execute.
    What can be the possible causes and how do I debug this.

    Dear Tiyasha,
    You can debug your task even if it is a back ground task.
    The process is as follows :
    The place where want to place your break point put an infinite while loop just before your actual code.Now execute your workflow , now go to sm54 there u will find your entry and from here you can go to the debugger .In the debugger make the value of the while loop to be true so that u can proceed.
    Here u will able to debug it properly.
    Regards,
    Geet

Maybe you are looking for

  • How to set up an iMac g3 with new hard drive

    I have an iMac g3 grafite se, the person before me forgot their admin password so I bought a new hard drive for it but I don't know how to re install the software I turned the iMac on and I just had a grey blank screen would really appreciate some he

  • Lightroom isn't available in creative cloud desktop app

    HI. I have the full creative cloud for teams membership. But Lightroom doesn't appear in my cc desktop app. I have a macbook pro from 2012 with 2,5 GHz Intel Core i5 processor and the latest Version of Mac OS X (10.9.2). The trial version of lightroo

  • Photo will not "fit" in frame

    Hi all...I am trying to use a still photo in imovie (over my movie footage), but i cannot move it (photo) or use the "fit" function. i would like to zoom in on the photo and center picture. any ideas?

  • ECATT benefits for ABAP developers

    Dear All, I'm new to eCATT, but have gone through eCATT tutorial successfully. My question is not about how to use SECATT transaction rather I'm interested in using eCATT from a ABAP developer point of view. Since, functional testing is main responsi

  • Error in alertinbox

    Hi all I have created alert in alrtcatdef while creating sales order. I can receive alert in alrtinbox, whenever user creating sales order. But when i select Personalization in alrtinbox, i can't able to do it The following error occured.. Business S