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

db2diag.log not writing

We are on IBM DB2 7.1 ON WINDOWS. The db2diag.log is not working and
no new line written into it for few days. The last lines in
db2diag.log shows:

Warning: active log held by dirty pages.
Decrease softmax and/or increase num_iocleaners.
repeatedly . What is the problem? How can resolve it quickly? The
applicatipna dnLDAP is up and running though.

Please advise
Nov 12 '05 #1
7 7409

"Shawn" <fa***************@yahoo.com> wrote in message
news:ab**************************@posting.google.c om...
We are on IBM DB2 7.1 ON WINDOWS. The db2diag.log is not working and
no new line written into it for few days. The last lines in
db2diag.log shows:

Warning: active log held by dirty pages.
Decrease softmax and/or increase num_iocleaners.
repeatedly . What is the problem? How can resolve it quickly? The
applicatipna dnLDAP is up and running though.

If you click on Start/Programs/IBM DB2/Information/DB2 Information, you
should get a combined book index and search engine. Go to the search engine
and enter "num_iocleaners" (without the quotes) and click the Search button.
Assuming your documentation is similar to mine - I'm running DB2 V7.2, FP9 -
your first hit should be an article in the Administration Guide called
"Managing the Database Buffer Pool". If you read that, you will get a good
explanation of what is happening within your system; "dirty pages",
"num_iocleaners", and "softmax" are all explained.

You haven't said what level of experience you or your shop have had with DB2
so I'm going to take a wild guess that you don't have a lot of experience.
(Forgive me if I've guessed wrong!). Is it possible that your applications
haven't issued a COMMIT in a while? That would be the most obvious reason
why you have too many dirty pages. Remember, your applications need to issue
COMMIT statements occasionally to confirm to DB2 that you really want to
keep the updates, inserts and deletes you've been making; otherwise, DB2
only makes the changes in the applications work area and the bufferpool but
doesn't make them to the database proper in case you want to ROLLBACK (undo)
the changes. This causes an accumulation of dirty pages (data that has been
changed but not committed) which will eventually bring the system to its
knees if not handled.

Please note that there are a variety of events which cause COMMITs to happen
other than explicit COMMIT statements within your applications. For example,
a program that ends normally will issue its own commit automatically.
However, you could have a situation where a program is stuck for some
reason - waiting for input? waiting for a file to be released? - that has
kept it from getting to the end. Therefore, waiting until the automatic
COMMIT point may not be an option for you. Or maybe it is; if you give the
input or file the application is waiting for, you may solve the problem.

It is also possible that you have misconfigured NUM_IOCLEANERS or SOFTMAX so
that they aren't appropriate for your system. Both are parameters associated
with a specific database - as opposed to DB2 in its entirety - so you can
see your values with the command:

db2 get db config for <database-name> | more

You can issue this command from a DB2 Command Window. Then, if the values
are inappropriate (the article I mentioned should help you set appropriate
values), you can modify the values with the UPDATE DB CONFIG command. For
example:

db2 update db config for <database-name> using softmax 150

[See the Command Reference for details of the GET DATABASE CONFIGURATION and
UPDATE DATABASE CONFIGURATION commands.]

Rhino
Nov 12 '05 #2
Shawn wrote:
We are on IBM DB2 7.1 ON WINDOWS. The db2diag.log is not working and
no new line written into it for few days. The last lines in
db2diag.log shows:

Warning: active log held by dirty pages.
Decrease softmax and/or increase num_iocleaners.
repeatedly . What is the problem? How can resolve it quickly? The
applicatipna dnLDAP is up and running though.


What's your setting for the DBM CFG parameter named DIAGLEVEL? The default
is 3.

db2 get dbm cfg | more

Also, do you have enough disk space on the file system where the db2diag.log
is supposed to be written to? If the disk is full, db2 can't append to the
db2diag.log.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #3
Knut Stolze <st****@de.ibm.com> wrote in message news:<cf**********@fsuj29.rz.uni-jena.de>...
Shawn wrote:
We are on IBM DB2 7.1 ON WINDOWS. The db2diag.log is not working and
no new line written into it for few days. The last lines in
db2diag.log shows:

Warning: active log held by dirty pages.
Decrease softmax and/or increase num_iocleaners.
repeatedly . What is the problem? How can resolve it quickly? The
applicatipna dnLDAP is up and running though.


What's your setting for the DBM CFG parameter named DIAGLEVEL? The default
is 3.

db2 get dbm cfg | more

Also, do you have enough disk space on the file system where the db2diag.log
is supposed to be written to? If the disk is full, db2 can't append to the
db2diag.log.


Is there a set of commands that will force db2 to write some
information in the db2diag.log.
Nov 12 '05 #4
In article <d8**************************@posting.google.com >, Ali
Zaidi (sm****@hotmail.com) says...

Is there a set of commands that will force db2 to write some
information in the db2diag.log.


Stop and start the instance
Nov 12 '05 #5
The problem is I don't want to shutdown the DB2 and want the
db2diag.log again become active.

How Can I test to see if nothing write into it? Any harmless command
that add one line to db2diag?

I have enough space is hard, no problem with that.

The db2diag.log is seems freeze with the message I mentioned. i.e.
Warning: active log held by dirty pages.> > > Decrease softmax and/or
increase num_iocleaners

Please advise some solution to reactivate it
sm****@hotmail.com (Ali Zaidi) wrote in message news:<d8**************************@posting.google. com>...
Knut Stolze <st****@de.ibm.com> wrote in message news:<cf**********@fsuj29.rz.uni-jena.de>...
Shawn wrote:
We are on IBM DB2 7.1 ON WINDOWS. The db2diag.log is not working and
no new line written into it for few days. The last lines in
db2diag.log shows:

Warning: active log held by dirty pages.
Decrease softmax and/or increase num_iocleaners.
repeatedly . What is the problem? How can resolve it quickly? The
applicatipna dnLDAP is up and running though.


What's your setting for the DBM CFG parameter named DIAGLEVEL? The default
is 3.

db2 get dbm cfg | more

Also, do you have enough disk space on the file system where the db2diag.log
is supposed to be written to? If the disk is full, db2 can't append to the
db2diag.log.


Is there a set of commands that will force db2 to write some
information in the db2diag.log.

Nov 12 '05 #6
Ian
Shawn wrote:
The problem is I don't want to shutdown the DB2 and want the
db2diag.log again become active.

How Can I test to see if nothing write into it? Any harmless command
that add one line to db2diag?

I have enough space is hard, no problem with that.

The db2diag.log is seems freeze with the message I mentioned. i.e.
Warning: active log held by dirty pages.> > > Decrease softmax and/or
increase num_iocleaners

Please advise some solution to reactivate it


You could:

1) Use LOAD on a table
2) Backup or restore a database
3) Create a situation that generates lock escalation
4) Cause a deadlock

All three can be done without disrupting your application (be careful
if you try #3, though).


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Nov 12 '05 #7
Ian
Shawn wrote:
We are on IBM DB2 7.1 ON WINDOWS. The db2diag.log is not working and
no new line written into it for few days. The last lines in
db2diag.log shows:

Warning: active log held by dirty pages.
Decrease softmax and/or increase num_iocleaners.
repeatedly . What is the problem? How can resolve it quickly? The
applicatipna dnLDAP is up and running though.

Please advise


No news is good news!

If you really think there is a problem, try doing one of the steps I
suggested in a previous note regarding this topic, they will generate
entries in the db2diag.log.

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Nov 12 '05 #8

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

Similar topics

3
by: richardshen | last post by:
Instead of watching it manually.
2
by: soccertl | last post by:
I wrote code that parses the db2diag.log to look for errors that would require us to generate a message to a service center indicating something is wrong. My problem is trying to figure out what...
4
by: Praveen_db2 | last post by:
Hi All I am getting strange errors in my db2diag.log can any one tell me what these errors mean?? Following is the code from my db2diag.log...
14
by: Gio Galma | last post by:
how I can invoke the db2diag utility in a Windows environment? in my D:\Program Files\IBM\SQLLIB\BIN directory I can see only db2diag.dll, and it seems there isn't the command line version; which...
1
by: oddbande | last post by:
We have just upgraded a test enviroment to db2 9, and have set both the notifylevel and diaglevel to 3. But even so I get a lot of these messages in my db2diag.log: ...
5
by: Norm | last post by:
Does anyone have any suggestions for securing against this vulnerability: http://nvd.nist.gov/nvd.cfm?cvename=CVE-2007-1027 Fixes are not yet available from IBM. They will be in FP2 for V9...
6
by: KG | last post by:
Hi, Does anyone knows how to recover the test file db2diag.log. By mistake I have delete the contents of db2diag.log, wondering if I could restore the contents of my db2diag.log.
0
by: eddy82 | last post by:
Hi All, I have this db2start in my db2diag.log everyday around the same time. But no db2stop in the db2diag.log or in the db2.nfy. I already check and no corruption or cronjob running during...
4
by: eddy82 | last post by:
Hi DB2 Gurus, I just want to clarify, does the db2diag.log capture a deadlock error? SQL911 with code 2 and 68. I am using db2 V9.1 FP 5 running in RHEL4. I have done a simulation to the...
1
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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...

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.