Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ORA-00054. How to unlock?

Status
Not open for further replies.

biot023

Programmer
Nov 8, 2001
403
GB
Hallo.
I'm afraid I know very little about Oracle - I'm not even sure if this is the right forum to post this question in - if not, could somebody point me in the right direction?
Anyway - I need to remove a lock from a table in an oracle database.
I cannot alter certain records, and when I try to truncate the table, I get this message:
"ORA-00054: resource busy and acquire with NOWAIT specified"

I think this may have occurred when a sql script hung, but cannot be sure as I was offsite.
If anyone could shed any light, I'd be incredibly grateful.
Thankyou,
Douglas JL

Common sense is what tells you the world is flat.
 
I had this same problem. I solved it by connecting to the database as the user who obtained the lock, and running:

commit;

That released the lock, and my database is back. Yay!

Ryan Shillington
 
I really doubt it's possible. The lock is obtained by session, not by user, thus you couldn't connect as the user and then commit; another session. Or at least using of "connecting to the database as the user" in inappropriate :)

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top