If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > sqlplus locks when i am trying to delete a record

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-26-03, 15:40
carlosk carlosk is offline
Registered User
 
Join Date: Mar 2003
Posts: 1
sqlplus locks when i am trying to delete a record

Something really strange is happening (Oracle 8i). I have a database and when i try to delete a record which doesn´t exist the sqlplus becomes locked. And other tables the sqlplus returns the correct message "0 rows deleted".
i.e: table home
--------------------------------
| id(Integer) | address(String) |
--------------------------------
| 1 | addr1 |
| 2 | addr2 |
| 3 | addr3 |
--------------------------------

When i try: "delete from home where id = 5" the SQLPlus locks!!! What is going on? Could it be the relashionship between tables?

tks,

Carlos.
Reply With Quote
  #2 (permalink)  
Old 03-27-03, 05:02
NoviceNo1 NoviceNo1 is offline
Registered User
 
Join Date: Jan 2003
Location: Woking
Posts: 107
Re: sqlplus locks when i am trying to delete a record

Quote:
Originally posted by carlosk
Something really strange is happening (Oracle 8i). I have a database and when i try to delete a record which doesn´t exist the sqlplus becomes locked. And other tables the sqlplus returns the correct message "0 rows deleted".
i.e: table home
--------------------------------
| id(Integer) | address(String) |
--------------------------------
| 1 | addr1 |
| 2 | addr2 |
| 3 | addr3 |
--------------------------------

When i try: "delete from home where id = 5" the SQLPlus locks!!! What is going on? Could it be the relashionship between tables?

tks,

Carlos.
Hi,

I think that the table you are trying to delete is locked.
Check if the object is locked using the following SQL

SELECT b.object_name
FROM v$locked_object a,
all_objects b
WHERE a.object_id = b.object_id


Hope it Helps
__________________
nn
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On