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 > Alter Table DB2 v7

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-06-04, 05:11
pjcompi pjcompi is offline
Registered User
 
Join Date: Jul 2004
Posts: 2
Alter Table DB2 v7

Can someone explain to me why an alter table statement to add a column to a table requires an exclusive lock on the whole database?
Reply With Quote
  #2 (permalink)  
Old 08-06-04, 08:06
famudba famudba is offline
Registered User
 
Join Date: Jan 2004
Location: Tallahassee, FL, USA
Posts: 96
generaly X lock on table , if not tablespace , but not DB , .


because , your altering table , that will X lock on table.
Reply With Quote
  #3 (permalink)  
Old 08-06-04, 10:07
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You will also encounter some locking on the system catalog tables in addtion to the table being altered.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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