How to deal with Oracle deadlock sessions

Source: Internet
Author: User


Oracle deadlock session processing method when a deadlock occurs in Oracle, the Operation deadlock data will remain in the waiting state. The specific solution is as follows: Query all deadlocks: 1 SELECT * from v $ LOCK; query all sessions: 1 SELECT * from v $ SESSION; www.2cto.com query all deadlocked sessions: 1 select sn. SID, 2 SN. SERIAL #, 3 SN. USERNAME, 4 SN. MACHINE, 5 SN. TERMINAL, 6 SN. PROGRAM, 7 SN. TYPE8 from v $ SESSION SN9 where sn. sid in (select lk. sid from v $ lock lk); KILL a deadlock SESSION: alter system kill session 'sid, SERIAL # '; Author: Wu Zi

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.