Solved

Problem Dropping the index

Posted on 2004-08-15
3
1,323 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
[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
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 143

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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

626 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