How can I restore and proceed to the next record.

Hello gurus.   I have the procedure, my question is if I get the error in the loop to say to the 5th record. How can I skith who rank and proceed to the next record in the loop. I tried save points.   your help is appreciated.

[code]

procedure insert_model1 is

exception of E2;

Start

because me in 1... 10 loop

Start

SAVEPOINT s1;

Insert in model 1

(MODEL_ID, MODEL_SEQ, P_IND)

values

(i, i + 1, 'U');

-calling an another procedure

insert_model2('Y');

If I = 15 then

lift e2;

end if;

-commit;

end;

end loop;

commit;

exception

When e2 then

Restore s1;

dbms_output.put_line (sqlerrm |) ',' || SQLCODE);

while others then

Restore s1;

-restoration;

dbms_output.put_line (sqlerrm |) ',' || SQLCODE);

end insert_model1;

[/ code]

My question is if I get the error in the loop to say to the 5th record. How can I skith who rank and proceed to the next record in the loop. I tried save points.

You tried save points, but you have done the restoration outside of the loop.

You must perform the restore in an exception inside the loop block.

Start

because me in 1... 10 loop

Start

SAVEPOINT s1;

Insert in model 1

..

EXCEPTION

...

RESTORE s1;

END;

end loop;

Tags: Database

Similar Questions

  • How can I restore and recover the database to a different server using RMAN?

    Hello Friend:

    How can I restore and recover the database to a different server using RMAN? I want to implement an enviroument which has a different enviroument and different directories.

    That's the two servers. different stored different on each server and a single link, a table library where backup set.

    I can only restore and recover the database of the Rman command. Could you give me a demo?

    Thank you

    How can I restore and recover the database to a different server using RMAN? I want to implement an enviroument which has a different enviroument and different directories.

    That's the two servers. different stored different on each server and a single link, a table library where backup set.

    I can only restore and recover the database of the Rman command. Could you give me a demo?

    Check this box
    * How to restore Rman backups on a different node when the Directory Structures are different [ID 419137.1] *.

  • How can I find and open/search the 32 GB of data that fills the disk for possible deletion?

    Using XP: I have only about 2 GB (2 000 MB) of the programs on my hard drive Go 37 and less than 3 GB of space left.

    How can I find and open/search the 32 GB of data that fills the disk for possible deletion?

    Thank you.

    * original title - full hard drive. *

    Using XP: I have only about 2 GB (2 000 MB) of the programs on my hard drive Go 37 and less than 3 GB of space left.

    How can I find and open/search the 32 GB of data that fills the disk for possible deletion?

    Thank you.

    Download and run JDiskReport.

    There are a number of things you can do to- temporarily - free up disk space.  The only real solution, however, is to get a larger hard drive.

    • You can run Disk Cleanup (start > run > cleanmgr > OK)
    • You can reduce the size allocated for the restoration of the system to about 1 GB (right click on desktop > properties > system restore > settings)
    • You can disable hibernation (if you don't use it) (right click on an empty spot on the desktop > properties > screen saver > power > Hibernate)
    • You can disable the indexing of the drive, which will also speed up your computer a bit (http://lifehacker.com/031440/turn-off-indexing-and-speed-up-windows-xp)
    • You can reduce the size of your Internet browser cache (depending on the browser that you use)
    • You can remove most of the $NTUninstallKBxxxxxx files $ following the directions here: http://windowsxp.mvps.org/Hotfix_backup.htm (read the warnings in the gray box first)

    But none of these answers you will earn really large amounts of space for very long.  The term solution time is a bigger hard drive.

    In the meantime, download and run JDiskReport, that will show you graphically what files take up more space and seem to so indicate what files to delete or uninstall applications.

  • All the links on a page was taken over by ads. How can I stop and go to the linked site correct

    All the links on a page was taken over by ads. How can I stop and go to the linked site correct

    You may have ad / bad-ware. More information can be found in the article troubleshooting Firefox problems caused by malware .

    Run most or all of the listed malware scanners. Each works differently. If a single
    program forget something, someone else can pick it up.

    Adblock more {web link}
    Blocks annoying video ads on YouTube, Facebook ads, banners
    and much more. Adblock Plus blocks all the annoying ads, and
    supports Web sites by blocking is not discrete (configurable) default ads.

    Pop-up Addon Adblock more {web link}
    Adblock Plus pop-up Addon - extends the functionality of blocking of the
    Adblock Plus for those annoying windows pop up that opens on the mouse
    clicks and other actions of the user.

    Forum; Homepage of Adblock Plus {web link}

  • How can I restore 'folder options' in the section "Tools"?

    How can I restore 'folder options' in the section "Tools"?

    One of the solutions in the following thread will solve your problem:

    "Why don't I have Folder Options in tools?
    <>http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-files/why-Don >

    HTH,
    JW

  • How can I fix sfc cannot repair the military record [I: 24 {12}] 'settings.ini '.

    How can I fix sfc cannot repair the military record [I: 24 {12}] 'settings.ini '.

    Original title: System repair

    Hello

    You can safely ignore the error messages in the CBS.log file. The SFC.exe command falsely reports the Settings.ini file information in the CBS.log file.

    The SFC.exe command reports Settings.ini file errors in the CBS.log file after you add gadgets to the Sidebar of Windows Vista by using the Sysprep tool and an Autounattend.xml file
    http://support.Microsoft.com/kb/947595

    Reference:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833

  • How can I restore my icons on the desktop to backup files after reinstalling Win 7 Home?

    HD failure forced me to reinstall my Win 7 home page.  Fortunately, I was able to save before total chaos ensued.  (My set of files has been relatively low, so I did a copy/paste of my drive c: \.)  How can I restore my desktop icons in the backup files?

    Hi pb1313,

    Thanks for posting in the Microsoft Community. It seems that you try to restore the backup after reinstalling Windows 7.

    As you have copy and pasted the c drive visit this link if you want to manually transfer files ignore the title and see the steps mentioned in this link and check:

    How to restore a Windows 7 computer to a previous Windows installation by using the Windows.old folder

    http://support.Microsoft.com/kb/971760

    Hope this information helps. If you have any other questions feel free to respond and we would be happy to help.

  • Conditional Sum and look to the next record

    First of all, here is an example of XML structure
    & lt; game DATA & gt;
    & lt; DATASET_ROW & gt;
    & lt; DEPARTMENT & gt; 1 & lt; / DEPARTMENT & gt;
    & lt; FEES & gt; 30 & lt; / FEES & gt;
    & lt; DIVISION & gt; displayed title & lt; / DIVISION & gt;
    & lt; / DATASET_ROW & gt;
    & lt; DATASET_ROW & gt;
    & lt; DEPARTMENT & gt; 1 & lt; / DEPARTMENT & gt;
    & lt; FEES & gt; 20 & lt; / FEES & gt;
    & lt; DIVISION & gt; Displays Title2 & lt; / DIVISION & gt;
    & lt; / DATASET_ROW & gt;
    & lt; DATASET_ROW & gt;
    & lt; DEPARTMENT & gt; 1 & lt; / DEPARTMENT & gt;
    & lt; FEES & gt; 40 & lt; / FEES & gt;
    & lt; DIVISION & gt; title displayed 3 & lt; / DIVISION & gt;
    & lt; / DATASET_ROW & gt;
    & lt; DATASET_ROW & gt;
    & lt; DEPARTMENT & gt; 2 & lt; / DEPARTMENT & gt;
    & lt; FEES & gt; 30 & lt; / FEES & gt;
    & lt; DIVISION & gt; visible title 5 & lt; / DIVISION & gt;
    & lt; / DATASET_ROW & gt;
    & lt; DATASET_ROW & gt;
    & lt; DEPARTMENT & gt; 2 & lt; / DEPARTMENT & gt;
    & lt; FEES & gt; 80 & lt; / FEES & gt;
    & lt; DIVISION & gt; displays title 6 & lt; / DIVISION & gt;
    & lt; / DATASET_ROW & gt;
    & lt; DATASET_ROW & gt;
    & lt; DEPARTMENT & gt; 3 & lt; / DEPARTMENT & gt;
    & lt; FEES & gt; 90 & lt; / FEES & gt;
    & lt; DIVISION & gt; displays title 7 & lt; / DIVISION & gt;
    & lt; / DATASET_ROW & gt;
    & lt; DATASET_ROW & gt;
    & lt; DEPARTMENT & gt; 3 & lt; / DEPARTMENT & gt;
    & lt; FEES & gt; 90 & lt; / FEES & gt;
    & lt; DIVISION & gt; displays title 8 & lt; / DIVISION & gt;
    & lt; / DATASET_ROW & gt;
    & lt; DATASET_ROW & gt;
    & lt; DEPARTMENT & gt; 4 & lt; / DEPARTMENT & gt;
    & lt; FEES & gt; 30 & lt; / FEES & gt;
    & lt; DIVISION & gt; displays title 9 & lt; / DIVISION & gt;
    & lt; / DATASET_ROW & gt;
    & lt; / Group DATA & gt;

    Is it possible to get a sum of a field, grouped by two different fields? Example in my RTF, I have a repeating group based on the DIVISION that inserts section breaks. In the example I posted here what I have in my RTF model is an amount of TAX (guess there are several records for the DIVISION if only 1 is shown here) which appears on each page for the current group. Each DIVISION is printed on its own page. However, at the end of each DEPARTMENT, I also need to print a summary total of the sum of the FEES on all records for this DEPARTMENT on the same page as the last page of the last DIVISION.

    So far, I have so he can make the subtotals for each DEPARTMENT, as they are in my loop. The tricky part, I'm not sure better to go to get and display the total general conditional. My original idea was to use a variable and do it manually in my template, but then I relaized I didn't know how to find out if the next record is the first record in the next Department or not. In this case, I'm hoping to stick in the field of the use of the straight lines of SQL query as my datasource because it's already done. The other option I considered was nested loops and a data model, but then I realized that I wasn't too sure to manually insert section breaks.

    Any thoughts?

    I sent you the model back changed,

    Let me know if that solves the question ;)

  • How can I restore my computer to the way it was when I bought it

    I want to restore my computer to the way it was when I bought but don't know how someone can help me. It's a dell

    Hello

    Here are the different ways to reinstall Vista

    Contact the manufacturer of the laptop computer and ask them to send you to vista recovery disks to reinstall the operating system back as it was when you bought it

    they do it for a nominal cost of $

    ____________________________________________________________

    also ask them if you have a recovery partition on your hard drive to get back to the way you bought

    you would normally press F8, F9, F10 or F11 or Alt + F10 or 0 to start to start the recovery process according to the manufacturer

    Ask them of the exact key sequence

    __________________________________________________________

    or borrow a vista microsoft dvd; not a HP, Acer recovery disk etc

    Make sure that you borrow the correct 32-bit or 64-bit microsoft dvd to your computer

    they contain all versions of vista

    This is the product key that determines which version of vista is installed

    http://www.theeldergeek.com/Vista/vista_clean_installation.html

    ____________________________________________________________

    How to replace Microsoft software or hardware, order service packs and replace product manuals

    http://support.Microsoft.com/kb/326246

  • How can I restore my laptop to the original without a backup disk settings

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas: i have a laptop of hi quality and was not provided with a backup with the purchase.how disk do my original rear 2 portable format

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Read the general reinstall info below:

    Vista recovery media obtain and/or use the Partition Recovery Vista on your computer to the factory settings .

    There is no Vista free download legal available.

    Contact your computer manufacturer and ask them to send a recovery disk/s Vista set.

    Normally, they do this for a cost of $ small.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    In addition, ask them if you have a recovery Partition on your computer/laptop to restore it to factory settings.

    See if a manual provided with the computer or go to the manufacturer's website, email or you can call for information on how to make a recovery.

    Normally, you have to press F10 or F11 at startup to start the recovery process...

    Another way I've seen on some models is press F8 and go to a list of startup options, and launch a recovery of standards of plant with it, by selecting the repair option.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Also ask them if it is possible to do the recovery disk/s for the recovery Partition in case of a system Crash or hard drive failure.

    They will tell you how to do this.

    Every computer manufacturer has their own way of making recovery disk/s.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Or borrow a good Microsoft Vista DVD (not Dell, HP, Acer, recovery disk/s etc).
    A good Vista DVD contains all versions of Vista.
    The product key determines which version of Vista is installed.

    There are 2 disks of Vista: one for 32-bit operating system, and one for 64-bit operating system.

    If install a cleaning is required with a good DVD of Vista (not HP, Dell recovery disks):

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    http://support.Microsoft.com/default.aspx/KB/918884

    MS advice on the conduct of clean install.

    http://www.theeldergeekvista.com/vista_clean_installation.htm

    A tutorial on the use of a clean install

    http://www.winsupersite.com/showcase/winvista_install_03.asp

    Super Guide Windows Vista Installation

    After installation > go to the website of the manufacturer of your computer/notebook > drivers and downloads Section > key in your model number > get latest Vista drivers for it > download/install them.

    See you soon.

    Mick Murphy - Microsoft partner

  • Lost all my smart insights.  How can I restore and prevent it happening again.

    Last week, I built a few thousand smart insights and original moved off computer.  I had edited many of intelligent previews through Sunday, February 7.  The next morning, not one of these thousands of intelligent previews I created could be seen one of my many files.  The only file of intelligent Preview in my Lightroom backups is from 2014, no help.

    How restore them without having to rebuild them?  How can I prevent this happening again?  Thank you.

    Hi LarryJohnson,

    Previews Smart never get pulled out and they are always stored in the same place exactly like your Lightroom Catalog.

    Work in the same catalog for which you have created smart insights?

    Go to file > open recent item > check for any other catalog which is the most recent.

    What was the purpose of moving the originals out of your computer?
    Even if you have intelligent insights and you left your originals, you would not be able to export images from Lightroom that the originals are disconnected.

    Kind regards

    Claes

  • How can display date and time in the text element?

    Hi all

    I placed two text elements (named text_item1, text_item2).
    I want to put the current date in a text element and the current time in another piece of text. How can I put this?

    Roman salute

    Use pls...

    SELECT TO_CHAR
        (SYSDATE, 'MM-DD-YYYY')
    
    INTO TEXT_ITEM1
     FROM DUAL;
    
    &
    
    SELECT TO_CHAR
        (SYSDATE, 'HH24:MI:SS')
    
    INTO TEXT_ITEM1
    
     FROM DUAL;
    

    OR put the Formate above in the mask property of formats...

    Kind regards

    Abdetu...

  • How can I restore Firefox 4 for the exact conditions, it was when he downloaded?

    I want to restore Firefox 4 in the exact condition as it was when he downloaded before I made any changes.

    You can create a new profile to have a fresh start.

    See:

    If this new profile works then you can transfer files from the old profile to the new profile (be careful not to copy corrupted files)

    See:

  • How can I restore original screen in the mail?

    Recently, someone in technical support hp remote access my computer (with my permission) and changed the screen in mail so that I no longer see the main menu.  It's like I'm full-screen mode, and I don't know what to do and return to the original screen.  Can you help me?

    Try shift-command-m or escape.

  • How can I catch and respond to the events to load a PDF incorporated into the Web site?

    I have a pdf embedded in my web page by using a URL in an HTML object tag.  Sometimes the URL is not responding, or throws an exception.  Is there a way I can capture that from the plugin side client in javascript and indicate to the user that's happened?  Same result in IE and Chrome, even if plugins are different - when the URL fails, the user just sits on a white screen.  It would also be nice to be able to catch a load event, so I don't know when the PDF was loaded successfully (so I could do my own spinner, for example).

    Hi woopsydoozy,

    See the KB documents below to help: -.

    Kind regards
    Nicos

Maybe you are looking for