Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Trapping Errors in SQL*Plus

Re: Trapping Errors in SQL*Plus

From: Stephan Born <stephan.born_at_beusen.de>
Date: Mon, 08 Nov 1999 17:10:31 +0100
Message-ID: <3826F5F6.2AA2629@beusen.de>

Michel Cadot schrieb:

> Even in SQL*Plus you can use the statement
> whenever sqlerror exit [commit|rollback];
>
> This makes the script exit SQL*Plus when an error occurs.
>
> --
> Have a nice day
> Michel
>

Make use of

whenever sqlerror exit [failure|success] [commit|rollback]

do not rely on default behavior ... :o)

Regards, Stephan
--


Dipl.-Inf. (FH) Stephan Born   | beusen Consulting GmbH
fon: +49 30 549932-0           | Landsberger Allee 392
fax: +49 30 549932-29          | 12681 Berlin
mailto:stephan.born_at_beusen.de  | Germany
---------------------------------------------------------------
       PGP-Key verfügbar       |      PGP-Key available
---------------------------------------------------------------


Received on Mon Nov 08 1999 - 10:10:31 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US