Oracle prompts "the resource is busy and nowait needs to be specified" SOLUTION

Source: Internet
Author: User

InOracleDuring database operations, the following message is displayed during table operation: "The resource is busy. You needSpecify nowait"How can we solve this problem? This article introduces this solution, hoping to help you.

The solution is as follows:

1. Use this statement to query the SESSION_ID being locked:

 
 
  1. SELECT  SESSION_ID   FROM   V$LOCKED_OBJECT,USER_OBJECTS    
  2.  
  3. WHERE   V$LOCKED_OBJECT.OBJECT_ID   =   USER_OBJECTS.OBJECT_ID 

2. query SERIAL by SESSION_ID found in step 1 #:

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

3. Run SESSION_ID and SERIAL # In Step 1:

 
 
  1. Alter system kill session '2010 6' (48 is the value of SESSION_ID and 48,247 is the value of SERIAL)
  2.  
  3. Alter system kill session '2017, 60'

The above is the prompt "resource busy, need to specify nowait" to unlock the Oracle operation table. I hope this introduction will bring you some benefits. Thank you!

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.