Re: SQL*PLUS: how to supress error msg

From: karsten <karsten-aNOS_at_PAMt-gis.shl.com>
Date: Wed, 27 Jan 1999 11:44:28 -0500
Message-ID: <36AF426C.103287EB_at_PAMt-gis.shl.com>


Hi,

Günter Thaler wrote:
> you can handle each oracle-error with pragma exception_init ...
>
> example:
> declare
> no_synonym exception;
> pragma exception_init(no_synonym , -1434) ;
> begin
> drop synonym ....
> exception
> when no_synonym then
> null;
> end;
>

 unfortunately, it is not that simple.
 I would have to create a cursor and use dbms_sql to drop  the synonyms. pl/sql itself does not have a 'drop ....'

 I have about 50 synonyms, and it is really painful to  modify all scripts to do this kind of thing.

Cheers Karsten Received on Wed Jan 27 1999 - 17:44:28 CET

Original text of this message