Solved

Problem Dropping the index

Posted on 2004-08-15
3
1,317 Views
Last Modified: 2008-01-09
Hello OracleDBAs,
Iam trying to drop an index defined on a table.It gives me the following error.
"ORA-00054: resource busy and acquire with NOWAIT specified"
Is there any way I can drop the index forcefully...so that I can proceed with my work.
Please help me..
Thanks in advance.
sridhar
0
Comment
Question by:sridhar_don
3 Comments
 
LVL 12

Expert Comment

by:catchmeifuwant
ID: 11807105
It means the index is locked for some other purpose by oracle(probably a previous drop command is still running).

Wait from sometime and try the drop index command again...
0
 
LVL 11

Expert Comment

by:cjjclifford
ID: 11807975
catchmeifuwant is correct that the table is currently locked for some other reason... waiting may help you, but better yet, before attempting the DROP INDEX perform the following:

LOCK TABLE table_name IN EXCLUSIVE MODE;

This command obtains an exclusive lock on the table, which is freed after a single command (in your case the index drop) - this LOCK TABLE will wait until it can obtain the lock, which may take some time....

0
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 70 total points
ID: 11809163
You might try to check WHO locks your table:
v$locked_object
Who is locking what:
select
  oracle_username
  os_user_name,
  locked_mode,
  object_name,
  object_type
from
  v$locked_object a,dba_objects b
where
  a.object_id = b.object_id

CHeers

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Creating and Managing Databases with phpMyAdmin in cPanel.
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 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

9 Experts available now in Live!

Get 1:1 Help Now