Solved

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

Posted on 2007-11-20
4
5,163 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
  • 2
4 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 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 142

Expert Comment

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Parametric query in oracle 6 51
EXECUTE IMMEDIATE 5 53
Oracle - Stored Procedure Privilge access 3 39
VB.Net - Oracle BulkCopy from CSV Date Format 7 47
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

895 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now