dbTalk Databases Forums  

Alter table not logged initally and concurrency

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Alter table not logged initally and concurrency in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John Hopfield
 
Posts: n/a

Default Alter table not logged initally and concurrency - 05-05-2011 , 08:32 AM






what happens if a long calculation (update) is working on a table
using "alter table not logged initially" and other users try to access
the same table within other connections (and not using "not logged
initially")?

JH

Reply With Quote
  #2  
Old   
Ian
 
Posts: n/a

Default Re: Alter table not logged initally and concurrency - 05-05-2011 , 04:42 PM






On May 5, 6:32*am, John Hopfield <Hopfi... (AT) freemail (DOT) it> wrote:
Quote:
what happens if a long calculation (update) is working on a table
using "alter table not logged initially" and other users try to access
the same table within other connections (and not using "not logged
initially")?
When an application executes ALTER TABLE ... ACTIVATE NOT LOGGED
INITIALLY, it gets a super-exclusive (Z) lock on the table.

No other access to the table will be allowed until the application
that issued the ALTER TABLE statement commits. Other applications
will go into lock-wait state until they either time out (SQL0911N
RC=68) or they are granted the locks they need.

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.