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 > Can we prevent Held Log situation.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-11-10, 13:53
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
Can we prevent Held Log situation.

Hi Guys,

On one of our production DBs, sometimes I see LOG Held situation. For this I have written Held Log Monitor which has worked last night and forced one bad application off.

This situation is not so frequent, still happens once a while. For this, the monitor runs every 15 minutes to see if logs are being used excessively and then it queries DB snapshot to find the holding agent_id to force it off.

This has resolved the problematic situation successfully. Now I have further question to know if we can avoid or prevent the situation absolutely ??


The monitor runs 12x4 = 48 times a day.

Can we prevent the situation with permanant solution so that we do not have to use the monitor to force of anything ??


Regards

DBFinder
Reply With Quote
  #2 (permalink)  
Old 04-12-10, 08:56
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
You could use max_log / num_log_span db cfg parameters
Reply With Quote
  #3 (permalink)  
Old 04-12-10, 10:57
dav1mo dav1mo is offline
Registered User
 
Join Date: Dec 2007
Location: Richmond, VA
Posts: 782
You would be better off ensuring that your applications issue periodic commits in their processing.
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