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 > What is better to have on big log or multiple small ones

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-27-06, 03:56
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
What is better to have on big log or multiple small ones

Hi,
what is better to have one big log file (LOGFILSIZ) or 10 small logs?
My settings:
LOGFILSIZ = 9000
LOGPRIMARY = 10

Would it be better to have:
LOGFILSIZ = 90000
LOGPRIMARY = 1

Thanks,
Grofaty

My system:
DB2 workgroup server edition v8.2.2 on Windows 2003
Reply With Quote
  #2 (permalink)  
Old 10-27-06, 06:54
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
log file

if using large log files and archive of log files, you have to wait longer for the file be archived. If disk crash occures, the large log file (long interval) will be lost. if smaller log files only some small log files ( shorter interval) will be lost and recovery is closer to crash.
archiving takes also longer..
if many update/ins/del in db, might be better to have larger files, otherwise overhead for each time create/archive log file
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #3 (permalink)  
Old 10-30-06, 05:10
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
As guy pointed out, use larger logs for high insert/update/delete activity ... For transactional systems, use smaller logs so that your recoverability is not impacted in case of disk failures ... But having the files very small will have an impact on performance due to log archiving and log switching ..

Another releated parameter to consider is SOFTMAX ... Adjust your SOFTMAX value to a reasonable value so that bufferpool flushing is adequate but not too frequent

HTH

sathyaram

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 10-30-06, 10:17
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You should never have just one log file. Three is the minimum.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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