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 > auto commit DB2 v9 for z/OS

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-10-10, 10:59
swiss01 swiss01 is offline
Registered User
 
Join Date: Jul 2007
Posts: 31
auto commit DB2 v9 for z/OS

is there any possibility of using some kind of autocommit when doing one update without where clause or do we have to specify a where clause to
do updates in smaller packages ?


update table x set column y = 'NEWVALUE' ;
.... table x is huge
Reply With Quote
  #2 (permalink)  
Old 05-10-10, 14:41
dav1mo dav1mo is offline
Registered User
 
Join Date: Dec 2007
Location: Richmond, VA
Posts: 782
Swiss,
I think you are asking if DB2 can commit updates that were performed in a single UOW, which the answer would be no. If you issue an update against a billion row table, there is nothing to commit until all billion rows have been updated, as you have a single update statement running.
You will want to look into performing the updates in pieces/parts. Maybe you could load the data into another version of the table, with the update being what you selected from the orginal table, then rename the new version and drop the old. If you search through the forum here there have been past discussions on those types of topics.
Dave
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