473,397 Members | 2,099 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,397 software developers and data experts.

LogPrimary

Per the manual, when USEREXIT is set to ON and a log file becomes
full,
it is automatically archived using the exit program.

So far so good. It then says that the log files are not deleted.
Instead, when a new log file is required and one is not available, an
archived log file is renamed and used again.

I don't understand this. When will a new file which is required be
*not
available*? The number of log files determined by 'logprimary' are
pre-allocated when the database is initialized. So, is the manual
talking
about "logsecond" here?

TIA
Raquel.
Nov 12 '05 #1
2 3036
In article <9a*************************@posting.google.com> ,
ra****************@yahoo.com says...
Per the manual, when USEREXIT is set to ON and a log file becomes
full,
it is automatically archived using the exit program.

So far so good. It then says that the log files are not deleted.
Instead, when a new log file is required and one is not available, an
archived log file is renamed and used again.

I don't understand this. When will a new file which is required be
*not
available*? The number of log files determined by 'logprimary' are
pre-allocated when the database is initialized. So, is the manual
talking
about "logsecond" here?

TIA
Raquel.


What it means is that the logfile doesn't exist when needed. Instead
of formatting a new logfile DB2 renames an old one.

For example:
Db2 is logging to S0000008.LOG and S0000001.LOG has been archived
already. Some time before S0000008.LOG is full (if I do remember
right when starting to write to S0000008.LOG) DB2 checks if
S0000009.LOG already exists and if not, renames S0000001.LOG to
S0000009.LOG.

Nov 12 '05 #2
Gert van der Kooij <ge**@invalid.nl> wrote in message news:<MP************************@news.xs4all.nl>.. .
In article <9a*************************@posting.google.com> ,
ra****************@yahoo.com says...
Per the manual, when USEREXIT is set to ON and a log file becomes
full,
it is automatically archived using the exit program.

So far so good. It then says that the log files are not deleted.
Instead, when a new log file is required and one is not available, an
archived log file is renamed and used again.

I don't understand this. When will a new file which is required be
*not
available*? The number of log files determined by 'logprimary' are
pre-allocated when the database is initialized. So, is the manual
talking
about "logsecond" here?

TIA
Raquel.


What it means is that the logfile doesn't exist when needed. Instead
of formatting a new logfile DB2 renames an old one.

For example:
Db2 is logging to S0000008.LOG and S0000001.LOG has been archived
already. Some time before S0000008.LOG is full (if I do remember
right when starting to write to S0000008.LOG) DB2 checks if
S0000009.LOG already exists and if not, renames S0000001.LOG to
S0000009.LOG.


Thank you so much Gert for replying to all my mails in such immaculate
detail. Really appreciate it.

Raquel.
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Erik Hendrix | last post by:
All, I have a interresting problem here. Doing a redirect restore (copying database from 1 system to another). This other system has less available diskspace to it for the log files. This thus...
1
by: DB2 Convert | last post by:
Hi, A few points to confirm as I am still new with DB2. 1. What will happen if archive logging is used, however there is no userexit or manual process to move those online archived logs to...
9
by: Jean-David Beyer | last post by:
When initially populating a database, it runs slower that I would have supposed. Checking here and there, especially with iostat, reveals that most of the time is spent writting the logfiles. In...
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: fabrizio.blanco | last post by:
Hi all, I'm trying to setup a standby server using log shipping. The live database has a user exit in place, which archives the closed logs and ships them to the standby server. The standby...
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 : ...
46
by: dunleav1 | last post by:
I have a process that does inserts that runs 50% slower that Oracle and Mssql. Queries normally take 50% slower than normal. DB2, Oracle, Mssql all are configured on same os, same disk array...
0
by: Hemant Shah | last post by:
Folks, I am trying to debug a problem at client site, their DBA is on vacation. I am having problem with one of the database where I frequently get SQLCODE -964. I have an application that...
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.