JP2000284998A - Data update control system and method and computer readable recording medium storing program for executing the method - Google Patents

Data update control system and method and computer readable recording medium storing program for executing the method

Info

Publication number
JP2000284998A
JP2000284998A JP11093450A JP9345099A JP2000284998A JP 2000284998 A JP2000284998 A JP 2000284998A JP 11093450 A JP11093450 A JP 11093450A JP 9345099 A JP9345099 A JP 9345099A JP 2000284998 A JP2000284998 A JP 2000284998A
Authority
JP
Japan
Prior art keywords
master
database
update
site
replica
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP11093450A
Other languages
Japanese (ja)
Inventor
Hiroyasu Kurose
博靖 黒瀬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP11093450A priority Critical patent/JP2000284998A/en
Publication of JP2000284998A publication Critical patent/JP2000284998A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a distributed data management system for holding all updated data even when the update competition of a master database is generated. SOLUTION: In a distributed data management system connected through a network 400, a replica site 200 is provided with a replica data base 260 and a local updated data base 270 which holds updated data, and the replica site 200 issues a request for the reflection of the updated data on a master database 150, and receives the updated result, and prepares the replica database 260. A master site 100 receives the request of the master update, and updates the master database 150, and transmits the updated result to the replica site 200 which issues the request for update. When data competing at the time of the master update are present, the data are registered in the master database 150 as a version to which a site ID is added so that all the updated data can be held.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、データ更新制御シ
ステムに関し、特にネットワーク上にマスターデータベ
ースとその複製のレプリカデータベースが存在するとき
マスターデータベース上のデータを更新する際のデータ
更新を制御するための技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data update control system, and more particularly to a data update control system for controlling data update when updating data on a master database when a master database and a replica database of the master database exist on a network. About technology.

【0002】[0002]

【従来の技術】パーソナルコンピュータやワークステー
ション等のコンピュータシステムをネットワーク(Loca
l Area NetworkやWide Area Network等)へ複数接続
し、相互にネットワークを介して情報の授受を行いなが
ら、それぞれの処理を遂行するネットワークコンピュー
ティングにおいて重要な技術として、ネットワーク上の
1つのコンピュータシステムから他のコンピュータシス
テムに存在するデータベースをアクセスする分散データ
管理システムがある。この分散データ管理システムによ
ると、1つのコンピュータシステムに存在するデータベ
ースを複数のコンピュータシステムが共用することがで
きる。ここでは、共用されるデータベースを持つコンピ
ュータシステムをデータベースサーバーと呼び、この共
用データベースをアクセスするコンピュータシステムを
クライアントと呼ぶことにする。
2. Description of the Related Art Computer systems such as personal computers and workstations are connected to a network (Loca).
l Area Network, Wide Area Network, etc.), one of the most important technologies in network computing that performs each processing while exchanging information with each other via the network. There are distributed data management systems that access databases residing on other computer systems. According to this distributed data management system, a database existing in one computer system can be shared by a plurality of computer systems. Here, a computer system having a shared database is called a database server, and a computer system accessing the shared database is called a client.

【0003】この共用データベースがクライアントから
頻繁にアクセスされるとそのデータベースサーバーに要
求が集中し、ネットワーク全体のボトルネックとなる可
能性がある。そこでこのデータベースの複製を第2のデ
ータベースサーバーにも置くことによって、この共用デ
ータベースへのアクセスの負荷を分散し、ボトルネック
の解消を図ることが行わている。このような同一データ
ベースの複製のことをレプリカといい、この複製を作る
ことをレプリケーションという。
If the shared database is frequently accessed by clients, requests are concentrated on the database server, which may cause a bottleneck in the entire network. Therefore, by placing a copy of this database on the second database server, the load of access to the shared database is distributed, and the bottleneck is eliminated. Such a copy of the same database is called a replica, and making this copy is called a replication.

【0004】ここでは、もととなる共用データベースを
マスターデータベース、マスターデータベースを持つデ
ータベースサーバーをマスターサイトと呼び、複製の共
用データベースをレプリカデータベース、このレプリカ
データベースを持つデータベースサーバーをレプリカサ
イトと呼ぶことにする。従って、クライアントはこの共
用データベースをアクセスするときにはマスターサイト
のマスターデータベース又はいずれかのレプリカサイト
のレプリカデータベースへアクセスすることになる。
Here, the original shared database is called a master database, a database server having a master database is called a master site, a shared database for replication is called a replica database, and a database server having this replica database is called a replica site. I do. Therefore, the client accesses the master database at the master site or the replica database at any of the replica sites when accessing the shared database.

【0005】[0005]

【発明が解決しようとする課題】従来、上述したような
分散データ管理システムでは、通信ネットワーク上のク
ライアントが複数のレプリカデータベースを更新した場
合、次ぎのような方法でマスターデータベースおよびレ
プリカデータベースを更新してデータベースの同等性を
とるようにしている。 ・マスターデータベースのある時点(例えば、時間間隔
又は更新時等)での内容をそのままレプリカデータベー
スにコピーする。 ・マスターデータベースでのトランザクションログをあ
る時点でレプリカサイトに反映することにより、インク
リメンタルな更新を行う。 ・マスターデータベースとレプリカデータベースのいず
れか又は両方で更新されたとき、マスターデータベース
とレプリカデータベースのどちらの値を残すか決めるこ
とによって相互に反映している。
Conventionally, in a distributed data management system as described above, when a client on a communication network updates a plurality of replica databases, the master database and the replica database are updated by the following method. To make the databases equivalent. Copy the contents of the master database at a certain point in time (for example, at a time interval or at the time of updating) as it is to the replica database. -Incremental update is performed by reflecting the transaction log in the master database at a certain point in the replica site. When one or both of the master database and the replica database are updated, they are mutually reflected by deciding which value of the master database or the replica database is to be left.

【0006】しかしながらこれら従来の方法では、多サ
イトでデータベースを更新しようとした場合、データベ
ースの同等性を維持するために、いずれれかのサイトの
更新内容によってそのデータベースが更新されてしま
い、その他のサイトで行った更新内容は失われてしまう
という問題点がでてくる。このような場合、後でユーザ
が参照したり変更を加えたりすることができなくなって
しまう。
However, according to these conventional methods, when a database is to be updated at multiple sites, the database is updated by the update content of one of the sites in order to maintain the equivalence of the database, and other databases are updated. The problem is that updates made on the site are lost. In such a case, the user will not be able to refer to or make changes later.

【0007】このような問題点を解決するために本発明
では、マスターデータベースの更新競合が起こった場合
でもすべての更新データを保持することによって、いつ
の時点のデータでもユーザが参照・更新することができ
る分散データ管理システムのデータ更新制御システムを
提供することを目的とする。更に、このようなシステム
とするとネットワーク上を流通するデータが巨大化し、
ネットワーク上の通信負荷を増えるので、できる限り減
少させるようなデータ更新制御システムを提供すること
も目的とする。
In order to solve such a problem, according to the present invention, all update data is retained even when an update conflict occurs in a master database, so that a user can refer to and update data at any time. It is an object of the present invention to provide a data update control system for a distributed data management system that can be used. Furthermore, if such a system is used, the data circulating on the network becomes huge,
Another object of the present invention is to provide a data update control system that reduces the communication load on a network as much as possible.

【0008】[0008]

【課題を解決するための手段】本発明の請求項1のデー
タ更新制御システムは、マスターデータベースを保持す
る1つのマスターサイトと該マスターデータベースの複
製であるレプリカデータベースを保持する1つ以上のレ
プリカサイトとをネットワークを介して接続した分散デ
ータ管理システムにおいて、前記レプリカサイトには前
記レプリカデータベースを更新したデータを保持するロ
ーカル更新データベースと、その更新されたデータを前
記マスターデータベースへ反映するように要求し、その
更新結果のマスターデータベースの内容を受信して複製
であるレプリカデータベースを作成するマスター更新要
求部とを備え、前記マスターサイトには前記マスター更
新要求部からの要求を受信してマスターデータベースを
更新するマスター更新部とを備え、前記レプリカサイト
のマスター更新要求部は、そのレプリカサイトのローカ
ル更新データベースの内容を前記マスターサイトへマス
ターデータベースを更新するように要求し、前記マスタ
ーサイトでは前記マスター更新部がその更新の要求を受
信し、前記マスターデータベースを更新すると共に、そ
の更新に成功したときに更新されたマスターデータベー
スを更新要求のあったレプリカサイトのマスター更新要
求部へ送信することによってレプリカデータベースを更
新するようにしたことを特徴とする。
According to a first aspect of the present invention, there is provided a data update control system comprising one master site for holding a master database and one or more replica sites for holding a replica database which is a copy of the master database. In the distributed data management system connected via a network, the replica site requests the local update database that holds the updated data of the replica database, and reflects the updated data on the master database. A master update request unit that receives the content of the master database as an update result and creates a replica database that is a copy, and updates the master database by receiving a request from the master update request unit at the master site. Master The master update request unit of the replica site requests the content of the local update database of the replica site to update the master database to the master site, and at the master site, the master update unit Receiving the update request, updating the master database, and updating the replica database by transmitting the updated master database to the master update request unit of the replica site that has requested the update when the update is successful; It is characterized by doing so.

【0009】又、本発明の請求項2のデータ更新制御シ
ステムは、請求項1又は請求項12記載のデータ更新制
御システムにおいて、前記マスターデータベース、前記
レプリカデータベースおよび前記ローカル更新データベ
ースは、バージョン番号とレプリカサイトのサイト識別
情報とを対比したバージョン管理情報も保持することを
特徴とする。
The data update control system according to a second aspect of the present invention is the data update control system according to the first or twelfth aspect, wherein the master database, the replica database and the local update database each include a version number. It is also characterized in that it also holds version management information in comparison with the site identification information of the replica site.

【0010】又、本発明の請求項3のデータ更新制御シ
ステムは、請求項2記載のデータ更新制御システムにお
いて、バージョン管理情報のサイト識別情報を保持しな
い通常バージョンのデータベースと該サイト識別情報を
有するサイトバージョンを有するようにしたことを特徴
とする。
A data update control system according to a third aspect of the present invention, in the data update control system according to the second aspect, has a database of a normal version that does not hold site identification information of version management information and the site identification information. It is characterized by having a site version.

【0011】又、本発明の請求項4のデータ更新制御シ
ステムは、請求項3記載のデータ更新制御システムにお
いて、前記レプリカサイトにローカル更新部を設け、該
ローカル更新部は、前記レプリカデータベースの通常バ
ージョンのデータに対して更新した場合、その結果を前
記ローカル更新データベースへ保管し、この保管したバ
ージョンはレプリカのバージョンより新しいバージョン
とこのレプリカサイトのIDをサイト識別情報として登
録することを特徴とする。
According to a fourth aspect of the present invention, in the data update control system according to the third aspect, a local update unit is provided at the replica site, and the local update unit is provided with a normal update unit for the replica database. When the version data is updated, the result is stored in the local update database, and the stored version registers a newer version than the replica version and the ID of the replica site as site identification information. .

【0012】又、本発明の請求項5のデータ更新制御シ
ステムは、請求項4記載のデータ更新制御システムにお
いて、前記レプリカサイトのローカル更新部は、前記ロ
ーカル更新データベースのデータに対して更新を行った
場合、その結果を該ローカル更新データベースへ保管
し、この保管したバージョンは更新を行った該ローカル
更新データベースのもとのバージョンより新しいバージ
ョン番号とこのレプリカサイトのIDをサイト識別情報
として登録することを特徴とする。
According to a fifth aspect of the present invention, in the data update control system according to the fourth aspect, the local update unit of the replica site updates the data of the local update database. In this case, store the result in the local update database, and register the stored version with a newer version number than the original version of the updated local update database and the ID of the replica site as site identification information. It is characterized by.

【0013】又、本発明の請求項6のデータ更新制御シ
ステムは、請求項3記載のデータ更新制御システムにお
いて、前記マスターサイトのマスター更新部に競合判定
部を設け、前記競合判定部は、このマスターサイトのマ
スターデータベースの最新バージョンが前記レプリカサ
イトのローカル更新データベースの各データの一番古い
バージョンより小さい場合、通常バージョンと判定し、
さもなければサイト付きバージョンと判定と判定し、前
記マスター更新部は該競合判定部が通常バージョンと判
定したときにはそのローカル更新データベースの内容を
すべて前記マスターデータベースへ通常バージョンとし
て登録し、該判定がサイト付きのバージョンであればそ
のローカル更新データベースの内容をサイト付きバージ
ョンとして前記マスターデータベースへ登録し、その更
新されたマスターデータベースをマスター更新の要求の
あったレプリカサイトへ転送し、前記マスター更新要求
部はそれを前記レプリカデータベースへ複製すると共に
前記ローカル更新データベースをクリアするようにした
ことを特徴とする。
According to a sixth aspect of the present invention, in the data update control system according to the third aspect, a conflict determination unit is provided in a master update unit of the master site. If the latest version of the master database at the master site is smaller than the oldest version of each data of the local update database at the replica site, it is determined to be a normal version,
Otherwise, the master update unit determines that the version is a site-added version, and when the conflict determination unit determines that the version is the normal version, the master update unit registers all the contents of the local update database in the master database as the normal version. If the version is with, the contents of the local update database is registered in the master database as a version with a site, the updated master database is transferred to the replica site where the master update was requested, and the master update request unit is It is characterized in that it is copied to the replica database and the local update database is cleared.

【0014】又、本発明の請求項7のデータ更新制御シ
ステムは、請求項1又は請求項12記載のデータ更新制
御システムにおいて、前記レプリカサイトのマスター更
新要求部は、更新したいデータのみマスターサイトへ送
り、マスターデータベースの部分更新を行うようにした
ことを特徴とする。
According to a seventh aspect of the present invention, in the data update control system according to the first or twelfth aspect, the master update request unit of the replica site sends only the data to be updated to the master site. The master database is partially updated.

【0015】又、本発明の請求項8のデータ更新制御シ
ステムは、請求項1又は請求項12記載のデータ更新制
御システムにおいて、前記レプリカサイトにレプリカ更
新要求部を備え、このレプリカ更新要求部は、前記ロー
カル更新データベースが空の場合、このレプリカサイト
から前記マスターサイトにマスターデータベースの内容
を転送するように要求し、マスターデータベースをこの
レプリカサイトのレプリカデータベースへ複製するよう
にしたことを特徴とする。
The data update control system according to claim 8 of the present invention is the data update control system according to claim 1 or 12, further comprising a replica update request unit at the replica site, wherein the replica update request unit is Requesting to transfer the contents of the master database from the replica site to the master site when the local update database is empty, and replicating the master database to the replica database at the replica site. .

【0016】又、本発明の請求項9のデータ更新制御シ
ステムは、請求項1又は請求項12記載のデータ更新制
御システムにおいて、前記マスターサイトは、同時にふ
たつ以上のレプリカサイトからの要求を受けつけないよ
うにしたことを特徴とする。
According to a ninth aspect of the present invention, in the data update control system according to the first or twelfth aspect, the master site does not accept requests from two or more replica sites at the same time. It is characterized by doing so.

【0017】又、本発明の請求項10のデータ更新制御
システムは、請求項1記載のデータ更新制御システムに
おいて、前記マスターサイトは、レプリカサイトへマス
ター更新要求部を定期的に動作させるように要求するこ
とによって定期的にマスターデータベースおよびレプリ
カデータベースを更新するようにしたことを特徴とす
る。
According to a tenth aspect of the present invention, in the data update control system according to the first aspect, the master site requests the replica site to periodically operate a master update request unit. By doing so, the master database and the replica database are periodically updated.

【0018】又、本発明の請求項11のデータ更新制御
システムは、請求項1記載のデータ更新制御システムに
おいて、前記レプリカサイトは、マスター更新要求部を
定期的に動作させることによって定期的にマスターデー
タベースおよびレプリカデータベースを更新するように
したことを特徴とする。
In the data update control system according to the present invention, in the data update control system according to the first aspect, the replica site periodically operates a master update request unit to periodically operate the master update request unit. The database and the replica database are updated.

【0019】又、本発明の請求項12のデータ更新制御
システムは、マスターデータベースを保持する1つのマ
スターサイトと該マスターデータベースの複製であるレ
プリカデータベースを保持する1つ以上のレプリカサイ
トとをネットワークを介して接続した分散データ管理シ
ステムにおいて、前記レプリカサイトには、前記レプリ
カデータベースを更新したデータを保持するローカル更
新データベースと、前記マスターサイトのマスターデー
タベースの独占して変更する権利を要求するチェックア
ウト要求部と、その更新されたデータを前記マスターデ
ータベースへ反映するように要求し、その更新結果のマ
スターデータベースの内容を受信して複製であるレプリ
カデータベースを作成するマスター更新要求部と、マス
ターデータベースを更新した後そのマスターデータベー
スの独占権を放棄を要求するチェックイン要求部とを備
え、前記マスターサイトには、レプリカサイトからのチ
ェックアウト要求に応じてマスターデータベースを独占
して変更する権利を検査設定するチェックアウト部と、
前記マスター更新要求部からの要求を受信してマスター
データベースを更新するマスター更新部と、前記レプリ
カサイトからのマスターデータベースの独占権を放棄の
要求を実行するアンロック部とを備え、前記レプリカサ
イトは、前記チェックアウト要求部がこのチェックアウ
トしたいデータを指定して前記マスターサイトへ要求を
送り、前記マスター更新要求部がこのチェックアウトが
成功したときローカル更新データベースのデータをマス
ターサイトに送り、更新結果を受信してレプリカデータ
ベースを更新すると共に、前記チェックイン要求部がレ
プリカデータベースの更新に成功したとき独占権の放棄
の要求をマスターサイトに送ると共にローカル更新デー
タベースをクリアし、前記マスターサイトは、前記チェ
ックアウト部がレプリカサイトから受信したチェックア
ウトしたいデータのチェックアウトを行い、その結果を
要求もとのレプリカサイトへ送り、前記マスター更新部
が送られてきたローカル更新データベースのデータをマ
スターデータベースの更新をすると共に更新されたマス
ターデータベースを要求元のレプリカサイトへ送り、前
記アンロック部がレプリカサイトからの独占権の放棄の
要求を受信するとチェックアウトを解消することを特徴
とする。
A data update control system according to a twelfth aspect of the present invention provides a network in which one master site holding a master database and one or more replica sites holding a replica database which is a copy of the master database are connected. In the distributed data management system connected via a network, the replica site includes a local update database that holds the updated data of the replica database, and a checkout request that requests the exclusive right to change the master database of the master site. A master update requesting unit for requesting to reflect the updated data to the master database, receiving the contents of the updated master database and creating a replica database as a replica, and a master database. A check-in request unit for requesting to abandon the exclusive right of the master database after the update, wherein the master site has a setting for inspecting the right to monopolize and change the master database in response to a check-out request from the replica site. Checkout department to
A master update unit that receives a request from the master update request unit and updates a master database, and an unlock unit that executes a request for abandoning the exclusive right of the master database from the replica site, wherein the replica site The check-out request unit sends a request to the master site specifying the data to be checked out, and the master update request unit sends the data of the local update database to the master site when the check-out is successful, And updates the replica database, and when the check-in request unit succeeds in updating the replica database, sends a request for waiver of the exclusive right to the master site and clears the local update database, and the master site Check out part Check-out of the data to be checked out received from the recovery site is performed, the result is sent to the replica site of the request, and the master update unit updates the data of the local update database sent thereto while updating the master database. Sending the master database to the requesting replica site, and canceling the check-out when the unlock unit receives a request from the replica site to release the exclusive right.

【0020】又、本発明の請求項13のデータ更新制御
方法は、マスターデータベースを保持する1つのマスタ
ーサイトと該マスターデータベースの複製であるレプリ
カデータベースを保持する1つ以上のレプリカサイトと
をネットワークを介して接続した分散データ管理システ
ムにおいて、前記レプリカサイトには前記レプリカデー
タベースを更新したデータを保持するローカル更新デー
タベースと、その更新されたデータを前記マスターデー
タベースへ反映するように要求し、その更新結果のマス
ターデータベースの内容を受信して複製であるレプリカ
データベースを作成するマスター更新要求部とを備え、
前記マスターサイトには前記マスター更新要求部からの
要求を受信してマスターデータベースを更新するマスタ
ー更新部とを備え、前記レプリカサイトのマスター更新
要求部は、そのレプリカサイトのローカル更新データベ
ースの内容を前記マスターサイトへマスターデータベー
スを更新するように要求し、前記マスターサイトでは前
記マスター更新部がその更新の要求を受信し、前記マス
ターデータベースを更新すると共に、その更新に成功し
たときに更新されたマスターデータベースを更新要求の
あったレプリカサイトのマスター更新要求部へ送信する
ことによってレプリカデータベースを更新するようにし
たことを特徴とする。
Further, according to a data update control method of the present invention, a network is established by connecting one master site holding a master database and one or more replica sites holding a replica database which is a copy of the master database. In the distributed data management system connected through the above, the replica site requests the local update database that holds the updated data of the replica database and the updated data to be reflected in the master database, and updates the update result. A master update request unit that receives the contents of the master database and creates a replica database that is a replica,
The master site includes a master update unit that receives a request from the master update request unit and updates a master database.The master update request unit of the replica site stores the contents of the local update database of the replica site as the Requesting a master site to update a master database, wherein at the master site the master updater receives a request for the update, updates the master database, and updates the master database upon a successful update Is transmitted to the master update request section of the replica site that has issued the update request, thereby updating the replica database.

【0021】又、本発明の請求項14のコンピュータ読
み取り可能な記録媒体は、マスターデータベースを保持
する1つのマスターサイトと該マスターデータベースの
複製であるレプリカデータベースを保持する1つ以上の
レプリカサイトとをネットワークを介して接続した分散
データ管理システムにおいて、前記レプリカサイトには
前記レプリカデータベースを更新したデータを保持する
ローカル更新データベースと、その更新されたデータを
前記マスターデータベースへ反映するように要求し、そ
の更新結果のマスターデータベースの内容を受信して複
製であるレプリカデータベースを作成するマスター更新
要求部とを備え、前記マスターサイトには前記マスター
更新要求部からの要求を受信してマスターデータベース
を更新するマスター更新部とを備え、前記レプリカサイ
トのマスター更新要求部は、そのレプリカサイトのロー
カル更新データベースの内容を前記マスターサイトへマ
スターデータベースを更新するように要求し、前記マス
ターサイトでは前記マスター更新部がその更新の要求を
受信し、前記マスターデータベースを更新すると共に、
その更新に成功したときに更新されたマスターデータベ
ースを更新要求のあったレプリカサイトのマスター更新
要求部へ送信することによってレプリカデータベースを
更新するようにしたプログラムを記録した。
According to a fourteenth aspect of the present invention, there is provided a computer-readable recording medium comprising one master site for holding a master database and one or more replica sites for holding a replica database which is a copy of the master database. In a distributed data management system connected via a network, the replica site requests a local update database that holds data updated to the replica database, and requests that the updated data be reflected in the master database. A master update request unit that receives the contents of the master database as an update result and creates a replica database that is a replica, and the master site receives a request from the master update request unit and updates the master database. An update unit, wherein the master update request unit of the replica site requests the contents of the local update database of the replica site to update the master database to the master site, and at the master site, the master update unit Receiving a request for update and updating the master database;
A program for updating the replica database by transmitting the updated master database to the master update request section of the replica site that requested the update when the update was successful was recorded.

【0022】[0022]

【発明の実施の形態】以下、5つの実施例を用いて、本
発明の構成および動作原理について説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The construction and operation principle of the present invention will be described below using five embodiments.

【0023】(1)全体の環境 図1は、本発明のデータ更新制御システムの稼働環境を
示す図である。本システムの運用環境は、マスターデー
タベースを保持する1個所のマスターサイト100と、
このマスターデータベースのレプリカを保持する1箇所
以上のレプリカサイト200とこのデータベースを参照
・更新する1箇所以上のクライアント300とをネット
ワーク環境400で結合して構成される。又、本システ
ムの利用はクライアント300からとは限らず、マスタ
サイト100やレプリカサイト200からであっても一
向に差し支えない。
(1) Overall Environment FIG. 1 is a diagram showing an operating environment of the data update control system of the present invention. The operation environment of this system includes one master site 100 that holds a master database,
One or more replica sites 200 that hold replicas of this master database and one or more clients 300 that refer to and update this database are connected in a network environment 400. Further, the use of the present system is not limited to the client 300, and the system may be used from the master site 100 or the replica site 200.

【0024】図2は、本発明が稼動するマスタサイト1
00、レプリカサイト200およびクライアント300
のコンピュータハードウェア構成を示す図である。入力
手段1はキーボード、マウス、タッチパネル等により構
成され、情報の入力に使用される。出力手段2は、種々
の出力情報や入力手段1からの入力された情報などを出
力させるものであって、表示装置やプリンタ等から構成
される。
FIG. 2 shows a master site 1 on which the present invention operates.
00, replica site 200 and client 300
FIG. 3 is a diagram showing a computer hardware configuration of the computer. The input unit 1 includes a keyboard, a mouse, a touch panel, and the like, and is used for inputting information. The output unit 2 outputs various output information, information input from the input unit 1, and the like, and includes a display device, a printer, and the like.

【0025】CPU3は、種々のプログラムを動作させ
る。メモリ4は、プログラム自身を保持し、又そのプロ
グラムがCPU3によって実行されるときに一時的に作
成される情報等を保持する。記憶手段5は、本システム
で扱うデータベース、プログラムやプログラム実行時の
一時的な情報等を保持する。媒体駆動手段6は、プログ
ラムやデータ等を記憶した記録媒体を装着してそれらを
読み込み、メモリ4または記憶手段5へ格納するのに用
いられる。又、直接データの入出力やプログラム実行す
るのに使ってもよい。ネットワークインタフェース(I/
F)7は、マスタサイト100、レプリカサイト200
やクライアント300のコンピュータとネットワーク4
00とのインタフェースをとって、ネットワーク上の情
報の送受信を行うためのインタフェース装置である。
The CPU 3 operates various programs. The memory 4 holds the program itself, and also holds information temporarily created when the program is executed by the CPU 3. The storage unit 5 holds a database, a program handled by the present system, temporary information at the time of executing the program, and the like. The medium driving means 6 is used to load a recording medium storing programs, data, and the like, read them, and store them in the memory 4 or the storage means 5. Further, it may be used for directly inputting / outputting data or executing a program. Network interface (I /
F) 7 is a master site 100, a replica site 200
And the computer of the client 300 and the network 4
This is an interface device for transmitting and receiving information on a network by interfacing with the network interface 00.

【0026】(2)本システムのデータベースとその利
用 (A)データベースの種類 本システム中には次のような3種類のデータベースが保
持されている。 ・マスターデータベース ・レプリカデータベース ・ローカル更新データベース マスターデータベースは、1つのマスターサイト100
に1つある。このマスタサイト100で排他制御により
管理されており、このマスターデータベースのデータが
唯一正しいものとなる。
(2) Database of the present system and its use (A) Types of databases The present system holds the following three types of databases. -Master database-Replica database-Local update database The master database is one master site 100.
There is one. The data is managed by the exclusive control at the master site 100, and the data in the master database is the only correct data.

【0027】レプリカデータベースは、1つのマスター
データベースに対して1つ以上存在し、レプリカサイト
200に保持され、クライアントからは、レプリカデー
タベースとローカル更新データベースの両方とも検索す
ることができる。このレプリカデータベースは、定期的
にマスターサイト100からレプリカサイト200へデ
ータが転送され、その転送直後はマスターデータベース
とレプリカデータベースの内容が一致しているが常に一
致しているとは限らない。又、レプリカサイト200で
データを更新するときは、レプリカデータベースの内容
をもとに更新を行い、その更新結果をローカル更新デー
タベースで保持する。このローカル更新データベースで
保持されたデータをマスターサイト100へ送ってマス
ターデータベースを更新する。
One or more replica databases exist for one master database and are held at the replica site 200. A client can search both the replica database and the local update database. In this replica database, data is periodically transferred from the master site 100 to the replica site 200. Immediately after the transfer, the contents of the master database and the replica database match, but they do not always match. When updating data at the replica site 200, the data is updated based on the contents of the replica database, and the update result is held in the local update database. The data held in the local update database is sent to the master site 100 to update the master database.

【0028】(B)3つのデータベースのデータ構造 図3は、上記の3つのデータベースのデータ構造を示し
た図であり、これら3つのデータベースは同じデータ構
造を持っている。データベースは、バージョン情報(2
1、22)とデータベースで管理されるデータの本体2
5とで構成する場合(図3(a))とそれにチェックア
ウト情報(23、24)を付加する場合(図3(b))
とがある。
(B) Data Structure of Three Databases FIG. 3 is a diagram showing the data structure of the above three databases, and these three databases have the same data structure. The database stores version information (2
1, 22) and the main body 2 of data managed by the database
5 (FIG. 3 (a)) and a case where checkout information (23, 24) is added thereto (FIG. 3 (b)).
There is.

【0029】バージョン情報は、バージョン番号21と
サイトID22とからなっている。データ本体25には
必ずバージョン番号が付加され、このデータが更新され
ると必ずバージョンも変更される。例えば、バージョン
番号は1から始まり順次更新されるたびに1つづつ増加
するように決める。サイトID22は、レプリカサイト
を識別するためのユニークな識別子であって、例えばホ
スト名(src.ricoh.co.jp等)が使われる。即ち、データ
がどのサイトによって更新したが分かるようにバージョ
ン情報を付けている。マスターデータベースでバージョ
ン番号に競合がなければサイトIDを持たないバージョ
ンとし、このバージョンを「通常バージョン」と呼び、
競合がある場合にはサイトIDを付けたバージョンと
し、これを「サイトID付バージョン」と呼ぶ。
The version information includes a version number 21 and a site ID 22. A version number is always added to the data body 25, and when this data is updated, the version is always changed. For example, the version number is determined to start from 1 and increase by one each time it is updated sequentially. The site ID 22 is a unique identifier for identifying a replica site, and for example, a host name (src.ricoh.co.jp or the like) is used. That is, version information is added so that it can be known which site has updated the data. If there is no conflict in the version number in the master database, it is assumed to be a version that does not have a site ID, this version is called "normal version",
If there is a conflict, the version is assigned a site ID, which is referred to as a “version with site ID”.

【0030】以下標記上は、バージョン情報を次のよう
に書くことにする。 通常バージョン : バージョン番号 サイトID付バージョン: バージョン番号@サイトI
D 更に、ローカル更新データベースにおけるバージョン情
報は次のようにして生成される。 ・レプリカサイトのサイトID付バージョンのみとする ・バージョン番号はレプリカデータベースの更新してい
るデータの属するバージョン番号に1を加えたものとす
る。 ・ローカル更新データベースに登録されているデータを
更新するときには、その時のデータの属するローカル更
新データベースのバージョン番号に1を加えたものとす
る。
In the following description, version information will be written as follows. Normal version: Version number Version with site ID: Version number @ Site I
D Further, the version information in the local update database is generated as follows. -Only the version with the site ID of the replica site is used.-The version number is obtained by adding 1 to the version number to which the updated data of the replica database belongs. When updating data registered in the local update database, it is assumed that 1 is added to the version number of the local update database to which the data belongs at the time.

【0031】又、チェックアウト情報は、チェックアウ
トフラグ23とサイトID24からなっている。チェッ
クアウトは、マスターデータベースのデータを変更する
権利を得るために要求するもので、チェックアウトフラ
グ23が「真」であるとそのデータの変更する権利を獲
得することになり、それが「偽」であるときには権利が
ないことを示している。ここでサイトID24はこのチ
ェックアウトが要求されたレプリカサイトを識別する識
別子である。この形式はバージョン情報のサイトIDと
同形式とする。
The checkout information includes a checkout flag 23 and a site ID 24. Checkout is a request for obtaining the right to change the data in the master database. If the checkout flag 23 is "true", the user has the right to change the data, which is "false". Indicates that there is no right. Here, the site ID 24 is an identifier for identifying the replica site requested to check out. This format is the same as the site ID of the version information.

【0032】(C)バージョン情報の利用 図4は、マスターデータベースのデータを更新したとき
のバージョン情報の変遷を示している。バージョン番号
が1のときは最初にマスターデータベースが生成された
ときを示している。バージョン番号が2のときにはデー
タの更新が競合しなかったために通常バージョンとして
登録されたことを示している。
(C) Use of Version Information FIG. 4 shows the transition of the version information when the data in the master database is updated. When the version number is 1, it indicates that the master database was first generated. When the version number is 2, it indicates that the data has not been updated and has been registered as a normal version.

【0033】又、バージョン番号が3のときには最初に
登録したデータが通常バージョンとなり、レプリカサイ
トにあるバージョン2のレプリカデータベースに対して
ローカルに更新し、それをマスターデータベースの更新
を要求したとき既にバージョン番号が3となってしまっ
ているので、後で更新要求したものはサイトID付バー
ジョンとして登録される。同様にして、バージョン番号
が5のときは、バージョン番号が4のものを更新した
後、同じバージョン番号が4のレプリカデータベースに
対して他の更新が2つのサイトから別々に行われたこと
を示している。
When the version number is 3, the data registered first becomes the normal version, and is locally updated in the version 2 replica database at the replica site, and when the master database is requested to be updated, the version is already updated. Since the number is 3, the one requested to be updated later is registered as a version with a site ID. Similarly, when the version number is 5, it means that after updating the version number 4, another update was performed separately from the two sites to the replica database having the same version number 4. ing.

【0034】図5は、レプリカサイトにおいて、バージ
ョン番号が2のデータベースに対してデータの変更を行
い、それをローカル更新データベースへ格納した後、更
にそのローカル更新データベースの最新のバージョンに
対して2度の更新を行った結果が、バージョン番号が3
のところに示されている。
FIG. 5 shows that, at the replica site, data is changed in the database having the version number 2 and is stored in the local update database. The result of updating is that the version number is 3
Is shown.

【0035】第1の実施例 本発明の第1の実施例について図6〜9を用いて説明す
る。 (1)構成図の説明 図6は本発明の第1の実施例の機能構成を説明するため
の図である。
First Embodiment A first embodiment of the present invention will be described with reference to FIGS. (1) Description of Configuration Diagram FIG. 6 is a diagram for explaining the functional configuration of the first embodiment of the present invention.

【0036】マスターサイト100は、制御部110、
マスター更新部120、レプリカ更新部130、マスタ
ー更新要求起動要請部140、検索更新部180および
マスターデータベース150とから構成される。制御部
110は、各機能(マスター更新部120、レプリカ更
新部130、マスター更新要求起動要請部140、検索
更新部180)の制御およびネットワークを通じたデー
タの送受信等を制御する。マスター更新部120は、レ
プリカサイト200からのマスターデータベース150
のデータ更新要求を処理する。又、マスターデータベー
ス150を更新する際、競合状態を判定する競合判定部
125を設けてある。レプリカ更新部130は、レプリ
カサイト200からのマスターデータベース150の転
送要求を処理する。
The master site 100 includes a control unit 110,
It comprises a master update unit 120, a replica update unit 130, a master update request activation request unit 140, a search update unit 180, and a master database 150. The control unit 110 controls each function (the master update unit 120, the replica update unit 130, the master update request activation request unit 140, and the search update unit 180) and controls the transmission and reception of data through the network. The master update unit 120 receives the master database 150 from the replica site 200.
Process the data update request. When updating the master database 150, a conflict determination unit 125 for determining a conflict state is provided. The replica updating unit 130 processes a transfer request of the master database 150 from the replica site 200.

【0037】マスター更新要求起動要請部140は、タ
イマー等の時間制御により定期的に起動し、マスターデ
ータベース150を更新する更新要求を送信するように
すべてのレプリカサイト200へ要請する。検索更新部
180は、排他制御でデータの検索・更新を行う。クラ
イアント300からの要請でマスターデータベース15
0のデータ検索を行い、その結果を戻す。又、検索した
結果を更新する場合は、通常バージョンとしてマスター
データベース150を更新する。マスターデータベース
150は、ネットワーク内に唯一存在するデータベース
であり、そのデータが各レプリカサイトのレプリカデー
タベースにコピーされ、そのレプリカデータベースが検
索・更新の対象となる。
The master update request activation requesting unit 140 is periodically activated by time control such as a timer, and requests all the replica sites 200 to transmit an update request for updating the master database 150. The search and update unit 180 searches and updates data by exclusive control. Master database 15 upon request from client 300
Perform a data search of 0 and return the result. When updating the search result, the master database 150 is updated as a normal version. The master database 150 is the only database existing in the network, and its data is copied to the replica database at each replica site, and the replica database is searched and updated.

【0038】レプリカサイト200は、制御部210、
マスター更新要求部220、レプリカ更新要求部23
0、ローカル更新部240、マスター更新要求起動部2
50、検索部280、レプリカデータベース260およ
びローカル更新データベース270とから構成される。
制御部210は、各機能(マスター更新要求部220、
レプリカ更新要求部230、ローカル更新部240、マ
スター更新要求起動部250、検索部280)の制御お
よびネットワークを通じたデータの送受信等を制御す
る。マスター更新要求部220は、クライアント300
からの指示でローカル更新データベース270の内容を
マスターサイト100のマスターデータベース150を
更新するように要求し、その更新されたマスターデータ
ベース150を受信し、レプリカデータベース260を
置きかえると共にローカル更新データベース270をク
リアする。レプリカ更新要求部230は、ローカル更新
データベース270が空のときに動作し、マスターサイ
ト100のマスターデータベース150の内容を送信す
るように要求し、受信したマスターデータベースの内容
でレプリカデータベース260を置きかえる。
The replica site 200 includes a control unit 210,
Master update request unit 220, replica update request unit 23
0, local update unit 240, master update request start unit 2
50, a search unit 280, a replica database 260, and a local update database 270.
The control unit 210 controls each function (the master update request unit 220,
It controls the replica update request unit 230, the local update unit 240, the master update request activation unit 250, and the search unit 280), and controls the transmission and reception of data through the network. The master update request unit 220
Requesting that the contents of the local update database 270 be updated at the master database 150 at the master site 100, receiving the updated master database 150, replacing the replica database 260, and clearing the local update database 270. . The replica update requesting unit 230 operates when the local update database 270 is empty, requests to transmit the contents of the master database 150 of the master site 100, and replaces the replica database 260 with the received contents of the master database.

【0039】ローカル更新部240は、レプリカデータ
ベース260の内容を修正・削除等の更新を行ったとき
にローカル更新データベース270へ書きこむ。ここに
書きこまれたデータをマスター更新要求部120がマス
ターサイト100へ送ることによってマスターデータベ
ース150が更新される。マスター更新要求起動部25
0は、タイマー等の時間制御により定期的にマスター更
新要求部220を起動する。検索部280は、クライア
ント300からの要請でレプリカデータベース260又
はローカル更新データベース270を検索し、その結果
をクライアント300へ送信する。レプリカデータベー
ス260は、マスターデータベース150の複製のデー
タベースである。ローカル更新データベース270は、
レプリカデータベース260を修正・削除等を行ったと
きに書きこまれるデータベースである。このデータベー
スは、マスターデータベース150が更新されるときに
参照され、更新後にクリアされる。
The local update unit 240 writes the contents of the replica database 260 into the local update database 270 when the contents of the replica database 260 are updated or deleted. The master database 150 is updated by transmitting the data written here to the master site 100 by the master update request unit 120. Master update request starting unit 25
0 activates the master update request unit 220 periodically by time control such as a timer. The search unit 280 searches the replica database 260 or the local update database 270 in response to a request from the client 300, and transmits the result to the client 300. The replica database 260 is a duplicate database of the master database 150. The local update database 270
This is a database that is written when the replica database 260 is modified or deleted. This database is referenced when the master database 150 is updated, and is cleared after the update.

【0040】クライアント300は、データベース操作
者がレプリカサイトのレプリカデータベースをもとに検
索や更新を行うために利用される。このクライアント3
00も複数あっても良いし、又、クライアントとレプリ
カサイトとが同一のコンピューターで実行されても良
い。
The client 300 is used by a database operator to search and update based on a replica database at a replica site. This client 3
00 and a client and a replica site may be executed on the same computer.

【0041】(2)全体の流れ (A)ユーザーの操作 ユーザーはクライアント300から適当なレプリカサイ
トを選択し、そのレプリカデータベースおよびローカル
更新データベースを検索部280を使ってデータを取出
す。又、レプリカデータベース260のデータを修正し
たいときには、レプリカデータベース260の修正した
いデータを取りだし、それを修正してローカル更新デー
タベース270へ格納する。ユーザーはこれを繰り返し
た結果、これまでの修正結果をマスターデータベース1
50へ反映したいとき、マスター更新要求部220を使
ってマスターサイト100へマスター更新要求を送信す
る。又、ユーザーは、他のクライアント300によって
マスターデータベース150が更新されているかもしれ
ないので、レプリカデータベース270を更新するよう
にレプリカ更新要求部230を使ってマスターサイト1
00へレプリカ更新要求を送信する。
(2) Overall Flow (A) User Operation The user selects an appropriate replica site from the client 300, and retrieves the replica database and the local update database using the search unit 280. When the data in the replica database 260 is to be corrected, the data to be corrected in the replica database 260 is extracted, corrected, and stored in the local update database 270. The user repeats this process, and saves the results of the correction so far in the master database 1.
When it is desired to update the master update request to the master site 100, a master update request is transmitted to the master site 100 using the master update request unit 220. In addition, since the master database 150 may have been updated by another client 300, the user uses the replica update request unit 230 to update the replica database 270 so that the master site 1 is updated.
00 to send a replica update request.

【0042】(B)レプリカサイトの動作 レプリカサイト200では、マスターサイト100のマ
スターデータベースからコピーされたレプリカデータベ
ース260と、ローカルに更新されたデータを保持する
ローカル更新データベース270を保持している。クラ
イアント300からの要請により、このローカルに更新
されたデータをマスターデータベース150に反映させ
るようにマスターサイト100へ要求を出す。その結果
はレプリカデータベース260が更新されることにな
り、ローカル更新データベース270はクリアされる。
更に、クライアント300の要請により、マスターデー
タベース150の更新を伴わないレプリカデータベース
260の更新要求をマスターサイト100へ要求するこ
ともできる。その結果はレプリカデータベース260が
更新されることになる。更に、ローカル更新データベー
ス270のデータをマスターデータベース150に反映
させるように定期的にマスターサイト100へ要求も行
う。その結果、ユーザーがマスター更新要求を指示しな
くてもマスターデータベース150が更新されることに
なる。
(B) Operation of Replica Site The replica site 200 holds a replica database 260 copied from the master database of the master site 100, and a local update database 270 holding locally updated data. In response to a request from the client 300, a request is issued to the master site 100 to reflect the locally updated data in the master database 150. As a result, the replica database 260 is updated, and the local update database 270 is cleared.
Further, at the request of the client 300, a request for updating the replica database 260 without updating the master database 150 can be made to the master site 100. As a result, the replica database 260 is updated. Further, a request is periodically made to the master site 100 to reflect the data in the local update database 270 to the master database 150. As a result, the master database 150 is updated without the user instructing the master update request.

【0043】(C)マスターサイトの動作 マスターサイト100では、定期的およびレプリカサイ
ト200からの要求に応じてマスターデータベース15
0のデータをレプリカサイト200に送信する。又、レ
プリカサイト200からの要求に応じてマスターデータ
ベース150の変更を行う。
(C) Operation of Master Site In the master site 100, the master database 15 is periodically and in response to a request from the replica site 200.
The data of 0 is transmitted to the replica site 200. Further, the master database 150 is changed in response to a request from the replica site 200.

【0044】(3)レプリカ更新 図7は、レプリカサイト200からレプリカデータベー
ス260を更新するように要求したときのレプリカサイ
ト200とマスターサイト100との間で処理と通信に
ついて説明する図である。先ず、クライアント300か
ら制御部210がレプリカデータベース260の更新要
求を受信し、レプリカ更新要求部220を起動する。こ
のレプリカ更新要求部220は、ローカル更新データベ
ース270が空かどうかチェックする(ステップSR0
7010)。ローカル更新データベース270が空でな
いとき、制御部210を通じてクライアント300に
「ローカル更新データベースが空でない」というメッセ
ージを送信する。ローカル更新データベース270が空
のとき、「レプリカ更新要求」をマスターサイト100
へ送信する(ステップSR07020)。マスターサイ
ト100からのマスターデータベース150を受信する
と、これをレプリカデータベース260と置きかえる
(ステップSR07030)。
(3) Replica Update FIG. 7 is a diagram for explaining processing and communication between the replica site 200 and the master site 100 when the replica site 200 requests to update the replica database 260. First, the control unit 210 receives an update request for the replica database 260 from the client 300, and activates the replica update request unit 220. The replica update request unit 220 checks whether the local update database 270 is empty (step SR0)
7010). When the local update database 270 is not empty, a message “local update database is not empty” is transmitted to the client 300 through the control unit 210. When the local update database 270 is empty, the “replica update request” is sent to the master site 100.
(Step SR07020). When receiving the master database 150 from the master site 100, the master database 150 is replaced with the replica database 260 (step SR07030).

【0045】マスターサイト100は、このレプリカ更
新要求を制御部110が受信し、レプリカ更新部130
を起動する。レプリカ更新部130は、他のレプリカサ
イトからの要求(マスター更新要求およびレプリカ更新
要求)がきていないかどうかをチェックする(ステップ
SM07010)。他からの要求を処理中のときには、
要求元のレプリカサイトへ「マスターデータベースがビ
ジーである」ことを送信する。他からの要求がなけれ
ば、マスターデータベース150を要求してきたレプリ
カサイト200へ制御部110を通じて送信する(ステ
ップSM07020)。
At master site 100, control unit 110 receives the replica update request, and replica update unit 130
Start Replica updating section 130 checks whether or not requests (master update request and replica update request) from another replica site have been received (step SM07010). When processing another request,
Send "Master database is busy" to the requesting replica site. If there is no other request, the master database 150 is transmitted to the requesting replica site 200 through the control unit 110 (step SM07020).

【0046】(4)マスターサイトでの検索更新 クライアント300からの要請でマスターデータベース
150を直接検索すことも、更新することもできる。こ
の制御は排他制御で行う。又、マスターデータベースを
更新する場合はサイトIDなしの通常バージョンとして
更新する。バージョン番号は、今登録されている最新の
バージョン番号に1を加算した番号とする。ここでマス
ターデータベース150中のサイトID付バージョンは
検索することができるが変更することはできない。
(4) Search Update at Master Site The master database 150 can be searched directly or updated at the request of the client 300. This control is performed by exclusive control. When updating the master database, the master database is updated as a normal version without a site ID. The version number is a number obtained by adding 1 to the latest registered version number. Here, the version with the site ID in the master database 150 can be searched but cannot be changed.

【0047】(5)ローカル更新データベース レプリカサイトでのレプリカデータベース260の更新
は、レプリカデータベース260の内容を元に更新を行
い、更新結果はローカル更新データベース270に格納
する。このときの更新後のバージョン情報は、更新対象
になったデータのバージョン番号に1を加えた番号と
し、このレプリカサイトのサイトIDを付加したサイト
付バージョンとなる。ここでレプリカデータベース26
0中のサイトID付バージョンのデータは変更すること
ができない。
(5) Local Update Database The update of the replica database 260 at the replica site is performed based on the contents of the replica database 260, and the update result is stored in the local update database 270. The updated version information at this time is a version with a site obtained by adding 1 to the version number of the data to be updated and adding the site ID of the replica site. Here the replica database 26
The data of the version with the site ID in 0 cannot be changed.

【0048】(6)マスター更新 図8は、ローカルに更新されたローカル更新データベー
ス270にあるデータでマスターデータベースを更新す
るように要求したときのレプリカサイト200とマスタ
ーサイト100との間での処理と通信について説明する
図である。レプリカサイト200でマスター更新要求部
220を起動するには次の3つのやり方がある。 ・クライアント300が起動を指示したとき ・マスターサイト100から定期的に起動要求が出され
たとき ・レプリカサイト200自身が定期的に起動要求を行っ
たとき これらのいずれかで起動されたマスター更新要求部22
0は、ローカル更新データベース270の内容と共にマ
スターサイト100へマスター更新要求を送信する(ス
テップSR08010)。このレプリカサイト200で
は、マスターサイト100から更新後のマスターデータ
ベースの内容を受信すると、既存のレプリカデータベー
ス260と置きかえる(ステップSR08020)。ロ
ーカル更新データベース270をクリアする(ステップ
SR08030)。
(6) Master Update FIG. 8 shows the processing between the replica site 200 and the master site 100 when a request is made to update the master database with data in the locally updated local update database 270. It is a figure explaining communication. There are the following three methods for activating the master update request unit 220 at the replica site 200. -When the client 300 instructs to start-When a start request is periodically issued from the master site 100-When the replica site 200 itself periodically issues a start request Master update request started by any of these Part 22
0 transmits a master update request to the master site 100 together with the contents of the local update database 270 (step SR08010). When receiving the updated contents of the master database from the master site 100, the replica site 200 replaces the existing replica database 260 with the existing replica database 260 (step SR08020). The local update database 270 is cleared (step SR08030).

【0049】マスターサイト100は、このマスター更
新要求を制御部110が受信し、マスター更新部120
を起動する。マスター更新部120は、他のレプリカサ
イトからの要求(マスター更新要求およびレプリカ更新
要求)がきていないかどうかをチェックする(ステップ
SM08010)。他からの要求を処理中のときには、
要求元のレプリカサイトへ「マスターデータベースがビ
ジーである」ことを送信する。他からの要求がなけれ
ば、競合判定部125を起動して、マスターデータベー
ス150に存在するバージョン情報と送られてきたロー
カル更新データベースのバージョン情報とを比較して競
合状況を調べる(ステップSM08020)。競合判定
の結果、通常バージョンと判定されたときは、送られて
きたローカル更新データベースのデータを通常バージョ
ン(送られてきたバージョン情報のサイトIDを削除し
て)としてマスターデータベース150へ登録する(ス
テップSM08030)。
The master site 100 receives the master update request from the control unit 110 and
Start Master updating section 120 checks whether or not requests (master update request and replica update request) from other replica sites have been received (step SM08010). When processing another request,
Send "Master database is busy" to the requesting replica site. If there is no other request, the conflict determination unit 125 is activated, and the conflict information is checked by comparing the version information existing in the master database 150 with the version information of the transmitted local update database (step SM08020). As a result of the conflict determination, when it is determined that the version is the normal version, the transmitted data of the local update database is registered in the master database 150 as the normal version (after deleting the site ID of the transmitted version information) (step). SM08030).

【0050】競合判定の結果、サイトID付バージョン
と判定されたときには、送られてきたローカル更新デー
タベースのデータをサイトID付バージョン(送られて
きたまま)としてマスターデータベース150へ登録す
る(ステップSM08040)。更新されたマスターデ
ータベース150を要求してきたレプリカサイト200
へ制御部110を通じて送信する(ステップSM080
50)。
As a result of the conflict determination, when it is determined that the version is the version with the site ID, the transmitted data of the local update database is registered in the master database 150 as the version with the site ID (as transmitted) (step SM08040). . Replica site 200 requesting updated master database 150
(Step SM080)
50).

【0051】図9は、マスターデータベース150のバ
ージョン情報とローカル更新データベースのバージョン
情報とを比較して競合しているかどうかを調べる時の処
理の流れを示す図である。マスターデータベース150
の最新バージョン情報を取出す。このうちのバージョン
番号をMverとする(ステップS09010)。送ら
れてきたローカル更新データベースのバージョン情報を
取出す。このうちのバージョン番号をUverとする
(ステップS09020)。Mver+1とUverと
が等しいかを比較する(ステップS09030)。この
比較は送られてきたローカル更新データベースのデータ
がマスターデータベースにとって最新の更新データであ
るかどうかをチェックしている。
FIG. 9 is a diagram showing a processing flow when comparing the version information of the master database 150 with the version information of the local update database to check whether or not there is a conflict. Master database 150
Extract the latest version information of The version number is Mver (step S09010). Extract the version information of the local update database sent. The version number is set to Over (step S09020). It is determined whether Mver + 1 is equal to Uver (step S09030). This comparison checks whether the received local update database data is the latest update data for the master database.

【0052】この結果が等しいときには、競合はないの
で「通常バージョン」として登録するようになる(ステ
ップS09040)。この結果が等しくないとき、Mv
er+1がUverより大きいかを比較する(ステップ
S09050)。大きい場合には、「サイトID付バー
ジョン」として登録するようになる(ステップS090
60)。さもなければ、バージョンエラーとして要求元
のレプリカサイト200へ送信する。
If the results are equal, there is no conflict, and the result is registered as "normal version" (step S09040). When the results are not equal, Mv
It is determined whether er + 1 is greater than Uver (step S09050). If it is larger, it is registered as "version with site ID" (step S090)
60). Otherwise, it is transmitted to the requesting replica site 200 as a version error.

【0053】(7)マスターサイトからのタイマー起動 マスターサイト100の制御部110は、タイマー等の
設定で定期的にマスター更新要求起動要請部140を起
動する。マスター更新要求起動要請部140は、すべて
のレプリカサイト200へマスター更新要求を送るよう
に指示を送信する。レプリカサイト200の制御部21
0は、この要求を受信するとマスター更新要求部220
を起動して、ローカル更新データベース270の内容と
共にマスター更新要求を送り、最終的には、マスターデ
ータベースの更新、レプリカデータベースへの複製を作
成し、ローカル更新データベースのクリアを行う。
(7) Activation of Timer from Master Site The control unit 110 of the master site 100 periodically activates the master update request activation request unit 140 by setting a timer or the like. The master update request activation request unit 140 transmits an instruction to send a master update request to all replica sites 200. Control unit 21 of replica site 200
0, upon receiving this request, the master update request unit 220
Is started, a master update request is sent together with the contents of the local update database 270, and finally, the master database is updated, a copy to the replica database is created, and the local update database is cleared.

【0054】(8)レプリカサイトからのタイマー起動 レプリカサイト200の制御部210は、タイマー等の
設定で定期的にマスター更新要求起動部250を起動す
る。マスター更新要求起動部250は、マスター更新要
求部220を起動して、ローカル更新データベース27
0の内容と共にマスター更新要求を送り、最終的には、
マスターデータベースの更新、レプリカデータベースへ
の複製を作成し、ローカル更新データベースのクリアを
行う。
(8) Start of Timer from Replica Site The control unit 210 of the replica site 200 periodically starts the master update request starting unit 250 by setting a timer or the like. The master update request activating unit 250 activates the master update requesting unit 220 and activates the local update database 27.
A master update request is sent with the contents of 0, and finally,
Update the master database, create a replica on the replica database, and clear the local update database.

【0055】第2の実施例(アルゴリズム2) (1)構成図の説明 図10は本発明の第2の実施例の機能構成を説明するた
めの図である。
Second Embodiment (Algorithm 2) (1) Description of Configuration Diagram FIG. 10 is a diagram for explaining a functional configuration of a second embodiment of the present invention.

【0056】マスターサイト100は、制御部110、
マスター更新部120、レプリカ更新部130、チェッ
クアウト部160、アンロック部170、検索更新部1
80およびマスターデータベース150とから構成され
る。制御部110は、各機能(マスター更新部120、
レプリカ更新部130、チェックアウト部160、アン
ロック部170、検索更新部180)の制御およびネッ
トワークを通じたデータの送受信等を制御する。チェッ
クアウト部160は、レプリカサイト200から要求さ
れたデータの変更する権利の獲得を行う。チェックアウ
トしている間はそのレプリカサイト200で更新された
データが通常バージョンとなる。マスター更新部120
は、レプリカサイト200からのマスターデータベース
150のデータ更新要求を処理する。又、マスターデー
タベース150を更新する際、競合状態を判定する競合
判定部125を設けてある。アンロック部170は、レ
プリカサイト200から指定されたデータの更新権利を
放棄する。
The master site 100 includes a control unit 110,
Master update unit 120, replica update unit 130, checkout unit 160, unlock unit 170, search update unit 1
80 and a master database 150. The control unit 110 controls each function (the master update unit 120,
It controls the replica update unit 130, the checkout unit 160, the unlock unit 170, the search update unit 180), and controls the transmission and reception of data through the network. The checkout unit 160 acquires the right to change the data requested from the replica site 200. During the check-out, the data updated at the replica site 200 is the normal version. Master update unit 120
Processes a data update request of the master database 150 from the replica site 200. When updating the master database 150, a conflict determination unit 125 for determining a conflict state is provided. The unlock unit 170 relinquishes the right to update the data specified by the replica site 200.

【0057】レプリカ更新部130は、レプリカサイト
200からのマスターデータベース150の転送要求を
処理する。検索更新部180は、排他制御でデータの検
索・更新を行う。クライアント300からの要請でマス
ターデータベース150のデータ検索を行い、その結果
を戻す。又、検索した結果を更新する場合は、通常バー
ジョンとしてマスターデータベース150を更新する。
マスターデータベース150は、ネットワーク内に唯一
存在するデータベースであり、そのデータが各レプリカ
サイトのレプリカデータベースにコピーされ、そのレプ
リカデータベースが検索・更新の対象となる。
The replica update unit 130 processes a transfer request of the master database 150 from the replica site 200. The search and update unit 180 searches and updates data by exclusive control. The data search of the master database 150 is performed in response to a request from the client 300, and the result is returned. When updating the search result, the master database 150 is updated as a normal version.
The master database 150 is the only database existing in the network, and its data is copied to the replica database at each replica site, and the replica database is searched and updated.

【0058】レプリカサイト200は、制御部210、
マスター更新要求部220、レプリカ更新要求部23
0、ローカル更新部240、チェックアウト要求部29
0、チェックイン要求部295、検索部280、レプリ
カデータベース260およびローカル更新データベース
270とから構成される。制御部210は、各機能(マ
スター更新要求部220、レプリカ更新要求部230、
ローカル更新部240、チェックアウト要求部290、
チェックイン要求部295、検索部280)の制御およ
びネットワークを通じたデータの送受信等を制御する。
チェックアウト要求部290は、クライアント300か
らの指示でローカル更新データベース270の更新した
いデータに対して更新する権利を獲得するためにマスタ
ーサイト100へチェックアウト要求を送信する。チェ
ックイン要求部295は、チェックアウト要求が成功し
たときマスター更新要求部220を起動し、終了後アン
ロック要求をマスターサイト100へ送信し、データの
更新の権利を放棄する。
The replica site 200 includes a control unit 210,
Master update request unit 220, replica update request unit 23
0, local update unit 240, checkout request unit 29
0, a check-in request unit 295, a search unit 280, a replica database 260, and a local update database 270. The control unit 210 controls each function (the master update request unit 220, the replica update request unit 230,
Local update unit 240, checkout request unit 290,
It controls the check-in request unit 295 and the search unit 280) and controls the transmission and reception of data through the network.
The checkout request unit 290 transmits a checkout request to the master site 100 in order to acquire a right to update data to be updated in the local update database 270 according to an instruction from the client 300. The check-in request unit 295 activates the master update request unit 220 when the check-out request is successful, transmits an unlock request to the master site 100 after the end, and relinquishes the right to update the data.

【0059】マスター更新要求部220は、ローカル更
新データベース270の更新したいデータをマスターサ
イト100へ送信し、マスターデータベース150を更
新するように要求し、その更新されたマスターデータベ
ース150を受信し、レプリカデータベース260を置
きかえると共にローカル更新データベース270をクリ
アする。レプリカ更新要求部230は、ローカル更新デ
ータベース270が空のときに動作し、マスターサイト
100のマスターデータベース150の内容を送信する
ように要求し、受信したマスターデータベースの内容で
レプリカデータベース260を置きかえる。ローカル更
新部240は、レプリカデータベース260の内容を修
正・削除等の更新を行ったときにローカル更新データベ
ース270へ書きこむ。ここに書きこまれたデータをマ
スター更新要求部120がマスターサイト100へ送る
ことによってマスターデータベース150が更新され
る。検索部280は、クライアント300からの要請で
レプリカデータベース260又はローカル更新データベ
ース270を検索し、その結果をクライアント300へ
送信する。レプリカデータベース260は、マスターデ
ータベース150の複製のデータベースである。ローカ
ル更新データベース270は、レプリカデータベース2
60を修正・削除等を行ったときに書きこまれるデータ
ベースである。このデータベースは、マスターデータベ
ース150が更新されるときに参照され、更新後にクリ
アされる。
The master update requesting unit 220 transmits the data to be updated in the local update database 270 to the master site 100, requests to update the master database 150, receives the updated master database 150, and 260 is replaced and the local update database 270 is cleared. The replica update requesting unit 230 operates when the local update database 270 is empty, requests to transmit the contents of the master database 150 of the master site 100, and replaces the replica database 260 with the received contents of the master database. The local update unit 240 writes the contents of the replica database 260 to the local update database 270 when the contents of the replica database 260 are updated or deleted. The master database 150 is updated by transmitting the data written here to the master site 100 by the master update request unit 120. The search unit 280 searches the replica database 260 or the local update database 270 in response to a request from the client 300, and transmits the result to the client 300. The replica database 260 is a duplicate database of the master database 150. The local update database 270 is a replica database 2
This is a database written when 60 is modified or deleted. This database is referenced when the master database 150 is updated, and is cleared after the update.

【0060】クライアント300は、データベース操作
者がレプリカサイトのレプリカデータベースをもとに検
索や更新を行うために利用される。このクライアント3
00も複数あっても良いし、又、クライアントとレプリ
カサイトとが同一のコンピューターで実行されても良
い。
The client 300 is used by the database operator to search and update based on the replica database at the replica site. This client 3
00 and a client and a replica site may be executed on the same computer.

【0061】(2)全体の流れの概略説明 (A)ユーザーの操作 ユーザーはクライアント300から適当なレプリカサイ
トを選択し、そのレプリカデータベースおよびローカル
更新データベースを検索部280を使ってデータを取出
す。又、レプリカデータベース260のデータを修正し
たいときには、レプリカデータベース260の修正した
いデータを取りだし、それを修正してローカル更新デー
タベース270へ格納する。ユーザーはこれを繰り返し
た結果、これまでの修正結果をマスターデータベース1
50へ反映したいとき、チェックアウト要求部290を
使ってマスターサイト100へマスター更新を要求す
る。又、ユーザーは、他のクライアント300によって
マスターデータベース150が更新されているかもしれ
ないので、レプリカデータベース270を更新するよう
にレプリカ更新要求部230を使ってマスターサイト1
00へレプリカ更新要求を送信することもできる。
(2) Outline of Overall Flow (A) User Operation The user selects an appropriate replica site from the client 300 and retrieves the replica database and the local update database using the search unit 280. When the data in the replica database 260 is to be corrected, the data to be corrected in the replica database 260 is extracted, corrected, and stored in the local update database 270. The user repeats this process, and saves the results of the correction so far in the master database 1.
When it is desired to update the master site 100, the master site 100 is requested to update the master using the checkout request unit 290. In addition, since the master database 150 may have been updated by another client 300, the user uses the replica update request unit 230 to update the replica database 270 so that the master site 1 is updated.
00, a replica update request can also be sent.

【0062】(B)レプリカサイトの動作 レプリカサイト200では、マスターサイト100のマ
スターデータベースからコピーされたレプリカデータベ
ース260と、ローカルに更新されたデータを保持する
ローカル更新データベース270を保持している。クラ
イアント300からの要請により、このローカルに更新
されたデータをマスターデータベース150に反映させ
るようにマスターサイト100へ要求を出す。その結果
はレプリカデータベース260が更新されることにな
り、ローカル更新データベース270はクリアされる。
更に、クライアント300の要請により、マスターデー
タベース150の更新を伴わないレプリカデータベース
260の更新要求をマスターサイト100へ要求するこ
ともできる。
(B) Operation of Replica Site The replica site 200 holds a replica database 260 copied from the master database of the master site 100, and a local update database 270 holding locally updated data. In response to a request from the client 300, a request is issued to the master site 100 to reflect the locally updated data in the master database 150. As a result, the replica database 260 is updated, and the local update database 270 is cleared.
Further, at the request of the client 300, a request for updating the replica database 260 without updating the master database 150 can be made to the master site 100.

【0063】その結果はレプリカデータベース260が
更新されることになる。更に、ローカル更新データベー
ス270のデータをマスターデータベース150に反映
させるように定期的にマスターサイト100へ要求も行
う。その結果、ユーザーがマスター更新要求を指示しな
くてもマスターデータベース150が更新されることに
なる。
As a result, the replica database 260 is updated. Further, a request is periodically made to the master site 100 to reflect the data in the local update database 270 to the master database 150. As a result, the master database 150 is updated without the user instructing the master update request.

【0064】(C)マスターサイトの動作 マスターサイト100では、定期的およびレプリカサイ
ト200からの要求に応じてマスターデータベース15
0のデータをレプリカサイト200に送信する。又、レ
プリカサイト200からの要求に応じてマスターデータ
ベース150の変更を行う。
(C) Operation of Master Site In the master site 100, the master database 15 is periodically and in response to a request from the replica site 200.
The data of 0 is transmitted to the replica site 200. Further, the master database 150 is changed in response to a request from the replica site 200.

【0065】(3)マスター更新 この第2の実施例の各構成要素のうち第1の実施例と同
じ機能のものは説明を省いている。図11は、ローカル
に更新されたローカル更新データベース270にあるデ
ータでマスターデータベースを更新する場合、更新の権
利を得るためのチェックアウト要求したときのレプリカ
サイト200とマスターサイト100との間での処理と
通信について説明する図である。レプリカサイト200
で起動されたチェックアウト要求部290は、ローカル
更新データベース270の更新したいデータと共にマス
ターサイト100へチェックアウト要求を送信する(ス
テップSR11010)。このレプリカサイト200で
は、マスターサイト100からチェックアウトの成功を
受信すると、チェックイン要求部295を起動してマス
ターデータベース150の更新を行わせる。
(3) Master Update Of the components of the second embodiment, those having the same functions as those of the first embodiment are not described. FIG. 11 shows a process between the replica site 200 and the master site 100 when the master database is updated with the locally updated data in the local update database 270 when a check-out request for obtaining an update right is issued. It is a figure explaining communication with. Replica site 200
The checkout requesting unit 290 started in step (1) transmits a checkout request to the master site 100 together with data to be updated in the local update database 270 (step SR11010). When the replica site 200 receives a successful check-out from the master site 100, it activates the check-in request unit 295 to update the master database 150.

【0066】マスターサイト100は、このチェックア
ウト要求を制御部110が受信し、チェックアウト部1
20を起動する。チェックアウト部160は、他のレプ
リカサイトからチェックアウト要求がきていないかどう
かをチェックする(ステップSM11010)。他から
チェックアウト要求がきているときには、要求元のレプ
リカサイトへ「マスターデータベースがビジーである」
ことを送信する。他からの要求がきていなければ、要求
されたデータがマスターデータベース150に存在する
かどうかチェックする(ステップSM11020)。更
新すべきデータが存在しないときには、要求元のレプリ
カサイトへ「Not Found」を送信する。
The master site 100 receives the check-out request from the control unit 110,
Start 20. Check-out unit 160 checks whether a check-out request has been received from another replica site (step SM11010). When a check-out request is received from another party, the master database is "busy" to the requesting replica site.
Send that. If no other request has been received, it is checked whether the requested data exists in the master database 150 (step SM11020). When there is no data to be updated, “Not Found” is transmitted to the requesting replica site.

【0067】更新すべきデータが存在するときには、チ
ェックアウトされているかを調べる。(ステップSM1
1030)。チェックアウトされていればステップSM
11050へ分岐する。チェックアウトされていなけれ
ば、そのデータのチェックアウトフラグ23を真とし、
サイトID24をチェックアウト要求したレプリカサイ
トのサイトIDとして登録する(ステップSM1104
0)。チェックアウトが成功したことを要求もとのレプ
リカサイトへ送信する(SM11050)。レプリカサ
イトではこれを受信してチェックイン要求部295を起
動する。
If there is data to be updated, it is checked whether the data has been checked out. (Step SM1
1030). Step SM if checked out
Branch to 11050. If not, the checkout flag 23 of the data is set to true,
Register the site ID 24 as the site ID of the replica site that requested the check-out (step SM1104)
0). The success of the check-out is transmitted to the requesting replica site (SM11050). The replica site receives this and activates the check-in request unit 295.

【0068】図12は、チェックイン要求に対して、レ
プリカサイトとマスターサイトでの処理と通信について
の説明する図である。レプリカサイト200では、制御
部210がマスターサイトからチェックアウトが成功し
たことを受信すると、チェックイン要求部295を起動
する。
FIG. 12 is a diagram for explaining processing and communication at the replica site and the master site in response to a check-in request. In the replica site 200, when the control unit 210 receives from the master site that the check-out is successful, the control unit 210 activates the check-in request unit 295.

【0069】チェック要求部295は、マスター更新要
求部220を起動してローカル更新データベースの更新
したいデータをマスターサイトへ送信し、マスターデー
タベース150とレプリカデータベース260とを更新
し、ローカル更新データベース270をクリアする(ス
テップSR12010)。マスター更新要求部220の
動作は第1の実施例の競合判定部125以外は同じなの
で省略する。更新が終了すると、アンロック要求をマス
ターサイト100へ送信する(ステップSR1202
0)。
The check request unit 295 activates the master update request unit 220 to transmit data to be updated in the local update database to the master site, updates the master database 150 and the replica database 260, and clears the local update database 270. (Step SR12010). The operation of the master update requesting unit 220 is the same as that of the first embodiment except for the conflict determination unit 125, and a description thereof will be omitted. When the update is completed, an unlock request is transmitted to master site 100 (step SR1202)
0).

【0070】マスターサイト100は、このアンロック
要求を制御部110が受信し、アンロック部170を起
動する。アンロック部170は、アンロック要求してい
るマスターデータベース150のデータのチェックアウ
トフラグが真であり、そのデータに対するサイトID2
4とアンロック要求をしたレプリカサイトのサイトID
とが一致するかを調べる(ステップSM12030)。
一致していないときは、要求元のレプリカサイトへ「ア
ンロック・エラー」を送信する。一致しているときは、
そのマスターデータベース150のデータに対するチェ
ックアウトフラグ23を偽とし、サイトID24をクリ
アし、アンロック成功を要求元のレプリカサイトへ送信
する。
The master site 100 receives the unlock request from the control unit 110 and activates the unlock unit 170. The unlock unit 170 determines that the checkout flag of the data in the master database 150 requesting the unlock is true, and that the site ID 2
4 and the site ID of the replica site that made the unlock request
Is checked (step SM12030).
If they do not match, an "unlock error" is sent to the requesting replica site. If they match,
The checkout flag 23 for the data in the master database 150 is set to false, the site ID 24 is cleared, and the unlock success is transmitted to the requesting replica site.

【0071】マスター更新部120の全体の動作は第1
の実施例と同じであるが、その中で競合判定部125だ
け違うので以下に説明する。図13は、マスターデータ
ベース150のバージョン情報とローカル更新データベ
ースのバージョン情報とを比較して競合しているかどう
かを調べる時の処理の流れを示す図である。更新要求の
あったデータのチェックアウトフラグ23が真であっ
て、要求元のサイトIDと同じサイトID24を持つか
どうかチェックする(ステップS13010)。そのデ
ータが他のサイトでチェックアウトされている場合、
「サイトID付バージョン」と判定する(ステップS1
3020)。この判定により、更新要求のあったデータ
はサイト付バージョンとしてマスターデータベース15
0に登録される。
The entire operation of the master updating section 120 is the first
This embodiment is the same as that of the first embodiment, but only the conflict determination unit 125 is different. FIG. 13 is a diagram showing a flow of processing when comparing the version information of the master database 150 with the version information of the local update database to check whether or not there is a conflict. It is checked whether the check-out flag 23 of the data requested to be updated is true and has the same site ID 24 as the requesting site ID (step S13010). If that data is checked out on another site,
Judge as “version with site ID” (step S1
3020). According to this determination, the data requested to be updated is converted into a version with a site in the master database 15.
0 is registered.

【0072】ステップS13010で、同じサイトID
でチェックアウトされている場合、マスターデータベー
ス150の最新バージョン情報を取出す。このうちのバ
ージョン番号をMverとする(ステップS1303
0)。送られてきたローカル更新データベースのバージ
ョン情報を取出す。このうちのバージョン番号をUve
rとする(ステップS13040)。Mver+1とU
verとが等しいかを比較する(ステップS1305
0)。この比較は送られてきたローカル更新データベー
スのデータがマスターデータベースにとって最新の更新
データであるかどうかをチェックしている。この結果が
等しいときには、競合はないので「通常バージョン」と
して登録するようになる(ステップS13060)。こ
の結果が等しくないとき、Mver+1がUverより
大きいかを比較する(ステップS13070)。大きい
場合には、「サイトID付バージョン」として登録する
ようになる(ステップS13080)。さもなければ、
バージョンエラーとして要求元のレプリカサイト200
へ送信する。
In step S13010, the same site ID
, The latest version information of the master database 150 is extracted. The version number is Mver (step S1303).
0). Extract the version information of the local update database sent. The version number of these is Uve
r (step S13040). Mver + 1 and U
and ver is equal (step S1305)
0). This comparison checks whether the received local update database data is the latest update data for the master database. If the results are equal, there is no conflict, and the result is registered as "normal version" (step S13060). If the results are not equal, it is determined whether Mver + 1 is greater than Uver (step S13070). If it is larger, it is registered as "version with site ID" (step S13080). Otherwise,
Requesting replica site 200 as version error
Send to

【0073】更に、定期的にマスターサイト100から
レプリカサイト200へマスターデータベース150の
更新要求を要請する構成や、レプリカサイト200から
定期的にマスターデータベース150を更新する要求を
出すように構成することもできる。
Further, a configuration in which a request for updating the master database 150 is periodically made from the master site 100 to the replica site 200 or a configuration in which a request for updating the master database 150 is made periodically from the replica site 200 may be made. it can.

【0074】第3の実施例 第2の実施例におけるマスターデータベースの更新およ
びレプリカデータベースの更新でそれぞれのデータすべ
てを対象に行っていたが、本実施例では更新されたデー
タのみによる更新作業を仮定する。これにより転送デー
タが少なくなり本システムがより効率的に動くようにな
る。
Third Embodiment Although the update of the master database and the update of the replica database in the second embodiment have been performed on all the respective data, this embodiment assumes that the update operation is performed only with the updated data. I do. This reduces the amount of data transferred and allows the system to operate more efficiently.

【0075】以下に、第2の実施例との相違点を説明す
る。 ・ローカル更新データベース レプリカデータベース260のデータを修正したとき、
ローカル更新データベース270には当該データに関し
てのみ格納するようにする。 ・チェックイン要求部 チェックアウトが完了した後、マスター更新要求部12
0はローカル更新データベース270に存在するデータ
のみをマスターサイト100へ送信する。 ・マスター更新部 レプリカサイト200から送られてきたデータに関し
て、マスターデータベース150を更新し、更新された
データのみレプリカサイトへ送信し、レプリカサイト2
00も送信されたマスターデータベースの部分データの
み複製する。
Hereinafter, differences from the second embodiment will be described. -Local update database When the data in the replica database 260 is modified,
Only the relevant data is stored in the local update database 270. Check-in request section After the check-out is completed, the master update request section 12
0 transmits only data existing in the local update database 270 to the master site 100. The master update unit updates the master database 150 with respect to the data sent from the replica site 200, transmits only the updated data to the replica site, and sets the replica site 2
00 is also copied only for the transmitted partial data of the master database.

【0076】第4の実施例 第1乃至第3の実施例では、ローカル更新データベース
270は検索はできるが更新の対象とは考えていなかっ
た。本実施例では、第1の実施例もとにこのローカル更
新データベース270に対しても更新できるようにす
る。他の実施例においても同様にして実施できる。
Fourth Embodiment In the first to third embodiments, the local update database 270 can be searched, but is not considered as an update target. In this embodiment, the local update database 270 can be updated based on the first embodiment. The same can be applied to other embodiments.

【0077】以下では、相違点のみ説明する。 (1)レプリカサイトでの更新 図14は、レプリカサイト200でローカル更新データ
ベース270へデータを登録するときの処理の流れを説
明する図である。登録するデータがレプリカデータベー
スを更新したものであるかを調べる(ステップS140
10)。そうであれば、レプリカデータベース260の
現在のバージョン番号を取り出す(Verとする)(ス
テップS14020)。ローカル更新データベース27
0中のデータを登録する場合、このローカル更新データ
ベース270の最新のバージョン番号を取り出す(ステ
ップS14030)。ここで取り出されたバージョン番
号(Ver)へ1を加えた新しいバージョンを作成する
(ステップS14040)。この新バージョン番号とこ
のレプリカサイト200のサイトIDとをバージョン情
報とし、データをローカル更新データベース270へ登
録する。
Hereinafter, only the differences will be described. (1) Update at Replica Site FIG. 14 is a diagram illustrating the flow of processing when registering data in the local update database 270 at the replica site 200. It is checked whether the data to be registered is an updated replica database (step S140)
10). If so, the current version number of the replica database 260 is extracted (verified) (step S14020). Local update database 27
When registering data in 0, the latest version number of the local update database 270 is extracted (step S14030). A new version is created by adding 1 to the extracted version number (Ver) (step S14040). The new version number and the site ID of the replica site 200 are used as version information, and data is registered in the local update database 270.

【0078】(2)マスター更新 マスター更新要求の処理は第1の実施例と同じであるが
マスターデータベースへどのバージョン(サイト付きか
通常か?)として登録するのかを判定する競合判定部1
25が相違しているので、図15を使って説明する。送
信されたローカル更新データベースの更新データの一番
古いバージョン番号を取りだす(Over1とする)
(ステップS15010)。送信されたローカル更新デ
ータベースの更新データの一番新しいバージョンを取り
だす(Over2とする)(ステップS15020)。
マスターデータベースの現在のバージョン番号を取りだ
す(Mverとする)(ステップS15030)。Mv
er+1とOver1とを比較する(ステップS150
40)。この結果が等しいとき、通常バージョンと判定
する(ステップS15050)。この結果が等しくない
とき、Mver+1とOver2とを比較する(ステッ
プS15060)。その結果Mver+1が大きいと
き、サイトID付バージョンと判定する(ステップS1
5070)。そうでなければエラーとする。
(2) Master Update The process of the master update request is the same as that of the first embodiment, but the contention determination section 1 determines which version (site or normal?) Is to be registered in the master database.
25 are different, and will be described with reference to FIG. Extract the oldest version number of the transmitted update data of the local update database (referred to as Over1)
(Step S15010). The latest version of the transmitted update data of the local update database is taken out (referred to as Over2) (step S15020).
The current version number of the master database is extracted (Mver) (step S15030). Mv
er + 1 is compared with Over1 (step S150)
40). If the results are equal, it is determined that the version is the normal version (step S15050). If the results are not equal, Mver + 1 is compared with Over2 (step S15060). As a result, when Mver + 1 is large, it is determined that the version has the site ID (step S1).
5070). Otherwise, an error occurs.

【0079】このように判定されたバージョンに直して
ローカル更新データベースから送られてきたデータに関
するすべてをマスターデータベースに登録する。
All data relating to the data sent from the local update database in the version determined in this way are registered in the master database.

【0080】第5の実施例(プログラムとしての実施
例) 更に、本発明は上記の実施形態のみに限定されたもので
はない。例えば、図6、10に示したデータ更新制御シ
ステムをマスターサイトおよびレプリカサイトをそれぞ
れ構成する各手段の各機能をプログラム化し、予めCD
−ROM等の記録媒体に書き込んでおき、このCD−R
OMを各サイトのCD−ROMドライブを搭載したコン
ピュータに装着して、コンピュータへそのプログラムを
ロードすることによって、上記の実施例の実施形態と同
様な機能を実現することができる。
Fifth Example (Example as a Program) Further, the present invention is not limited to only the above embodiment. For example, in the data update control system shown in FIGS. 6 and 10, each function of each means constituting the master site and the replica site is programmed, and the
-Write the data on a recording medium such as a ROM
By mounting the OM on a computer equipped with a CD-ROM drive at each site and loading the program into the computer, it is possible to realize functions similar to those of the above-described embodiment.

【0081】尚、記録媒体としては半導体媒体(例え
ば、ROM、ICメモリカード等)、光媒体(例えば、
DVD−ROM,MO,MD,CD−R等)、磁気媒体
(例えば、磁気テープ、フレキシブルディスク等)のい
ずれであってもよい。
As a recording medium, a semiconductor medium (eg, ROM, IC memory card, etc.), an optical medium (eg,
Any of DVD-ROM, MO, MD, CD-R, etc.) and magnetic media (for example, magnetic tape, flexible disk, etc.) may be used.

【0082】また、本発明の機能を実現するプログラム
は、媒体の形で提供されるのみならず、通信や放送波に
よって提供されるものであっても良い。
The program for realizing the functions of the present invention may be provided not only in the form of a medium but also by communication or broadcast waves.

【0083】[0083]

【発明の効果】以上説明したように本発明によれば、同
じバージョンのデータベースを同時に変更していない場
合にはデータの一貫性が保たれる。又、同じバージョン
のデータベースを同時に変更してしまった場合でも、も
っとも早くマスターデータベースの更新要求を行ったサ
イトのデータが通常のバージョンとなるが、その後で更
新要求を行ったサイトのデータはサイトIDが付いたバ
ージョンとしてマスターデータベースに登録されること
になり、後で更新要求をしたデータも失われることがな
くなり、いつの時点のデータでもユーザが参照・更新す
ることができるようになる。
As described above, according to the present invention, data consistency is maintained when the same version of the database is not changed at the same time. Even if the same version of the database is changed at the same time, the data of the site that requested the update of the master database first becomes the normal version, but the data of the site that requested the update later is the site ID. Will be registered in the master database as a version marked with, the data for which an update request has been made later will not be lost, and the user can refer to and update the data at any time.

【0084】又、通常のマスターサイトとレプリカサイ
ト間の通信は、定期的なレプリカの更新と、レプリカサ
イトからのマスターデータベースの更新だけなのでネッ
トワーク上の通信負荷を減らすことができた。更に、更
新要求で送信されるデータおよび更新結果を送信すると
き、更新されるデータだけを送信することによって、デ
ータベースの全体的な書き直しも少なくすることができ
た。
Further, since the normal communication between the master site and the replica site is only regular update of the replica and update of the master database from the replica site, the communication load on the network can be reduced. Furthermore, by transmitting only the data to be updated when transmitting the data transmitted in the update request and the update result, the total rewriting of the database can be reduced.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明のデータ更新制御システムの稼働環境
を示す図である。
FIG. 1 is a diagram showing an operating environment of a data update control system according to the present invention.

【図2】 本発明が稼動するマスターサイト、レプリカ
サイトおよびクライアントのコンピュータハードウェア
構成を示す図である。
FIG. 2 is a diagram showing a computer hardware configuration of a master site, a replica site, and a client on which the present invention operates.

【図3】 本発明で使用する3つのデータベースのデー
タ構造を示した図である。
FIG. 3 is a diagram showing a data structure of three databases used in the present invention.

【図4】 本発明のローカル更新データベース自身の更
新を含まないマスターデータベースのデータを更新した
ときのバージョン情報の変遷を示す図である。
FIG. 4 is a diagram showing a transition of version information when data of a master database not including an update of a local update database itself of the present invention is updated.

【図5】 本発明のローカル更新データベースの更新を
含んだマスターデータベースのデータを更新したときの
バージョン情報の変遷を示す図である。
FIG. 5 is a diagram showing a transition of version information when updating data in a master database including updating of a local update database according to the present invention.

【図6】 第1の実施例の機能構成を説明するための図
である。
FIG. 6 is a diagram for explaining a functional configuration of the first embodiment.

【図7】 第1の実施例のレプリカデータベースを更新
要求したときの処理と通信について説明する図である。
FIG. 7 is a diagram illustrating processing and communication when an update request is made to the replica database according to the first embodiment;

【図8】 第1の実施例のマスター更新要求のときの処
理と通信について説明する図である。
FIG. 8 is a diagram illustrating processing and communication at the time of a master update request according to the first embodiment.

【図9】 第1の実施例の競合判定部の処理の流れを説
明する図である。
FIG. 9 is a diagram illustrating a flow of processing of a conflict determination unit according to the first embodiment.

【図10】 第2の実施例の機能構成を説明するための
図である。
FIG. 10 is a diagram illustrating a functional configuration of a second embodiment.

【図11】 第2の実施例のチェックアウト要求に対す
る処理と通信について説明する図である。
FIG. 11 is a diagram illustrating processing and communication for a checkout request according to the second embodiment.

【図12】 第2の実施例のチェックイン要求に対する
処理と通信について説明する図である。
FIG. 12 is a diagram illustrating processing and communication for a check-in request according to the second embodiment.

【図13】 第3の実施例の競合判定部の処理の流れを
説明する図である。
FIG. 13 is a diagram illustrating a flow of a process performed by a conflict determination unit according to the third embodiment.

【図14】 第4の実施例のローカル更新データベース
へデータを登録するときの処理の流れを説明する図であ
る。
FIG. 14 is a diagram illustrating a flow of processing when registering data in a local update database according to the fourth embodiment.

【図15】 第4の実施例の競合判定部の処理の流れ
を説明する図である。
FIG. 15 is a diagram illustrating a flow of a process performed by a conflict determination unit according to the fourth embodiment.

【符号の説明】[Explanation of symbols]

1…入力手段、2…出力手段、3…CPU、4…メモ
リ、5…記憶手段、6…媒体駆動装置、7…ネットワー
クインターフェース、10…制御部、21…バージョン
情報(バージョン番号)、22…バージョン情報(サイ
トID)、23…チェックアウト情報(チェックアウト
フラグ)、24…チェックアウト情報(サイトID)、
25…データ、100…マスターサイト、、120…マ
スター更新部,競合判定部、130…レプリカ更新部、
140…マスター更新要求起動要請部、150…マスタ
ーデータベース、160…チェックアウト部、170…
アンロック部、180…検索更新部、200…レプリカ
サイト、210…制御部、220…マスター更新要求
部、230…レプリカ更新要求部、240…ローカル更
新部、250…マスター更新起動要求部、260…レプ
リカデータベース、270…ローカル更新データベー
ス、280…検索部、290…チェックアウト要求部、
295…チェック要求部、300…クライアント、40
0…Local Area Network(LA
N)。
DESCRIPTION OF SYMBOLS 1 ... Input means, 2 ... Output means, 3 ... CPU, 4 ... Memory, 5 ... Storage means, 6 ... Medium drive device, 7 ... Network interface, 10 ... Control part, 21 ... Version information (version number), 22 ... Version information (site ID), 23 ... checkout information (checkout flag), 24 ... checkout information (site ID),
25: data, 100: master site, 120: master update unit, conflict determination unit, 130: replica update unit,
140: master update request start request unit, 150: master database, 160: checkout unit, 170:
Unlock unit, 180 search / update unit, 200 replica site, 210 control unit, 220 master update request unit, 230 replica update request unit, 240 local update unit, 250 master update start request unit, 260 Replica database 270 local update database 280 search unit 290 checkout request unit
295: check request unit, 300: client, 40
0 ... Local Area Network (LA
N).

Claims (14)

【特許請求の範囲】[Claims] 【請求項1】 マスターデータベースを保持する1つの
マスターサイトと該マスターデータベースの複製である
レプリカデータベースを保持する1つ以上のレプリカサ
イトとをネットワークを介して接続した分散データ管理
システムにおいて、前記レプリカサイトには前記レプリ
カデータベースを更新したデータを保持するローカル更
新データベースと、その更新されたデータを前記マスタ
ーデータベースへ反映するように要求し、その更新結果
のマスターデータベースの内容を受信して複製であるレ
プリカデータベースを作成するマスター更新要求部とを
備え、前記マスターサイトには前記マスター更新要求部
からの要求を受信してマスターデータベースを更新する
マスター更新部とを備え、前記レプリカサイトのマスタ
ー更新要求部は、そのレプリカサイトのローカル更新デ
ータベースの内容を前記マスターサイトへマスターデー
タベースを更新するように要求し、前記マスターサイト
では前記マスター更新部がその更新の要求を受信し、前
記マスターデータベースを更新すると共に、その更新に
成功したときに更新されたマスターデータベースを更新
要求のあったレプリカサイトのマスター更新要求部へ送
信することによってレプリカデータベースを更新するよ
うにしたことを特徴とするデータ更新制御システム。
1. A distributed data management system in which one master site holding a master database and one or more replica sites holding a replica database that is a copy of the master database are connected via a network, wherein the replica site A local update database that holds the updated data of the replica database, a request to reflect the updated data to the master database, and the contents of the updated master database are received and the replica is replicated. A master update request unit that creates a database, the master site includes a master update unit that receives a request from the master update request unit and updates a master database, and the master update request unit of the replica site includes: , That Requesting the master site to update the content of the local update database at the replica site of the master site, and at the master site, the master update unit receives the update request, updates the master database, and updates the master database. A data update control system wherein a replica database is updated by transmitting an updated master database to a master update request section of a replica site that has requested an update when updating is successful.
【請求項2】 請求項1又は請求項12記載のデータ更
新制御システムにおいて、前記マスターデータベース、
前記レプリカデータベースおよび前記ローカル更新デー
タベースは、バージョン番号とレプリカサイトのサイト
識別情報とを対比したバージョン管理情報も保持するこ
とを特徴とするデータ更新制御システム。
2. The data update control system according to claim 1, wherein said master database comprises:
The data update control system, wherein the replica database and the local update database also hold version management information that compares a version number with site identification information of a replica site.
【請求項3】 請求項2記載のデータ更新制御システム
において、バージョン管理情報のサイト識別情報を保持
しない通常バージョンのデータベースと該サイト識別情
報を有するサイトバージョンを有するようにしたことを
特徴とするデータ更新制御システム。
3. The data update control system according to claim 2, wherein a data of a normal version database which does not hold the site identification information of the version management information and a site version having the site identification information are provided. Update control system.
【請求項4】 請求項3記載のデータ更新制御システム
において、前記レプリカサイトにローカル更新部を設
け、該ローカル更新部は、前記レプリカデータベースの
通常バージョンのデータに対して更新した場合、その結
果を前記ローカル更新データベースへ保管し、この保管
したバージョンはレプリカのバージョンより新しいバー
ジョンとこのレプリカサイトのIDをサイト識別情報と
して登録することを特徴とするデータ更新制御システ
ム。
4. The data update control system according to claim 3, wherein a local update unit is provided at the replica site, and when the local update unit updates data of a normal version of the replica database, a result of the update is used. A data update control system, wherein the data is stored in the local update database, and the stored version registers a newer version than the replica version and the ID of the replica site as site identification information.
【請求項5】 請求項4記載のデータ更新制御システム
において、前記レプリカサイトのローカル更新部は、前
記ローカル更新データベースのデータに対して更新を行
った場合、その結果を該ローカル更新データベースへ保
管し、この保管したバージョンは更新を行った該ローカ
ル更新データベースのもとのバージョンより新しいバー
ジョン番号とこのレプリカサイトのIDをサイト識別情
報として登録することを特徴とするデータ更新制御シス
テム。
5. The data update control system according to claim 4, wherein when the local update unit of the replica site updates the data of the local update database, the result is stored in the local update database. A data update control system wherein the stored version registers a newer version number than the original version of the updated local update database and the ID of the replica site as site identification information.
【請求項6】 請求項3記載のデータ更新制御システム
において、前記マスターサイトのマスター更新部に競合
判定部を設け、前記競合判定部は、このマスターサイト
のマスターデータベースの最新バージョンが前記レプリ
カサイトのローカル更新データベースの各データの一番
古いバージョンより小さい場合、通常バージョンと判定
し、さもなければサイト付きバージョンと判定と判定
し、前記マスター更新部は該競合判定部が通常バージョ
ンと判定したときにはそのローカル更新データベースの
内容をすべて前記マスターデータベースへ通常バージョ
ンとして登録し、該判定がサイト付きのバージョンであ
ればそのローカル更新データベースの内容をサイト付き
バージョンとして前記マスターデータベースへ登録し、
その更新されたマスターデータベースをマスター更新の
要求のあったレプリカサイトへ転送し、前記マスター更
新要求部はそれを前記レプリカデータベースへ複製する
と共に前記ローカル更新データベースをクリアするよう
にしたことを特徴とするデータ更新制御システム。
6. The data update control system according to claim 3, wherein a conflict determination unit is provided in a master update unit of the master site, and the conflict determination unit determines that a latest version of a master database of the master site is in the replica site. If it is smaller than the oldest version of each data of the local update database, it is determined to be a normal version, otherwise it is determined to be a site-attached version, and when the conflict determination unit determines that it is a normal version, the master update unit Register all the contents of the local update database to the master database as a normal version, and if the determination is a version with a site, register the contents of the local update database to the master database as a version with a site;
The updated master database is transferred to a replica site where a master update has been requested, and the master update request unit copies the master update request to the replica database and clears the local update database. Data update control system.
【請求項7】 請求項1又は請求項12記載のデータ更
新制御システムにおいて、前記レプリカサイトのマスタ
ー更新要求部は、更新したいデータのみマスターサイト
へ送り、マスターデータベースの部分更新を行うように
したことを特徴とするデータ更新制御システム。
7. The data update control system according to claim 1, wherein the master update request unit of the replica site sends only data to be updated to the master site and performs a partial update of the master database. A data update control system.
【請求項8】 請求項1又は請求項12記載のデータ更
新制御システムにおいて、前記レプリカサイトにレプリ
カ更新要求部を備え、このレプリカ更新要求部は、前記
ローカル更新データベースが空の場合、このレプリカサ
イトから前記マスターサイトにマスターデータベースの
内容を転送するように要求し、マスターデータベースを
このレプリカサイトのレプリカデータベースへ複製する
ようにしたことを特徴とするデータ更新制御システム。
8. The data update control system according to claim 1, further comprising a replica update request unit provided at said replica site, wherein said replica update request unit is provided when said local update database is empty. Requesting the master site to transfer the contents of the master database to the master site, and copying the master database to the replica database at the replica site.
【請求項9】 請求項1又は請求項12記載のデータ更
新制御システムにおいて、前記マスターサイトは、同時
にふたつ以上のレプリカサイトからの要求を受けつけな
いようにしたことを特徴とするデータ更新制御システ
ム。
9. The data update control system according to claim 1, wherein the master site is configured not to receive requests from two or more replica sites at the same time.
【請求項10】 請求項1記載のデータ更新制御システ
ムにおいて、前記マスターサイトは、レプリカサイトへ
マスター更新要求部を定期的に動作させるように要求す
ることによって定期的にマスターデータベースおよびレ
プリカデータベースを更新するようにしたことを特徴と
するデータ更新制御システム。
10. The data update control system according to claim 1, wherein the master site periodically updates the master database and the replica database by requesting a replica site to periodically operate a master update request unit. A data update control system, characterized in that:
【請求項11】 請求項1記載のデータ更新制御システ
ムにおいて、前記レプリカサイトは、マスター更新要求
部を定期的に動作させることによって定期的にマスター
データベースおよびレプリカデータベースを更新するよ
うにしたことを特徴とするデータ更新制御システム。
11. The data update control system according to claim 1, wherein the replica site periodically updates a master database and a replica database by periodically operating a master update request unit. Data update control system.
【請求項12】 マスターデータベースを保持する1つ
のマスターサイトと該マスターデータベースの複製であ
るレプリカデータベースを保持する1つ以上のレプリカ
サイトとをネットワークを介して接続した分散データ管
理システムにおいて、前記レプリカサイトには、前記レ
プリカデータベースを更新したデータを保持するローカ
ル更新データベースと、前記マスターサイトのマスター
データベースの独占して変更する権利を要求するチェッ
クアウト要求部と、その更新されたデータを前記マスタ
ーデータベースへ反映するように要求し、その更新結果
のマスターデータベースの内容を受信して複製であるレ
プリカデータベースを作成するマスター更新要求部と、
マスターデータベースを更新した後そのマスターデータ
ベースの独占権を放棄を要求するチェックイン要求部と
を備え、前記マスターサイトには、レプリカサイトから
のチェックアウト要求に応じてマスターデータベースを
独占して変更する権利を検査設定するチェックアウト部
と、前記マスター更新要求部からの要求を受信してマス
ターデータベースを更新するマスター更新部と、前記レ
プリカサイトからのマスターデータベースの独占権を放
棄の要求を実行するアンロック部とを備え、前記レプリ
カサイトは、前記チェックアウト要求部がこのチェック
アウトしたいデータを指定して前記マスターサイトへ要
求を送り、前記マスター更新要求部がこのチェックアウ
トが成功したときローカル更新データベースのデータを
マスターサイトに送り、更新結果を受信してレプリカデ
ータベースを更新すると共に、前記チェックイン要求部
がレプリカデータベースの更新に成功したとき独占権の
放棄の要求をマスターサイトに送ると共にローカル更新
データベースをクリアし、前記マスターサイトは、前記
チェックアウト部がレプリカサイトから受信したチェッ
クアウトしたいデータのチェックアウトを行い、その結
果を要求もとのレプリカサイトへ送り、前記マスター更
新部が送られてきたローカル更新データベースのデータ
をマスターデータベースの更新をすると共に更新された
マスターデータベースを要求元のレプリカサイトへ送
り、前記アンロック部がレプリカサイトからの独占権の
放棄の要求を受信するとチェックアウトを解消すること
を特徴とするデータ更新制御システム。
12. In a distributed data management system in which one master site holding a master database and one or more replica sites holding a replica database, which is a copy of the master database, are connected via a network, the replica site A local update database that holds the updated data of the replica database, a checkout request unit that requests the right to exclusively change the master database of the master site, and sends the updated data to the master database. A master update request unit that requests to reflect, receives the contents of the master database of the update result, and creates a replica database that is a replica,
A check-in requesting unit for requesting to abandon the exclusive right of the master database after updating the master database, wherein the master site has a right to monopolize and change the master database in response to a check-out request from the replica site. A check-out unit for setting inspection, a master update unit for receiving a request from the master update request unit and updating a master database, and an unlock for executing a request for relinquishing the exclusive right of the master database from the replica site. The replica site sends a request to the master site by specifying the data to be checked out by the checkout request unit, and when the master update request unit succeeds in the checkout, Data to master site Receiving the update result and updating the replica database, and when the check-in request unit succeeds in updating the replica database, sends a request for waiver of the exclusive right to the master site, clears the local update database, and clears the master The site checks out the data to be checked out received by the checkout unit from the replica site, sends the result to the requesting replica site, and transmits the data of the local update database sent by the master update unit. Updating the master database and sending the updated master database to the requesting replica site, and canceling the check-out when the unlocking unit receives a request for waiver of the exclusive right from the replica site. Update control system
【請求項13】 マスターデータベースを保持する1つ
のマスターサイトと該マスターデータベースの複製であ
るレプリカデータベースを保持する1つ以上のレプリカ
サイトとをネットワークを介して接続した分散データ管
理システムにおいて、前記レプリカサイトには前記レプ
リカデータベースを更新したデータを保持するローカル
更新データベースと、その更新されたデータを前記マス
ターデータベースへ反映するように要求し、その更新結
果のマスターデータベースの内容を受信して複製である
レプリカデータベースを作成するマスター更新要求部と
を備え、前記マスターサイトには前記マスター更新要求
部からの要求を受信してマスターデータベースを更新す
るマスター更新部とを備え、前記レプリカサイトのマス
ター更新要求部は、そのレプリカサイトのローカル更新
データベースの内容を前記マスターサイトへマスターデ
ータベースを更新するように要求し、前記マスターサイ
トでは前記マスター更新部がその更新の要求を受信し、
前記マスターデータベースを更新すると共に、その更新
に成功したときに更新されたマスターデータベースを更
新要求のあったレプリカサイトのマスター更新要求部へ
送信することによってレプリカデータベースを更新する
ようにしたことを特徴とするデータ更新制御方法。
13. A distributed data management system in which one master site holding a master database and one or more replica sites holding a replica database, which is a copy of the master database, are connected via a network. A local update database that holds the updated data of the replica database, a request to reflect the updated data to the master database, and the contents of the updated master database are received and the replica is replicated. A master update request unit that creates a database, the master site includes a master update unit that receives a request from the master update request unit and updates a master database, and the master update request unit of the replica site includes: , Requesting the master site to update the contents of the local update database at the replica site to the master site, wherein at the master site, the master update unit receives the update request;
Updating the master database, and updating the replica database by transmitting the updated master database to the master update request unit of the replica site that has issued the update request when the update is successful. Data update control method.
【請求項14】 マスターデータベースを保持する1つ
のマスターサイトと該マスターデータベースの複製であ
るレプリカデータベースを保持する1つ以上のレプリカ
サイトとをネットワークを介して接続した分散データ管
理システムにおいて、前記レプリカサイトには前記レプ
リカデータベースを更新したデータを保持するローカル
更新データベースと、その更新されたデータを前記マス
ターデータベースへ反映するように要求し、その更新結
果のマスターデータベースの内容を受信して複製である
レプリカデータベースを作成するマスター更新要求部と
を備え、前記マスターサイトには前記マスター更新要求
部からの要求を受信してマスターデータベースを更新す
るマスター更新部とを備え、前記レプリカサイトのマス
ター更新要求部は、そのレプリカサイトのローカル更新
データベースの内容を前記マスターサイトへマスターデ
ータベースを更新するように要求し、前記マスターサイ
トでは前記マスター更新部がその更新の要求を受信し、
前記マスターデータベースを更新すると共に、その更新
に成功したときに更新されたマスターデータベースを更
新要求のあったレプリカサイトのマスター更新要求部へ
送信することによってレプリカデータベースを更新する
ようにしたプログラムを記録したコンピュータ読み取り
可能な記録媒体。
14. A distributed data management system in which one master site holding a master database and one or more replica sites holding a replica database that is a copy of the master database are connected via a network, wherein the replica site A local update database that holds the updated data of the replica database, a request to reflect the updated data to the master database, and the contents of the updated master database are received and the replica is replicated. A master update request unit that creates a database, the master site includes a master update unit that receives a request from the master update request unit and updates a master database, and the master update request unit of the replica site includes: , Requesting the master site to update the contents of the local update database at the replica site to the master site, wherein at the master site, the master update unit receives the update request;
A program for updating the master database and updating the replica database by transmitting the updated master database to the master update request section of the replica site that requested the update when the update was successful was recorded. Computer readable recording medium.
JP11093450A 1999-03-31 1999-03-31 Data update control system and method and computer readable recording medium storing program for executing the method Pending JP2000284998A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11093450A JP2000284998A (en) 1999-03-31 1999-03-31 Data update control system and method and computer readable recording medium storing program for executing the method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11093450A JP2000284998A (en) 1999-03-31 1999-03-31 Data update control system and method and computer readable recording medium storing program for executing the method

Publications (1)

Publication Number Publication Date
JP2000284998A true JP2000284998A (en) 2000-10-13

Family

ID=14082675

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11093450A Pending JP2000284998A (en) 1999-03-31 1999-03-31 Data update control system and method and computer readable recording medium storing program for executing the method

Country Status (1)

Country Link
JP (1) JP2000284998A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002279064A (en) * 2001-03-19 2002-09-27 Konica Corp Method for managing medical appointment information
JP2004265414A (en) * 2003-02-28 2004-09-24 Microsoft Corp Method for managing multiple file states for replicated files
US7426226B2 (en) * 2005-02-22 2008-09-16 Canon Kabushiki Kaisha Drive circuit and drive method for semiconductor light source
WO2008149552A1 (en) * 2007-06-06 2008-12-11 Athena Telecom Lab, Inc. Database contradiction solution method
WO2009147846A1 (en) * 2008-06-04 2009-12-10 株式会社 アテナテレコムラボ Conflict resolution system for database parallel editing
JPWO2009147846A1 (en) * 2008-06-04 2011-10-27 株式会社アテナテレコムラボ Conflict resolution method for parallel database editing
JP2011257959A (en) * 2010-06-08 2011-12-22 Toshiba Corp Difference retrieval system
US8171003B2 (en) 2007-06-06 2012-05-01 Kunio Kamimura Method and apparatus for changing reference of database
WO2015033388A1 (en) * 2013-09-03 2015-03-12 株式会社東芝 Information processing system, server device, information processing method and program
JP7475086B1 (en) 2023-02-03 2024-04-26 株式会社ミヤワキ Editing method, editing device, and program

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002279064A (en) * 2001-03-19 2002-09-27 Konica Corp Method for managing medical appointment information
JP2004265414A (en) * 2003-02-28 2004-09-24 Microsoft Corp Method for managing multiple file states for replicated files
JP4643915B2 (en) * 2003-02-28 2011-03-02 マイクロソフト コーポレーション How to manage multiple file states for replicated files
US8010491B2 (en) 2003-02-28 2011-08-30 Microsoft Corporation Method for managing multiple file states for replicated files
US7426226B2 (en) * 2005-02-22 2008-09-16 Canon Kabushiki Kaisha Drive circuit and drive method for semiconductor light source
US9678996B2 (en) 2007-06-06 2017-06-13 Kunio Kamimura Conflict resolution system for database parallel editing
WO2008149552A1 (en) * 2007-06-06 2008-12-11 Athena Telecom Lab, Inc. Database contradiction solution method
US8171003B2 (en) 2007-06-06 2012-05-01 Kunio Kamimura Method and apparatus for changing reference of database
WO2009147846A1 (en) * 2008-06-04 2009-12-10 株式会社 アテナテレコムラボ Conflict resolution system for database parallel editing
JPWO2009147846A1 (en) * 2008-06-04 2011-10-27 株式会社アテナテレコムラボ Conflict resolution method for parallel database editing
JP5543918B2 (en) * 2008-06-04 2014-07-09 株式会社アテナテレコムラボ Conflict resolution method for parallel database editing
JP2011257959A (en) * 2010-06-08 2011-12-22 Toshiba Corp Difference retrieval system
JPWO2015033388A1 (en) * 2013-09-03 2017-03-02 株式会社東芝 Information processing system, server device, information processing method, and program
WO2015033388A1 (en) * 2013-09-03 2015-03-12 株式会社東芝 Information processing system, server device, information processing method and program
US10514850B2 (en) 2013-09-03 2019-12-24 Kabushiki Kaisha Toshiba Information processing system, server device, Information processing method, and computer program product
JP7475086B1 (en) 2023-02-03 2024-04-26 株式会社ミヤワキ Editing method, editing device, and program

Similar Documents

Publication Publication Date Title
JP2948496B2 (en) System and method for maintaining replicated data consistency in a data processing system
US5937414A (en) Method and apparatus for providing database system replication in a mixed propagation environment
US6684438B2 (en) Method of using cache to determine the visibility to a remote database client of a plurality of database transactions
EP0974895A2 (en) System for user control of version synchronization in mobile computing
JP4369471B2 (en) Mirroring program, mirroring method, information storage device
US5890153A (en) Database lock control method
US8572037B2 (en) Database server, replication server and method for replicating data of a database server by at least one replication server
US8117167B2 (en) Method and data processing system with data replication
US20050120061A1 (en) Updating and maintaining data in a multi-system network using asynchronous message transfer
US20070288835A1 (en) Apparatus, computer readable medium, data signal, and method for document management
CA2422161C (en) Decoupled object identification for object switching in database systems
JP2002528814A (en) Distributed transaction processing system and method
US20200104404A1 (en) Seamless migration of distributed systems
JPH1021061A (en) Automatic version-up system for client software
JP2000284998A (en) Data update control system and method and computer readable recording medium storing program for executing the method
JP2004164401A (en) Database system, center server, and access method for database
US20060004877A1 (en) Method and system for data processing with data replication for the same
JP2000507375A (en) Network maintenance method of partially replicated database system
JP2002116939A (en) Distributed database system
JP2830826B2 (en) Distributed file synchronization system and method
JP2701814B2 (en) Distributed file management method
JP3487732B2 (en) Apparatus and method for avoiding duplicate database data inconsistency
JPH0844609A (en) Data backup method
JPH0877053A (en) Device and method for reflecting duplicated data base
JP2001344138A (en) Database logging method and database recovery method