JPH10320256A - Data update control method and device for distributed database system - Google Patents

Data update control method and device for distributed database system

Info

Publication number
JPH10320256A
JPH10320256A JP9129436A JP12943697A JPH10320256A JP H10320256 A JPH10320256 A JP H10320256A JP 9129436 A JP9129436 A JP 9129436A JP 12943697 A JP12943697 A JP 12943697A JP H10320256 A JPH10320256 A JP H10320256A
Authority
JP
Japan
Prior art keywords
update
database
data
sub
management unit
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
JP9129436A
Other languages
Japanese (ja)
Inventor
Eiichi Nishi
栄一 西
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.)
NEC Solution Innovators Ltd
Original Assignee
NEC Software Kyushu 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 NEC Software Kyushu Ltd filed Critical NEC Software Kyushu Ltd
Priority to JP9129436A priority Critical patent/JPH10320256A/en
Publication of JPH10320256A publication Critical patent/JPH10320256A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To improve work efficiency for updating data in a master database by updating data in a sub database based on update information held in an update history file when there is a reference request to the sub database. SOLUTION: When there is a reference request 12 from a host device or an operator to a sub database control part 10 concerning specified data among data held in a sub database 7, a sub data base managing part 6, which accepts the reference request 12, inquires whether a master database 2 is updated or not and sends an update information request 18 to a transmission/reception managing part 8. Then, it is confirmed from that transmission/reception managing part 8 based on update information 17 that two sets of data in the master data base 2 are updated, and relevant data among data held in the sub database 7 are updated.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、データを入力する
部門と、そのデータを利用する部門とが異なるような分
散システムで、データの集中管理を行うマスタデータベ
ースの他に、マスタデータベースが管理しているデータ
のうちでデータを利用する部門が必要とするデータのみ
を保持するサブデータベースを部門毎に有する分散デー
タベースシステムにおいて、マスタデータベースの更新
状態とサブデータベースの更新状態とを一致させるため
の分散データベースシステムのデータ更新制御方法およ
び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a distributed system in which a department for inputting data and a department for using the data are different from each other. In a distributed database system that has a sub-database for each department that holds only the data required by the department that uses the data, the distribution status for matching the update status of the master database with the update status of the sub-database The present invention relates to a data update control method and apparatus for a database system.

【0002】[0002]

【従来の技術】データを入力する部門と、そのデータを
利用する部門とが異なるような分散システムで、データ
の集中管理を行うマスタデータベースの他に、マスタデ
ータベースが管理しているデータのうちでデータを利用
する部門が必要とするデータのみを保持するサブデータ
ベースを部門毎に有する従来の分散データベースシステ
ムにおいては、マスタデータベースのデータとサブデー
タベースのデータと整合性をとる(一致させる)ため、
マスタデータベースを更新するとき、サブデータベース
も同時に更新している。
2. Description of the Related Art In a distributed system in which a department that inputs data and a department that uses the data are different, in addition to a master database that performs centralized management of data, among data managed by the master database, In a conventional distributed database system having a sub-database that holds only data required by a department that uses data for each department, in order to ensure consistency (coincide) data in the master database with data in the sub-database,
When updating the master database, the sub database is also updated at the same time.

【0003】図2は、このような従来の分散データベー
スシステムのデータ更新制御装置の一例を示すブロック
図である。
FIG. 2 is a block diagram showing an example of a data update control device of such a conventional distributed database system.

【0004】図2において、マスタデータベース制御部
29は、マスタデータベース22と、マスタデータベー
ス管理部21と、送受信管理部25とで構成されてい
る。またサブデータベース制御部30は、サブデータベ
ース27と、サブデータベース管理部26と、送受信管
理部28とで構成されている。サブデータベース制御部
30は、1台のみとは限らず、複数台が設けられている
ことがある。
[0004] In FIG. 2, a master database control unit 29 includes a master database 22, a master database management unit 21, and a transmission / reception management unit 25. The sub-database control unit 30 includes a sub-database 27, a sub-database management unit 26, and a transmission / reception management unit 28. The number of sub-database control units 30 is not limited to one, and a plurality of sub-database control units may be provided.

【0005】マスタデータベース制御部29のマスタデ
ータベース管理部21は、外部(上位装置)からデータ
の更新要求32があったとき、マスタデータベース22
の最初の1件のデータを更新すると同時に、その更新デ
ータ35を送受信管理部25に送る。送受信管理部25
は受け取った更新データを、該当するデータをサブデー
タベース27に保持しているサブデータベース制御部3
0の送受信管理部28に送る。更新データを受け取った
サブデータベース制御部30の送受信管理部28は、更
新データ37を自己の所属しているサブデータベース制
御部30のサブデータベース管理部26に送り、サブデ
ータベース管理部26は、それによって対応するサブデ
ータベース27の該当するデータを更新する。サブデー
タベース27のデータ更新が終了すると、サブデータベ
ース管理部26は、更新終了通知38を対応する送受信
管理部28に送る。この更新終了通知38を受け取った
送受信管理部28は、それをマスタデータベース制御部
29の送受信管理部25に送る。送受信管理部25は、
これによって更新終了通知34をマスタデータベース管
理部21に送り、マスタデータベース管理部21は、こ
れによって次の1件のデータの更新動作を行う。
[0005] The master database management unit 21 of the master database control unit 29, when receiving a data update request 32 from the outside (upper device), the master database 22
Is updated, and the updated data 35 is sent to the transmission / reception management unit 25 at the same time. Transmission / reception management unit 25
Is a sub-database control unit 3 that holds the received update data in the sub-database 27.
0 to the transmission / reception management unit 28. The transmission / reception management unit 28 of the sub-database control unit 30 that has received the update data sends the update data 37 to the sub-database management unit 26 of the sub-database control unit 30 to which it belongs, and the sub-database management unit 26 The corresponding data in the corresponding sub database 27 is updated. When the data update of the sub database 27 is completed, the sub database management unit 26 sends an update completion notification 38 to the corresponding transmission / reception management unit 28. The transmission / reception management unit 28 that has received the update end notification 38 sends it to the transmission / reception management unit 25 of the master database control unit 29. The transmission / reception management unit 25
As a result, the update end notification 34 is sent to the master database management unit 21, and the master database management unit 21 performs an update operation of the next one data item.

【0006】[0006]

【発明が解決しようとする課題】上述したような分散デ
ータベースシステムの従来のデータ更新制御手段は、マ
スタデータベースのデータ更新とサブデータベースのデ
ータ更新とを同時に行うため、更新データを入力してか
らサブデータベースのデータ更新が終了するまでに待時
間が発生し、マスタデータベースのデータ更新の作業効
率が低くなるという問題点を有している。また、サブデ
ータベース側に障害が発生すると、サブデータベースの
データ更新ができなくなるため、マスタデータベースの
データ更新もできなくなるという問題点も有している。
The conventional data update control means of the distributed database system as described above performs the update of the master database and the update of the sub-database at the same time. There is a problem that a waiting time occurs until the data update of the database is completed, and the work efficiency of the data update of the master database is reduced. Further, when a failure occurs on the sub database side, the data of the sub database cannot be updated, so that the data of the master database cannot be updated.

【0007】本発明の目的は、上述のような分散データ
ベースシステムの従来のデータ更新制御手段の欠点を解
消し、マスタデータベースのデータ更新の作業効率を向
上させ、しかもサブデータベース側に障害が発生した場
合でも、マスタデータベースのデータ更新に支障を及ぼ
さない分散データベースシステムのデータ更新制御手段
を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned drawbacks of the conventional data update control means of a distributed database system, improve the work efficiency of updating the data in the master database, and cause a failure in the sub database. Even in such a case, an object of the present invention is to provide a data update control means for a distributed database system which does not hinder data update of a master database.

【0008】[0008]

【課題を解決するための手段】本発明は、マスタデータ
ベース側に更新履歴ファイルを設けておき、マスタデー
タベースのデータを更新したとき、その更新データを含
む更新情報を更新履歴ファイルに保持しておき、サブデ
ータベースのデータの更新は、サブデータベースに対し
て参照要求があったとき、更新履歴ファイルに保持して
ある更新情報に基づいてサブデータベースのデータの更
新を行うようにすることにより、上記の目的を達成する
ようにしたものである。
According to the present invention, an update history file is provided on the master database side, and when data in the master database is updated, update information including the update data is stored in the update history file. The data of the sub-database is updated by updating the data of the sub-database based on the update information held in the update history file when a reference request is issued to the sub-database. This is to achieve the purpose.

【0009】すなわち、本発明の分散データベースシス
テムのデータ更新制御方法は、集中管理のために多数の
データを保持するマスタデータベースと、前記マスタデ
ータベースが保持するデータのうちの一部のデータを保
持する少なくとも1台のサブデータベースとを有する分
散データベースシステムのデータ更新制御方法であっ
て、前記マスタデータベースを更新したときの更新情報
を更新履歴ファイルに保持し、前記少なくとも1台のサ
ブデータベースのうちの任意の1台のサブデータベース
に対して参照要求があったとき、前記更新履歴ファイル
に保持している前記更新情報によって前記参照要求があ
ったサブデータベースのデータを更新することによって
マスタデータベースのデータとサブデータベースのデー
タとを一致させるようにしたものであり、特に、サブデ
ータベースの数を複数台としたものである。
That is, in the data update control method for a distributed database system according to the present invention, a master database holding a large number of data for centralized management, and a part of the data held by the master database are held. A data update control method for a distributed database system having at least one sub-database, wherein update information when the master database is updated is stored in an update history file, and any one of the at least one sub-database is stored. When a reference request is issued to one of the sub-databases, the data of the master database is updated by updating the data of the sub-data base requested by the update information held in the update history file. To match the data in the database. It is obtained by the, in particular, is obtained by a number of sub-databases and multiple.

【0010】また本発明の分散データベースシステムの
データ更新制御装置は、集中管理のために多数のデータ
を保持するマスタデータベースと、外部から更新要求が
あったとき前記マスタデータベースを更新するマスタデ
ータベース管理部と、前記マスタデータベースを更新し
たときの更新データを含む更新情報を保持する更新履歴
ファイルと、前記マスタデータベース管理部から前記更
新データを入力して前記更新データを含む前記更新情報
を前記更新履歴ファイルに送って前記更新履歴ファイル
の更新情報の更新または追加または削除を行いかつ前記
更新履歴ファイルから前記更新情報を読み出す更新履歴
管理部と、前記更新履歴管理部に対して更新情報要求を
出すことによって前記更新履歴管理部が前記更新履歴フ
ァイルから読み出した前記更新情報を入力して外部に送
出する第一の送受信管理部と、前記マスタデータベース
が保持するデータのうちの一部のデータを保持する少な
くとも1台のサブデータベースと、前記第一の送受信管
理部から前記更新情報を入力する前記少なくとも1台の
サブデータベースのそれぞれに対応する第二の送受信管
理部と、外部から参照要求があったとき前記第二の送受
信管理部に対して更新情報要求を出力して前記第二の送
受信管理部が入力した前記更新情報を受け取って前記サ
ブデータベースを更新する前記少なくとも1台のサブデ
ータベースのそれぞれに対応するサブデータベース管理
部とを備えたものであり、特に、サブデータベースの数
を複数台としたものである。
A data update control device for a distributed database system according to the present invention includes a master database for holding a large number of data for centralized management, and a master database management unit for updating the master database when an external update request is received. An update history file that holds update information including update data when the master database is updated, and the update history file that receives the update data from the master database management unit and includes the update data. An update history management unit that updates, adds, or deletes update information of the update history file and reads the update information from the update history file, and issues an update information request to the update history management unit. The update history management unit reads from the update history file. A first transmission / reception management unit for inputting the updated information and sending the updated information to the outside; at least one sub-database for holding a part of data held by the master database; A second transmission / reception management unit corresponding to each of the at least one sub-database for inputting the update information from a management unit, and an update information request to the second transmission / reception management unit when there is a reference request from outside. And a sub-database management unit corresponding to each of the at least one sub-database that receives the update information input by the second transmission / reception management unit and updates the sub-database, In particular, the number of sub-databases is plural.

【0011】[0011]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して説明する。
Next, embodiments of the present invention will be described with reference to the drawings.

【0012】図1は本発明の分散データベースのデータ
更新制御装置の一実施形態を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a data update control apparatus for a distributed database according to the present invention.

【0013】図1において、マスタデータベース制御部
9は、マスタデータベース2と、マスタデータベース管
理部1と、更新履歴ファイル4と、更新履歴管理部3
と、送受信管理部5とで構成されている。またサブデー
タベース制御部10は、サブデータベース7と、サブデ
ータベース管理部6と、送受信管理部8とで構成されて
おり、図2のサブデータベース制御部10と類似の構成
である。サブデータベース制御部10は、1台のみとは
限らず、複数台が設けられていることがある。
In FIG. 1, a master database control unit 9 includes a master database 2, a master database management unit 1, an update history file 4, and an update history management unit 3.
And a transmission / reception management unit 5. The sub-database control unit 10 includes a sub-database 7, a sub-database management unit 6, and a transmission / reception management unit 8, and has a configuration similar to that of the sub-database control unit 10 in FIG. The number of the sub-database control units 10 is not limited to one and may be plural.

【0014】マスタデータベース制御部9のマスタデー
タベース管理部1は、外部(上位装置)からデータの更
新要求12があったとき、マスタデータベース2の該当
するデータを更新すると同時に、その更新データ13を
更新履歴管理部3に送る。更新データが複数件のとき
は、順次に1件ずつマスタデータベース2の更新を行
い、更新終了毎にその更新データを更新履歴管理部3に
送る。
The master database management unit 1 of the master database control unit 9 updates the corresponding data in the master database 2 and updates the update data 13 when there is a data update request 12 from the outside (upper device). This is sent to the history management unit 3. When there are a plurality of pieces of update data, the master database 2 is sequentially updated one by one, and each time the update is completed, the update data is sent to the update history management unit 3.

【0015】マスタデータベース2は、集中管理のため
に多数のデータを保持しており、マスタデータベース管
理部1から更新データを受取ったときは、受取った更新
データを該当する古いデータと置換する。更新データが
新規のデータの場合は、そのデータを新たに書込んで保
持する。
The master database 2 holds a large amount of data for centralized management, and when receiving update data from the master database management unit 1, replaces the received update data with the corresponding old data. If the update data is new data, the data is newly written and held.

【0016】更新履歴管理部3は、マスタデータベース
管理部1から送られてきた更新データ13に管理情報を
付加した更新情報を更新履歴ファイル4に送る。また、
更新履歴ファイル4から更新情報を読み出して送受信管
理部5に送る。付加する管理情報は、更新データが変更
データであるか追加データであるか消去データであるか
を示す更新指標や、その更新データの存在場所を示す位
置指定指標や、更新実施日を示す更新期日や、その更新
データを保持しているサブデータベースを示すサブデー
タベース指定等である。
The update history management section 3 sends update information obtained by adding management information to the update data 13 sent from the master database management section 1 to the update history file 4. Also,
The update information is read from the update history file 4 and sent to the transmission / reception management unit 5. The management information to be added includes an update index indicating whether the update data is change data, additional data, or erasure data, a position designation index indicating the location of the update data, and an update date indicating the update execution date. And a sub-database designation indicating a sub-database holding the update data.

【0017】更新履歴ファイル4は、更新履歴管理部3
から送られてきた更新情報を保持する。更新履歴管理部
3から送られてきた更新情報の更新データが既に保持さ
れているデータに対する更新データである場合は、送ら
れてきた新しい更新情報を保持している古い更新情報と
置換する。
The update history file 4 stores the update history management unit 3
Holds the update information sent from. If the update data of the update information sent from the update history management unit 3 is update data for data already held, the update data is replaced with old update information holding the sent new update information.

【0018】送受信管理部5は、更新履歴管理部3から
受け取った更新情報を、その更新情報に含まれている更
新データに該当するデータをサブデータベース7に保持
しているサブデータベース制御部10の送受信管理部8
に送る。またサブデータベース制御部10の送受信管理
部8から送らてきた情報を更新履歴管理部3に送る。
The transmission / reception management unit 5 stores the update information received from the update history management unit 3 in the sub-database control unit 10 that holds data corresponding to the update data included in the update information in the sub-database 7. Transmission / reception management unit 8
Send to The information sent from the transmission / reception management unit 8 of the sub database control unit 10 is sent to the update history management unit 3.

【0019】サブデータベース制御部10の送受信管理
部8は、マスタデータベース制御部9の送受信管理部5
から送られてきた更新情報を自己の所属するサブデータ
ベース制御部10のサブデータベース管理部6に送り、
サブデータベース管理部6から送られてきた情報をマス
タデータベース制御部9の送受信管理部5に送る。
The transmission / reception management unit 8 of the sub database control unit 10 is the transmission / reception management unit 5 of the master database control unit 9.
Sends the update information sent from the sub-database management unit 6 of the sub-database control unit 10 to which it belongs,
The information sent from the sub database management unit 6 is sent to the transmission / reception management unit 5 of the master database control unit 9.

【0020】サブデータベース管理部6は、送受信管理
部5から更新情報を受け取ったとき、それに含まれる管
理情報からマスタデータベース2のデータと一致した
(同期のとれた)データであるか否かを判断し、一致し
ていない(同期のとれていない)データの場合は、対応
するサブデータベース7の該当するデータを更新させ
る。また、外部から参照要求16があったときは、サブ
データベース7を検索して要求元に返送する。
When receiving the update information from the transmission / reception management unit 5, the sub-database management unit 6 determines from the management information included in the update information whether the data matches (is synchronized with) the data of the master database 2. If the data does not match (is not synchronized), the corresponding data in the corresponding sub-database 7 is updated. When there is a reference request 16 from outside, the sub database 7 is searched and returned to the request source.

【0021】サブデータベース7は、マスタデータベー
ス2が保持しているデータのなかの一部のデータを保持
しており、サブデータベース管理部6から指示があった
とき、指示のあったデータを更新する。
The sub-database 7 holds a part of the data held by the master database 2 and updates the instructed data when instructed by the sub-database management unit 6. .

【0022】次に上述のように構成した分散データベー
スのデータ更新制御装置の動作について説明する。
Next, the operation of the distributed database data update control device configured as described above will be described.

【0023】上位装置またはオペーレータからマスタデ
ータベース制御部9に対してマスタデータベース2に保
持されているデータのなかの特定のデータに対する更新
要求12があると、マスタデータベース管理部1は、更
新要求12に含まれる更新データによってマスタデータ
ベース2の該当するデータを更新すると共に、更新デー
タ13を更新履歴管理部3に送る。更新履歴管理部3
は、マスタデータベース管理部1から送られきた更新デ
ータに更新指標や位置指定指標等の管理情報を付加して
更新情報を作成し、それを更新履歴ファイル4に送る。
更新履歴ファイル4は、更新情報が更新履歴管理部3か
ら送られくると、その更新情報に含まれているデータが
既に保持しているデータを変更するデータである場合
は、送られてきた更新データを古いデータと置換するこ
とによって更新する。更新情報に含まれているデータが
既に保持しているデータに追加する新しいデータである
場合は、そのデータを追加して保持する。更新情報が既
に保持しているデータを消去する情報である場合は、指
定されたデータの記憶を消して消去する。
When an upper device or an operator issues an update request 12 to specific data in the data stored in the master database 2 to the master database controller 9, the master database manager 1 sends the update request 12 The corresponding data in the master database 2 is updated by the included update data, and the update data 13 is sent to the update history management unit 3. Update history management unit 3
Creates update information by adding management information such as an update index and a position designation index to the update data sent from the master database management unit 1, and sends it to the update history file 4.
When the update information is sent from the update history management unit 3, if the data included in the update information is data that changes data already held, the update history file 4 updates the received update information. Update by replacing data with old data. If the data included in the update information is new data to be added to the data already held, the data is added and held. If the update information is information for erasing the data already held, the storage of the designated data is erased and erased.

【0024】更に第二の更新要求12がマスタデータベ
ース制御部9に対してあったときは、マスタデータベー
ス制御部9は上述の動作を繰返す。従って更新履歴ファ
イル4には、2件の更新情報が蓄積されたことになる。
Further, when the second update request 12 is issued to the master database controller 9, the master database controller 9 repeats the above operation. Therefore, two pieces of update information are accumulated in the update history file 4.

【0025】この状態で上位装置またはオペーレータか
らサブデータベース制御部10に対してサブデータベー
ス7に保持されているデータのなかの特定のデータに対
する参照要求16があると、参照要求16を受け付けた
サブデータベース管理部6は、マスタデータベース2が
更新されているか否かを問い合わせ、更新されている場
合は更新情報を入手するため、送受信管理部8に対して
更新情報要求18を送出する。この更新情報要求18を
受け取った送受信管理部8は、それをマスタデータベー
ス制御部9の送受信管理部5に送出する。送受信管理部
5は、これによって更新履歴管理部3に対して更新情報
要求14を送り、更新情報要求14を入力した更新履歴
管理部3は、更新履歴ファイル4からその時点で蓄積し
ている更新情報を読み出し、更新情報15として送受信
管理部5に送る。更新情報15を入力した送受信管理部
5は、それをサブデータベース制御部10の送受信管理
部8に送り、送受信管理部8はそれを更新情報17とし
てサブデータベース管理部6に送る。サブデータベース
管理部6はこの更新情報17から、マスタデータベース
2の2件のデータが更新されていることを知り、サブデ
ータベース7に保持しているデータのなかの該当するデ
ータを更新した後、参照要求16によって要求されてい
るデータをサブデータベース7から読み出して返送す
る。
In this state, when there is a reference request 16 for specific data in the data held in the sub-database 7 from the host device or the operator to the sub-database control unit 10, the sub-database receiving the reference request 16 The management unit 6 inquires whether or not the master database 2 has been updated, and if updated, sends an update information request 18 to the transmission / reception management unit 8 in order to obtain update information. The transmission / reception management unit 8 receiving the update information request 18 sends it to the transmission / reception management unit 5 of the master database control unit 9. The transmission / reception management unit 5 sends the update information request 14 to the update history management unit 3 in response to the update information request 14, and the update history management unit 3 that has input the update information request 14 updates the update history stored in the update history file 4 at that time. The information is read and sent to the transmission / reception management unit 5 as update information 15. The transmission / reception management unit 5 that has received the update information 15 sends the update information 15 to the transmission / reception management unit 8 of the sub-database control unit 10, and the transmission / reception management unit 8 transmits the update information 17 to the sub-database management unit 6. The sub-database management unit 6 knows from the update information 17 that two data items in the master database 2 have been updated, updates the corresponding data in the data stored in the sub-database 7, and then refers to the updated data. The data requested by the request 16 is read from the sub database 7 and returned.

【0026】例えば、1台のマスタデータベースに対し
て10台のサブデータベースがある場合は、マスタデー
タベースの一つのデータに対して更新要求があったと
き、従来の分散データベースシステムでは、合計11台
のデータベースに対して更新を行ってデータの内容を一
致させる(同期をとる)必要があったが、本分散データ
ベースの同期制御装置を利用すると、1台のマスタデー
タベースと1台の更新履歴ファイルとの2台の装置の更
新を行うだけでよい。従って10台のサブデータベース
に対する更新データの送信時間が割愛されるため、マス
タデータベース制御部9における処理時間が大幅に短縮
される。
For example, when there are ten sub-databases for one master database, and when an update request is made for one data of the master database, the conventional distributed database system requires a total of 11 sub-databases. It was necessary to update the database to make the data contents coincide (synchronize). However, when the synchronization control device of the distributed database is used, one master database and one update history file cannot be updated. Only two devices need to be updated. Therefore, the transmission time of the update data to the ten sub-databases is omitted, and the processing time in the master database control unit 9 is greatly reduced.

【0027】10台のサブデータベースのうちの第一の
サブデータベースに対して参照要求があると、第一のサ
ブデータベースを有するサブデータベース制御部10
は、マスタデータベース制御部9の更新履歴ファイル4
を参照して自己のサブデータベースのデータを最新のデ
ータに更新するが、この時点では、第二〜第十のサブデ
ータベースのデータは最新のデータに更新されていな
い。しかし、第二〜第十のサブデータベースに対して参
照要求があると、その時点で各サブデータベースのデー
タは最新のデータに更新されるため、参照要求があった
時点で、各サブデータベースはマスタデータベースと内
容が一致した(同期がとれている)データを保持してい
ることになる。
When there is a reference request to the first sub-database of the ten sub-databases, the sub-database control unit 10 having the first sub-database
Is the update history file 4 of the master database control unit 9.
, The data of its own sub-database is updated to the latest data, but at this point, the data of the second to tenth sub-databases has not been updated to the latest data. However, if there is a reference request to the second to tenth sub-databases, the data of each sub-database is updated to the latest data at that time, so at the time of the reference request, each sub-database becomes the master. This means that the data whose contents match the database (is synchronized) is retained.

【0028】また、10台のサブデータベースのうちの
1台のサブデータベースに障害が発生した場合は、従来
の分散データベースシステムでは、マスタデータベース
の更新が不可能となるが、本分散データベースのデータ
更新制御手段を利用すると、サブデータベースの状態に
無関係にマスタデータベースの更新ができ、また、障害
を発生したサブデータベースを除く9台のサブデータベ
ースの参照も可能となる。
If a failure occurs in one of the ten sub-databases, the conventional distributed database system cannot update the master database. When the control means is used, the master database can be updated irrespective of the state of the sub-database, and nine sub-databases other than the sub-database in which a failure has occurred can be referred to.

【0029】[0029]

【発明の効果】以上説明したように、本発明は、マスタ
データベース側に更新履歴ファイルを設けておき、マス
タデータベースのデータを更新したとき、その更新情報
を更新履歴ファイルに保持しておき、サブデータベース
のデータの更新は、サブデータベースに対して参照要求
があったとき、更新履歴ファイルに保持してある更新情
報に基づいてサブデータベースのデータの更新は行うよ
うにすることにより、マスタデータベースのデータの更
新のとき、1台のマスタデータベースと1台の更新履歴
ファイルとの2台の装置の更新を行うのみでよいため、
マスタデータベースのデータ更新の作業効率を向上させ
ることができるという効果がある。また、サブデータベ
ースの状態に無関係にマスタデータベースの更新ができ
るため、サブデータベース側に障害が発生した場合で
も、マスタデータベースのデータ更新を支障なく行うこ
とができるという効果もある。
As described above, according to the present invention, the update history file is provided on the master database side, and when the data of the master database is updated, the update information is stored in the update history file, Updating the data in the database is performed by updating the data in the sub database based on the update information held in the update history file when a reference request is made to the sub database. Since only two devices, one master database and one update history file, need to be updated at the time of updating,
There is an effect that the work efficiency of updating the data in the master database can be improved. Further, since the master database can be updated irrespective of the state of the sub-database, even if a failure occurs on the sub-database side, there is an effect that the data of the master database can be updated without any trouble.

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

【図1】本発明の分散データベースのデータ更新制御装
置の一実施形態を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a distributed database data update control device of the present invention.

【図2】従来の分散データベースのデータ更新制御装置
の一例を示すブロック図である。
FIG. 2 is a block diagram showing an example of a conventional distributed database data update control device.

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

1・21 マスタデータベース管理部 2・22 マスタデータベース 3 更新履歴管理部 4 更新履歴ファイル 5・8・25・28 送受信管理部 6・26 サブデータベース管理部 7・27 サブデータベース 9・29 マスタデータベース制御部 10・30 サブデータベース制御部 12・32 更新要求 13 更新データ 14・18 更新情報要求 15・17 更新情報 16 参照要求 35・37 更新データ 34・38 更新終了通知 1.21 Master database management section 2.22 Master database 3 Update history management section 4 Update history file 5.8.25.28 Transmission / reception management section 6.26 Subdatabase management section 7.27 Subdatabase 9.29 Master database control section 10.30 Sub-database control unit 12.32 Update request 13 Update data 14.18 Update information request 15.17 Update information 16 Reference request 35.37 Update data 34.38 Update end notification

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 集中管理のために多数のデータを保持す
るマスタデータベースと、前記マスタデータベースが保
持するデータのうちの一部のデータを保持する少なくと
も1台のサブデータベースとを有する分散データベース
システムのデータ更新制御方法であって、前記マスタデ
ータベースを更新したときの更新情報を更新履歴ファイ
ルに保持し、前記少なくとも1台のサブデータベースの
うちの任意の1台のサブデータベースに対して参照要求
があったとき、前記更新履歴ファイルに保持している前
記更新情報によって前記参照要求があったサブデータベ
ースのデータを更新することを特徴とする分散データベ
ースシステムのデータ更新制御方法。
1. A distributed database system comprising: a master database holding a large number of data for centralized management; and at least one sub-database holding a part of data held by the master database. A data update control method, wherein update information when the master database is updated is held in an update history file, and a reference request is issued to any one of the at least one sub-database. A data update control method for a distributed database system, wherein data of the sub-database requested to be referred to is updated by the update information held in the update history file.
【請求項2】 サブデータベースの数を複数台としたこ
とを特徴とする請求項1記載の分散データベースシステ
ムのデータ更新制御方法。
2. The data update control method for a distributed database system according to claim 1, wherein the number of sub-databases is plural.
【請求項3】 集中管理のために多数のデータを保持す
るマスタデータベースと、外部から更新要求があったと
き前記マスタデータベースを更新するマスタデータベー
ス管理部と、前記マスタデータベースを更新したときの
更新データを含む更新情報を保持する更新履歴ファイル
と、前記マスタデータベース管理部から前記更新データ
を入力して前記更新データを含む前記更新情報を前記更
新履歴ファイルに送って前記更新履歴ファイルの更新情
報の更新または追加または削除を行いかつ前記更新履歴
ファイルから前記更新情報を読み出す更新履歴管理部
と、前記更新履歴管理部に対して更新情報要求を出すこ
とによって前記更新履歴管理部が前記更新履歴ファイル
から読み出した前記更新情報を入力して外部に送出する
第一の送受信管理部と、前記マスタデータベースが保持
するデータのうちの一部のデータを保持する少なくとも
1台のサブデータベースと、前記第一の送受信管理部か
ら前記更新情報を入力する前記少なくとも1台のサブデ
ータベースのそれぞれに対応する第二の送受信管理部
と、外部から参照要求があったとき前記第二の送受信管
理部に対して更新情報要求を出力して前記第二の送受信
管理部が入力した前記更新情報を受け取って前記サブデ
ータベースを更新する前記少なくとも1台のサブデータ
ベースのそれぞれに対応するサブデータベース管理部と
を備えることを特徴とする分散データベースシステムの
データ更新制御装置。
3. A master database for holding a large number of data for centralized management, a master database management unit for updating the master database when there is an external update request, and update data for updating the master database An update history file holding update information including: updating the update information of the update history file by inputting the update data from the master database management unit and sending the update information including the update data to the update history file Or an update history management unit that performs addition or deletion and reads the update information from the update history file, and the update history management unit reads from the update history file by issuing an update information request to the update history management unit. A first transmission / reception management unit for inputting the updated information and transmitting the updated information to the outside; The at least one sub-database holding a part of the data held by the master database and the at least one sub-database receiving the update information from the first transmission / reception management unit. A corresponding second transmission / reception management unit, and receives an update information input to the second transmission / reception management unit by outputting an update information request to the second transmission / reception management unit when there is a reference request from outside. And a sub-database management unit corresponding to each of the at least one sub-database for updating the sub-database.
【請求項4】 サブデータベースの数を複数台としたこ
とを特徴とする請求項3記載の分散データベースシステ
ムのデータ更新制御装置。
4. The data update control device for a distributed database system according to claim 3, wherein the number of sub-databases is plural.
【請求項5】 集中管理のために多数のデータを保持す
るマスタデータベースと、外部から更新要求があったと
き前記マスタデータベースを更新するマスタデータベー
ス管理部と、前記マスタデータベースを更新したときの
更新データを含む更新情報を保持する更新履歴ファイル
と、前記更新データを入力して前記更新データを含む前
記更新情報を前記更新履歴ファイルに送って前記更新履
歴ファイルの更新情報の更新または追加または削除を行
いかつ前記更新履歴ファイルから前記更新情報を読み出
す更新履歴管理部と、前記更新履歴管理部に対して更新
情報要求を出すことによって前記更新履歴管理部が前記
更新履歴ファイルから読み出した前記更新情報を入力し
て外部に送出する第一の送受信管理部とを有するマスタ
データベース制御部と、 前記マスタデータベースが保持するデータのうちの一部
のデータを保持するサブデータベースと、前記第一の送
受信管理部から前記更新情報を入力する第二の送受信管
理部と、外部から参照要求があったとき前記第二の送受
信管理部に対して更新情報要求を出力して前記第二の送
受信管理部が入力した前記更新情報を受け取って前記サ
ブデータベースを更新するサブデータベース管理部とを
有する少なくとも1台のサブデータベース制御部とを備
えることを特徴とする分散データベースシステムのデー
タ更新制御装置。
5. A master database for holding a large number of data for centralized management, a master database management unit for updating the master database when there is an external update request, and update data for updating the master database An update history file holding update information including: updating the update information of the update history file by inputting the update data and transmitting the update information including the update data to the update history file; An update history management unit for reading the update information from the update history file; and inputting the update information read from the update history file by the update history management unit by issuing an update information request to the update history management unit. Master database control unit having a first transmission / reception management unit for transmitting to the outside A sub-database holding a part of the data held by the master database, a second transmission / reception management unit for inputting the update information from the first transmission / reception management unit, and a reference request from the outside. A sub-database management unit that outputs an update information request to the second transmission / reception management unit, receives the update information input by the second transmission / reception management unit, and updates the sub-database. A data update control device for a distributed database system, comprising: one sub-database control unit.
【請求項6】 サブデータベースの数を複数台としたこ
とを特徴とする請求項5記載の分散データベースシステ
ムのデータ更新制御装置。
6. The data update control device for a distributed database system according to claim 5, wherein a plurality of sub-databases are provided.
JP9129436A 1997-05-20 1997-05-20 Data update control method and device for distributed database system Pending JPH10320256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9129436A JPH10320256A (en) 1997-05-20 1997-05-20 Data update control method and device for distributed database system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9129436A JPH10320256A (en) 1997-05-20 1997-05-20 Data update control method and device for distributed database system

Publications (1)

Publication Number Publication Date
JPH10320256A true JPH10320256A (en) 1998-12-04

Family

ID=15009434

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9129436A Pending JPH10320256A (en) 1997-05-20 1997-05-20 Data update control method and device for distributed database system

Country Status (1)

Country Link
JP (1) JPH10320256A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7181470B1 (en) 1999-11-12 2007-02-20 Hitachi, Ltd. Coincidence method for distribution system
JP2017037514A (en) * 2015-08-11 2017-02-16 日本電信電話株式会社 Update system, update method, and update program
CN110765144A (en) * 2019-10-11 2020-02-07 口碑(上海)信息技术有限公司 Distributed heterogeneous database data processing method and device
CN116910149A (en) * 2023-06-08 2023-10-20 东莞市铁石文档科技有限公司 File management system based on distributed database

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7181470B1 (en) 1999-11-12 2007-02-20 Hitachi, Ltd. Coincidence method for distribution system
JP2017037514A (en) * 2015-08-11 2017-02-16 日本電信電話株式会社 Update system, update method, and update program
CN110765144A (en) * 2019-10-11 2020-02-07 口碑(上海)信息技术有限公司 Distributed heterogeneous database data processing method and device
CN110765144B (en) * 2019-10-11 2022-02-18 口碑(上海)信息技术有限公司 Distributed heterogeneous database data processing method and device
CN116910149A (en) * 2023-06-08 2023-10-20 东莞市铁石文档科技有限公司 File management system based on distributed database

Similar Documents

Publication Publication Date Title
EP0226734B1 (en) Method and apparatus for managing obsolescence of data objects
US6341308B1 (en) Input/output device information management system for multi-computer system
JP3526474B2 (en) Distribution information management system in network
JP2006202337A (en) Method and device for data processing
JPH04505977A (en) Object-oriented distributed processing system
WO2000065449A1 (en) Method and system for file management in distributed environment
JP2017027326A (en) Storage system and program for the same
US5388256A (en) Transaction processing database system with shared work-in-progress store for logging database changes
JP4548037B2 (en) Cache memory management method, storage device or computer system
JPH10320256A (en) Data update control method and device for distributed database system
CN111382142A (en) Database operation method, server and computer storage medium
US5615372A (en) Network definition modifying system
JP2002222107A (en) Data synchronizing device
JPH1091405A (en) Software maintenance method
JPH06290098A (en) Method for processing distributed data base
JP3736467B2 (en) Cable management system and management method
US6430579B1 (en) Partition support tool to maintain/service multiple copies of a database
JP2749103B2 (en) Network resource management method
JP2001236254A (en) Device and method for sharing data and computer readable recording medium with data sharing program recorded
JPH08147206A (en) Data storage system
JPH06175902A (en) Distributed file system, file managing device, centralized controller and distributed file managing method
CN115941427A (en) Remote management method of application server, electronic equipment and storage medium
JP2000187603A (en) System and device for supporting data base design/ maintenance
JPH113262A (en) Simple distributed fa data base management system
JP4667966B2 (en) Graphic information management system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20000307