Solved

Problem Dropping the index

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Do we need servers??? 5 198
Fixing Non-Standard characters in text 8 104
SQL Query 34 101
RDBMS and No sql database 4 58
I guess that all of us know that caching the data usually increase the performance, but I worried if all of us are aware about the risk that caching the data provides and how to minimize this.  That’s the reason why I decided to write this short art…
Creating and Managing Databases with phpMyAdmin in cPanel.
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…

831 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