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 > DB2 > DeadLock

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-31-05, 10:47
karcheee karcheee is offline
Registered User
 
Join Date: May 2005
Posts: 18
DeadLock

I created a table in our DB2 database,
Then I tried to drop the table I had just created.... and I can't drop it, I get a deadlock error!!!

How can I get a deadlock error for trying to drop a table that I have just created??? No one is using this table! I just created it and tried to drop it.

I don't understand deadlock errors in DB2 - why on earth would I get a deadlock error for doing this??
Reply With Quote
  #2 (permalink)  
Old 10-31-05, 10:57
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Try doing a lock snapshot, that should tell you who or what is using the table.

Are you doing this from the Control Center by any chance? I've seen some ... interesting ... lock behaviour from it at times.

jono
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #3 (permalink)  
Old 10-31-05, 11:46
karcheee karcheee is offline
Registered User
 
Join Date: May 2005
Posts: 18
I've tried it from the command prompt and control center.

connect to db_name
update monitor switches using LOCK on
get snapshot for locks on db_name

--- SQL1427N An instance attachment does not exist.

What am I doing wrong? I'm new to snapshots perhaps I'm not taking it correctly.
Reply With Quote
  #4 (permalink)  
Old 10-31-05, 15:16
bmujeeb bmujeeb is offline
Registered User
 
Join Date: Mar 2004
Posts: 448
use

db2 "attach to <instance_name>"

then get the snapshot.

regards,

mujeeb
Reply With Quote
  #5 (permalink)  
Old 11-02-05, 10:00
juliane26 juliane26 is offline
Registered User
 
Join Date: Oct 2005
Posts: 109
What is your original error message when trying to drop the table ?
__________________
Juliane
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