Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: _DISTRIBUTED_LOCK_TIMEOUT parameter

Re: _DISTRIBUTED_LOCK_TIMEOUT parameter

From: Mark D Powell <Mark.Powell_at_eds.com>
Date: Fri, 31 Aug 2007 16:05:12 -0700
Message-ID: <1188601512.628492.59790@y42g2000hsy.googlegroups.com>


On Aug 31, 2:34 pm, purohita..._at_gmail.com wrote:
> Hi All,
>
> Oracle version: 9.2.0.8
> We are facing a problem with one of our jobs that runs on say database
> db_a and writes on db_b.
> Job, at times, aborts giving error "ORA-02049: timeout distributed
> transaction waiting for lock".
> One of the recommendations that came up was to increase
> DISTRIBUTED_LOCK_TIMEOUT to 7 minutes instead of default 60 secs.
>
> A had a couple of questions on this change and it would be great if
> anyone can provide pointers:
>
> 1. By changing this parameter, is the impact limited to operations
> performed over dblink or if anyone has seen anything different.
>
> 2. Any other way that this error can be fixed.
>
> Further whats confusing is no other query is locking the table when
> this job runs and this job doesn't lock itself out.
>
> Thanks,
> Atul

A better solution would probably be to
1- find out what application is holding the lock and see if you can modify/correct it to commit its changes in a more timely manner and  2- modify the current application to capture the error and try again up to X times. This way you do not force every application to wait 7 minutes before timing out.

IMHO -- Mark D Powell -- Received on Fri Aug 31 2007 - 18:05:12 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US