thanks in advance,
Peter Leijsten
raise_application_error(-20409) in any procedure will do.
What problem are you trying to resolve other than to keep your job.
--
Sybrand Bakker, Senior Oracle DBA
declare
tst_wait exception;
pragma exception_init(tst_wait, -2049);
begin
raise tst_wait;
end;
/
SQL> @2049
declare
*
ERROR at line 1:
ORA-02049: timeout: distributed transaction waiting for lock
ORA-06512: at line 5
Easy as that.
David Fitzjarrell
Thx Sybrand, and David as well. Keeping my job won't be a problem;-).
We just want to try some stuff in the exception handler, that's all
Thanks again.
kind regards,
Peter