Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> raise_application_error with Triggers
Hi,
I have raised an application error from inside the PL/SQL block section
of a CREATE TRIGGER statement. The user error is raised successfully,
but in addition to that, there are two other errors which are raised.
The statement which is used in the PL/SQL block is :-
raise_application_error(-20000,'Invalid data')
The trigger is fired under the correct conditions i.e when the relevant actions on the database are performed, but the following errors are raised :-
ERROR at line 1:
ORA-20000: Invalid data {Which seems correct} ORA-06512: at <Trigger Name>, line 9 {Why does it do this ?} ORA-04088: error during execution of trigger <Trigger Name> {Why does itdo this ?}
Thanks. Received on Mon May 25 1998 - 11:18:30 CDT