🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.replication
Article #44

Re: Question about replication issue

#44
From: Solerman Kaplon
Date: Sat, 31 Jul 2004 19:34
25 lines
2172 bytes
Daniel Alvarez wrote:
[snip]
> My question is if there is a solution or workaround to solve this with IB
> Replicator, and I wanted to know if SQL Server and Oracle replication works
> the same as Interbase one.
> 
> Are they smart enough to get rid of this problem?

The built-in oracle replication sure is able to do it, I'm making a 
manual one (so don't need to build oracle enterprise to do it) and I 
solved it in the following way:

1) first, I made all constraints deferrable, so with a single system 
switch I make them only enforceable at commit time
2) when copying, always replicate to the current time, no matter how 
many log entries and what entries you have, unless you have a way to do 
that (the only way I know is copying all the data to another table -> db 
slowdown). First, change session transaction level to serializable, so 
you don't get other users changes in midle way (consistency), and them 
get all the records affected looking at the log. If the record was 
deleted, I get only the key in the log. When applying, first delete, 
then insert/update. I always test if the record exists, update, 
otherwise, insert.

Solerman
Technical Details
Message-ID: <410bf408@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4108f9cb@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f89d7,58e7ce5a7e1ed60f
X-Google-Attributes: gidf89d7,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 31 Jul 2004 16:34:54 -0300
From: Solerman Kaplon <solerman@wonder.com.br>
User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626)
X-Accept-Language: en-us, pt-br
MIME-Version: 1.0
Newsgroups: borland.public.interbase.replication
Subject: Re: Question about replication issue
References: <4108f9cb@newsgroups.borland.com>
In-Reply-To: <4108f9cb@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 200.96.66.118
Message-ID: <410bf408@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1091302408 200.96.66.118 (31 Jul 2004 12:33:28 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail