Personal tools
You are here: Home Forums DB2 What is better to have little and big primary logs or small and less primary logs?
Navigation
Log in


Forgot your password?
 
Document Actions

What is better to have little and big primary logs or small and less primary logs?

Up to DB2

What is better to have little and big primary logs or small and less primary logs?

Posted by Pawan at April 18. 2008

Hi,
when settings primary vs. secondary logs there is general rule to use primary logs, according to database snapshot info. But what is recommendation to use primary logs? Should I use multiple small primary logs or small amount of big primary logs.

Variant 1:
LOGFILSIZ = 10000
LOGPRIMARY = 4
disk primary log capacity = LOGFILSIZ * LOGPRIMARY = 40000 pages

or

Variant 2:
LOGFILSIZ = 2000
LOGPRIMARY = 20
disk primary log capacity = LOGFILSIZ * LOGPRIMARY = 40000 pages

When should I choose variant 1 (so small amount of big logs) and when variant 2 (multiple small files).



Thanks


Pawan


Re: What is better to have little and big primary logs or small and less primary logs?

Posted by perallis at April 18. 2008

Variant 1:LOGFILSIZ = 10000
LOGPRIMARY = 4
disk primary log capacity = LOGFILSIZ * LOGPRIMARY = 40000 pages


In the Variant 1 you will have more perform


Variant 2:
LOGFILSIZ = 2000
LOGPRIMARY = 20
disk primary log capacity = LOGFILSIZ * LOGPRIMARY = 40000 pages


In the Variant 2 the time spent to archive logs will be less and in the case of crash recovery the recovery operation will be faster.


Powered by Ploneboard
Security Awareness
Would you like your company to implement gamification into your security awareness program?





Polls