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 > regarding delete statement

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-17-08, 04:19
dareman123 dareman123 is offline
Registered User
 
Join Date: Dec 2007
Posts: 30
regarding delete statement

db2v8.2 fp4Aix
Hi I have a question regarding delete statements
i think that by default delete statement will hold xclusive lock may be on the rows its trying to delete.
if suppose a backup(online) and a delete statment runs simultaneously then will there be any locking issues?

thanks...
Reply With Quote
  #2 (permalink)  
Old 07-17-08, 11:20
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I do not think so. If the delete have not been committed yet, then there will be the log entries for the deletes. If you "include logs" in your backup then this information is also in the backup image. If the delete are then subsequently committed during the backup, that will also be in the log and included in the image. Restoring the image will have the deleted rows still there and then rollforward will perform the deletes.

Andy
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