Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > IBM DB2 > Re: Archive log...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 8875 of 9520
Post > Topic >>

Re: Archive logs?

by "Mark A" <nobody@[EMAIL PROTECTED] > May 10, 2008 at 10:31 PM

"Kofa" <kovacs.it@[EMAIL PROTECTED]
> wrote in message 
news:40bfa0a7-966c-46f9-99c6-82b9579a64db@[EMAIL PROTECTED]
> Hi,
>
> we have an application which uses online backups, so archive logging
> is a requirement. We have a small/moderate size database (a few
> hundred megabytes isn't much by today's standards) with relatively low
> insert/update activity (a few thousand per day).
>
> How should I set up archive logging (number of primary and secondary
> logs files, size of each log file)?
>
> Also, we set log archiving to manual. What log files are safe to
> archive? Currently we create an online backup every day at 2:00 AM
> (the backup includes log files), keep the last 10 such backups, and
> delete all log files older than the oldest backup.
>
> The backup command is
> BACKUP DB mydata TO d:\db2_backup COMPRESS UTIL_IMPACT_PRIORITY 1
> INCLUDE LOGS
>
> Logging is set up as
> UPDATE DB CFG FOR mydata USING logarchmeth1 LOGRETAIN logprimary 16
> logsecond 240 logfilsiz 4096 newlogpath d:\db2_logs
>
> It is my understanding that this sets up 16 files, 16 MB each, for a
> total of 256 MB, with the possibility to go up to a total of 256
> files, or 4 GB, but only if needed (the application is installed at
> multiple remote servers whom we cannot access every day, so I thought
> this would be on the safe side). In 10 days, the logs files use up
> about 20 GB. What do you recommend to keep the size lower? Is it safe
> to remove all log files older than the youngest backup? Should I
> change logfilesiz or logprimary/logsecond?
>
> TIA,
> Kofa

I would recommend that you use LOGARCHMETH1 for log archiving.
 




 4 Posts in Topic:
Archive logs?
Kofa <kovacs.it@[EMAIL  2008-05-10 07:36:58 
Re: Archive logs?
"Mark A" <no  2008-05-10 22:31:35 
Re: Archive logs?
Kofa <kovacs.it@[EMAIL  2008-05-10 23:08:16 
Re: Archive logs?
"Mark A" <no  2008-05-11 07:38:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 21:02:51 CST 2008.