?
Solved

Oracle database Error - ORA-00054: resource busy and acquire with NOWAIT specified

Posted on 2007-11-20
4
Medium Priority
?
5,197 Views
Last Modified: 2012-06-21
I'm trying to build a database in Oracle and I am using a .txt file to get all the code correctly typed and use the START 'path of file' command to run it all at once.  Of course I have drop table commands at the beginning of the .txt file so that any of the tables that I hade created previously would not error out when running the .txt file over again tried to create the tables again.  Everything seemed to be working fine, but I started getting an error on my drop statements:

SQL> DROP TABLE S_COURSE_SECTION CASCADE CONSTRAINTS PURGE;
DROP TABLE S_COURSE_SECTION CASCADE CONSTRAINTS PURGE
           *
ERROR at line 1:
ORA-00054: resource busy and acquire with NOWAIT specified

Is this error something that I am doing wrong?
0
Comment
Question by:josephdaviskcrm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 total points
ID: 20320416
>Is this error something that I am doing wrong?
this means that some user has still a transaction open on that table.
ensure all users have done a commit or rollback before retrying.
0
 

Author Comment

by:josephdaviskcrm
ID: 20320480
I am the only user, and I've already done a commit.  I got confirmation that the commit was complete.
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 20320530
unfortunately, that is the only situation to get that error message, AFAIK
0
 
LVL 35

Expert Comment

by:johnsone
ID: 20320687
The cascade constraints could be getting you too.

To find the session that has a lock on the table, try this query:

select a.sid, c.username, c.program
  from v$lock a, dba_objects b, v$session c
 where a.id1 = b.object_id and
       b.owner = 'S_COURSE_SECTION' and
       b.object_type = 'TABLE' and
       a.sid = c.sid;

Open in new window

0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows how to recover a database from a user managed backup
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question