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

replication question

ken
Hi,
I set up replication with a Frontend/Backend database set up. I noticed
that when I sync the master with the replica in the same folder where I
set up the replication, everything works fine and when I test for
conflicts I get what I expect. However if I change the folder to say
Copy of Folder when I sync the master automatically wins all conflicts
without asking me, for all tables except 1. I find this very unusual.
Are there limitations to where I can store master/replica databases?

Thanks

Dec 6 '06 #1
5 1579
"ken" <ge****@gmail.comwrote in
news:11**********************@79g2000cws.googlegro ups.com:
I set up replication with a Frontend/Backend database set up. I
noticed that when I sync the master with the replica in the same
folder where I set up the replication, everything works fine and
when I test for conflicts I get what I expect. However if I change
the folder to say Copy of Folder when I sync the master
automatically wins all conflicts without asking me, for all tables
except 1. I find this very unusual. Are there limitations to where
I can store master/replica databases?
Well, I don't know what you mean by "change the folder to say Copy
of Folder" but if you're changing the folder name, then you've just
created a "dead replica." Here's a lengthy explanation of what a
"dead replica" is (all on one line):

http://groups.google.com/group/comp..../msg/9f5a84194
fa6c653

One replica can win all conflicts if it has a higher replica
priority. A Design Master has a priority of 100. Every replica has a
priority 90% of its parent replica, so replicas created directly
from the DM have a priority of 90, replicas created from one of
those replicas would have a priority of 81. In resolving conflicts,
all other things being equal, the replica with the higher priority
wins.

I don't like this kind of automatic conflict resolution myself, so
the way to insure that it doesn't happen is to make sure that all
the replicas being edited have exactly the same priority. I believe
the priority can be changed after creation of the replica, but I'm
not certain about that. Hmm, no, I guess you can't (JRO provides the
property but says it's read-only).

Copying or renaming a replica does *not* change its priority.

Another point: you should *never* use the Design Master of your
replica set for regular editing. It is important that you put it in
a safe place and synch with it only often enough to keep it from
expiring (the default retention period is 1000 days), but you
shouldn't use it for anything except making schema changes. If you
create a new replica as your production editing replica, it will
have the same replica priority as your other replicas, so your
problem ought to be solved.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Dec 6 '06 #2
ken
Hi,
Thanks for the reply.
Here is what I did...I have a design master and a replica in a folder
called "Folder" I entered data so that there would be conflicts in
certain tables. Then I did a Ctrl-C Ctrl-V on the folder containing the
databases. Thus I got "Copy of Folder". That's what windows does when
it makes a copy of something and the user wants to put it in the same
place as what is being copied. Finally my result was when I Sync in
the "Copy of Folder" folder Access does not generate all the conflict
tables and thus I can't see all of the conflicts that I expected to
see. However when I sync in the original "Folder" folder, where I
entered the data and created teh replica from the Design master,
everything is ok. I get all my conflicts.

That's what puzzles me.

Regarding the design master...I didn't know you shouldn't enter data
into it....? Now that I know rather having the Design Master and
Replica setup...I might have Design Master(100) Replica1(90) and
Replica2(80). I need one of the used database replicas to have a higher
priority number. The current policy is that Replica1 should always win
conflicts.

Thanks
David W. Fenton wrote:
"ken" <ge****@gmail.comwrote in
news:11**********************@79g2000cws.googlegro ups.com:
I set up replication with a Frontend/Backend database set up. I
noticed that when I sync the master with the replica in the same
folder where I set up the replication, everything works fine and
when I test for conflicts I get what I expect. However if I change
the folder to say Copy of Folder when I sync the master
automatically wins all conflicts without asking me, for all tables
except 1. I find this very unusual. Are there limitations to where
I can store master/replica databases?

Well, I don't know what you mean by "change the folder to say Copy
of Folder" but if you're changing the folder name, then you've just
created a "dead replica." Here's a lengthy explanation of what a
"dead replica" is (all on one line):

http://groups.google.com/group/comp..../msg/9f5a84194
fa6c653

One replica can win all conflicts if it has a higher replica
priority. A Design Master has a priority of 100. Every replica has a
priority 90% of its parent replica, so replicas created directly
from the DM have a priority of 90, replicas created from one of
those replicas would have a priority of 81. In resolving conflicts,
all other things being equal, the replica with the higher priority
wins.

I don't like this kind of automatic conflict resolution myself, so
the way to insure that it doesn't happen is to make sure that all
the replicas being edited have exactly the same priority. I believe
the priority can be changed after creation of the replica, but I'm
not certain about that. Hmm, no, I guess you can't (JRO provides the
property but says it's read-only).

Copying or renaming a replica does *not* change its priority.

Another point: you should *never* use the Design Master of your
replica set for regular editing. It is important that you put it in
a safe place and synch with it only often enough to keep it from
expiring (the default retention period is 1000 days), but you
shouldn't use it for anything except making schema changes. If you
create a new replica as your production editing replica, it will
have the same replica priority as your other replicas, so your
problem ought to be solved.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Dec 7 '06 #3
ken
David,
I read your link you sent me...
Things make a little more sense now. I need to have a design master,
and 2 replicas. Replica1 will have a higher priority then Replica2.
Replica1 will be on the local server. Replica2 will be on a remote
server. You mentioned that the Master needs to be synced only once a
month. My question is could Replica1 and Replica2 be synched more then
once a month? I need for them to be updated at least once a
week....very rarely more often then that? Then once a month I can
resync the master with the replicas...

What is Jet Synchronizer and where do I get it?

Thanks
ken wrote:
Hi,
Thanks for the reply.
Here is what I did...I have a design master and a replica in a folder
called "Folder" I entered data so that there would be conflicts in
certain tables. Then I did a Ctrl-C Ctrl-V on the folder containing the
databases. Thus I got "Copy of Folder". That's what windows does when
it makes a copy of something and the user wants to put it in the same
place as what is being copied. Finally my result was when I Sync in
the "Copy of Folder" folder Access does not generate all the conflict
tables and thus I can't see all of the conflicts that I expected to
see. However when I sync in the original "Folder" folder, where I
entered the data and created teh replica from the Design master,
everything is ok. I get all my conflicts.

That's what puzzles me.

Regarding the design master...I didn't know you shouldn't enter data
into it....? Now that I know rather having the Design Master and
Replica setup...I might have Design Master(100) Replica1(90) and
Replica2(80). I need one of the used database replicas to have a higher
priority number. The current policy is that Replica1 should always win
conflicts.

Thanks
David W. Fenton wrote:
"ken" <ge****@gmail.comwrote in
news:11**********************@79g2000cws.googlegro ups.com:
I set up replication with a Frontend/Backend database set up. I
noticed that when I sync the master with the replica in the same
folder where I set up the replication, everything works fine and
when I test for conflicts I get what I expect. However if I change
the folder to say Copy of Folder when I sync the master
automatically wins all conflicts without asking me, for all tables
except 1. I find this very unusual. Are there limitations to where
I can store master/replica databases?
Well, I don't know what you mean by "change the folder to say Copy
of Folder" but if you're changing the folder name, then you've just
created a "dead replica." Here's a lengthy explanation of what a
"dead replica" is (all on one line):

http://groups.google.com/group/comp..../msg/9f5a84194
fa6c653

One replica can win all conflicts if it has a higher replica
priority. A Design Master has a priority of 100. Every replica has a
priority 90% of its parent replica, so replicas created directly
from the DM have a priority of 90, replicas created from one of
those replicas would have a priority of 81. In resolving conflicts,
all other things being equal, the replica with the higher priority
wins.

I don't like this kind of automatic conflict resolution myself, so
the way to insure that it doesn't happen is to make sure that all
the replicas being edited have exactly the same priority. I believe
the priority can be changed after creation of the replica, but I'm
not certain about that. Hmm, no, I guess you can't (JRO provides the
property but says it's read-only).

Copying or renaming a replica does *not* change its priority.

Another point: you should *never* use the Design Master of your
replica set for regular editing. It is important that you put it in
a safe place and synch with it only often enough to keep it from
expiring (the default retention period is 1000 days), but you
shouldn't use it for anything except making schema changes. If you
create a new replica as your production editing replica, it will
have the same replica priority as your other replicas, so your
problem ought to be solved.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Dec 7 '06 #4
"ken" <gg****@gmail.comwrote in
news:11*********************@j44g2000cwa.googlegro ups.com:
Here is what I did...I have a design master and a replica in a
folder called "Folder" I entered data so that there would be
conflicts in certain tables. Then I did a Ctrl-C Ctrl-V on the
folder containing the databases. Thus I got "Copy of Folder".
That's what windows does when it makes a copy of something and the
user wants to put it in the same place as what is being copied.
Finally my result was when I Sync in the "Copy of Folder" folder
Access does not generate all the conflict tables and thus I can't
see all of the conflicts that I expected to see. However when I
sync in the original "Folder" folder, where I entered the data and
created teh replica from the Design master, everything is ok. I
get all my conflicts.

That's what puzzles me.
What, exactly, are you trying to test? When you do that, you end up
with two entirely new ReplicaIDs, and the conflicts are no longer
reported, because you're no longer synching the two replicas that
the conflict data was entered in.

If you created your copy first, then edited to create the conflict,
then synched, you'd see behavior identical to the original replicas.

But I don't quite understand why you're doing this, as it's not a
test that has anything at all to do with the way any actual
replication topology should be set up or actually used.
Regarding the design master...I didn't know you shouldn't enter
data into it....? Now that I know rather having the Design Master
and Replica setup...I might have Design Master(100) Replica1(90)
and Replica2(80). I need one of the used database replicas to have
a higher priority number. The current policy is that Replica1
should always win conflicts.
That should work, then. However, you still have to understand that
when a conflict is reported, it has already been resolved -- all the
conflict report is telling is "hey! I resolved a conflict, but you
may want to check that I did it correctly!" When you run the
built-in conflict resolver, all you're doing is confirming that Jet
resolved the conflicts correctly. You could programmatically examine
the conflict tables and make the same determination, and delete the
conflict records that were correctly resolved. That would leave the
ones that were resolved wrong, and then you could have someone
examine those to see why the replica with higher priority did not
win (it would probably have to be a case of multiple updates, I
think -- it's theoretically possible, but oughtn't be common).

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Dec 7 '06 #5
"ken" <gg****@gmail.comwrote in
news:11**********************@j44g2000cwa.googlegr oups.com:
Things make a little more sense now. I need to have a design
master, and 2 replicas. Replica1 will have a higher priority then
Replica2. Replica1 will be on the local server. Replica2 will be
on a remote server. You mentioned that the Master needs to be
synced only once a month.
Er, well, the DM needs to be synched often enough that it doesn't
expire. I use once a month as a time period that is well within the
default retention period of 1000 days, but you could do it less
often and not have problems, as long as you do it more often than
once every 3 years or so.
My question is could Replica1 and Replica2 be synched more then
once a month? I need for them to be updated at least once a
week....very rarely more often then that? Then once a month I can
resync the master with the replicas...
You synch between your replicas as often as you need. That might be
once a month, once a week or once every hour.
What is Jet Synchronizer and where do I get it?
First off, you need to read all the Jet replication documents. A
list of all of them can be found under "Resources for learning about
Jet Replication" at:

http://www.dfenton.com/DFA/Replicati....php/Main_Page

The MS documentation assumes you're going to have the Office
Development toolkit (whichever one is appropriate for your version
of Access) and that you'll be using Replication Manager. But the
2003 version of the development tools (Visual Studio) stupidly
doesn't include Replication Manager and the Jet synchronizer. I
explain how to get the Jet synchronizer and how to set it up in this
post (all on one line):

http://groups.google.com/group/micro...replication/ms
g/3b7167c1462b2d2f

Indirect replication is complicated to learn and set up, but is
extremely efficient and safe once you have it working.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Dec 7 '06 #6

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

Similar topics

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...
3
by: Louis Frolio | last post by:
Greetings All, I was hoping that a replication sage might be able to answer a question for me. I want to have one subscriber subscribing to N publishers. I essentially have a company that has a...
4
by: SQLNow | last post by:
If I have two tables that I want to synchronize via replication publish subscriber model and they don't contain primary keys i.e. an ID field, but there are three columns that make a unique key. ...
1
by: Andrew Chanter | last post by:
I developed 3 different replicated database applications in MS Access for 3 different corporate clients in Access 97 several years ago to enable data to be shared across wide area networks. I...
8
by: Rick | last post by:
I'm running an Access2000 front end mde linked to an Access2000 back end mdb. I need to set up replication and synchronization of only the data tables between the master db on the pc and replicas...
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...
6
by: Alex | last post by:
Hello, We are currently running our Access 2003 database over Citrix. We have been using a single front-end, but reading over topics in this group has made it clear that I should create...
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...
2
by: zgb | last post by:
Hi, I'm using MS SQL server 2005. I have two identical databases - with one exception: they have different names (etc database1 and databse2), but their structure is completely same. Is it...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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: 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: 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...

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.