473,320 Members | 1,802 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,320 software developers and data experts.

reduce size of log files?

Sue
Is there any way to reduce the size of my db2 log files? My sqlogdir is
69gb with hundreds of log files, more than the size of the database
itself, and I am running out of hard disk space. I am thinking one way
would be to create a new database and then export the tables one by one
to this new database. Any other way to do this? What happens if I
simply delete the log files? Thank you very much for all help...

Nov 12 '05 #1
2 9372
Sue,

you might want to switch on the userexit to archive the unused log files
to a backup device. You can find a sample userexit by searching for file
db2uext2. Have a look at the administration guide, topics: user exit,
log retain.

I think you don't want to resize the log file size, you just want to get
rid of the old stuff (which you may need for recovery later) in the
logdir, right?

If you want to delete old log files you can determine the First active
log file by issuing the command: db2 get db cfg for dbname and have a
look at "First active log file". Be careful, make sure you understand
the two different looging methods (circular and archival).

This document might help to get more information:
http://www-106.ibm.com/developerwork...0307kline.html

cheers
Florian

Sue wrote:
Is there any way to reduce the size of my db2 log files? My sqlogdir is
69gb with hundreds of log files, more than the size of the database
itself, and I am running out of hard disk space. I am thinking one way
would be to create a new database and then export the tables one by one
to this new database. Any other way to do this? What happens if I
simply delete the log files? Thank you very much for all help...

Nov 12 '05 #2
"Sue" <se*****@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Is there any way to reduce the size of my db2 log files? My sqlogdir is
69gb with hundreds of log files, more than the size of the database
itself, and I am running out of hard disk space. I am thinking one way
would be to create a new database and then export the tables one by one
to this new database. Any other way to do this? What happens if I
simply delete the log files? Thank you very much for all help...

In addition to reducing the size of the log files, you need to figure out
how to reduce the number of duplicate postings to this newsgroup.

You can use the Control Center to change the number and size of log files.

Or you can do it with "db2 update db cfg using parm-name xxx" command. You
can use "db2 get db cfg for db-name" to see what the sizes are now and what
parm-name you want to change.

The new values will be effective when you restart the database.
Nov 12 '05 #3

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

Similar topics

3
by: Ron_Adam | last post by:
In looking at ways to reduce the size of exe's created with py2exe, I've noticed that it will include a whole library or module even if I only need one function or value from it. What I would...
14
by: Peter CCH | last post by:
Database log of my DB is around 2GB. The database is using FULL recovery option. I want to reduce the file size of the log cause it takes up a lot of space. I'd do a full database backup,...
6
by: Sean C. | last post by:
Helpful folks, I am having a hard time figuring out how to reduce my percentage of dirty page steal activity. Below are statistics for three fairly normal days, with the bufferpool hit ratios...
0
by: Sue | last post by:
Is there any way to reduce the size of my db2 log files? My sqlogdir is 69gb with hundreds of log files, more than the size of the database itself, and I am running out of hard disk space. I am...
10
by: klineb | last post by:
Good Day, I have written and utility to convert our DOS COBOL data files to a SQL Server database. Part of the process requires parsing each line into a sql statement and validting the data to...
11
by: Parrot | last post by:
Is there any routine I can call to reduce the size of an image file after uploading a file from a client. I am looking to reduce file sizes programmatically using C# in my web page after uploading....
0
by: support1 | last post by:
Hi, I have 10GB of harddisk space and now the harddisk space remaining 2GB because of the IBData1 size too big. As I'm check in the administrator tool. There is no any option to reduce or delete...
1
by: replyrpatil | last post by:
What I am trying to do: I need to print a compact access report (font 6 size) created using RTF2 program developed by Stephen Lebans to generate a TIF image of custom size (5.5 in x 2.0 in) ...
2
by: Manogna | last post by:
hi! all, in a directory nearly 10 zipped file are available. totally the size of the all files is nearly 15GB. i have to retrive the line which dont have the text "ORA" from each file...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.