Unix Technical Forum

How to avoid Tran Fail Log error with update statements

This is a discussion on How to avoid Tran Fail Log error with update statements within the DB2 forums, part of the Database Server Software category; --> I have an update statement which updates 100,00 records and most often I end up in a tran fail ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 04:39 AM
vj
 
Posts: n/a
Default How to avoid Tran Fail Log error with update statements

I have an update statement which updates 100,00 records and most often
I end up in a tran fail log error , is there any option which would
enable me to commit the updates in batches.

Please let me know if there are any work arounds.

Thanks,
Vj.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 04:39 AM
Phil Sherman
 
Posts: n/a
Default Re: How to avoid Tran Fail Log error with update statements

What type of logging are you using? If it's circular; then you've filled
up all of the primary and secondary logs. A simple solution is to
increase the log size or the number of logs. If this is a production
system; circular logging has other (negative) recovery implications.

You could use a WHERE predicate to restrict your updates to a portion of
your rows. Multiple UPDATES can be coded with a COMMIT between them.


Phil Sherman



vj wrote:
> I have an update statement which updates 100,00 records and most often
> I end up in a tran fail log error , is there any option which would
> enable me to commit the updates in batches.
>
> Please let me know if there are any work arounds.
>
> Thanks,
> Vj.
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:06 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com