Unix Technical Forum

Re: WHENEVER SQLERROR does'nt always work

This is a discussion on Re: WHENEVER SQLERROR does'nt always work within the Oracle Database forums, part of the Database Server Software category; --> On 26 Jun 2003 05:09:48 -0700, ni4ni@hotmail.com (Guy) wrote: >Hi > >I have a set of sql scripts that ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-22-2008, 05:55 PM
Sybrand Bakker
 
Posts: n/a
Default Re: WHENEVER SQLERROR does'nt always work

On 26 Jun 2003 05:09:48 -0700, ni4ni@hotmail.com (Guy) wrote:

>Hi
>
>I have a set of sql scripts that creates several tables and them
>populates them with rows (via insert statements).
>Each script begins with WHENEVER SQLERROR... and WHENEVER OSERROR...
>So it should halt once an error occures. I thought this will cover all
>possible errors.
>The problem is that it doesnt work with all kinds of errors. For
>example, if I wrote "nsert into" instead of "insert into" then
>SQL*PLUS throws this error message: SP2-0734: unknown command
>beginning "NSERT INTO..." but execution doesnt stop.
>
>Does it mean that WHENEVER SQLERROR doesnt catch "SP2" errors ? is
>there a way to catch this kind of errors ? I could'nt find a clue in
>SQL*PLUS documentation.
>
>
>T.I.A
>
>Guy


Why catch parsing errors? Your scripts are static aren't they? Just
correct the incorrect statement obviously


Sybrand Bakker, Senior Oracle DBA

To reply remove -verwijderdit from my e-mail address
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:45 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com