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

DB2 V7 Replication performance


Hi,

We are replicating over 200 tables from each production 'server' (13
at the moment, about 140 when all are configured) and noticed a
large amount of additional IO's after activating replication.

I thought that the apply might be the one causing this but after
capturing the SQL statements it looks like the capture process is
causing those IO's.

Within 15 minutes the ASN.IBMSNAP_REGISTER table was read about
100000 times. When examining these sections it looks like the table
doesn't have the right indexes. Almost all sections within the
ASNNN706 package which do read the register table need to read all
the rows from the table.

The following SQL statements from the ASNNN706 package are causing
almost all IO's against the register table:

-------------------------------------------------
Section = 22
SQL Statement:
UPDATE ASN.IBMSNAP_REGISTER SET CD_NEW_SYNCHPOINT = :H00116 :H00031
WHERE PHYS_CHANGE_OWNER = :H00152 AND PHYS_CHANGE_TABLE = :H00153

Section = 156
SQL Statement:
UPDATE ASN.IBMSNAP_REGISTER SET SYNCHPOINT = :H00123 :H00155 ,
SYNCHTIME = :H00181 :H00155
WHERE GLOBAL_RECORD = 'Y'

Section = 166
SQL Statement:
SELECT MIN(SYNCHPOINT) INTO :H00116 :H00031
FROM ASN.IBMSNAP_PRUNCNTL A
WHERE A.SOURCE_OWNER CONCAT(A.SOURCE_TABLE) IN
(SELECT B.SOURCE_OWNER CONCAT(B.SOURCE_TABLE)
FROM ASN.IBMSNAP_REGISTER B
WHERE PHYS_CHANGE_TABLE = :H00153 AND PHYS_CHANGE_OWNER =
:H00152 ) AND A.SYNCHPOINT IS NOT NULL AND A.SYNCHPOINT
X'00000000000000000000'

------------------------------------------------

Section 166 was executed over 400 times within 15 minutes so the
solution could be to add an additional index with at least the
PHYS_CHANGE_OWNER and PHYS_CHANGE_TABLE columns (SOURCE_OWNER and
SOURCE_TABLE are both in the unique index already), the section 22
update would also use this index.

Has anybody done this before? Could this 'solution' be the cause of
other problems (too much locking, deadlocks)?
Do I need to add other indexes to the replication tables?

I hope somebody can help with this problem.

TIA.

Kind regards, Gert

Ps. don't reply be email, it's a fake address (if email is the only
option use google to find my real email address :)
Nov 12 '05 #1
1 1995
In article <MP************************@news.xs4all.nl>,
ge**@invalid.nl says...

Section 166 was executed over 400 times within 15 minutes so the
solution could be to add an additional index with at least the
PHYS_CHANGE_OWNER and PHYS_CHANGE_TABLE columns (SOURCE_OWNER and
SOURCE_TABLE are both in the unique index already), the section 22
update would also use this index.

Has anybody done this before? Could this 'solution' be the cause of
other problems (too much locking, deadlocks)?
Do I need to add other indexes to the replication tables?

Hi,

It would be great if somebody from the DB2 lab could assist with this
problem and advice on how to continue. We are evaluating the
replication pilot and would like to continue with the the other
servers within the next few weeks.

Kind regards, Gert
Nov 12 '05 #2

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

Similar topics

2
by: Andras Kovacs | last post by:
We have a performance problem to replicate our environnement. Our java code is able to insert 100 000 rows in a table within 3 seconds using Batch Statement. For two oracle sites it takes 6...
1
by: Craig HB | last post by:
I have a distributed inventory control database that I am going to migrate from Access to SQL Server. I am going to use SQL Server Replication to keep the data current. There will one SQL Server...
1
by: Tobias Johansson | last post by:
I'm seearching for information regarding database replication performance. We need to compare the performance of replication for SQL Server and Oracle and it is urgent! Anyone who can describe the...
1
by: Trent | last post by:
Hello,everyone. I'm setting a db2 replication environment using UDB version 8.1.5 running on Windows 2000 servers. The source server is on a Windows server with the capture program running while...
7
by: Andy K | last post by:
Hi , I have an existing database (on a Linux Red Hat ES3) where the replication function exists but does not work because the target database has been shutdown months ago . My question is...
9
by: David W. Fenton | last post by:
See: Updated version of the Microsoft Jet 4.0 Service Pack 8 replication files is available in the Download Center http://support.microsoft.com/?scid=kb;en-us;321076 This includes the Jet 4...
15
by: Pailloncy Jean-Gérard | last post by:
Hi, I just see that Mysql will propose at the end of the month a full synchronous replication system with auto-recovery. http://www.mysql.com/products/cluster/ We need to see when stable...
0
by: Andy K | last post by:
Hi, After a replication between 2 databases, performance problem has appeared with the master database. The database is a 2 tiers application where web frontal is targeting this database....
5
by: mjan | last post by:
Hello, could you please advice on how to measure replication performance in Oracle, DB2 & MS SQL Server RDBMS installed in Windows servers ? I've got two servers with databases installed and...
0
by: sk.rasheedfarhan | last post by:
Hi all, I set the configuration for Merge replication for Subscription on one database and I have created the Merge replication for publication on another machine. And I updated columns of...
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: 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?
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...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.