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

Commit Active problem solved (db2rhist.asc)

Dear all,
I wrote some weeks ago about a problem with all the committing
transactions blocked for many seconds in a Commit Active state. Well,
finally I solved it and I just would like to share this information.

As I suspected there was a lock. I suspected log writing due to the
commit active state and I was right. Using truss
on the db2loggw process I found that when the db2 was blocked it was
waiting on a Unix semaphore. I didn't
find a way to find on AIX a command that gives you the pid of the
semaphore locking process (you have the
last operation process pid, that was the db2loggw itself). This
semaphore lock appear just after a statx on
the db2rhist.asc file, so I tried to understand what was happening
with that file.

Oh well, the file was pretty big: 600MB. I suspected the db2logmgr and
infact it was accessing the file during
the lock. Once again, truss helped me. It was reading/seeking into the
file... when it finished it did a semop on
the same semaphore (an unlock obviously) and the db2loggw started to
write again and everything was unblocked
and working correctly.

I removed the db2rhist.asc and the db2rhist.bak and reduced the
REC_HIS_RETENTN variable to 7 days (we
keep backup for less than a week) while the default is 366...

Anyway I have some questions for any DB2 folk around here. First of
all anything happened just when there
was an asnapply or asncap committing transaction on the database (the
replication processes). Second is that I do
not understand while the db2logmgr must read so many data from the
db2rhist.asc: is it responsible of the history
rotation process or whatever?

Thanks a lot to everybody and bye.

Matteo Gelosa
I.NET S.p.A.

Jul 12 '07 #1
0 3492

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

Similar topics

0
by: Jason Nix | last post by:
I have created an Active Server Component (ASC) as a bridge between ASP and my existing C++ DLLs that we use in our PC-based program. Our intent is to re-use as much code as possible. But, when I...
1
by: Jason Nix | last post by:
I have created an Active Server Component (ASC) as a bridge between ASP and my existing C++ DLLs that we use in our PC-based program. Our intent is to re-use as much code as possible. But, when I...
8
by: Martin Staael | last post by:
When doing a UPDATE on a very large table it can take quite a long time due to the commit/rollback option. Is there any way on the client side to disable the commit/rollback option so that UPDATE...
2
by: janet | last post by:
HI, I had a question on auto-commit in DB2 EEE V8 on AIX V5. Here is my example.. there are two script A.sh , B.SQL A.sh is following:
1
by: Scott Cupstid | last post by:
We are working on a VB.NET application using SQLClient command objects to post data to the underlying SQL Server 2000 database. The application is deployed in a multi-user environment with no more...
9
by: Anurag | last post by:
ENVIRONMENT: ============ (1) AIX 5.2 ML 8 and AIX 5.3 TL 4. (2) DB2 ESE on some servers and DB2 Connect Enterprise Edition on others. QUESTION: ========= I upgrade DB2 on some 15 Production...
7
by: m.gelosa | last post by:
Dear all, I got a problem on db2 for aix running a high workload messaging system with more than 5,000,000 of deliveries per day. During high peak hours it happens frequently that the...
1
by: kw.housing | last post by:
hi I am using DB2 V9.5 but there is a IMPORT transaction that will never be able to commit itself. Its status is forever "Commit Active", and is taking 12% CPU, and not waiting on any lock. ...
4
by: Jon | last post by:
I am modifying an app for a customer in ASP.Net 1.1. The app is running on a server outside their network, yet they want to authenticate users against their internal active directory set up (they...
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: 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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.