Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: fabricating a ORA-02049 message
bozzie_at_xs4all.nl (Peter Leijsten) wrote in message news:<2b39ddad.0407210600.2b40207b_at_posting.google.com>...
> Believe it or not, for analyzing some problem at work my boss actually
> wants me to to write a script that will generate a ORA-02049
> (time-out: distributed transaction waiting for lock) message. From
> searching in the archives of this newsgroup I believe it has something
> to do with accessing tables at remote databases and the
> DISTRIBUTED_LOCK_TIMEOUT parameter. Is there an easy way to 'generate'
> this oracle error message using a two databases connected via a
> database link?
>
> thanks in advance,
> Peter Leijsten
declare
tst_wait exception; pragma exception_init(tst_wait, -2049); begin raise tst_wait;
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 Received on Wed Jul 21 2004 - 13:47:26 CDT