Don't want to abend program

Hi,
During insertion from select, if DUPLICATE VALUE ON INDEX occours then i want to put the error message in a log file, instead of process aband and rest of insertion process continues.
regards
vk

I'm not sure is it acceptable time for 1 mln rows ?
SQL> set serveroutput on
SQL> set timing on
SQL> select count(1) from tst;
COUNT(1)
1
Elapsed: 00:00:00.00
SQL> declare
2 type cn is table of number(20) index by binary_integer;
3 nmbrs cn;
4 dml_error EXCEPTION;
5 PRAGMA exception_init(dml_error, -24381);
6 cursor ins_cur is select object_id from nc_objects;
7 begin
8 open ins_cur;
9 loop
10 fetch ins_cur bulk collect into nmbrs limit 100000;
11 if nmbrs.count>0 then
12 begin
13 forall i in nmbrs.first..nmbrs.last save exceptions
14 insert into tst values(nmbrs(i));
15 commit;
16 EXCEPTION
17 WHEN dml_error THEN
18 if (sql%BULK_EXCEPTIONS.COUNT>0) then
19 for i in 1..sql%BULK_EXCEPTIONS.COUNT loop
20 dbms_output.put_line('ID is ' || nmbrs(sql%BULK_EXCEPTIONS(i).ERROR_INDEX)
21 || '; Code is ORA-' || LPAD(sql%BULK_EXCEPTIONS(i).ERROR_CODE,5,'0'));
22 end loop;
23 end if;
24 END;
25 end if;
26 exit when ins_cur%NOTFOUND;
27 end loop;
28 close ins_cur;
29 end;
30 /
ID is 101; Code is ORA-00001
PL/SQL procedure successfully completed.
Elapsed: 00:05:47.06
SQL> select count(1) from tst;
COUNT(1)
934527
Elapsed: 00:00:00.01
Rgds.

Similar Messages

  • Can't upgrade with less than a month on contract left....don't want "The Edge" program either

    My husband and I are both due for upgrades May 14, 2014 (less than a month away)- we were refused a new 2 year contract with the purchase of 2 Samsung S5 phones yesterday in store and told to call customer service and they would adjust our update date.  After 45 minutes on the phone with them, mostly on hold waiting to speak with a supervisor because their cs rep was rude, we were told they would approve an early upgrade for any phone EXCEPT the one we want.  They would rather makes us wait to upgrade 30 days, with my husbands phone not holding a charge, and allow us time to decide which provider we want to move to than sign us to two new two year contracts.  Is this how loyal customers are treated?

    CAUTION: If u currently have an UNLIMITED DATA PLAN... then, u do NOT  want to use your upgrade, because u loose it, after the upgrade!!! ... I still have the old UNLIMITED DATA PLAN, because, they told me, I'd loose it, if I upgraded... only way to keep your unlimited data plan, is to get a phone from online... Amazon, ebay, or pay full price for a phone,which stinks, but it's better then loosing unlimited data!

  • Don't Want To Use Apple Config, Device Enroll Program

    I have been reading a lot on how to implement profiles onto devices like the iPhone, this functionality is what I am looking for, mainly with iPhone for some businesses and schools I work with. I have red that with the new technology you don't have to us Apple Configurator, and I have red about the Device Enroll Program... for my purposes I don't want to use any Apple method (nor would the situation I have even qualify for the Device Enroll Program) I really would like to deploy custom configuration profiles, with restrictions specified by my customers.
    I have been scanning the developer guides and and slowly grasping what I need to do...it sounds like I don't need to use Apple methods if I don't want CORRECT???  If I can implement custom profiles and in some cases it might just be three iPhones... I was hoping to find the proper guidance for implementing those custom profiles, thru the webpage method  or e-mail message is more suitable for my needs.
    I found the Apple play by play on how to do that, but sometimes for myself finding another perspective helps me learn... Any places anyone has found that can give that play by play on how to deliver those custom profiles  thru web page or e-mail?
    I have looked at the Over the Air Profile Delivery and Configuration Developer Pages... I'm just looking for that alternate information source to help me out. Appreciate all the help 

    Using Get Info to change all documents to open with Pages 4.3 doesn't work. The Mac OS will always default to the newest installed version & has for as long as I can remember. It will work on individual files, but that could be a lot of files to reset.
    This is what worked for me. After I installed the new iWork updates I created a folder on an external drive & named it "Applications." I then moved the new iWork apps to this folder & renamed the applications Keynote 6, Pages 5 & Numbers 3. I have icons for two versions of Pages & Numbers (I rarely use Keynote) in my Dock. Even with two versions of Pages & Numbers running, double-clicking an existing file opens in Pages 4.3 or Numbers 2.3. This should also keep the Mac App Store from nagging you to update.
    Since the last update I've used the solution Peter Breis posted (4th post in that thread) in iWork Tips 'n' Tricks with a little "tweak."
    Making Numbers '09 the default whilst keeping Pages 5
    1. Move any new iWork apps in another clearly labelled folder (I created a new folder in Applications & named it iWork 13)
    2. Menu > Apple > System Preferences > Spotlight > Privacy > drag the above folder into the list
    2) Move the new iWork folder into the trash (temporarily)
    3) Select any Numbers file in Finder > Menu > Info (cmd+i) > Open with: > Pages '09 > Change all
    4) Re the new iWork folder from the trash (right-click > Put back)
    Pages 5 should no longer appear as a default App, and you won't have to keep a copy in a separate drive or dmg.
    IMPORTANT: Make a note of where and how Pages was installed for the next App Store update and temporarily move it back there before putting it away again in the folder concealed from Spotlight.

  • When I try to reinstall Photoshop Element 13, I get the message "cannot write file". i own the program and I don't want to subscribe to Creative Cloud. What can I do?

    When I try to reinstall Photoshop Element 13, I get the message "cannot write file". i own the program and I don't want to subscribe to Creative Cloud. What can I do?

    This has nothing to do with CC or any of that. You have insufficient user privileges to write files locally on your computer or a technical issue gets in teh way. Since you have not provided any system info or otehr details, we cannot tell you more than that.
    Mylenium

  • Can i uninstall all the non 2014 versions of the software (Ex. Photoshop, Premiere ect.)? Wondering since i don't want to break any programs.

    Id like to know if i can uninstall all the non 2014 versions of adobe products. Id rather know before i try as i don't want to break some programs but i need to free up some pc space.

    http://blogs.adobe.com/jkost/2014/06/installing-the-2014-release-of-creative-cloud.html
    This messages says (at least some) CC 2014 programs use NEW plugins https://forums.adobe.com/thread/1499663
    -so do not uninstall the older CC programs if you use plugins in your programs until you are sure you have plugins that work in CC2014
    If you are sure you don't need the old CC programs
    -http://helpx.adobe.com/creative-cloud/help/install-apps.html to install or uninstall
    -read reply #3 about the ORDER of uninstalling & installing https://forums.adobe.com/thread/1242671

  • I am IRATE that the flash player update just loaded several BS programs that I don't want.  FAIL

    I am IRATE that the flash player update just loaded several BS programs that I don't want.  FAIL

    I am IRATE that the flash player update just loaded several BS programs that I don't want.  FAIL

  • Why does Mobile Data notification keep coming up saying 'Mobile Data is turned off for "Numbers" and I have to click on OK to get rid of it? I KNOW it's turned off for that program because that is what I want it to be set at. What I DON'T want is to have

    Why does Mobile Data notification keep coming up saying 'Mobile Data is turned off for "Numbers" and I have to click on OK to get rid of it? I KNOW it's turned off for that program because that is what I want it to be set at. What I DON'T want is to have to click on OK EVERY TIME I open the program when I'm away from wifi.

    That is how it works in general, not just for Numbers. It irritates me on other apps at times, although I can see an argument that if it didn't do that then people would complain about missing functionality after they forgot they had turned data off for an app. At any rate, this is a user to user support forum and we can't do anything about it. If you want to make a suggestion to Apple, following is a place to do that: http://www.apple.com/feedback/

  • TS3212 I have a different CD DVD program, and I don't want to delete it, and ITunes is telling me another program is doing the CD DVD program, so it is not completing installation?

    Since this other program I use for CD copying and DVD copying, or as we say back up, I don't want to delete it, but I Tunes will notcomplete with me using this, and I don't know what do do.
    It stops for example when I want to update my IPod Touch 64GB to add ISO5.
    Any suggestions?
    Thank you, holidaypro

    No clue what you are talking about.
    What is the exact wording of the message displaying?
    What does this have to do with an iPod Touch?
    iTunes honestly could care less what CD/DVD recording program you have installed.

  • Are all 'maintenance programs' compatible with Firefox? I'd like to install one, but don't want to use one that will change my Firefox settings.

    I want to install a 'computer maintenance program' but want to make sure that the one I use won't have a problem with or change my Firefox settings. Do you have any suggestions as to which program to use?

    Thanks a lot Cor-el,
    I actually want to use a different user interface language. I was able to install the spell-checkers and dictionaries previously, but I didn't know what to do with the UI language. I checked the links you kindly provided but apparently, the downloadable language packs are not compatible with Firefox 31, which they set up in my office. Is there any way to force the install?
    I also checked out the locale switcher but since the language pack extension is not compatible with firefox 31... If you have time to spare, I would be very interested in finding out more about your desktop shortcut solution.
    I use a mac at home, and language-wise it's so much better. My own profile is completely in English whereas my wife is in French, which simplifies things (I just made sure to tell her to use safari if she wants to browse in French!)
    One solution I used in the past was to reinstall firefox in English, but I have to do that every time the IT guys update FF, and then, you don't want to stand out if you want to remain in their good graces.
    Thank you very much for your help anyway,
    Remy

  • HotSyncing programs I don't want...

    I have a few programs that I don't want including some that crash my Treo and require me to hard reset, and everytime I HotSync it re-installs them, I went to Hotsync manager and looked at apps and they don't show up, I also tried to deactivate install. I have all the current software and I think I have the latest firmware. Sometimes it crashes and sometimes it don't but I want to get these crap programs off and to stay off. Thank you for any help you can give me.
    Post relates to: Treo 650 (Verizon)
    This question was solved.
    View Solution.

    Ben, best method (though drastic) would be to Hard Reset your device and rename the /Backup folder in your Palm directory tree for your Hotsync name.
    On an XP machine, the folder is here:  C:\Program Files\Palm\ (your HotSync ID abbreviated)\Backup.  Name it \BackupOLD for example.
    All your PIM data will return when you pick your old Hotsync ID, but none of the programs or corrupt system files will return that are causing the problems.
    WyreNut
    Post relates to: Centro (AT&T)
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Hey ! At the moment I am creating a eBook, which should contain links to iTunes. Does anyone know, if it is necesary to join the affiliate program for this ?? Cause I don`t want to ;-)

    Hey ! At the moment I am creating a eBook, which should contain links to iTunes.
    Does anyone know, if it is necessary to join the affiliate program for this ?? Cause I don`t want to ;-)

    Hi Bruce,
    I'm getting closer. I actually tried a variety of  expressions, such as "== null" and yours, but the problem persists.
    I am settling on the following, but there is a hangup related to the field that is being looked at for the condition that I will explain in a minute. Here's the script:
    if 
    (ViolationsTable.ViolCorrSection.ViolationsText.DebitVal.isNull || ViolationsTable.ViolCorrSection.ViolationsText.DebitVal.rawValue.length == 0)
    ViolationsTable.ViolCorrSection.instanceManager.removeInstance(parent.parent.index);
    else
    app.alert ("Warning Statement);
    ViolationsTable.ViolCorrSection.instanceManager.removeInstance(parent.parent.index);
    What happens is that, no matter which row in my table I'm in when I click the remove instance button, the script is always looking to the DebitVal field in the first row of the table. So, if the first row is empty, the message box won't appear for the removal of any row in my table. If the first row has a value in DebitVal, then the deletion of any row in the table will trigger the message box.
    I need a way to specify the script to look at the DebitVal field in the row that I am clicking in, without messing up the remove instance command.
    Ideas?
    Dave

  • HT201454 How do you handle family members outside the household being a part of the Family Sharing program?  I don't want them using my credit card for itunes and/or apps on their phones - just want to be able to share pictures/videos.

    Wanted to include my sister and parents in the Family Sharing group under the iCloud app, but I don't want them using my credit card for their purchases.  We just wanted to be able to share pictures and/or videos and find each other, if necessary.  Is there a way around my card being the default for them when they go to purchase something?

    If you don't want your sister to make purchases on your credit card, then Family Sharing is not an appropriate way to do what you want. You can use Find my Friends to locate each other and you can use Shared Photo Streams to share photos.

  • When I do a download, it is saved to a Binary File. Where are these files stored & how do you uninstall a program you don't want to keep ?

    I use firefox, when I download a file from another website, there is a pop-up that shows the name of the download, which shows it is saved to a binary file, (don't know what a binary file is) but my question is where are the binary files stored on my computer & if I can uninstall it if I don't want to keep it.

    read basic about svchost:
    [http://support.microsoft.com/kb/314056/en-us A description of Svchost.exe in Windows XP Professional Edition]
    find svchost services:
    [http://webcache.googleusercontent.com/search?q=cache:pa9PdGlHr0sJ:www.bleepingcomputer.com/tutorials/list-services-running-under-svchost.exe-process/+what+is+svchost.exe&cd=12&hl=el&ct=clnk&gl=gr a way how to determine what services are running under a SVCHOST.EXE process]
    One Temporary Solution is to disable the Windows Automatic Update service:
    http://ask-leo.com/how_do_i_fix_this_high_cpu_usage_svchost_virus_or_whatever_it_is.html
    (no '''it is not''' a virus)
    (works for me)
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • Are clean my mac and mackeeper legit? i am nervous as i got caught with mac defender. both of these programs i found on my mac tips and tricks app on dashboard and thought they would be approved. not sure and don't want to go ahead and use the samples etc

    are clean my mac and mac keeper legit? i am nervous as i got caught in the macdefender scheme but these two i found on the mac tips and tricks app on dashboard so downloaded them but haven't used them yet. just don't want or need another mac defender hassle. thanks for any and all info in advance

    once again thanks for more info. what i am still not clear on is if i haven't installed mackeeper can i just drag the icon of the open box [in one case] and the mackeeper icon in my app folder. i somehow downloaded two copies of mackeeper. clicked on one and it was put into my app folder. then i decided to use it and clicked on it and it started asking for email address and stuff. while i put an address in i didn't finish installing or hitting the button that would have probably got it completely installed.
    checked the email address i gave it and no notice from them that i had completed the install or any other info. makes me hope it is still un installed.
    given the givens should i use the apple help writer "how to uninstall mackeeper" on one or both of them or just hope that dragging them to the trash will suffice?
    one of the many great things about apple is this support communities and folks like you and paul. have been rescued from my stupidity by others and you guys. thanks again

  • I have Firefox 19.0 on Mac OS 10.6.3. It downloaded an update and threatens to install it next time I run Firefox. How do I prevent this? I don't want it.

    I used "Show package contents" to open Firefox.app, and I see a Firefox icon named "updated". Can I just delete this, or will it also remove Firefox entirely? If so, can I get my old version of Firefox back? Until I can figure out how to not install this update, I won't restart Firefox. Thanks!

    Sorry, I don't want it. I didn't ask for it to download, and I don't run programs I haven't chosen specifically to install. Is there a way to get my old Firefox back? If not, I won't be using Firefox anymore. Thanks!

Maybe you are looking for

  • Problem with Installing and Configuring MS Server 2012 Essentials trial and MS Server 2012 Standard trial

    My name is John Grace.  I have been an MS customer for years.  Never before in my experiences with MS up to this point have I experienced such POOR product support.  Your pre-sales agents have no knowledge to offer with pre-sales config or install is

  • Using Huey Pro with iMac

    Good afternoon, About a year ago I had asked if anyone had been able to calibrate an iMac i5 with a Huey Pro? Ian Lyons was kind enough to answer suggesting installing Rosetta. As a result, I did that and d/l the latest Pantone drivers many times ove

  • Multiple safari pages

    I have a problem when a hyperlink opens a new page. When I close the new page and go back to the original (where the hyperlink was), the page refreshes and goes to the page that previously opened in a new window. I also can't use the back button when

  • 5.1 plus stereo audio

    Can anyone help me to know how I can render out a quicktime movie with 5.1 surround sound plus stereo pairs on tracks 7 and 8. I'm basically trying to follow the guidelines for Apple iTunes submissions. Can this be done in Premiere CC. I've been able

  • Reg: Convet Date in to time

    HI ALL. my requirment is differnece between two days . that result days need to be display in time format . is there function module to convert the days in to time . Thanks and regards Ramesh yadav.