473,408 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

DB2 UDB Logretain

1
hi,
I have questions regarding DB2 UDB v8.1 Log management. We have a
database cfg file has recently changed to the following setting:

LOGPRIMARY =20
LOGSECOND =40
LOGRETAIN = RECOVERY
USEREXIT = NO
LOGARCHMETH1= DISK :/db2home/DB/archive

It seems that the old log files stays in the active log directory. Will the log files in the active log directory exceed 20? Does the old log files required manaully removal? How do I know which log file is committed and can be removed? Why DB2 has the same log files writting to active log path and the LOGARCHMETH1 location?

Thanks
Sarah
Dec 1 '06 #1
1 3945
Sarah
With this configuration, DB2 will maintain 20 log files (at a minimum) in the active log path. If you have a long running transaction that spans more than the 20 log files, then DB2 will allocate up to an additional 40 log files (for a total of 60 log files) in the active log path.

As soon as a log file is filled (even if there are open transactions in it) the file will be copied to the archive path (/db2home/DB/archive). The file will stay there forever, you must manually purge what is no longer needed based on
your recovery policy. The log file, once archived, will be renamed to a future extent once all active transactions in the log file have completed.

Hope this helps

Dale McInnis


hi,
I have questions regarding DB2 UDB v8.1 Log management. We have a
database cfg file has recently changed to the following setting:

LOGPRIMARY =20
LOGSECOND =40
LOGRETAIN = RECOVERY
USEREXIT = NO
LOGARCHMETH1= DISK :/db2home/DB/archive

It seems that the old log files stays in the active log directory. Will the log files in the active log directory exceed 20? Does the old log files required manaully removal? How do I know which log file is committed and can be removed? Why DB2 has the same log files writting to active log path and the LOGARCHMETH1 location?

Thanks
Sarah
Dec 4 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: Demetris | last post by:
Hello people! I have a table with more than 30 million rows,a lot of columns and indexes. We need to change a column which is dec(15,2) and nullable to have a default value of zero. As I know you...
13
by: Lew | last post by:
Hi, I am a bit confused about what I'm seeing on my systems. I am trying to develop a script that will determine what percentage of the total log space is being used. If it is too high (80%)...
2
by: nek | last post by:
Greetings, I tried to implement log shipping using PULL method as described in 'The Basics of DB2 Log Shipping' by Dale McInnis, but found the subsequent "rollforward" did not go beyond the...
2
by: Trent | last post by:
Hello, all. I have the following production DB2 environment. DB2 8.1.4 (fp4) WG edition with 2 production databases on Windows 2003 standard edition. My first question is regard with...
11
by: Yasaswi Pulavarti | last post by:
I know there are some sample user exit programs in sqllib/samples/c directory. How do I tell DB2, which user exit program to use? I know I have to edit and compile the c based user exit programs,...
5
by: Richard Martin | last post by:
Hi, We have a process where we need to load a 'staging' DB2 table and one server, and then replicate the changes across to 'production' DB2 on another server on a daily basis. We are currently...
22
by: Smutny30 | last post by:
Hello, I am preparing a database that will store 10 n * GBs - 100 n * GBs of data. I calculated to have 1,2 GB of bufferpools. I run the DB2 v. 8.2.1 alone on 4 GB box. I obtain : ...
4
by: Al | last post by:
We have a production DB that is running DB2 v8 fix pak 8. Some of configuration parameter on the primary DB config file is: Logretain = NO Userexit = NO Logarchmeth1 = Disk:/aa/bb/ccc/ when...
3
by: Richard | last post by:
Hi, We have a few development dbs version 8, but really doesnt matter, that are non-recoverable ( LOGRETAIN OFF). How do I trim the log space ? db2 get db cfg for MYDB | grep 'First active log...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.