This error comes when DML statement waits for a row level lock in remote database and distributed transaction waiting time is timed out, which defaults to 60 seconds specified by init parameter distributed_lock_timeout. In all cases, it involves DB links (distributed transactions)
SQL> update emp@rep1 set deptno=20 where empno=7789;
update emp@rep1 set deptno=20 where empno=7789;
*
ERROR at line 1:
ORA-02049: timeout: distributed transaction waiting for lock
ORA-02063: preceding line from REP1
SQL> show parameter distri
NAME TYPE VALUE
------------------------------------ ----------- ------------
distributed_lock_timeout integer 60
or
select name,value
from v$parameter
where name = 'distributed_lock_timeout'
NAME TYPE VALUE
------------------------------------ ----------- ------------
distributed_lock_timeout integer 60
No comments:
Post a Comment