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

Home -> Community -> Usenet -> c.d.o.tools -> WHENEVER SQLERROR doesn't work?

WHENEVER SQLERROR doesn't work?

From: Tomasz Bech <tbech_at_POP.GO2.PL>
Date: Thu, 22 Mar 2001 10:58:08 +0100
Message-ID: <3AB9CCB0.E5F3AB6C@POP.GO2.PL>

Hi,

    At the begginig of sql script I have: WHENEVER SQLERROR EXIT SQL.SQLCODE
WHENEVER OSERROR EXIT later on the package body. In one of the function there is a bug (in my case PLS-00103).
Package si compiled with warnings. WHENEVER SQLERROR doesn't exist in this case. (but it works for wrong statements outside the plsql blocks)

How to force the Oracle plsql-compiler to exit when PLS-number error occures?
(I suppose that I should use WHENEVER PLSQLERROR command, but such doesn't exits).
Or how to check at the end of the script that there was something wrong and to return error code to shell.

        Tomasz Received on Thu Mar 22 2001 - 03:58:08 CST

Original text of this message

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