Quick Solution to Oracle deadlock

Source: Internet
Author: User

The following articles mainly introduce a more efficient method to achieve Oracle deadlock. The following describes the specific solution. If you are interested in the actual operations, you can click to view the following articles. I hope it will help you in this regard.

1. Check which process is locked

Check the V $ DB_OBJECT_CACHE View:

 
 
  1. SELECT * FROM V$DB_OBJECT_CACHE WHERE OWNER=' 

Process owner 'and locks! = '0 ';

2. query which SID is used to identify which SESSION.

Check the V $ ACCESS View:

 
 
  1. SELECT * FROM V$ACCESS WHERE OWNER=' 

Process owner 'and name = 'process NAME just found ';

3. Identify SID and SERIAL #

Check the V $ SESSION View:

 
 
  1. SELECT SID,SERIAL#,PADDR FROM V$SESSION WHERE SID=' 

SID you just found'

View V $ PROCESS:

 
 
  1. SELECT SPID FROM V$PROCESS WHERE ADDR=' 

PADDR we just found ';

4. Kill processes

(1) first kill the Oracle process:

 
 
  1. ALTER SYSTEM KILL SESSION ' 

SID, SERIAL #';

(2). You can use the CMD console to kill operating system processes:

ORAKILL database implements the SPID just found

Remember to write down the Oracle deadlock we have detected and Kill it one by one. If the Kill is not clean, the problem still cannot be solved.

Related Article

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.