Solved

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

Posted on 2007-11-20
4
5,171 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 143

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 143

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

790 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