sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
Raquel's Avatar

LogPrimary


Question posted by: Raquel (Guest) on November 12th, 2005 06:03 AM
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.
2 Answers Posted
Gert van der Kooij's Avatar
Gert van der Kooij November 12th, 2005 06:03 AM
Guest - n/a Posts
#2: Re: LogPrimary

In article <9a73b58d.0312102256.5a36403@posting.google.com>,
Join Bytes! says...[color=blue]
> 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.
>[/color]

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.



Raquel's Avatar
Guest - n/a Posts
#3: Re: LogPrimary

Gert van der Kooij <gert@invalid.nl> wrote in message news:<MPG.1a4293bd8cd7df8f9896b7@news.xs4all.nl>...[color=blue]
> In article <9a73b58d.0312102256.5a36403@posting.google.com>,
> Join Bytes! says...[color=green]
> > 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.
> >[/color]
>
> 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.[/color]

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

Raquel.
 
Not the answer you were looking for? Post your question . . .
196,829 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 196,829 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors