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

DB2 cutting logs frequently

I have a siebel crm application thats cutting and archiving logs every
minute. Here is the db cfg

Log buffer size (4KB) (LOGBUFSZ) = 512
Log file size (4KB) (LOGFILSIZ) = 15000
Number of primary log files (LOGPRIMARY) = 30
Number of secondary log files (LOGSECOND) = 40
Group commit count (MINCOMMIT) = 1

How can I reduce the number of logs being cut ? I don't understand
whats driving DB2 to cut logs every minute.

Roger

Nov 13 '07 #1
5 2109
On Nov 13, 4:44 pm, Roger <wondering...@gmail.comwrote:
I have a siebel crm application thats cutting and archiving logs every
minute. Here is the db cfg

Log buffer size (4KB) (LOGBUFSZ) = 512
Log file size (4KB) (LOGFILSIZ) = 15000
Number of primary log files (LOGPRIMARY) = 30
Number of secondary log files (LOGSECOND) = 40
Group commit count (MINCOMMIT) = 1

How can I reduce the number of logs being cut ? I don't understand
whats driving DB2 to cut logs every minute.

Roger
Hi Roger,

The workload generally drives the amount of data that is logged and in
this case it's about 60MB (15000 4K pages) per minute. Does that seem
unreasonable given what's happening on the system? Is this actually a
problem for you, or are you just wondering what's happening? You
could consider increasing LOGFILSIZ if this would help (but depending
on how you're using your archived logs -- are they for DR purposes? --
then you'll have to take the longer time between archives into
consideration).

Another possibility is that the application is connecting, doing some
work, disconnecting (leaving nobody else connected), and then
repeating the process. In this case the current log will be truncated
and it will be archived when the database starts up next. If this is
in fact the problem then you could consider keeping the database
activated (using ACTIVATE DATABASE). I don't know Siebel's behavior
but I would guess that this probably isn't the problem. Are the logs
being archived all 60MB in size, or do they generally look like
they've been truncated?

Regards,
Kelly Schlamb

Nov 13 '07 #2
aj
Is noting when logs are cut, along w/ the LOGFILSIZ, the best way
to measure general workload on a given database thru time? Is there
a better approach?
I think this would measure only WRITE workload, and not take into
account READ workload. Is there something that measures both?

TIA

aj

ks******@ca.ibm.com wrote:
On Nov 13, 4:44 pm, Roger <wondering...@gmail.comwrote:
>I have a siebel crm application thats cutting and archiving logs every
minute. Here is the db cfg

Log buffer size (4KB) (LOGBUFSZ) = 512
Log file size (4KB) (LOGFILSIZ) = 15000
Number of primary log files (LOGPRIMARY) = 30
Number of secondary log files (LOGSECOND) = 40
Group commit count (MINCOMMIT) = 1

How can I reduce the number of logs being cut ? I don't understand
whats driving DB2 to cut logs every minute.

Roger

Hi Roger,

The workload generally drives the amount of data that is logged and in
this case it's about 60MB (15000 4K pages) per minute. Does that seem
unreasonable given what's happening on the system? Is this actually a
problem for you, or are you just wondering what's happening? You
could consider increasing LOGFILSIZ if this would help (but depending
on how you're using your archived logs -- are they for DR purposes? --
then you'll have to take the longer time between archives into
consideration).

Another possibility is that the application is connecting, doing some
work, disconnecting (leaving nobody else connected), and then
repeating the process. In this case the current log will be truncated
and it will be archived when the database starts up next. If this is
in fact the problem then you could consider keeping the database
activated (using ACTIVATE DATABASE). I don't know Siebel's behavior
but I would guess that this probably isn't the problem. Are the logs
being archived all 60MB in size, or do they generally look like
they've been truncated?

Regards,
Kelly Schlamb
Nov 14 '07 #3
Kelly, The database is activated when it comes up. The archive log is
all 60 MB, so its not truncating. Given that its a CRM siebel
application, its hard to believe its logging this much of activity.
its sometimes cutting 4 logs in a minute.
I was concerned about it, because the database server is kind of I/O
bound.

Roger

Nov 14 '07 #4
On Nov 14, 9:28 am, aj <ron...@mcdonalds.comwrote:
Is noting when logs are cut, along w/ the LOGFILSIZ, the best way
to measure general workload on a given database thru time? Is there
a better approach?
I think this would measure only WRITE workload, and not take into
account READ workload. Is there something that measures both?

TIA
Correct. When I mentioned workload what I really meant to say was
"write workload". There are various snapshot monitor elements that
you can look at to get an idea of the amount of general work being
done over time (while the database remains active). For instance, you
can get things like number of rows read/inserted/updated/deleted,
number of update/insert/delete statements executed, number of select
statements, number of commits/rollbacks, number of DDL statements, log
pages written, etc. You should be able to get at this information via
SQL so you could store results in tables for historical purposes.

Kelly

Nov 14 '07 #5
On Nov 14, 10:50 am, Roger <wondering...@gmail.comwrote:
Kelly, The database is activated when it comes up. The archive log is
all 60 MB, so its not truncating. Given that its a CRM siebel
application, its hard to believe its logging this much of activity.
its sometimes cutting 4 logs in a minute.
I was concerned about it, because the database server is kind of I/O
bound.

Roger
Hi Roger,

As I just pointed out in another post under this thread, there are
ways for you to measure the number of various types of statements that
get executed, and how much work is being done. Also, you can see what
the rate of logging is by looking at some of the logging-related
fields within a database snapshot (such as log space used, log pages
written, etc).

If you're really interested in knowing what is being logged exactly,
you can write an application using the db2ReadLog() API. There are
also applications you can purchase that will examine your logs (such a
IBM's Recovery Expert and some audit tools from various vendors).

Kelly

Nov 14 '07 #6

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

Similar topics

5
by: Liberal | last post by:
I am looking for the simplest forum, bbs script which has those features? new messages will be displayed only after the administrator reviewed allow users post without signing up display the...
1
by: mahr | last post by:
Hello, is there a way (Win 2003, DB2 UDB 8.1 Fixpack9), that the logs are archived regularly? Our server writes logs (-> archive logs) only 1-3 times per day. I would like to have them more...
2
by: francois1 | last post by:
I am running a website with a SQL Server database attached. My transaction logs are full and my hosting co. won't allocate more disk space for me. I need to delete my database transaction logs...
8
by: Paul | last post by:
Hi all, I'm probably missing something obvious here, but occasionally the response stream for pages on my site is cutting off leaving incomplete HTML and an ugly page. Response.Buffer is set...
1
by: bill.dourado | last post by:
Using DB2:- Product identifier SQL08027 Level identifier 03080106 Level DB2 v8.1.14.292 Build level s061108 PTF ...
3
by: Laurence | last post by:
Hi folks, How to remove the transaction logs which are out of date in HADR environment? DB2 command PRUNE, it can only run on primary database but cannot run on standby database. Because the...
2
jlm699
by: jlm699 | last post by:
Greetings all, I'm using a PHP-based web page to access an SQL database containing logs which has grown quite large over time. A few weeks ago I recieved the following error: "Fatal error: Allowed...
0
by: shorti | last post by:
We are running DB2 UDB 8.1 fp 14 on AIX using archival logging and online backups. I was running some disaster tests and found my database restore was not restoring to the latest active log. ...
2
Maidenz08
by: Maidenz08 | last post by:
Can anyone tell how to capture both sides of the chat logs? I can capture the logs from my end using key strokes and capturing the title of the current active window the user is typing in. but any...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.