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

log files full autocommit

We are being faced with a situation where our Windows Server based UDB
(V7) crashes every so often due to log files getting too full.
We are seeing lots of messages in the logs about full log files and
escalating locks.
We think both the escalating locks and the full log files are caused by
queries that bring back too much data without enough commits.

ON another forum I heard a reference to some kind of COMMIT parameter
in Control Center which defaults to a million or something like that
and can be changed but I have had no luck finding this.
Any help would be appreciated.

THanks

Nov 12 '05 #1
8 3542
for full log files do one of the following:
- increase log file size
- commit more frequently - this would affect your inserts, updates or
imports

for lock escalation:
- commit more frequently also
- possibly increase lock list size, maybe adjust maxlocks

not familiar with a control center configuration for commiting, command
center does allow you to turn autocommit on/off. But most folks don't
run production queries via command center.

If you can't adjust commit interval consider adjusting the size of the
transaction in other ways. More info about your problem would be
helpful.

Also, this online manual is really good:
http://publib.boulder.ibm.com/infoce...lp/conhow2.htm
buck

Nov 12 '05 #2
Using CS instead of RR will lower the number of locks on SELECTS. I suspect
that one or more of the following are the case:
1) updates, inserts and deletes aren't being committed,
2) locklist is tiny,
3) log file allocations are far too small.

Post the locklist and log file parameters

Why would you want to select millions of rows using Control Centre? It will
take DAYS to display the results and you'll never look at them anyway.
Outside of Control Centre, Control Centre's options are irrelevant.

<pa***@soccermail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
We are being faced with a situation where our Windows Server based UDB
(V7) crashes every so often due to log files getting too full.
We are seeing lots of messages in the logs about full log files and
escalating locks.
We think both the escalating locks and the full log files are caused by
queries that bring back too much data without enough commits.

ON another forum I heard a reference to some kind of COMMIT parameter
in Control Center which defaults to a million or something like that
and can be changed but I have had no luck finding this.
Any help would be appreciated.

THanks

Nov 12 '05 #3
Firstly our UDB is used only for testing applications before they are
ported to MVS (OS/390, Z/OS whatever...)

I asked the DBA (who is really a mainframe DB2 muddling along as a
Windows UDB DB2 as well) the questions about locklist and logfile
parms and I was told that they are moving the UDB database to a new
server and they hope that will fix the problem.
He told me that he had no time to find the answers.

I can find those numbers for my personal instance of UDB on my
workstation by using "db2set -lr" but that doesn't work when I am
connected to the Server.

A lot of the querying is done adhoc using COmmand Center and though it
is not going to return millions of rows obvioulsy it is returning
enough to cause log file full issues.

I can encourage my fellow developers to add "WITH UR" at the end of
their SELECT statements and I trust that will reduce the locks
acquired.

Thanks y'all!

Nov 12 '05 #4
locklist size and number/size of logfiles are not visible by db2set
-lr, they are accessible by database configuration. Something similar
is needed:

db2 "get db cfg for <your_db_name>" | grep "log files"

db2 "get db cfg for <your_db_name>" | grep "lock"

the greps are optional, I used them just to view the relevant text.

Also, in my opinion, *just* moving to a newer server won't solve the
problem, you may still need to tune your db for appropriate usage.
regards,
dotyet

Nov 12 '05 #5
Thanks.
As it turns out I got the values from the Control Center itself, I
should have tried that out first.
FWIW here are the values
Log File SIze 250
Number of Primary Log files 3
Number of Secondary Log Files 2
LockList 1084

I agree that moving to the server won't fix the problem, but as I said
that is the stance the dba is taking :-(

Nov 12 '05 #6
Your "Log File Size (LOGFILSIZ) parameter value is too low. Even the
default value (when the database is installed) is 1000 4 K pages. Did
someone on purpose reduced this value?

As far as "Primary" and "Secondary" log files are concerned, they are
at there defaults (3 and 2). Increasing them will depend on few other
factors like your servers filesystem size, any other I/O specific tasks
that happen on this machine, the type of transactions that are
happening on the server, etc etc. I suggest you have a look at the UDB
Documentation at the following link, and then move forward.

http://publib.boulder.ibm.com/infoce...help/index.jsp
regards,
dotyet

Nov 12 '05 #7
> Log File Size 250
LockList 1084 No wonder you have problems. Review my previous response and address points
2 and 3.

<pa***@soccermail.com> wrote in message
news:11*********************@c13g2000cwb.googlegro ups.com... Thanks.
As it turns out I got the values from the Control Center itself, I
should have tried that out first.
FWIW here are the values
Log File SIze 250
Number of Primary Log files 3
Number of Secondary Log Files 2
LockList 1084

I agree that moving to the server won't fix the problem, but as I said
that is the stance the dba is taking :-(

Nov 12 '05 #8
Mark and dotyet,
I will pass on your tips to the DBA though affairs have come to a
pretty pass when the developer is having to tell the DBA how to
configure the database!
THanks for taking the trouble to help me

Regards

Nov 12 '05 #9

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

Similar topics

1
by: Marcus | last post by:
Hello, I have 2 questions regarding InnoDB tables: 1. In the MySQL manual, it states that "MySQL begins each client connection with autocommit mode enabled by default. When autocommit is...
0
by: jy2003 | last post by:
Below is what I got by using MySQL's --log startup option. The original Java(with JDBC driver) program that creates the queries at runtime was coded by other people, and unfortunately, they are not...
0
by: Scott Mills | last post by:
Hi all, I've got MySQL 4.1.3 installed on RH 7.3... everything's fine so far except for getting the init_connect string to work. I followed the instructions on...
1
by: Lynn.Tilby | last post by:
Hi, Please see the history below... Does AUTOCOMMIT as used here functionally replace VACUUM ANALYZE? If I turn on AUTOCOMMIT is every transaction commited as it is executed? If this is...
4
by: Christian Traber | last post by:
Hi, thanks for the new great version! Only one small problem, how can I disable autocommit in Postgres 7.4 in libpgtcl and psql? I found something about .psqlrc but how is the syntax and how...
1
by: Carmen Gloria Sepulveda Dedes | last post by:
Hola. He instalado postgres 7.4, y vi que ya no es posible hacer un "alter database ... set autocommit = off" Leyendo la documentacion de 7.4, encontre lo siguiente: Note: The...
0
by: Carmen Gloria Sepulveda Dedes | last post by:
Hello. I have installed postgres 7.4, and I see that it's not possible to do "alter database ... set autocommit = off" In the documentation, I found: Note: The autocommit-on mode is...
1
by: Matt Van Mater | last post by:
I'm looking to get a little more performance out of my database, and saw in the docs a section about disabling autocommit by using the BEGIN and COMMIT keywords. My problem is this: I enforce...
33
by: John Sidney-Woollett | last post by:
With the advent of postgres v8, would it be possible to change the default behaviour of psql from AUTOCOMMIT=ON to AUTOCOMMIT=OFF ? Although this might break backward compatibility, it might be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.