"ORA-02049" timed out Distributed transaction processing wait Lock resolution method

Source: Internet
Author: User

(1) query deadlock with SYS user Login database:

Sql> Select Username,lockwait,status,machine,program from v$session where SID in (select session_id from V$locked_obje CT);

(2) Then use the statement to find the dead lock statement

Sql> Select Sql_text from V$sql where Hash_value in
(select Sql_hash_value from v$session where SID

In (select session_id from V$locked_object));

(3) Then use the following statement to find the deadlock process

Sql> SELECT s.username,l.object_id,l.session_id,s.serial#, L.oracle_username, l.os_user_name,l.process from V$ Locked_object l,v$session S WHERE l.session_id=s.sid;

(4) According to the SID, Serial# found in step (3), use the following statement to kill the deadlock process

Sql>alter system kill session ' Sid,serial '; (where sid=l.session_id)

"ORA-02049" timed out Distributed transaction processing wait Lock resolution method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.