473,385 Members | 1,973 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.

replication troubles

Hi,

I'm using replication on linux and aix for a while now. I've set up several
replications from aix to aix, from linux to aix and vice versa. It was
running just fine until a few days ago. I noticed that some target tables
differ from the sourcetables. Some have more records than it's source others
have less records. The majority of the tables is still in sync.

I'm using one way replication for all tables, and all changed data for
partitioned keys is captured as deletes and inserts.
When records are updated, the cd tables show delete statements of the old
records and insert statements for the new records as expected. But the
applytrail table often shows that there were several transaction reworked
meaning that inserts statements fail and are then turned into updates and
updates are turned into inserts when that particular record does not exist
and thus cannot be updated.

I can't figure out why this happens!
I'm expecting the old record to be deleted and the new record to be
inserted. This insert statement seems to fail and is reworked to do an
update. But why??? Can this result in differences between the source and the
target tables??

Hope anyone can help me out here.
Thanks in advance.

J-W Reuling

--
---------------------------------------------------------------------
"Are you still wasting your time with spam?...
There is a solution!"

Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://mail.spaminspector.com

Nov 12 '05 #1
2 1731
J-W,

Typically the problem with source and table mismatch comes about from
differences in the Is_Key = Y columns in the subs_cols table compared
to the index for the target table.

Apply builds a SQL DELETE statement putting is_key = Y columns into the
where clause. If that where clause overqualifies the row so that nothing
matches, Apply ignores the -100 SQL code figuring that the row is already
deleted, no problem.

The insert uses the unique index and if that index differs from the is_key
columns you can get a case where Apply hits an -803 and flips the insert to
an update. With the update you're back to the is_key columns again.

The best way to see if this is your situation is to run the analyze program
or if you have V8, asnanalyze. Check the section called "target key synopsis"
where the analyze tool compares sysindex to is_key columns and notes any
mis-matches.

Best regards,
Jim Stewart
DataPropagator Support

Nov 12 '05 #2
Hi Jim,

Thanks for your reply, i've been out of office so I did not see it right
away.

I've experienced the is_key "problem" before, but this time it was
different. I tried the analyze tool and everything turned out to be OK. I've
checked the replication subscription and all key columns and everything was
configured the way it should be.

The next thing I did was call IBM support and after they had done a little
research it turned out to be a bug. So an APAR was setup (APAR IY53184) and
they supplied a fix for it. We're testing it right now.

This was their reply:

- - - 8< - - -

The devloper confirmed that the problem is that of APAR IY53184. The fix
for this APAR has been placed at the ftp site. Can the customer please
install this fix. Please let us know if the problem still persists.

- - - >8 - - -

The title of the APAR in question is :

DPROPR Capture not processing small endian on intentseq correctly on Linux.

Best Regards,

Jan-Willem Reuling
--
---------------------------------------------------------------------
"Are you still wasting your time with spam?...
There is a solution!"

Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://mail.spaminspector.com
"Jim Stewart" <jg****@nospam.us.ibm.com> wrote in message
news:40***********************@newscene.com...
J-W,

Typically the problem with source and table mismatch comes about from
differences in the Is_Key = Y columns in the subs_cols table compared
to the index for the target table.

Apply builds a SQL DELETE statement putting is_key = Y columns into the
where clause. If that where clause overqualifies the row so that nothing
matches, Apply ignores the -100 SQL code figuring that the row is already
deleted, no problem.

The insert uses the unique index and if that index differs from the is_key
columns you can get a case where Apply hits an -803 and flips the insert to an update. With the update you're back to the is_key columns again.

The best way to see if this is your situation is to run the analyze program or if you have V8, asnanalyze. Check the section called "target key synopsis" where the analyze tool compares sysindex to is_key columns and notes any
mis-matches.

Best regards,
Jim Stewart
DataPropagator Support

Nov 12 '05 #3

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

Similar topics

2
by: Cherrish Vaidiyan | last post by:
Hello, I have certain doubts regarding replication of Oracle 9i in Red Hat Linux 9. 1) I want to implement asynchronous/synchronous multimaster replication.I have heard about Replication...
0
by: Cherrish Vaidiyan | last post by:
Frank <fbortel@nescape.net> wrote in message news:<bqgb99$a04$1@news1.tilbu1.nb.home.nl>... > Cherrish Vaidiyan wrote: > > Hello, > > > > I have certain doubts regarding replication of Oracle 9i ...
0
by: John Yasaitis | last post by:
I seem to have replication set up correctly to only replicate one database named vmail.* Except when I try to update a table in vmail.* the changes do not replicate to the slave. Authentication...
6
by: John | last post by:
Hi We have an access app (front-end+backend) running on the company network. I am trying to setup replication for laptop users who go into field and need the data synched between their laptops...
3
by: dlesandrini | last post by:
I need advice about my decision to go with Replication in general. This post was placed on the Microsoft Replication newsgroup, but I really value the feedback that comes from this group as well. ...
56
by: Raphi | last post by:
Hi, I've been using an Access application I wrote for an office with the front-end stored on all computers and the back-end on one of them serving as an Access file server. Now we're moving...
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...
3
by: Gert van der Kooij | last post by:
Hi, Our SQL Replication is between DB2 databases on Windows servers. I'm searching for the document which tells me how to migrate our SQL Replication environment from V8 to V9 (we also need to...
2
by: Query Builder | last post by:
Hi, I have transactional replication set up on on of our MS SQL 2000 (SP4) Std Edition database server Because of an unfortunate scenario, I had to restore one of the publication databases. I...
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: 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...
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...

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.