JPH08115247A - Data management device and data management method - Google Patents

Data management device and data management method

Info

Publication number
JPH08115247A
JPH08115247A JP6249849A JP24984994A JPH08115247A JP H08115247 A JPH08115247 A JP H08115247A JP 6249849 A JP6249849 A JP 6249849A JP 24984994 A JP24984994 A JP 24984994A JP H08115247 A JPH08115247 A JP H08115247A
Authority
JP
Japan
Prior art keywords
data
database
management system
update
database management
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
JP6249849A
Other languages
Japanese (ja)
Inventor
Shuji Takada
秀志 高田
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP6249849A priority Critical patent/JPH08115247A/en
Publication of JPH08115247A publication Critical patent/JPH08115247A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To provide a data base management system capable of maintaining the unitariness of data by updating the data related to the updated data as well at the time of updating the data when the duplicated data are present in a distributed data base for which plural data bases are present. CONSTITUTION: When the duplicate of the data inside data base on one side are stored in the other side data base, at the time of updating the data inside the data base on one side, the data base management system reports updating contents to a duplicate management system 1000 and the duplicate management system 1000 refers to a duplicate management chart 1001, checks the data related to the updated data and issues a command for updating the stored data to the data base management system for managing the other side data base storing the data.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、プラントシステムな
どの実時間システムにおける分散型データベースにおい
て個々のデータベース間に共通するデータの一元性を保
ち、かつ個々のデータベースを管理する手法、およびそ
の手法を実現するための装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of maintaining the unity of common data among individual databases in a distributed database in a real-time system such as a plant system and managing the individual databases, and a method thereof. The present invention relates to a device for realizing it.

【0002】[0002]

【従来の技術】従来のデータベースにおけるデータ管理
方法を図24を用いて説明する。図24は、”The
Sybase Replication SeverP
roject”(Yondong Wang、Jane
Chiao、Vasu Nori著、Sybase
Inc.、1650 65th st.、Emeryv
ille、CA94698)に記載されたデータ管理方
法を実現するための装置の一例を示す図である。図24
において、300は複製サーバを結ぶネットワークであ
る。103および203はデータおよびデータに対する
操作の履歴などの情報を蓄えるデータベースである。1
01はデータベース103に格納されたデータの値を更
新するなどの操作を行い、かつデータベースの管理を行
う複製サーバであり、またこの複製サーバ101はネッ
トワーク300を介してデータおよびデータに対する操
作の履歴などの情報を送信および受信する機能をもつ。
102は複製サーバ101がデータベース103に対し
て行った操作の履歴のデータを複製サーバ101に転送
する機能をもつログ転送マネージャである。201はデ
ータベース203または204に格納されたのデータの
値を更新するなどの操作を行い、かつデータベースの管
理を行う複製サーバであり、またこの複製サーバはネッ
トワーク300を介してデータおよびデータに対する操
作の履歴などの情報を送信および受信する機能をもつ。
202は複製サーバ201がデータベース203にたい
して行った操作の履歴のデータを複製サーバ201に転
送する機能をもつログ転送マネージャである。204は
データベース103および203に蓄えているデータの
複製のデータを蓄えるデータベースである。図24のよ
うに、各データベースには一つの複製サーバとログ転送
マネージャが割り当てられる。複製サーバはネットワー
ク300と結ばれており、お互いに通信を行うことがで
きる。
2. Description of the Related Art A conventional data management method in a database will be described with reference to FIG. FIG. 24 shows "The
Sybase Replication ServerP
project ”(Yondong Wang, Jane
Chiao, Vasu Nori, Sybase
Inc. , 1650 65th st. , Emeryv
FIG. 9 is a diagram showing an example of an apparatus for implementing the data management method described in ILL, CA94698). FIG.
In the above, reference numeral 300 is a network connecting the duplicate servers. Reference numerals 103 and 203 are databases that store information such as data and a history of operations on the data. 1
Reference numeral 01 denotes a replication server that performs operations such as updating the value of data stored in the database 103 and manages the database. The replication server 101 also records data and a history of operations on the data via the network 300. It has the function of transmitting and receiving the information of.
Reference numeral 102 denotes a log transfer manager having a function of transferring history data of operations performed by the replication server 101 to the database 103 to the replication server 101. Reference numeral 201 denotes a replication server that performs operations such as updating the value of the data stored in the database 203 or 204, and that manages the database. This replication server also manages data and data via the network 300. It has a function to send and receive information such as history.
Reference numeral 202 denotes a log transfer manager having a function of transferring, to the replication server 201, history data of operations performed by the replication server 201 on the database 203. Reference numeral 204 is a database that stores duplicate data of the data stored in the databases 103 and 203. As shown in FIG. 24, one replication server and log transfer manager are assigned to each database. The duplicate server is connected to the network 300 and can communicate with each other.

【0003】データベース103中には、データに対す
る操作の履歴(ログ)が格納されており、ログ転送マネ
ージャ102はそれを読み出すことができる。また、複
製サーバ101はデータベース103中のデータの更新
を行うことができる。また、データベース203中に
は、データに対する操作の履歴(ログ)が格納されてお
り、ログ転送マネージャ202はそれを読み出すことが
できる。また、複製サーバ201はデータベース203
または204中のデータの更新を行うことができる。こ
こでは、データベース103と、データベース203と
に格納されているデータは、データの更新、書込みとい
った操作が行える複製元(原本)のデータが格納されて
おり、データベース204にはデータベース103、お
よび203に格納されたデータを複製したデータが格納
されている。また、データベース103のデータがデー
タベース204に複製されていることは複製サーバ10
1が記憶しており、データベース203のデータがデー
タベース204に複製されていることは複製サーバ20
1が記憶している。
A history (log) of data operations is stored in the database 103, and the log transfer manager 102 can read it. Further, the replication server 101 can update the data in the database 103. Further, the database 203 stores a history (log) of operations on data, and the log transfer manager 202 can read it. Also, the replication server 201 is a database 203.
Alternatively, the data in 204 can be updated. Here, as the data stored in the database 103 and the database 203, the data of the copy source (original) capable of performing operations such as data updating and writing is stored, and the database 204 stores the data in the databases 103 and 203. Stores data that is a duplicate of the stored data. The fact that the data in the database 103 is duplicated in the database 204 means that the duplicate server 10
1 is stored and the data of the database 203 is copied to the database 204.
1 remembers.

【0004】次に、動作について説明する。データベー
スに対して行われたデータ操作の履歴は、そのデータベ
ース中にログファイルとして蓄積される。一連のデータ
操作はトランザクションという単位でまとめらる。分散
型データベースシステムにおいて、トランザクションに
より複数のデータベースシステム内のデータを操作する
ことによりデータの一元性を保証することが必要であ
る。つまり、分散型データシステム内の一方のデータベ
ース中のデータを更新した際、このデータを複製した他
方のデータベースのデータを更新する必要があり、この
複製データの更新の伝播が行われたか行われなかったか
を保証する必要がある。このように、一連のデータ操作
(トランザクション)によりデータベース中のデータを
更新などの処理をさせるには、コミットという操作を行
う。今、データベース103の中の1部または全部の原
本データがデータベース204に複製されていて、かつ
原本データを更新したとする。データベース103中で
は、当該原本データの値を変更するとともに、その変更
に要した操作をログファイルに記録する。その後、この
更新操作をデータベース203および204に反映する
ために、コミット操作が行われ、ログファイルにもコミ
ットしたことが記録される。ログ転送マネージャ102
は、データベース103のログファイルからコミットさ
れたトランザクションのデータ操作を読み出す。今、原
本データに対して更新が行われているので、ログ転送マ
ネージャ102は複製サーバ101に対して、原本デー
タに対して更新が行われたことを通知する。通知を受け
た複製サーバ101は、データベース204のデータの
1部または全部がデータベース201の原本のデータの
複製であることを記憶しているので、データベース20
4に接続されている複製サーバ201に対して、データ
ベース103の原本データに対応するデータベース20
4中の複製データの値を変更するようにコマンドを発行
する。これにより、データベース103中の変更した原
本のデータをデータベース204中の複製データに反映
させることができ、データベース103中の原本データ
と、データベース204中の複製データとの間の一元性
が保たれる。
Next, the operation will be described. The history of data operations performed on the database is stored as a log file in the database. A series of data operations are summarized in units called transactions. In a distributed database system, it is necessary to guarantee data unity by manipulating data in multiple database systems by transactions. In other words, when updating the data in one database in the distributed data system, it is necessary to update the data in the other database that replicated this data, and the update of this replicated data has been propagated or not. It is necessary to guarantee that Thus, in order to perform processing such as updating data in the database by a series of data operations (transactions), an operation called commit is performed. Now, it is assumed that part or all of the original data in the database 103 has been duplicated in the database 204 and the original data has been updated. In the database 103, the value of the original data is changed and the operation required for the change is recorded in the log file. Thereafter, a commit operation is performed to reflect this update operation in the databases 203 and 204, and the commit is recorded in the log file. Log transfer manager 102
Reads the data operation of the committed transaction from the log file of the database 103. Since the original data is being updated now, the log transfer manager 102 notifies the replication server 101 that the original data has been updated. The replication server 101 that has received the notification stores that part or all of the data in the database 204 is a copy of the original data in the database 201.
Database 20 corresponding to the original data of the database 103 for the replication server 201 connected to
A command is issued to change the value of the duplicated data in 4. As a result, the changed original data in the database 103 can be reflected in the duplicated data in the database 204, and the originality data in the database 103 and the duplicated data in the database 204 can be maintained as one. .

【0005】また、特開平5―225027に示された
方法を図25に示す。図25において、503および6
03はデータベースであり、データベース603中のデ
ータの1部にはデータベース503中の必要とされるデ
ータの複製のデータが格納されている。501はデータ
ベース503の中のデータに対し変更、更新などの操作
を行うデータベース管理システムである。また、データ
ベース管理システム501はデータベース601の中の
データを複製したデータに対応するデータベース603
中のデータを更新する機能をもつ。601はデータベー
ス603の中のデータにたいし更新などの操作を行うデ
ータベース管理システムである。400はアプリケーシ
ョン(アプリケーションプログラム)である。データベ
ースには、そのデータベース中のデータに対して操作を
行うことができるデータベース管理システムが接続さ
れ、データベース管理システムは、ネットワーク(図示
せず)を通じて他のデータベース管理システムと通信を
行うことができる。データベース503にはデータ1が
格納されており、データベース管理システム501によ
って操作することができる。また、データベース603
には、データベース503中のデータ1の複製が格納さ
れており、データベース管理システム601によって操
作することができる。データベース603中のデータ1
の複製のデータには、そのデータを変更することができ
る唯一のデータベース管理システムを割り当て、複製デ
ータに対してその情報を持たせる。図25の場合、デー
タベース603中のデータ1の複製には、データ1を書
き換えることができるのはデータベース管理システム5
01であることが記録されている。次に、動作について
説明する。今、アプリケーション400がデータベース
603中のデータ1の複製に対して更新を行ったとす
る。このとき、アプリケーションは、データの更新の処
理が完了するまでその処理を止める。データベース管理
システム601は、データベース603中のデータから
データ1の値を更新することのできるのはデータベース
管理システム501であるという情報を得る。その後、
データベース管理システム503はデータベース管理シ
ステム501に対して、データ1の値を更新するように
要求を出し、データベース管理システム501は、デー
タ1の更新を行った後、データ1の複製の値を更新する
要求を出す。これにより、データベース503中のデー
タ1と、データベース603中のデータ1の複製の間の
一元性が保たれる。分散型データベースにおいて、図2
5を用いて説明したデータの一元性を保つ方法は二相コ
ミット方式を原理として用いている。
FIG. 25 shows the method disclosed in Japanese Patent Laid-Open No. 5-225027. In FIG. 25, 503 and 6
Reference numeral 03 denotes a database, and a copy of required data in the database 503 is stored in a part of the data in the database 603. Reference numeral 501 is a database management system for performing operations such as changing and updating data in the database 503. Also, the database management system 501 uses the database 603 corresponding to the data obtained by copying the data in the database 601.
It has a function to update the data inside. Reference numeral 601 denotes a database management system for performing operations such as updating on the data in the database 603. Reference numeral 400 is an application (application program). The database is connected to a database management system capable of operating the data in the database, and the database management system can communicate with other database management systems via a network (not shown). Data 1 is stored in the database 503 and can be operated by the database management system 501. Also, the database 603
Stores a copy of data 1 in the database 503 and can be operated by the database management system 601. Data 1 in database 603
The duplicate data is assigned the only database management system that can change the data, and the duplicate data has that information. In the case of FIG. 25, in copying the data 1 in the database 603, it is possible to rewrite the data 1 by the database management system 5.
It is recorded as 01. Next, the operation will be described. Now, it is assumed that the application 400 updates the copy of the data 1 in the database 603. At this time, the application stops the process of updating the data until the process is completed. The database management system 601 obtains information from the data in the database 603 that it is the database management system 501 that can update the value of data 1. afterwards,
The database management system 503 requests the database management system 501 to update the value of data 1, and the database management system 501 updates the value of data 1 and then updates the value of the copy of data 1. Make a request. This maintains the unity between the data 1 in the database 503 and the copy of the data 1 in the database 603. In the distributed database,
The method for maintaining the unity of data described using 5 uses the two-phase commit method as a principle.

【0006】[0006]

【発明が解決しようとする課題】従来の技術で述べた図
24を用いて説明した前者の方式では、処理を直列化す
るためにログを取る必要があり、厳密な処理の直列化を
必要としないプラントシステムなどの実時間システムに
対して、効率が悪かった。また、複製データの更新のよ
るログへの書き込みと、ログ転送マネージャによるログ
の読み出し及び複製サーバによる値の伝播が非同期的に
行われるので、データを書き換えるタイミングによって
はデータ内容に不一致が生じる恐れがあるため、原本し
か書き換えを許さないなどの制限を設ける必要があっ
た。図25を用いて説明した二相コミットを基本とする
後者の方式では、コミット時に複製データが存在する全
てのデータベースに対する更新伝播がアプリケーション
400と同期的に行われるため、ネットワークの遅延に
よる応答性が問題となり、また、障害時には一元性の維
持を諦めるか、更新を破棄するしかなかった。本発明は
上記の問題を解決するためになされたもので、複製デー
タへの更新に対する不一致の発生を回避し、またネット
ワークなどの障害時にも処理が続行でき、障害が復旧し
次第、複製データの一元性が確保されることが可能とな
るようなデータべース管理装置、およびデータベース管
理方法を提供することを目的としている。
In the former method described with reference to FIG. 24 described in the prior art, it is necessary to take a log in order to serialize the processing, which requires strict serialization of processing. Not efficient for real-time systems such as plant systems. In addition, since writing to the log by updating the replicated data, reading the log by the log transfer manager, and propagating the value by the replica server are performed asynchronously, there is a risk of inconsistencies in the data contents depending on the timing of rewriting the data. Therefore, it was necessary to set restrictions such as allowing only the original to be rewritten. In the latter method, which is based on the two-phase commit described with reference to FIG. 25, update propagation to all databases in which replicated data exists at the time of commit is performed synchronously with the application 400, so that responsiveness due to network delay is It became a problem, and at the time of failure, there was no choice but to give up maintaining the unity or to discard the update. The present invention has been made in order to solve the above problems, avoids the occurrence of inconsistency in updating replicated data, and allows processing to continue even in the event of a network failure, etc. An object of the present invention is to provide a database management device and a database management method that can ensure unity.

【0007】[0007]

【課題を解決するための手段】請求項1に記載のデータ
管理装置は、複数のデータベース、および前記複数のデ
ータベースに対応した複数のデータベースに対応した複
数のデータベース管理システムを備えた分散型データベ
ースにおいて、第一のデータベースを管理する第一のデ
ータベース管理システムと、第二のデータベースを管理
する第二のデータベース管理システムと、前記第一のデ
ータベース管理システム、または前記第二のデータベー
ス管理システムのいずれか一方のデータベース管理シス
テムが他方のデータベース管理システムに対し、前記他
方のデータベース管理システムが管理するデータベース
内に存在するデータを要求したとき、前記他方のデータ
ベース管理システムが管理するデータベース内に存在す
るデータに関する情報を取得し、前記取得したデータと
前記データの転送先のデータとに関する情報を記憶し、
前記取得したデータを要求したデータベース管理システ
ムへ前記取得したデータを前記転送先のデータに前記取
得したデータの格納を指令する機能を有する複製管理シ
ステムとを備えたものである。
A data management apparatus according to claim 1 is a distributed database comprising a plurality of databases and a plurality of database management systems corresponding to the plurality of databases corresponding to the plurality of databases. A first database management system for managing a first database, a second database management system for managing a second database, the first database management system, or the second database management system When one database management system requests the other database management system for data existing in the database managed by the other database management system, the present invention relates to data existing in the database managed by the other database management system. Gets the broadcast, store information relating to the data transfer destination of the data and the acquired data,
And a replication management system having a function of instructing the database management system that has requested the acquired data to store the acquired data in the transfer destination data.

【0008】請求項2に記載のデータ管理装置は、複数
のデータベース、および前記複数のデータベースに対応
した複数のデータベース管理システムを備えた分散型デ
ータベースにおいて、第一のデータベースを管理する第
一のデータベース管理システムと、第二のデータベース
を管理する第二のデータベース管理システムと、前記第
一のデータベース管理システム、または前記第二のデー
タベース管理システムのいずれか一方のデータベース管
理システムが管理するデータベース内に存在するデータ
を更新したとき、前記データの複製のデータが存在する
かどうかを調べ、該複製のデータが存在する場合、前記
複製のデータが存在するデータベースを管理するデータ
ベース管理システムへ前記複製のデータの更新を指令す
る機能を有する複製管理システムとを備えたものであ
る。
A data management apparatus according to a second aspect is a distributed database including a plurality of databases and a plurality of database management systems corresponding to the plurality of databases, the first database managing the first database. Management system, a second database management system that manages a second database, and a database managed by one of the first database management system and the second database management system. When the data to be updated is updated, it is checked whether or not the duplicated data of the data exists. A device with the function of instructing update It is obtained and a management system.

【0009】請求項3に記載のデータ管理装置は、複数
のデータベース、および前記複数のデータベースに対応
した複数のデータベース管理システムを備えた分散型デ
ータベースにおいて、第一のデータベースを管理する第
一のデータベース管理システムと、第二のデータベース
を管理する第二のデータベース管理システムと、前記第
一のデータベース管理システム、または前記第二のデー
タベース管理システムのいずれか一方のデータベース管
理システムが管理するデータベース内に存在するデータ
を更新したとき、前記データの原本のデータが存在する
かどうかを調べ、該原本のデータが存在する場合、前記
原本のデータが存在するデータベースを管理するデータ
ベース管理システムへ前記原本データの更新を指令する
機能を有する複製管理システムとを備えたものである。
A data management apparatus according to a third aspect is a distributed database including a plurality of databases and a plurality of database management systems corresponding to the plurality of databases. The first database manages the first database. Management system, a second database management system that manages a second database, and a database managed by one of the first database management system and the second database management system. When updating the data, it is checked whether or not the original data of the data exists. If the original data exists, the original data is updated to a database management system that manages a database in which the original data exists. With the function of commanding It is that a physical system.

【0010】請求項4に記載のデータ管理装置におい
て、前記複製管理システムは、データの格納の指令、ま
たはデータの更新の指令が前記データベース管理システ
ムへ伝わらなかった場合、一定時間経過後再び前記デー
タ格納の指令、または前記データ更新の指令を行う機能
を備えたものである。
[0010] In the data management apparatus according to the fourth aspect, the replication management system, if a command for storing data or a command for updating data is not transmitted to the database management system, the data is re-established after a certain period of time. It has a function of issuing a storage command or a data update command.

【0011】請求項5に記載のデータ管理装置におい
て、前記複製管理システムは、情報の送信および受信を
管理する通信管理部と、原本のデータと複製のデータと
の情報を格納する複製管理表と、前記データベース管理
システムからデータの複製の要求があったとき、前記原
本のデータと前記複製のデータとの関係の情報を複製管
理表に格納し、前記原本のデータを複製の要求があった
データベース管理システムへ転送する指令をする複製作
成部と、前記データベース管理システムからデータの更
新を報告があったとき前記データの原本のデータ、また
は前記データの複製のデータがあるかどうかを調べ、前
記データの原本のデータ、または前記データの複製のデ
ータがある場合、前記原本のデータ、または前記複製の
データを格納するデータベースを管理するデータベース
管理システムへデータ更新の指令をする更新伝播部とを
備えたものである。
In the data management apparatus according to claim 5, the replication management system includes a communication management unit that manages transmission and reception of information, and a replication management table that stores information on original data and duplicated data. A database that stores a request for copying data from the database management system, stores information on the relationship between the original data and the copied data in a copy management table, and makes a copy request for the original data. A duplication creating unit for instructing transfer to the management system, and when there is a report of data update from the database management system, it is checked whether there is original data of the data or duplication data of the data, and the data If there is original data or a duplicate of the data, the Database is obtained by a update propagation unit for the command of the data update to a database management system for managing.

【0012】請求項6に記載のデータ管理装置におい
て、前記複製管理システムは、データまたはデータ更新
指令に関する情報が前記第一のデータベース管理システ
ム、または前記第二のデータベース管理システムに転送
できかった場合、転送できなかった前記データまたは前
記データ更新指令に関する情報を格納する更新未伝播管
理表と、前記更新未伝播管理表に情報が格納されている
場合、データを再転送するように前記複製作成部、また
は前記更新伝播部に指示する更新未伝播管理部と、一定
時間ごとに前記更新未伝播管理部を起動させるタイマ管
理部とを備えたものである。
[0012] In the data management apparatus according to claim 6, when the replication management system cannot transfer data or information related to a data update command to the first database management system or the second database management system. An update non-propagation management table that stores information about the data that could not be transferred or the data update command; Alternatively, an update non-propagation management unit for instructing the update propagation unit and a timer management unit for activating the update non-propagation management unit at regular time intervals are provided.

【0013】請求項7に記載のデータ管理装置におい
て、前記データベース管理システムは、前記データベー
ス管理システムが管理するデータベース内の異なる2つ
のデータに対応関係がある場合、前記異なる2つのデー
タのいずれか1つを更新したとき、他方のデータを前記
更新したデータと前記対応関係を満足するように更新す
る機能を備えたものである。
In the data management device according to claim 7, when the database management system has a correspondence relationship between two different data in the database managed by the database management system, one of the two different data is stored. When one is updated, the other data is updated so as to satisfy the correspondence relationship with the updated data.

【0014】請求項8に記載のデータ管理方法は、複数
のデータベース、および前記複数のデータベースに対応
した複数のデータベース管理システムを備えた分散型デ
ータベースにおいて、第一のデータベースを管理する第
一のデータベース管理システム、または第二のデータベ
ースを管理する第二のデータベース管理システムのいず
れか一方のデータベース管理システムが他方のデータベ
ース管理システムに対し、前記他方のデータベース管理
システムが管理するデータベース内に存在するデータを
要求したとき、前記他方のデータベース管理システムが
管理するデータベース内に存在するデータに関する情報
を取得し、前記取得したデータと前記データの転送先の
データとに関する情報を記憶し、前記取得したデータを
要求したデータベース管理システムへ前記取得したデー
タを前記転送先のデータに前記取得したデータの格納を
指令するものである。
A data management method according to claim 8 is a distributed database comprising a plurality of databases and a plurality of database management systems corresponding to the plurality of databases, the first database managing the first database. Either the management system or the second database management system that manages the second database, one database management system sends the data existing in the database managed by the other database management system to the other database management system. When requested, the information related to the data existing in the database managed by the other database management system is acquired, the information related to the acquired data and the data of the transfer destination of the data is stored, and the acquired data is requested. Database The scan was the acquisition to the management system data is for commanding the storage of data in the acquired the data transfer destination.

【0015】請求項9に記載のデータ管理方法は、複数
のデータベース、および前記複数のデータベースに対応
した複数のデータベース管理システムを備えた分散型デ
ータベースにおいて、第一のデータベースを管理する第
一のデータベース管理システム、または第二のデータベ
ースを管理する第二のデータベース管理システムのいず
れか一方のデータベース管理システムが管理するデータ
ベース内に存在するデータを更新したとき、前記データ
の複製のデータが存在するかどうかを調べ、該複製のデ
ータが存在する場合、前記複製のデータが存在するデー
タベースを管理するデータベース管理システムへ前記複
製のデータの更新を指令するものである。
A data management method according to a ninth aspect is a distributed database including a plurality of databases and a plurality of database management systems corresponding to the plurality of databases, the first database managing the first database. Whether data existing in the database managed by either the management system or the second database management system that manages the second database is updated, and whether or not there is duplicated data of the data When the duplicated data is present, the database management system that manages the database in which the duplicated data is present is instructed to update the duplicated data.

【0016】請求項10に記載のデータ管理方法は、複
数のデータベース、および前記複数のデータベースに対
応した複数のデータベース管理システムを備えた分散型
データベースにおいて、第一のデータベースを管理する
第一のデータベース管理システム、または第二のデータ
ベースを管理する第二のデータベース管理システムのい
ずれか一方のデータベース管理システムが管理するデー
タベース内に存在するデータを更新したとき、前記デー
タの原本のデータが存在するかどうかを調べ、該原本の
データが存在する場合、前記原本のデータが存在するデ
ータベースを管理するデータベース管理システムへ前記
原本のデータの更新を指令するものである。
A data management method according to a tenth aspect of the present invention is a distributed database comprising a plurality of databases and a plurality of database management systems corresponding to the plurality of databases, the first database managing the first database. Whether the original data of the data exists when the data existing in the database managed by either the management system or the second database management system that manages the second database is updated When the data of the original exists, the database management system that manages the database in which the data of the original exists is instructed to update the data of the original.

【0017】請求項11に記載のデータ管理方法は、デ
ータ、またはデータ更新指令に関する情報が前記データ
ベース管理システム、または複製管理システムに転送で
きなかった場合、転送できなかった前記データ、または
前記データ更新指令に関する情報を格納し、一定時間経
過後、転送できなかった前記データ、または前記データ
更新指令を前記データベース管理システムへ転送するも
のである。
In the data management method according to the eleventh aspect, when the data or the information about the data update command cannot be transferred to the database management system or the replication management system, the data that could not be transferred or the data update. Information about a command is stored, and after a certain period of time, the data that could not be transferred or the data update command is transferred to the database management system.

【0018】請求項12に記載のデータ管理方法は、デ
ータベース管理システムが管理するデータベース内の異
なる2つのデータに対応関係がある場合、前記異なる2
つのデータのいずれか1つを更新したとき、他方のデー
タを前記更新したデータと前記対応関係を満足するよう
に更新するものである。
According to a twelfth aspect of the data management method, when two different data in the database managed by the database management system have a correspondence relationship, the two different data are stored.
When any one of the two data is updated, the other data is updated so as to satisfy the correspondence relationship with the updated data.

【0019】請求項13に記載のデータ管理方法は、デ
ータベース管理システムが管理するデータベース内の異
なる2つのデータに対応関係がある場合、前記異なる2
つのデータのいずれか1つを更新したとき、他方のデー
タを前記更新したデータと前記対応関係を満足するよう
に更新し、前記他方のデータの原本のデータ、または前
記他方のデータの複製のデータを管理するデータベース
管理システムへ前記原本のデータ、または前記複製のデ
ータの更新を指令するものである。
According to a thirteenth aspect of the data management method, when two different data in the database managed by the database management system have a corresponding relationship, the two different data are stored.
When any one of the two data is updated, the other data is updated so as to satisfy the correspondence relationship with the updated data, and the original data of the other data or the duplicated data of the other data. The database management system for managing the data is instructed to update the original data or the duplicated data.

【0020】[0020]

【作用】請求項1に記載のデータ管理装置は、複数のデ
ータベース、および前記複数のデータベースに対応した
複数のデータベース管理システムを備えた分散型データ
ベースにおいて、第一のデータベースを管理する第一の
データベース管理システムと、第二のデータベースを管
理する第二のデータベース管理システムと、前記第一の
データベース管理システム、または前記第二のデータベ
ース管理システムのいずれか一方のデータベース管理シ
ステムが他方のデータベース管理システムに対し、前記
他方のデータベース管理システムが管理するデータベー
ス内に存在するデータを要求したとき、前記他方のデー
タベース管理システムが管理するデータベース内に存在
するデータに関する情報を取得し、前記取得したデータ
と前記データの転送先のデータとに関する情報を記憶
し、前記取得したデータを要求したデータベース管理シ
ステムへ前記取得したデータを前記転送先のデータに前
記取得したデータの格納を指令する機能を有する複製管
理システムとを備えたことによりデータの一元性を確保
することが可能となる。
According to a first aspect of the present invention, there is provided a data management device comprising: a first database for managing a first database in a distributed database including a plurality of databases and a plurality of database management systems corresponding to the plurality of databases. A management system, a second database management system that manages a second database, and one of the first database management system and the second database management system is replaced by the other database management system. On the other hand, when requesting data existing in the database managed by the other database management system, information on the data existing in the database managed by the other database management system is acquired, and the acquired data and the data are acquired. Turn of And a replication management system having a function of storing information about the previous data and instructing a database management system that has requested the acquired data to store the acquired data in the data of the transfer destination. This makes it possible to secure the unity of data.

【0021】請求項2に記載のデータ管理装置は、複数
のデータベース、および前記複数のデータベースに対応
した複数のデータベース管理システムを備えた分散型デ
ータベースにおいて、第一のデータベースを管理する第
一のデータベース管理システムと、第二のデータベース
を管理する第二のデータベース管理システムと、前記第
一のデータベース管理システム、または前記第二のデー
タベース管理システムのいずれか一方のデータベース管
理システムが管理するデータベース内に存在するデータ
を更新したとき、前記データの複製のデータが存在する
かどうかを調べ、該複製のデータが存在する場合、前記
複製のデータが存在するデータベースを管理するデータ
ベース管理システムへ前記複製のデータの更新を指令す
る機能を有する複製管理システムとを備えたことにより
アプリケーションの処理を停止する時間が短縮され、か
つデータの一元性を確保することが可能となる。
A data management apparatus according to a second aspect is a distributed database including a plurality of databases and a plurality of database management systems corresponding to the plurality of databases, the first database managing the first database. Management system, a second database management system that manages a second database, and a database managed by one of the first database management system and the second database management system. When the data to be updated is updated, it is checked whether or not the duplicated data of the data exists. A device with the function of instructing update It reduces the time to stop the processing of the application by providing a management system, and it is possible to ensure centralized of data.

【0022】請求項3に記載のデータ管理装置は、複数
のデータベース、および前記複数のデータベースに対応
した複数のデータベース管理システムを備えた分散型デ
ータベースにおいて、第一のデータベースを管理する第
一のデータベース管理システムと、第二のデータベース
を管理する第二のデータベース管理システムと、前記第
一のデータベース管理システム、または前記第二のデー
タベース管理システムのいずれか一方のデータベース管
理システムが管理するデータベース内に存在するデータ
を更新したとき、前記データの原本のデータが存在する
かどうかを調べ、該原本のデータが存在する場合、前記
原本のデータが存在するデータベースを管理するデータ
ベース管理システムへ前記原本データの更新を指令する
機能を有する複製管理システムとを備えたことによりア
プリケーションの処理を停止する時間が短縮され、かつ
データの一元性を確保することが可能となる。
A data management apparatus according to a third aspect is a distributed database including a plurality of databases and a plurality of database management systems corresponding to the plurality of databases, the first database managing the first database. Management system, a second database management system that manages a second database, and a database managed by one of the first database management system and the second database management system. When updating the data, it is checked whether or not the original data of the data exists. If the original data exists, the original data is updated to a database management system that manages a database in which the original data exists. With the function of commanding Time to stop the processing of the application by providing a physical system can be shortened, and it is possible to ensure centralized of data.

【0023】請求項4に記載のデータ管理装置におい
て、前記複製管理システムは、データの格納の指令、ま
たはデータの更新の指令が前記データベース管理システ
ムへ伝わらなかった場合、一定時間経過後再び前記デー
タ格納の指令、または前記データ更新の指令を行う機能
を備えたことによりネットワーク(通信経路)の障害に
よる情報の未伝播を回避することが可能となる。
In the data management apparatus according to the present invention, the replication management system, if a command to store data or a command to update data is not transmitted to the database management system, the data is re-established after a certain period of time. By having a function of issuing a storage command or a data update command, it is possible to avoid unpropagation of information due to a network (communication path) failure.

【0024】請求項5に記載のデータ管理装置におい
て、前記複製管理システムは、情報の送信および受信を
管理する通信管理部と、原本のデータと複製のデータと
の情報を格納する複製管理表と、前記データベース管理
システムからデータの複製の要求があったとき、前記原
本のデータと前記複製のデータとの関係の情報を複製管
理表に格納し、前記原本のデータを複製の要求があった
データベース管理システムへ転送する指令をする複製作
成部と、前記データベース管理システムからデータの更
新を報告があったとき前記データの原本のデータ、また
は前記データの複製のデータがあるかどうかを調べ、前
記データの原本のデータ、または前記データの複製のデ
ータがある場合、前記原本のデータ、または前記複製の
データを格納するデータベースを管理するデータベース
管理システムへデータ更新の指令をする更新伝播部とを
備えたことによりデータの一元性を確保することが可能
となる。
In the data management device according to claim 5, the replication management system includes a communication management unit that manages transmission and reception of information, and a replication management table that stores information on original data and duplicated data. A database that stores a request for copying data from the database management system, stores information on the relationship between the original data and the copied data in a copy management table, and makes a copy request for the original data. A duplication creating unit for instructing transfer to the management system, and when there is a report of data update from the database management system, it is checked whether there is original data of the data or duplication data of the data, and the data If there is original data or a duplicate of the data, the Database can be secured centrally of data by providing an update propagation unit for the command of the data update to a database management system for managing.

【0025】請求項6に記載のデータ管理装置におい
て、前記複製管理システムは、データまたはデータ更新
指令に関する情報が前記第一のデータベース管理システ
ム、または前記第二のデータベース管理システムに転送
できかった場合、転送できなかった前記データまたは前
記データ更新指令に関する情報を格納する更新未伝播管
理表と、前記更新未伝播管理表に情報が格納されている
場合、データを再転送するように前記複製作成部、また
は前記更新伝播部に指示する更新未伝播管理部と、一定
時間ごとに前記更新未伝播管理部を起動させるタイマ管
理部とを備えたことによりネットワーク(通信経路)の
障害による情報の未伝播を回避することが可能となる。
[0025] In the data management device according to claim 6, when the replication management system cannot transfer data or information related to a data update command to the first database management system or the second database management system. An update non-propagation management table that stores information about the data that could not be transferred or the data update command, and, if information is stored in the update non-propagation management table, the copy creation unit that re-transfers the data , Or the non-propagation of information due to a failure of a network (communication path) by providing an update non-propagation management unit that instructs the update propagation unit and a timer management unit that activates the update non-propagation management unit at regular time intervals. Can be avoided.

【0026】請求項7に記載のデータ管理装置におい
て、前記データベース管理システムは、前記データベー
ス管理システムが管理するデータベース内の異なる2つ
のデータに対応関係がある場合、前記異なる2つのデー
タのいずれか1つを更新したとき、他方のデータを前記
更新したデータと前記対応関係を満足するように更新す
る機能を備えたことにより一貫性制約のある異なる2つ
のデータのいずれか一方を更新した場合、他方のデータ
を一貫性制約を満足するように更新することが可能とな
る。
[0026] In the data management apparatus according to claim 7, when the database management system has a correspondence relationship between two different data in the database managed by the database management system, one of the two different data is stored. When one of two different data having a consistency constraint is updated by providing a function of updating the other data so as to satisfy the correspondence relationship with the updated data when the other data is updated, the other Data can be updated to satisfy the consistency constraint.

【0027】請求項8に記載のデータ管理方法は、複数
のデータベース、および前記複数のデータベースに対応
した複数のデータベース管理システムを備えた分散型デ
ータベースにおいて、第一のデータベースを管理する第
一のデータベース管理システム、または第二のデータベ
ースを管理する第二のデータベース管理システムのいず
れか一方のデータベース管理システムが他方のデータベ
ース管理システムに対し、前記他方のデータベース管理
システムが管理するデータベース内に存在するデータを
要求したとき、前記他方のデータベース管理システムが
管理するデータベース内に存在するデータに関する情報
を取得し、前記取得したデータと前記データの転送先の
データとに関する情報を記憶し、前記取得したデータを
要求したデータベース管理システムへ前記取得したデー
タを前記転送先のデータに前記取得したデータの格納を
指令することによりデータの一元性を確保することが可
能となる。
The data management method according to claim 8 is a distributed database comprising a plurality of databases and a plurality of database management systems corresponding to the plurality of databases, the first database managing the first database. Either the management system or the second database management system that manages the second database, one database management system sends the data existing in the database managed by the other database management system to the other database management system. When requested, the information related to the data existing in the database managed by the other database management system is acquired, the information related to the acquired data and the data of the transfer destination of the data is stored, and the acquired data is requested. Database The scan was the acquisition to the management system data can be secured centrally of data by commanding the storage of data in the acquired the data transfer destination.

【0028】請求項9に記載のデータ管理方法は、複数
のデータベース、および前記複数のデータベースに対応
した複数のデータベース管理システムを備えた分散型デ
ータベースにおいて、第一のデータベースを管理する第
一のデータベース管理システム、または第二のデータベ
ースを管理する第二のデータベース管理システムのいず
れか一方のデータベース管理システムが管理するデータ
ベース内に存在するデータを更新したとき、前記データ
の複製のデータが存在するかどうかを調べ、該複製のデ
ータが存在する場合、前記複製のデータが存在するデー
タベースを管理するデータベース管理システムへ前記複
製のデータの更新を指令することによりアプリケーショ
ンの処理を停止する時間が短縮され、かつデータの一元
性を確保することが可能となる。
A data management method according to a ninth aspect is a distributed database including a plurality of databases and a plurality of database management systems corresponding to the plurality of databases, the first database managing the first database. Whether data existing in the database managed by either the management system or the second database management system that manages the second database is updated, and whether or not there is duplicated data of the data And if the duplicated data exists, the time for stopping the processing of the application is shortened by instructing the database management system that manages the database in which the duplicated data exists to update the duplicated data, and Ensuring data integrity It can become.

【0029】請求項10に記載のデータ管理方法は、複
数のデータベース、および前記複数のデータベースに対
応した複数のデータベース管理システムを備えた分散型
データベースにおいて、第一のデータベースを管理する
第一のデータベース管理システム、または第二のデータ
ベースを管理する第二のデータベース管理システムのい
ずれか一方のデータベース管理システムが管理するデー
タベース内に存在するデータを更新したとき、前記デー
タの原本のデータが存在するかどうかを調べ、該原本の
データが存在する場合、前記原本のデータが存在するデ
ータベースを管理するデータベース管理システムへ前記
原本のデータの更新を指令することによりアプリケーシ
ョンの処理を停止する時間が短縮され、かつデータの一
元性を確保することが可能となる。
A data management method according to a tenth aspect of the present invention is a distributed database including a plurality of databases and a plurality of database management systems corresponding to the plurality of databases, the first database managing the first database. Whether the original data of the data exists when the data existing in the database managed by either the management system or the second database management system that manages the second database is updated If the data of the original exists, the time to stop the processing of the application is shortened by instructing the database management system that manages the database in which the data of the original exists to update the data of the original, and To ensure data unity It is possible.

【0030】請求項11に記載のデータ管理方法は、デ
ータ、またはデータ更新指令に関する情報が前記データ
ベース管理システム、または複製管理システムに転送で
きなかった場合、転送できなかった前記データ、または
前記データ更新指令に関する情報を格納し、一定時間経
過後、転送できなかった前記データ、または前記データ
更新指令を前記データベース管理システムへ転送するこ
とによりネットワーク(通信経路)の障害による情報の
未伝播を回避することが可能となる。
In the data management method according to the eleventh aspect, when the data or the information about the data update command cannot be transferred to the database management system or the replication management system, the data that cannot be transferred or the data update. Information related to a command is stored, and after a certain period of time, the above-mentioned data that could not be transferred or the above-mentioned data update command is transferred to the above-mentioned database management system to avoid the non-propagation of the information due to the failure of the network (communication path). Is possible.

【0031】請求項12に記載のデータ管理方法は、デ
ータベース管理システムが管理するデータベース内の異
なる2つのデータに対応関係がある場合、前記異なる2
つのデータのいずれか1つを更新したとき、他方のデー
タを前記更新したデータと前記対応関係を満足するよう
に更新することにより一貫性制約のある異なる2つのデ
ータのいずれか一方を更新した場合、他方のデータを一
貫性制約を満足するように更新することが可能となる。
According to a twelfth aspect of the data management method, when two different data in the database managed by the database management system have a corresponding relationship, the two different data are stored.
When any one of the two data is updated, and the other data is updated so as to satisfy the correspondence relationship between the updated data and the updated data, and either one of the two different data having a consistency constraint is updated. , The other data can be updated to satisfy the consistency constraint.

【0032】請求項13に記載のデータ管理方法は、デ
ータベース管理システムが管理するデータベース内の異
なる2つのデータに対応関係がある場合、前記異なる2
つのデータのいずれか1つを更新したとき、他方のデー
タを前記更新したデータと前記対応関係を満足するよう
に更新し、前記他方のデータの原本のデータ、または前
記他方のデータの複製のデータを管理するデータベース
管理システムへ前記原本のデータ、または前記複製のデ
ータの更新を指令することによりデータの一元性と一貫
性制約とを満足するように更新することが可能となる。
According to a thirteenth aspect of the data management method, when two different data in the database managed by the database management system have a corresponding relationship, the two different data are stored.
When any one of the two data is updated, the other data is updated so as to satisfy the correspondence relationship with the updated data, and the original data of the other data or the duplicated data of the other data. It is possible to update the original data or the duplicated data by instructing the database management system for managing the data so as to satisfy the unity and consistency constraint of the data.

【0033】[0033]

【実施例】【Example】

実施例1.本発明のデータ管理方式を実現するためのデ
ータ管理装置の一例を図1に示す。図1において、10
00は複製、変更または更新したデータを管理し、かつ
データの一元性を保持する機能をもつ複製管理システム
であり、この複製管理システム1000は、内部に複製
管理表、複製作成部、更新伝播部、通信管理部を有す
る。1001はデータベースのどのデータが、どのデー
タベースへどのデータとして複製されたかを管理するた
めの複製管理表である。1002はデータの複製を要求
する信号をうけとった後に複製元(以下原本ということ
にする)のデータと複製のデータとの情報を複製管理表
1001に格納した後、複製要求を行ったデータベース
管理システムへデータを送信する指令を出す複製作成部
である。1003は原本のデータ、または複製のデータ
の更新を報告する信号を受け取った後、複製のデータ、
または原本のデータを格納するデータベースを管理する
データベース管理システムに複製のデータ、または原本
のデータを更新をするように指令を行う更新伝播部であ
る。1004はデータベース管理システムからデータの
複製を報告する信号、またはデータの更新を報告する信
号を受け取り、これを複製作成部1002、または更新
伝播部1003にこの信号を転送する通信管理部であ
る。また、通信管理部1004は、複製作成部1002
の指令により、データの複製の要求があったデータベー
ス管理システムへデータを転送する機能をもつ。また、
通信管理部1004は更新伝播部1003からの指令に
より、データの更新の要求をおこなったデータベース管
理システムが管理するデータベース内の該当するデータ
の複製または原本のデータを管理するデータベース管理
システムへデータの更新の指令を転送する機能をもつ。
1005および1006はデータベース内のデータの複
製、およびデータの更新するなどのデータベース内のデ
ータを管理する機能、並びに複製または更新したデータ
を複製管理システムに転送する機能などを有するをデー
タベース管理システムであり、このデータベース管理シ
ステムは、他のデータベース管理システムが管理するデ
ータベース内に格納されているデータに関する情報を持
っている。1007はデータベース管理システム100
5が管理するデータベース、1008はデータベース管
理システム1006が管理するデータベースである。図
1においてデータベース管理システムは2個存在する
が、2個に限定する必要はなく、一般にn(nは自然
数)個のデータベース管理システムが存在してもよい。
Example 1. An example of a data management device for realizing the data management system of the present invention is shown in FIG. In FIG. 1, 10
Reference numeral 00 denotes a replication management system having a function of managing replicated, changed or updated data and maintaining the integrity of the data. The replication management system 1000 internally includes a replication management table, a replication creation unit, and an update propagation unit. , Has a communication management unit. Reference numeral 1001 is a replication management table for managing which data in the database is replicated as which data in which database. Reference numeral 1002 denotes a database management system that has received a signal for requesting data duplication, stores information of data of a duplication source (hereinafter referred to as an original) and duplication data in a duplication management table 1001, and then makes a duplication request. It is a copy creation unit that issues a command to send data to. 1003 is a copy of the original data or a copy of the data after receiving a signal reporting an update of the copy data.
Alternatively, it is an update propagation unit that instructs a database management system that manages a database that stores original data to update duplicated data or original data. A communication management unit 1004 receives a signal for reporting data replication or a signal for reporting data update from the database management system and transfers the signal to the replication creating unit 1002 or the update propagation unit 1003. Also, the communication management unit 1004 has a copy creation unit 1002.
Command to transfer the data to the database management system that requested the data to be copied. Also,
In response to a command from the update propagation unit 1003, the communication management unit 1004 updates the data to the database management system that manages the copy of the corresponding data or the original data in the database managed by the database management system that issued the data update request. It has a function to transfer the command of.
Reference numerals 1005 and 1006 denote database management systems having functions of managing data in the database such as copying of data in the database and updating of the data, and functions of transferring the copied or updated data to the replication management system. , This database management system has information about the data stored in databases managed by other database management systems. 1007 is a database management system 100
5 is a database managed by the database management system 1006. Although there are two database management systems in FIG. 1, the number of database management systems is not limited to two, and generally n (n is a natural number) database management systems may exist.

【0034】次に図1における装置の動作を説明する。
アプリケーション(図示せず)からのデータの更新要
求、またはデータの複製の要求によりデータベース管理
システム1005または1006はデータの更新、また
はデータの複製を要求する信号を複製管理システム10
00へ転送する。複製管理システム1000において、
転送した信号は、通信管理部1004が受けとり、受け
取ったことを確認するための信号をデータベース管理シ
ステム1005または1006に転送する。また、通信
管理部1004は、データの複製を要求する信号を受け
取ったとき、複製作成部1002へ、この信号を送る。
また、通信管理部1004は、データの更新を報告する
信号を受け取ったとき、更新伝播部1003へ、この信
号を送る。複製作成部1002では受け取ったデータの
複製を要求する信号により、原本のデータを格納するデ
ータベースを管理するデータベース管理システムへ原本
のデータの値に関する情報の転送を要求することにより
原本のデータの値に関する情報を取得し、複製管理表1
001に原本のデータと、複製のデータとの情報を書き
込んだ後、複製のデータの要求があったデータベース管
理システムへ原本のデータを転送する指令を通信管理部
1004に出す。更新伝播部1003では、通信管理部
1004が受け取ったデータの更新を要求する信号を受
け取り、複製管理表1001を参照することによりデー
タの更新を要求したデータベース管理システムが管理す
るデータベース内のデータと関係のあるデータの更新を
行う。これを行うためまず更新伝播部1003では、複
製管理表1001を参照してデータの更新の要求を行っ
たデータベース管理システムが管理するデータと関係が
あるデータを調べる。つぎに、更新伝播部1003は更
新要求を行ったデータと関係のあるデータを管理してい
るデータベース管理システムに該当するデータを更新す
る指令を通信管理部1004に出す。通信管理部100
4は、複製作成部1002、または更新伝播部1003
からの指令を該当するデータベース管理システムへ転送
する。一方、指令を受けた該当するデータベース管理シ
ステムは、データの処理に関する指令を受けたことを確
認するための信号を複製作成部1002、または更新伝
播部1003に出した後、指令を実行する。以上のよう
な装置により、データベース管理システムがデータの複
製を要求したときには、複製管理システム1000は該
当するデータの格納場所と、データの値とを取得し、複
製データと原本データに関する情報を複製管理表100
1に格納した後、原本データの値の要求を行ったデータ
ベース管理システムに原本のデータの値を送ることが可
能となる。またデータ管理システムが原本データ、また
は複製データの値を更新したとき、複製管理システム1
000は、複製管理表1001により更新したデータと
関係のあるデータを調べ該当するデータの値を更新する
ことが可能となる。これによりデータの一元性を保つこ
とが可能となる。
Next, the operation of the apparatus shown in FIG. 1 will be described.
In response to a data update request from an application (not shown) or a data replication request, the database management system 1005 or 1006 sends a signal requesting data update or data replication to the replication management system 10.
Transfer to 00. In the replication management system 1000,
The transferred signal is received by the communication management unit 1004, and a signal for confirming the reception is transferred to the database management system 1005 or 1006. Further, when the communication management unit 1004 receives a signal requesting the duplication of data, the communication management unit 1004 sends this signal to the duplication creation unit 1002.
Further, when the communication management unit 1004 receives the signal reporting the data update, the communication management unit 1004 sends this signal to the update propagation unit 1003. In response to a signal requesting duplication of the received data, the duplication creating unit 1002 requests transfer of information regarding the value of the original data to a database management system that manages a database that stores the data of the original, and thereby the value of the original data Obtain information and copy management table 1
After writing the information of the original data and the copy data in 001, the communication management unit 1004 is instructed to transfer the original data to the database management system that requested the copy data. The update propagation unit 1003 receives the signal requesting the update of the data received by the communication management unit 1004, refers to the replication management table 1001, and relates to the data in the database managed by the database management system requesting the data update. Update data with In order to do this, the update propagation unit 1003 first refers to the replication management table 1001 to check the data related to the data managed by the database management system that issued the data update request. Next, the update propagation unit 1003 issues a command to the communication management unit 1004 to update the data corresponding to the database management system that manages the data related to the data for which the update request is made. Communication management unit 100
4 is a copy creation unit 1002 or an update propagation unit 1003.
Directives from to the appropriate database management system. On the other hand, the corresponding database management system that has received the command issues a signal for confirming that the command regarding the processing of the data has been received to the copy creation unit 1002 or the update propagation unit 1003, and then executes the command. When the database management system requests the data replication by the above-mentioned devices, the replication management system 1000 acquires the storage location of the corresponding data and the value of the data, and manages the replication data and the information about the original data. Table 100
After being stored in 1, it becomes possible to send the value of the original data to the database management system that requested the value of the original data. When the data management system updates the original data value or the copy data value, the copy management system 1
000 can check the data related to the data updated by the replication management table 1001 and update the value of the corresponding data. This makes it possible to maintain the unity of data.

【0035】次に、図1のデータ管理装置をネットワー
クを用いることにより構成される分散型計算機システム
に組み込んだ例を図2に示す。図2において、1009
および1010はアプリケーションであり、アプリケー
ション1009はデータベース管理システム1005に
データの複製を要求すること、およびデータベース10
07中に格納されているデータの更新を要求することが
可能である。アプリケーション1010はデータベース
管理システム1006にデータの複製を要求すること、
およびデータベース1008中に格納されているデータ
の更新を要求することが可能である。1020は複製管
理システム1000を組み込んだ計算機であり、計算機
1020に複製管理システム1000を組み込むことに
より分散型計算機システム内のデータの複製を管理する
ことが可能となる。1030はアプリケーション100
9およびデータベース管理システム1005を組み込ん
だ計算機である。1040はアプリケーション1010
およびデータベース管理システム1006を組み込んだ
計算機である。1050はデータベース1007を組み
込んだ外部記憶装置であり、外部記憶装置1050はデ
ータベース管理システム1005に接続されている。1
060はデータベース1008を組み込んだ外部記憶装
置であり、外部記憶装置1060はデータベース管理シ
ステム1006に接続されている。また計算機1020
内の複製管理システム1000と、計算機1030内の
データベース管理システム1005と、計算機1040
内のデータベース管理システム1006とはネットワー
ク(通信経路)により情報を転送することが可能となっ
ている。以上のような装置構成にすることにより、アプ
リケーションはデータベース管理システムに対しデータ
の処理を要求してから要求を受けたデータベース管理シ
ステムが管理するデータベース内のデータを処理するま
でしかその処理を停止しないようにすることが可能とな
る。このように、分散型の計算機システムにデータ管理
装置を組み込むと、アプリケーション1009または1
010がその処理を停止する時間を短縮することが可能
となり、かつデータ管理装置が持つ特性、つまりデータ
の一元性を保つことが可能となる。
FIG. 2 shows an example in which the data management apparatus of FIG. 1 is incorporated in a distributed computer system constructed by using a network. In FIG. 2, 1009
And 1010 are applications, the application 1009 requests the database management system 1005 to copy data, and the database 10
It is possible to request an update of the data stored in 07. The application 1010 requests the database management system 1006 to copy data,
And it is possible to request an update of the data stored in the database 1008. Reference numeral 1020 is a computer incorporating the replication management system 1000. By incorporating the replication management system 1000 in the computer 1020, it becomes possible to manage the replication of data in the distributed computer system. 1030 is the application 100
9 and a database management system 1005. 1040 is an application 1010
And a computer incorporating the database management system 1006. An external storage device 1050 incorporates the database 1007, and the external storage device 1050 is connected to the database management system 1005. 1
Reference numeral 060 denotes an external storage device incorporating the database 1008, and the external storage device 1060 is connected to the database management system 1006. Also the computer 1020
Replication management system 1000 in the computer, database management system 1005 in the computer 1030, and computer 1040
Information can be transferred to the internal database management system 1006 via a network (communication path). With the above-mentioned device configuration, the application stops the processing only after requesting the data processing from the database management system until processing the data in the database managed by the requested database management system. It becomes possible to do so. In this way, when the data management device is incorporated in the distributed computer system, the application 1009 or 1
It is possible to shorten the time for 010 to stop the processing and to maintain the characteristic of the data management device, that is, the unity of data.

【0036】計算機中のアプリケーションがデータの複
製を要求した場合、該当するアプリケーションと接続す
るデータベース管理システムが管理するデータベースに
データの複製がどのようにして取り入れるかを図3のフ
ローチャートを用いて説明する。
When an application in the computer requests data replication, how the data replication is incorporated into the database managed by the database management system connected to the application will be described with reference to the flowchart of FIG. .

【0037】まず、アプリケーションがデータベース管
理システムに複製要求を発行する。複製要求を受けたデ
ータベース管理システムは計算機中1020の複製管理
システム1000に対して該当するデータの複製を要求
するため例えば、該当するデータを格納するデータベー
ス、および該当するデータの格納場所に関する情報を複
製を要求する信号とともに複製管理システム1000へ
送る。(処理2000) 複製の要求を受けた複製管理システム1000の複製作
成部1002は、原本のデータが存在するデータベース
を持つ外部記憶装置に接続されている計算機中のデータ
ベース管理システムに対して該当する原本のデータを取
得するための要求を行い、原本のデータの値に関する情
報を取得する。(処理2001) 次に複製管理表1001に複製情報の書き込みを行う。
複製管理システム1000はどのデータベースのどのデ
ータが、どのデータベースへどのデータとして複製され
たかを管理するための複製管理表1001を保持してい
る。複製管理表1001の書き込みは、以下の手順で行
う。まず、複製作成部1002により原本のデータの複
製がすでに存在するかどうかを、複製管理表1001を
用いて調べる。(処理2002) もし原本のデータの複製が既に存在し、それに関する情
報が複製管理表1001に記されている場合、複製管理
表1001に原本のデータと、複製先のデータとの関係
を複製作成部1002が複製管理表に追加する。(処理
2003) もし原本のデータの複製が存在しない場合、複製作成部
1002は複製管理表1001に原本のデータと、複製
先のデータとの関係を示すための情報を蓄えるため、複
製管理表1001に新たな行を確保する。(処理200
4) そして複製作成部1002は、確保した新たな行に原本
のデータと複製先のデータとの関係を示すための情報を
書き込む。(処理2005) 複製管理表1001に複製情報を格納した後、複製作成
部1002は複製先のデータを管理するデータベース管
理システムに該当するデータを転送するように通信管理
部1004に指令する。(処理2006) 一方、通信管理部1004からデータを受け取ったデー
タベース管理システムは、データを受け取ったことを確
認するための信号を複製作成部1002に転送した後、
接続されているデータベース1008にデータの複製を
保管する。この方法により、アプリケーションがデータ
の複製を要求したとき、アプリケーションの要求を受け
たデータベース管理システムが管理するデータベース内
に該当するデータの複製を格納することが可能となる。
First, the application issues a copy request to the database management system. The database management system that receives the copy request requests the copy management system 1000 of the computer 1020 to copy the corresponding data. For example, the database that stores the corresponding data and the information about the storage location of the corresponding data are copied. Is sent to the duplication management system 1000 together with a signal for requesting. (Process 2000) The copy creation unit 1002 of the copy management system 1000 that received the copy request receives the copy of the original data corresponding to the database management system in the computer connected to the external storage device having the database in which the original data exists. Make a request to obtain the data of and obtain the information about the value of the original data. (Process 2001) Next, copy information is written in the copy management table 1001.
The replication management system 1000 holds a replication management table 1001 for managing which data in which database is replicated as which data in which database. The duplication management table 1001 is written in the following procedure. First, the copy creation unit 1002 checks whether or not a copy of the original data already exists using the copy management table 1001. (Process 2002) If a copy of the original data already exists and information about it has been written in the copy management table 1001, a copy of the relationship between the original data and the copy destination data is created in the copy management table 1001. The unit 1002 adds it to the replication management table. (Process 2003) If the copy of the original data does not exist, the copy creating unit 1002 stores information for indicating the relationship between the original data and the copy destination data in the copy management table 1001, and therefore the copy management table 1001. Secure a new line for. (Process 200
4) Then, the copy creation unit 1002 writes information for indicating the relationship between the original data and the copy destination data in the secured new line. (Process 2005) After storing the copy information in the copy management table 1001, the copy creating unit 1002 commands the communication managing unit 1004 to transfer the corresponding data to the database management system that manages the copy destination data. (Process 2006) On the other hand, the database management system that has received the data from the communication management unit 1004 transfers a signal for confirming that the data has been received to the copy creation unit 1002,
Store a copy of the data in a connected database 1008. According to this method, when the application requests the copy of the data, it becomes possible to store the corresponding copy of the data in the database managed by the database management system that receives the request of the application.

【0038】複製管理表の構成の一例を図6に示す。表
の構成を以下に述べる。複製管理表は、識別子から構成
される。識別子とは、例えば、全システム内でデータを
一意に決定することができる名前で、ここでは、どのデ
ータベース管理システムが管理するデータベースかを表
すデータベース名とその中に含まれるデータの格納場所
を表すデータ名で表している。原本の欄には、複製を作
成する元になったデータの識別子を格納する。複製の欄
には、その行の原本から複製されたデータの識別子を格
納する。複製の欄は、作成されるたびにその識別子を格
納するための列が追加され、結果として、一つの原本に
対して複数の複製が存在する形になる。例えば、データ
ベース1007中のデータAが原本のデータであり、デ
ータAの複製がデータベース1008中のデータBに格
納されている場合、複製管理表1001には、図7に示
すような情報が格納される。
FIG. 6 shows an example of the structure of the copy management table. The structure of the table is described below. The replication management table is composed of identifiers. The identifier is, for example, a name that can uniquely determine data in the entire system, and here represents a database name indicating which database management system manages the database and the storage location of the data contained therein. It is represented by a data name. The original column stores the identifier of the data that is the source of the copy. The duplicate column stores the identifier of the data duplicated from the original of the line. Each time the copy column is created, a column for storing the identifier is added, and as a result, a plurality of copies exist for one original. For example, if the data A in the database 1007 is the original data and a copy of the data A is stored in the data B in the database 1008, the copy management table 1001 stores the information as shown in FIG. It

【0039】また、もし要求したデータAの複製データ
が既にあるデータベースC(図示せず)内のデータCに
格納されていて、それに関する情報が複製管理表100
1に記されている場合、つまりデータベース管理システ
ムがデータAの複製を要求する以前に複製管理表100
1の原本の欄にデータAおよびデータAを格納するデー
タベース、並びに複製1の欄にデータCおよびデータC
を格納するデータベースCに関する情報が記入されてい
る場合、原本のデータAと、これを複製したデータBと
の関係を示すために、原本のデータAと、これを複製し
たデータCの関係を示す行の複製2の欄にデータBおよ
びデータBを格納するデータベース1008を複製管理
表1001に追加する。(図8) また、もし要求したデータAの原本データが既にあるデ
ータベースC(図示せず)内のデータCに格納されてい
て、それに関する情報が複製管理表1001に記されて
いる場合、つまりデータAの複製を要求する以前に複製
管理表1001の原本の欄にデータCおよびデータCを
格納するデータベースC、並びに複製1の欄にデータA
およびデータAを格納するデータベース1007に関す
る情報が記入されている場合、データAの原本のデータ
がデータCであることが複製管理表1001を参照する
ことによりわかるため、原本のデータCと、これを複製
したデータBとの関係を示すために、原本のデータC
と、これを複製したデータAの関係を示す行の複製2の
欄にデータBおよびデータBを格納するデータベース1
008を複製管理表1001に追加する。(図9) 複製管理表1001に上述のような情報を格納すること
により複製管理システム1000は複製のデータと、原
本のデータとの情報を複製管理表に格納することが可能
となり、複製管理システム1000は、データの処理の
要求を受けたときこのデータに関係するデータの情報を
調べることが可能となる。
Further, if the duplicated data of the requested data A is already stored in the data C in the existing database C (not shown), the information about it is stored in the duplication management table 100.
1 that is, that is, before the database management system requests the replication of the data A, the replication management table 100
Data A and a database storing the data A in the column of the original, and data C and the data C in the column of the copy 1
When the information about the database C that stores the data is entered, the relation between the original data A and the duplicated data C is shown in order to show the relation between the original data A and the duplicated data B. A data B and a database 1008 storing the data B are added to the duplication management table 1001 in the column of the duplicate 2 of the row. (FIG. 8) Also, if the original data of the requested data A is already stored in the data C in the existing database C (not shown) and the information related thereto is written in the replication management table 1001, that is, Before requesting the duplication of the data A, the data C and the database C storing the data C in the original column of the duplication management table 1001 and the data A in the duplication 1 column
If the information about the database 1007 that stores the data A is entered, it can be known by referring to the replication management table 1001 that the original data of the data A is the data C. The original data C to show the relationship with the duplicated data B
And a database 1 storing the data B and the data B in the column of the duplicate 2 of the row showing the relation of the duplicated data A.
008 is added to the replication management table 1001. (FIG. 9) By storing the above-described information in the replication management table 1001, the replication management system 1000 can store the information of the replicated data and the original data in the replication management table. When the 1000 receives a request for processing of data, it becomes possible to examine information of data related to this data.

【0040】今、図3で示したフローチャートにより計
算機1040中のアプリケーション1010が計算機1
030に接続されている外部記憶装置1050中のデー
タベース1007のデータAの複製のデータを、計算機
1040に接続している外部記憶装置1060中のデー
タベース1008中のデータBに格納する様子を図4と
図5とを用いて説明する。図4においてデータベース1
007中のデータAの複製のデータは存在していないと
する。
Now, according to the flow chart shown in FIG. 3, the application 1010 in the computer 1040 is the computer 1
FIG. 4 shows a state in which the data of the copy of the data A of the database 1007 in the external storage device 1050 connected to 030 is stored in the data B in the database 1008 in the external storage device 1060 connected to the computer 1040. This will be described with reference to FIG. Database 1 in FIG.
It is assumed that there is no duplicate data of the data A in 007.

【0041】まず、アプリケーション1010がデータ
ベース管理システム1006にデータAの複製要求を発
行する。処理2000により複製要求を受けたデータベ
ース管理システム1006は計算機1020中の複製管
理システム1000に該当するデータの複製を要求す
る。処理2001により複製作成部1002は、データ
Aが存在するデータベース1007を管理するデータベ
ース管理システム1005にデータ取得の要求を行い、
データAに格納されている値を取得する。次に複製管理
表1001に複製情報の書き込みを行う。処理2002
により複製作成部1002により要求した原本のデータ
の複製がすでに存在するかどうかを、複製管理表100
1を用いて調べる。この例ではデータAの複製はデータ
の複製の要求を行った以前には存在していないので、処
理2004により、複製管理表1001に原本のデータ
と、複製先のデータとの関係を示すための情報を蓄える
行を複製作成部1002が確保する。処理2005によ
り、複製作成部1002は、確保した行に原本のデータ
と、複製先のデータとの関係を示すための情報を書き込
む。このときの複製管理表1001に保存されている様
子を図7に示す。処理2006により、複製作成部10
02は複製先のデータを管理するデータベース管理シス
テムに該当するデータを転送するように通信管理部10
04に指令する。一方、通信管理部1004からデータ
を受け取ったデータベース管理システムは、データを受
け取ったことを確認するための信号を通信管理部100
4に転送した後、接続されているデータベース1008
中のデータBにデータAの値を格納する。以上のような
方法を用いることによりデータAの情報は図5に示すよ
うに、複製管理システム1000により取り出され、デ
ータAの格納場所は、複製管理表1001に書き込ま
れ、その後、データAの値はデータベース管理システム
1006に転送される。
First, the application 1010 issues a data A copy request to the database management system 1006. The database management system 1006 having received the copy request in the process 2000 requests the copy management system 1000 in the computer 1020 to copy the corresponding data. By the process 2001, the copy creation unit 1002 makes a data acquisition request to the database management system 1005 that manages the database 1007 in which the data A exists,
The value stored in the data A is acquired. Next, the replication information is written in the replication management table 1001. Process 2002
The replication management table 100 determines whether a copy of the original data requested by the replication creating unit 1002 already exists.
Check with 1. In this example, since the copy of the data A does not exist before the data copy request is made, the processing 2004 indicates the relationship between the original data and the copy destination data in the copy management table 1001. The copy creation unit 1002 secures a row for storing information. By the process 2005, the copy creation unit 1002 writes information for indicating the relationship between the original data and the copy destination data in the secured row. FIG. 7 shows how the copy management table 1001 is stored at this time. By the process 2006, the copy creation unit 10
Reference numeral 02 denotes the communication management unit 10 so as to transfer the corresponding data to the database management system that manages the copy destination data.
Command 04. On the other hand, the database management system which has received the data from the communication management unit 1004 sends a signal for confirming that the data has been received to the communication management unit 1004.
Database 1008 connected after transfer to
The value of data A is stored in data B therein. By using the method as described above, the information of the data A is retrieved by the replication management system 1000, the storage location of the data A is written in the replication management table 1001 as shown in FIG. Are transferred to the database management system 1006.

【0042】実施例2.実施例1で述べた複製を行った
後、アプリケーションがデータベースの原本のデータの
値を更新し、更新した原本のデータと複製の関係にある
データベース内のデータの値を更新する方法を、図10
に示すフローチャートに基づいて説明する。
Example 2. After the duplication described in the first embodiment, the application updates the value of the original data in the database and the method of updating the value of the data in the database that has a duplication relationship with the updated original data.
It will be described based on the flowchart shown in FIG.

【0043】アプリケーションがデータベース管理シス
テムに対してデータベース中のデータの値を更新し、コ
ミット要求を行ないコミット終了通知を受け取るまでア
プリケーションはその処理を停止する。(処理300
0) 要求を受けたデータベース管理システムは、複製管理シ
ステム1000に対して、データベース中のデータの値
を更新することを報告する。(処理3001) 次にデータベース管理システムはデータAの値を更新す
る。(処理3002) その後、データベース管理システムはコミット要求を行
ったアプリケーションに対してコミット終了通知を発行
する。アプリケーションはコミット終了通知を受け取っ
た後、処理を続行することができる。以上でデータベー
ス管理システム側での処理は終了する。一方、複製管理
システム1000では、通信管理部1004において、
データベース管理システムからの更新報告を受けた後、
更新伝播部1003にデータベース管理システムからの
更新報告内容を渡す。更新報告内容とは、更新報告を行
ったデータベース管理システムが管理するデータベース
名、データの格納場所を表わすデータ名および更新した
データの値である。更新伝播部1003は、複製管理表
1001を参照することにより複製が存在しているデー
タベース名と、その中でのデータ名とを確認する。(処
理3010) その後、複製管理システム1000の更新伝播部100
3は、通信管理部1004に複製のデータを管理するデ
ータベース管理システムに対して複製データを格納する
データベース中のデータの値を変更するコミット要求の
指令を発行し、指令を受けたデータベース管理システム
は、指令を受けたことを確認する信号を通信管理部に出
した後、該当するデータベース中のデータの値を更新す
る。(処理3011) 以上で複製管理システム1000側での処理は終了す
る。データベース管理システム1005、1006、お
よび複製管理システム1000において上述の処理をす
ることにより原本のデータを更新すると原本のデータを
複製したデータをも更新するためデータの一元性を確保
することが可能となる。
The application updates the value of the data in the database with respect to the database management system, makes a commit request, and stops the processing until the application receives a commit end notification. (Process 300
0) The database management system that received the request reports to the replication management system 1000 that the value of the data in the database is updated. (Process 3001) Next, the database management system updates the value of data A. (Process 3002) After that, the database management system issues a commit end notification to the application that has issued the commit request. The application can continue processing after receiving the commit end notification. Thus, the processing on the database management system side is completed. On the other hand, in the replication management system 1000, in the communication management unit 1004,
After receiving the update report from the database management system,
The update report content from the database management system is passed to the update propagation unit 1003. The update report contents are the database name managed by the database management system that issued the update report, the data name indicating the data storage location, and the value of the updated data. The update propagation unit 1003 confirms the database name in which the copy exists and the data name in the copy by referring to the copy management table 1001. (Processing 3010) After that, the update propagation unit 100 of the replication management system 1000.
3 issues a commit request command to the communication management unit 1004 to the database management system that manages the replicated data and changes the value of the data in the database that stores the replicated data. After issuing a signal confirming that the command has been received to the communication management unit, the value of the data in the corresponding database is updated. (Processing 3011) With the above, the processing on the side of the replication management system 1000 ends. When the original data is updated by performing the above-described processing in the database management systems 1005 and 1006 and the duplication management system 1000, it is possible to ensure the integrity of the data because the data obtained by copying the original data is also updated. .

【0044】図11において、データベース1007中
のデータAに格納されている値の複製のデータがデータ
ベース1008中のデータBに格納されているとし、か
つデータAは原本のデータであるとする。今、図11に
示すように計算機1030中のアプリケーション100
9がデータベース1007内のデータAに格納されてい
る値を更新し、更新したデータAの複製のデータである
データベース1008内のデータBに格納されている値
を更新する様子を、図10で述べたフローチャートに基
づいて説明する。
In FIG. 11, it is assumed that the duplicated data of the value stored in the data A in the database 1007 is stored in the data B in the database 1008, and the data A is the original data. Now, as shown in FIG. 11, the application 100 in the computer 1030
FIG. 10 describes how 9 updates the value stored in the data A in the database 1007, and updates the value stored in the data B in the database 1008 that is a copy of the updated data A. It will be described based on the flowchart.

【0045】まず、処理3000によりアプリケーショ
ン1009が計算機1030中のデータベース管理シス
テム1005に対してデータベース1007中のデータ
Aに格納されている値値を更新するためのコミット要求
を行なう。アプリケーション1009はコミット終了通
知を受取るまでその処理を停止する。要求を受けたデー
タベース管理システム1005は、処理3001により
図11に示すように、計算機1020中の複製管理シス
テム1000に対して、データベース1007中のデー
タAに格納されている値を更新することを報告する。処
理3002によりデータベース管理システム1005は
データAに格納されている値を更新する。その後、デー
タベース管理システム1005はアプリケーション10
09に対してコミット終了通知を発行する。アプリケー
ション1009はコミット終了通知を受け取った後、処
理を続行することができる。以上でデータベース管理シ
ステム1005側での処理は終了する。一方、複製管理
システム1000では、通信管理部1004において、
データベース管理システム1005からの更新報告を受
けた後、更新伝播部1003にデータベース管理システ
ム1005からの更新報告内容を渡す。更新伝播部10
03は、複製管理表1001を参照することにより複製
が存在しているデータベースと、その中でのデータ名と
を確認する。今、複製管理表1001は図7のようにな
っているので、処理3010によりデータAが計算機1
040に接続されているデータベース1008中にデー
タBとして複製されていることを確認する。その後、複
製管理システム1000の更新伝播部1003は、通信
管理部1004に対し計算機1040中のデータベース
管理システム1006にデータベース1008のデータ
Bの値を変更するように指令し、指令を受けたデータベ
ース管理システム1006はデータベース1008中の
データBに格納されている値を更新する。(処理301
1) この方法により、原本のデータを更新すると、複製のデ
ータも更新することが可能となる。また、このような方
法を用いることによりアプリケーション1009はコミ
ット要求を行ってからコミット終了通知を受けるまでし
かその処理を停止しない。従来の2相コミット式ではア
プリケーションは複製データを変更するまで処理を停止
する。アプリケーション1009がコミットの要求を行
ってからコミット終了通知を受け取るまでに要する時間
は、アプリケーション1009がコミットの要求を行っ
てから複製データの更新を行うまでに要する時間にくら
べて短い。このためアプリケーション1009の停止す
る時間を短縮することができより実時間のデータを制御
する為のシステムを構成することが可能となる。
First, in process 3000, the application 1009 issues a commit request to the database management system 1005 in the computer 1030 to update the value stored in the data A in the database 1007. The application 1009 stops its processing until it receives the commit end notification. In response to the request, the database management system 1005 reports to the replication management system 1000 in the computer 1020 to update the value stored in the data A in the database 1007 as shown in FIG. To do. Through the process 3002, the database management system 1005 updates the value stored in the data A. After that, the database management system 1005 uses the application 10
A commit end notification is issued to 09. The application 1009 can continue the process after receiving the commit end notification. Thus, the processing on the database management system 1005 side is completed. On the other hand, in the replication management system 1000, in the communication management unit 1004,
After receiving the update report from the database management system 1005, the update report content from the database management system 1005 is passed to the update propagation unit 1003. Update propagation unit 10
03 refers to the replication management table 1001 to confirm the database in which the replication exists and the data name in the database. Since the replication management table 1001 is now as shown in FIG. 7, the data A is stored in the computer 1 by the processing 3010.
It is confirmed that the data B is duplicated in the database 1008 connected to 040. After that, the update propagation unit 1003 of the replication management system 1000 instructs the communication management unit 1004 to change the value of the data B of the database 1008 to the database management system 1006 in the computer 1040, and the database management system that received the command. 1006 updates the value stored in the data B in the database 1008. (Process 301
1) With this method, when the original data is updated, the duplicated data can also be updated. Further, by using such a method, the application 1009 stops its processing only after making a commit request and receiving a commit end notification. In the conventional two-phase commit method, the application stops processing until the replicated data is changed. The time required from the application 1009 making the commit request to receiving the commit end notification is shorter than the time required from the application 1009 making the commit request to updating the duplicated data. Therefore, the time for which the application 1009 is stopped can be shortened, and a system for controlling real-time data can be configured.

【0046】実施例3.実施例2で述べたデータの更新
方法とはまた別の更新方法について図12のフローチャ
ートを用いて説明する。この方法により、複製のデータ
を更新することにより原本のデータも更新することが可
能となる。
Example 3. An update method different from the data update method described in the second embodiment will be described with reference to the flowchart of FIG. With this method, it is possible to update the original data by updating the duplicated data.

【0047】アプリケーションがデータベース管理シス
テムに対してデータベース中のデータの値を変更し、コ
ミット要求を行ったとする。アプリケーションはコミッ
ト終了通知を受けるまでその処理を停止する。要求を受
けたデータベース管理システム1006は、計算機中の
複製管理システム1000に対して、データベース中の
データの値を変更することを報告した後、データを更新
し、アプリケーションに対してコミット終了通知を発行
する。アプリケーションはコミット終了通知を受け取っ
た後、その処理を続行することができる。
It is assumed that the application changes the value of the data in the database to the database management system and makes a commit request. The application stops its processing until it receives the commit end notification. Upon receiving the request, the database management system 1006 reports to the replication management system 1000 in the computer that the value of the data in the database is changed, then updates the data and issues a commit end notification to the application. To do. After the application receives the commit end notification, the application can continue its processing.

【0048】複製管理システム1000の通信管理部1
004は、データベース管理システムからの更新報告内
容を受ける。(処理4000) 次に、更新伝播部1003にデータベース管理システム
からの更新報告内容を渡す。更新伝播部1003は、複
製管理表1001を元に、更新要求を行ったデータが原
本のデータであるかどうかを調べる。(処理4001) もし原本のデータであるなら実施例2と同じ要領で複製
のデータの値の更新を行う。(処理4004および処理
4005) 更新要求を行ったデータが原本のデータでない場合、更
新伝播部1003は複製管理表1001から原本のデー
タを確認する。(処理4002) その後、更新伝播部1003は通信管理部1004を介
して原本のデータを管理するデータベース管理システム
に対し原本のデータを更新する指令を出すことにより、
指令を受けたデータベース管理システムは、指令を受け
たことを確認するための信号を更新伝播部1003に出
した後、原本のデータを更新する。(処理4003) 次に複製のデータが更新の要求を行ったデータベース管
理システムが管理するデータ以外に存在するかどうかを
複製管理表1001を参照することにより調べる。(処
理4006) 複製データが更新の要求を行ったデータベース管理シス
テムが管理するデータのみの場合処理を終了する。更新
したデータが複製のデータであり、かつ複製のデータが
更新の要求を行ったデータベース管理システムが管理す
るデータ以外にも存在する場合、複製管理表1001を
参照することにより該当する複製のデータに関する情報
を得た後(処理4004)、該当する複製のデータを更
新する。(処理4005) この方法により、原本または複製のデータを更新するこ
とにより、このデータと対応する複製または原本のデー
タを更新することが可能となる。また、原本のデータの
複製が複数存在する場合、これらのデータのうちの1つ
のデータを更新することにより残りのデータも更新する
ことが可能となる。これによりデータの一元性を確保す
ることが可能となる。
Communication management unit 1 of the replication management system 1000
004 receives the update report content from the database management system. (Processing 4000) Next, the update report content from the database management system is passed to the update propagation unit 1003. The update propagation unit 1003 checks, based on the replication management table 1001, whether or not the data requested to be updated is the original data. (Process 4001) If the data is the original data, the value of the duplicated data is updated in the same manner as in the second embodiment. (Process 4004 and Process 4005) When the data for which the update request is made is not the original data, the update propagation unit 1003 confirms the original data from the replication management table 1001. (Process 4002) Thereafter, the update propagation unit 1003 issues a command to update the original data to the database management system that manages the original data via the communication management unit 1004.
The database management system that has received the command updates the original data after issuing a signal for confirming that the command has been received to the update propagation unit 1003. (Process 4003) Next, it is checked by referring to the duplication management table 1001 whether or not duplication data exists other than the data managed by the database management system that issued the update request. (Process 4006) If the replicated data is only the data managed by the database management system that issued the update request, the process ends. If the updated data is duplicated data and the duplicated data exists other than the data managed by the database management system that issued the update request, referring to the duplicate management table 1001 relates to the corresponding duplicated data. After obtaining the information (process 4004), the data of the corresponding copy is updated. (Process 4005) By this method, by updating the original or duplicated data, it is possible to update the duplicated or original data corresponding to this data. Further, when there are a plurality of copies of the original data, it is possible to update the remaining data by updating one of these data. This makes it possible to ensure the unity of data.

【0049】図13において、データベース1007中
のデータAの複製のデータがデータベース1008中の
データBにあるとする。また、データAは原本のデータ
であるとする。今、実施例1で述べた方法で複製を行っ
た後、図13に示すようにデータベース1008中の複
製のデータBに対し、計算機1040中のアプリケーシ
ョン1010がデータベース管理システム1006を通
して更新を行ないかつ原本のデータAを更新する方法
を、図12に示すフローチャートに基づいて説明する。
In FIG. 13, it is assumed that the duplicated data of the data A in the database 1007 is in the data B in the database 1008. Further, the data A is assumed to be the original data. Now, after performing the duplication by the method described in the first embodiment, the application 1010 in the computer 1040 updates the duplicated data B in the database 1008 through the database management system 1006 and the original data as shown in FIG. A method of updating the data A of FIG. 12 will be described based on the flowchart shown in FIG.

【0050】アプリケーション1010がデータベース
管理システム1006に対してデータベース1008中
のデータBに格納されている値を変更するためコミット
要求を行ったとする。アプリケーション1010はコミ
ット終了通知を受けるまでその処理を停止する。要求を
受けたデータベース管理システム1006は、図13の
ように、計算機1020中の複製管理システム1000
に対して、データベース1008中のデータBに格納さ
れている値を変更することを報告した後、データBに格
納されている値を更新し、アプリケーション1010に
対してコミット終了通知を発行する。アプリケーション
1010はコミット終了通知を受け取った後、その処理
を続行することができる。
It is assumed that the application 1010 makes a commit request to the database management system 1006 in order to change the value stored in the data B in the database 1008. The application 1010 stops its processing until it receives the commit end notification. The database management system 1006 that has received the request is, as shown in FIG. 13, the replication management system 1000 in the computer 1020.
To the application 1010 after reporting that the value stored in the data B in the database 1008 is changed, and then updating the value stored in the data B and issuing a commit end notification to the application 1010. The application 1010 can continue its processing after receiving the commit end notification.

【0051】先ず更新管理部は処理4000より更新報
告を受けた後、処理4001によりデータBが複製のデ
ータであると判断する。次に、複製管理表1001を参
照することによりデータBの原本のデータがデータAで
あることを確認した後、原本のデータAを格納するデー
タベース1007を管理するデータベース管理システム
1005に対しデータAを更新するための指令を出し、
データベース管理システム1005は、指令を受けたこ
とを確認するための信号を更新伝播部1003に出した
後、データベース1007中のデータAに格納されてい
る値を更新する。処理4006により複製データが更新
要求を行ったデータ以外に存在するかどうかを調べる
が、ここではデータAの複製データはデータB以外には
存在しないので処理はここで停止する。このように、複
製のデータを更新する事により原本のデータを更新する
ことが可能となる。また、アプリケーションはコミット
終了通知を受けるまでしかその処理を停止しない。 従
来の2相コミット式ではアプリケーションは複製データ
を変更するまで処理を停止する。アプリケーションがコ
ミットの要求を行ってからコミット終了通知を受け取る
までに要する時間は、アプリケーションがコミットの要
求を行ってからデータの一元性を保つようにデータの更
新を行うまでに要する時間にくらべて短い。このためア
プリケーションの停止する時間を短縮することができ、
より実時間のデータを制御する為のシステムを構成する
が可能となる。
First, the update management unit receives the update report from the process 4000, and then determines from the process 4001 that the data B is duplicated data. Next, after confirming that the original data of the data B is the data A by referring to the replication management table 1001, the data A is transferred to the database management system 1005 which manages the database 1007 storing the original data A. Issue a command to update,
The database management system 1005 updates the value stored in the data A in the database 1007 after outputting a signal for confirming that the command has been received to the update propagation unit 1003. In process 4006, it is checked whether or not the duplicated data exists other than the data for which the update request is made. Here, since the duplicated data of the data A does not exist except the data B, the process is stopped here. Thus, by updating the duplicated data, the original data can be updated. Also, the application stops its processing only until it receives a commit end notification. In the conventional two-phase commit method, the application stops processing until the replicated data is changed. The time required from the application requesting the commit to receiving the commit end notification is shorter than the time required from the application requesting the commit to updating the data so as to maintain the integrity of the data. . Therefore, it is possible to shorten the time for stopping the application,
It becomes possible to configure a system for controlling more real-time data.

【0052】実施例4.データベース中に格納されてい
るデータの値は、同じデータベース中の他のデータの値
と関係がないという場合と、同じデータベース中の他の
データの値と何らかの対応関係がある場合とがある。こ
こでは、データベース中のデータの値と、同じデータベ
ース中の他のデータの値とに何らかの対応関係(例え
ば、データベース中のあるデータは常に同じデータベー
ス中の他のデータの値の2倍でなければならないといっ
たように2つのデータにはある対応関係が存在する場合
をさし、以下この関係を一貫性制約とよぶことにする)
がある場合、これら2つのデータのうちいずれか一方の
データの値を更新したとき他方のデータの値を更新する
方法を図14に示すフローチャートを用いて述べる。こ
こでは、データベース管理システムは、これまでの実施
例で述べた機能に加えて、あるデータと一貫性制約があ
るデータを調べ、かつ一貫性制約を保つようにデータを
更新することができる機能を有するものとする。
Example 4. The value of data stored in the database may be unrelated to the value of other data in the same database or may have some correspondence with the value of other data in the same database. Here, there is some correspondence between the value of data in the database and the value of other data in the same database (for example, some data in the database must always be twice the value of other data in the same database). (There is a correspondence between the two data, such as the case where it does not exist. In the following, this relationship is called a consistency constraint.)
If there is, a method of updating the value of one of these two data and updating the value of the other data will be described with reference to the flowchart shown in FIG. Here, in addition to the functions described in the previous embodiments, the database management system has a function that can check data that has a consistency constraint with certain data and update the data so as to keep the consistency constraint. Shall have.

【0053】まず、アプリケーションがデータベース管
理システムに対しデータを更新するためのコミット要求
を行う。(処理5000) 次に、データベース管理システムは、更新したデータと
一貫性制約があるデータがデータベース内に存在するか
どうかを調べる。(処理5001) 変更したデータと一貫性制約があるデータが存在しない
場合、データベース管理システムは複製管理システムに
データの更新を報告し(処理5002)、その後データ
ベース中のデータを更新し(処理5003)、その後処
理を終了する。更新したデータと一貫性制約があるデー
タが存在する場合、データベース管理システムは、更新
したデータと一貫性制約を満足するようなデータの値を
計算する。(処理5004) 次にデータベース管理システムは更新したデータと、更
新したデータと一貫性制約があるデータとを更新するこ
とを複製管理システムに報告する。(処理5005) 次にデータベース中のデータと、該当するデータと一貫
性制約のあるデータとを更新する。(処理5006) その後、アプリケーションにコミット終了通知を発信し
(処理5007)、その後処理を終了する。アプリケー
ションはコミット終了通知を受取ると処理を再開する。
このような方法により変更したデータと一貫性制約があ
るデータを変更することが可能となる。
First, the application issues a commit request for updating data to the database management system. (Process 5000) Next, the database management system checks whether or not the updated data and the data having a consistency constraint exist in the database. (Process 5001) If the changed data and the data having the consistency constraint do not exist, the database management system reports the update of the data to the replication management system (process 5002), and then updates the data in the database (process 5003). , And then ends the process. If there is data that has the updated data and the consistency constraint, the database management system calculates a value of the data that satisfies the updated data and the consistency constraint. (Process 5004) Next, the database management system reports to the replication management system that the updated data and the data having the consistency constraint with the updated data are updated. (Process 5005) Next, the data in the database and the corresponding data and the data having the consistency constraint are updated. (Process 5006) After that, a commit end notification is transmitted to the application (process 5007), and then the process ends. Upon receiving the commit end notification, the application restarts the process.
By such a method, it is possible to change data that has a consistency constraint with the changed data.

【0054】図15において、データベース1007中
にはデータα、およびデータAという少なくとも2つの
データが存在し、かつデータαとデータAとには、一貫
性制約があり、かつデータAの複製のデータがデータベ
ース1008中のデータBであるとする。また、データ
αの複製のデータは存在しないとする。今、データαを
更新したとき、データαと一貫性制約のあるデータAを
更新し、データAの複製であるデータBを更新する様子
を図14で述べたフローチャートを用いて説明する。こ
こでは、複製管理システム1000は実施例3で述べた
ように原本または複製データを更新することにより対応
する複製または原本のデータを更新することができる機
能をもっているものとする。
In FIG. 15, at least two data, data α and data A, exist in the database 1007, and there is a consistency constraint between the data α and the data A, and the duplicated data of the data A. Is data B in the database 1008. Further, it is assumed that there is no duplicated data of the data α. Now, when the data α is updated, the state of updating the data A having a consistency constraint with the data α and updating the data B which is a copy of the data A will be described with reference to the flowchart described in FIG. 14. Here, it is assumed that the copy management system 1000 has the function of updating the corresponding copy or original data by updating the original or copy data as described in the third embodiment.

【0055】処理5000により計算機1030中のア
プリケーション1009または複製管理システム100
0がデータベース管理システム1005に対してデータ
ベース1007中のデータαの値をX1に変更するため
のコミット要求を行なう。処理5001により要求を受
けた計算機1030中のデータベース管理システム10
05はデータαと一貫性制約のあるデータが存在するか
どうかを調べる。この例では、データベース管理システ
ム1005はデータαと一貫性のあるデータAに関する
情報を取得する。処理5004により、次にデータベー
ス管理システム1005は、データαに格納されている
値をX1に変更したことにより、データAに格納された
値をデータαに格納されている値X1と一貫性制約を満
足するような値X2を計算する。処理5005によりデ
ータベース管理システム1005は、複製管理システム
1000にデータの更新を報告する。処理5006によ
り、データベース管理システム1005は、データベー
ス1007中のデータαとデータAとに格納されている
値を更新する。処理5007により、データベース管理
システム1005はアプリケーションにコミット終了通
知を発信する。アプリケーションはコミット終了通知を
受取った後、その処理を再開する。一方、処理5005
により更新の報告を受けた複製管理システム1000に
おける通信管理部1004は、実施例2または3に示し
た更新方法によりデータAの複製であるデータベース1
008中のデータBに格納されている値を更新する。な
お、本実施例では一貫性制約による更新が原本であるデ
ータ(データA)に対して行われる場合を述べたが、実施
例2または3の更新方法と実施例4の一貫性制約がある
データの更新方法とを組合わせることにより、一貫性制
約によるデータの更新が複製のデータに対して行われる
場合も、同様に複製のデータを更新することにより原本
のデータも更新される。
By the processing 5000, the application 1009 in the computer 1030 or the replication management system 100
0 issues a commit request to the database management system 1005 to change the value of the data α in the database 1007 to X1. The database management system 10 in the computer 1030 requested by the process 5001
05 checks whether there is data that has a consistency constraint with the data α. In this example, the database management system 1005 acquires information about the data A that is consistent with the data α. By the processing 5004, the database management system 1005 next changes the value stored in the data α to X1, thereby making the value stored in the data A consistent with the value X1 stored in the data α. Calculate a satisfactory value X2. By the processing 5005, the database management system 1005 reports the data update to the replication management system 1000. By the process 5006, the database management system 1005 updates the values stored in the data α and the data A in the database 1007. By the process 5007, the database management system 1005 sends a commit end notification to the application. After receiving the commit end notification, the application restarts the processing. On the other hand, processing 5005
The communication management unit 1004 in the replication management system 1000 that receives the update report from the database 1 that is a copy of the data A by the update method described in the second or third embodiment.
The value stored in the data B in 008 is updated. In this embodiment, the case where the update by the consistency constraint is performed on the original data (data A) has been described, but the update method of the second or third embodiment and the data having the consistency constraint of the fourth embodiment are described. In combination with the updating method described in (1), even when the data is updated due to the consistency constraint, the original data is also updated by updating the duplicate data.

【0056】実施例5.ここでは、実施例3で述べた複
製データ更新方法と、実施例4で述べた一貫性をもつデ
ータの更新方法とを組合わせた方法により複雑な相互関
係をもつデータを更新することが可能となることについ
て述べる。図16において、データベース1008中に
はデータβおよびデータBという少なくとも2つのデー
タが存在し、データβはデータベース1130中のデー
タγの複製のデータであり、データBはデータベース1
007中のデータAの複製のデータであるとする。この
とき、複製管理表には図17のような原本と複製に関す
る情報が格納されている。また、データベース1008
中のデータβと、データBとには一貫性制約があるとす
る。このとき、実施例3で述べた複製データ更新方法
と、実施例4で述べた一貫性をもつデータの更新方法と
を組合わせた方法によりデータγを更新したとき、デー
タγの複製であるデータβを更新し、データβと一貫性
制約があるデータBを更新し、データBの原本であるデ
ータAを更新する様子を説明する。図16において、デ
ータベース管理システム1005、1006および11
20は実施例4で述べたような一貫性制約のあるデータ
を更新することができる機能をもち、かつ複製管理シス
テム1000は実施例3で述べたように原本または複製
データを更新することにより対応する複製または原本の
データを更新することができる機能をもっているものと
する。
Example 5. Here, it is possible to update data having a complicated mutual relationship by a method that combines the duplicated data update method described in the third embodiment and the consistent data update method described in the fourth embodiment. Describe what will happen. In FIG. 16, at least two data, data β and data B, exist in the database 1008, the data β is the data of the copy of the data γ in the database 1130, and the data B is the database 1.
It is assumed that the data is a copy of the data A in 007. At this time, the copy management table stores information on the original and the copy as shown in FIG. Also, the database 1008
It is assumed that there is a consistency constraint between the data β in the data and the data B. At this time, when the data γ is updated by a method that combines the duplicated data update method described in the third embodiment and the consistent data update method described in the fourth embodiment, the data that is a duplicate of the data γ. The manner in which β is updated, data B having a consistency constraint with data β is updated, and data A that is the original data B is updated will be described. In FIG. 16, database management systems 1005, 1006 and 11
Reference numeral 20 has a function capable of updating the data having the consistency constraint as described in the fourth embodiment, and the replication management system 1000 responds by updating the original data or the replicated data as described in the third embodiment. It has the function of being able to update the copy or the original data.

【0057】今、計算機1100中のアプリケーション
1110がデータベース管理システム1120にデータ
ベース1130中のデータγに格納されている値を更新
し、コミット要求を行ったとする。要求を受けたデータ
ベース管理システム1130は、データγと一貫性制約
のあるデータが存在するかどうか調べ、データγと一貫
性制約のあるデータが存在しないことを確認し、データ
γの値を更新することを複製管理システムに報告し、デ
ータγに格納されている値を更新した後、アプリケーシ
ョン1110に対してコミット終了通知を発行する。ア
プリケーション1110はその後の処理を続行すること
ができる。一方、データベース管理システム1130か
らの更新報告の信号を複製管理システム1000が受取
ると、実施例3で述べたデータ更新方法により、複製管
理表1001を参照することにより、データγの複製が
データβであることを確認した後、、データベース管理
システム1006に対しデータベース1008中のデー
タβに格納されている値を更新するように指示する。デ
ータベース管理システム1006では、実施例4に述べ
た一貫性制約のあるデータを更新する方法により、デー
タ複製管理システム1000からのデータの更新の要求
に対し、データβと一貫性制約のあるデータが存在する
かどうか調べ、データβと一貫性制約のあるデータBの
情報を確認した後、データβとデータBとに格納されて
いる値を更新するための報告を複製管理システム100
0にした後、データβとデータBとに格納されている値
を更新する。データベース管理システム1006からの
更新報告の信号を複製管理システム1000が受取る
と、実施例3で述べたデータ更新方法により、複製管理
表1001を参照することによりデータBの原本のデー
タがデータAであることを確認した後、データベース管
理システム1005にデータベース1007中のデータ
Aに格納されている値を更新するように指示を出す。デ
ータベース管理システム1005では、データ複製管理
システム1000からのデータの更新要求に対し、デー
タAと一貫性制約のあるデータが存在するかどうかを調
べ、データAと一貫性制約のあるデータが存在しないこ
とを確認した後、データBの原本のデータであるデータ
Aに格納されている値を更新する。以上のような処理に
よりデータγを更新したとき、データγの複製であるデ
ータβ、データβと一貫性制約のあるデータB、および
データBの原本であるデータAを更新することが可能と
なる。この例では、まず最初にデータγに格納されてい
る値を更新したが、最初に更新するデータは、データ
β、データAまたはデータBに格納されている値であっ
ても関係するデータはすべて更新することが可能であ
る。
Now, it is assumed that the application 1110 in the computer 1100 updates the value stored in the data γ in the database 1130 in the database management system 1120 and makes a commit request. Upon receipt of the request, the database management system 1130 checks whether there is data that has a consistency constraint with the data γ, confirms that there is no data that has a consistency constraint with the data γ, and updates the value of the data γ. This is reported to the replication management system, the value stored in the data γ is updated, and then a commit end notification is issued to the application 1110. The application 1110 can continue the subsequent processing. On the other hand, when the replication management system 1000 receives the update report signal from the database management system 1130, by referring to the replication management table 1001 by the data updating method described in the third embodiment, the replication of the data γ becomes the data β. After confirming the existence, the database management system 1006 is instructed to update the value stored in the data β in the database 1008. In the database management system 1006, the data β and the data having the consistency constraint exist in response to the data update request from the data replication management system 1000 by the method of updating the data having the consistency constraint described in the fourth embodiment. After confirming whether or not to do so and confirming the information of the data β and the data B having the consistency constraint, the replication management system 100 issues a report for updating the values stored in the data β and the data B.
After setting to 0, the values stored in the data β and the data B are updated. When the replication management system 1000 receives the update report signal from the database management system 1006, the original data of the data B is the data A by referring to the replication management table 1001 by the data update method described in the third embodiment. After confirming this, the database management system 1005 is instructed to update the value stored in the data A in the database 1007. In the database management system 1005, in response to a data update request from the data replication management system 1000, it is checked whether or not there is data that has a consistency constraint with the data A, and there is no data that has a consistency constraint with the data A. After confirming, the value stored in the data A which is the original data of the data B is updated. When the data γ is updated by the above processing, it is possible to update the data β that is a copy of the data γ, the data B that has a consistency constraint with the data β, and the data A that is the original of the data B. . In this example, the value stored in the data γ is updated first, but the data to be updated first is the value stored in the data β, the data A, or the data B, but all the related data are updated. It is possible to update.

【0058】実施例6.実施例1で述べた複製が行われ
たあと、または更新要求により複製管理表1001を更
新した後、複製管理システム1000から更新報告をし
たデータベース管理システム以外のデータベース管理シ
ステムへデータ更新の要求を行った際に、信号を転送す
る経路に一時的な障害が発生し、転送できなかった場合
と、経路障害が復旧し信号を転送することが可能となっ
た状態を図18に示す。このような経路の一時的な障害
により信号が転送できない状態を回避するために、デー
タ管理装置を図19に示すような構成にした。図19に
おいて、1070は、更新伝播部1003により更新を
行うように指令をしたが更新できなかったデータに関す
る情報を格納する更新未伝播管理表、1080は更新未
伝播管理表1070に蓄えられた未伝播の情報に対し再
度情報転送を行うための更新未伝播管理部、1090は
更新未伝播管理部を一定周期おきに起動するタイマ管理
部である。また、更新伝播部1003は、実施例1から
5に記述した機能に加え、更新未伝播管理表1070に
情報を書込む機能、更新未伝播管理表1070の中の情
報を消去する機能を有するものとする。
Example 6. After the replication described in the first embodiment is performed or after the replication management table 1001 is updated by an update request, the replication management system 1000 requests the database management system other than the database management system that issued the update report for data update. FIG. 18 shows a case where a temporary failure occurs in the path for transferring the signal and the transfer cannot be performed, and a case where the path failure is recovered and the signal can be transferred. In order to avoid such a state that a signal cannot be transferred due to a temporary failure of the route, the data management device has a configuration as shown in FIG. In FIG. 19, reference numeral 1070 denotes an update non-propagation management table that stores information related to data that could not be updated although the update propagation unit 1003 has instructed to perform the update. An update non-propagation management unit 1090 for re-transferring the information of the propagation information is a timer management unit that activates the update non-propagation management unit at regular intervals. In addition to the functions described in the first to fifth embodiments, the update propagation unit 1003 has a function of writing information in the update non-propagation management table 1070 and a function of erasing information in the update non-propagation management table 1070. And

【0059】図19におけるデータ管理装置の動作を説
明する。データベース管理システムから更新報告の信号
を通信管理部1004が受けると、その更新内容を更新
伝播部1003が受取る。更新伝播部1003では受取
った更新報告内容をもとに複製管理表1001を参照す
ることにより原本または複製のデータの格納場所に関す
る情報を調べる。更新伝播部1003は更新報告を行っ
たデータベース管理システム以外のデータベース管理シ
ステムに該当するデータの更新を通信管理部1004を
介して指令する。データの更新の指令を受けたデータベ
ース管理システムは、指令を受けたことを確認するため
の信号を、更新伝播部1003に通信管理部1004を
介して転送する。ここで、更新伝播部1003によるデ
ータ更新の指令がネットワークの障害などによりデータ
ベース管理システムに伝わらなかった場合、更新伝播部
1003は伝わらなかったデータの情報を更新未伝播管
理表1070に格納する。タイマ管理部1090は、一
定周期ごとに更新未伝播管理部1080を起動させる。
更新未伝播管理部1080、タイマ管理部1090によ
り起動し、更新未伝播管理表1070を参照することに
よりデータベース管理システムに転送できなかった情報
があるかどうかを調べ、転送できなかった情報があるな
らば、更新伝播部1003に対し再度データベース管理
システムにデータを更新するように指令を出すように命
令する。以上のような動作により、ネットワークの障害
によるデータ更新指令の未伝達を回避することが可能と
なる。
The operation of the data management device in FIG. 19 will be described. When the communication management unit 1004 receives the update report signal from the database management system, the update propagation unit 1003 receives the update content. The update propagation unit 1003 refers to the copy management table 1001 based on the received update report contents to check the information regarding the storage location of the original or copy data. The update propagation unit 1003 issues an instruction via the communication management unit 1004 to update data corresponding to a database management system other than the database management system that issued the update report. The database management system that has received the command to update the data transfers a signal for confirming that the command has been received to the update propagation unit 1003 via the communication management unit 1004. Here, when the data update command from the update propagation unit 1003 is not transmitted to the database management system due to a network failure or the like, the update propagation unit 1003 stores the information of the data not transmitted in the update unpropagation management table 1070. The timer management unit 1090 activates the update non-propagation management unit 1080 at regular intervals.
The update unpropagation management unit 1080 and the timer management unit 1090 are activated, and by referring to the update unpropagation management table 1070, it is checked whether there is any information that could not be transferred to the database management system. For example, the update propagation unit 1003 is instructed to issue a command to the database management system again to update the data. With the above operation, it is possible to avoid the untransmitted data update command due to the network failure.

【0060】ここで、更新未伝播管理表1070の一例
を図20に示す。更新未伝播管理表1070には、複製
管理システム1000からの更新指令が伝わらなかった
データベース管理システムが管理するデータベース名、
データ名を有するデータの識別子、および変更すべきデ
ータの値を格納している。更新未伝播管理表1070に
上述のような情報を格納することにより未伝播の情報を
再送することが可能となる。
An example of the update unpropagation management table 1070 is shown in FIG. In the update unpropagation management table 1070, the database name managed by the database management system to which the update command from the replication management system 1000 has not been transmitted,
The identifier of the data having the data name and the value of the data to be changed are stored. By storing the above information in the update unpropagation management table 1070, it becomes possible to retransmit the unpropagated information.

【0061】図19の装置を計算機に組込んだ例を図1
8に示す。図18に示しているように複製管理システム
1000からの更新指令がネットワークの障害などによ
り該当するデータベース管理システムに伝わらなくて、
ネットワークの障害の復旧後、更新指令を出すことによ
り該当するデータベース管理システムが管理するデータ
を更新する方法を図22および図23のフローチャート
を用いて説明する。
An example in which the device of FIG. 19 is incorporated in a computer is shown in FIG.
8 shows. As shown in FIG. 18, the update command from the replication management system 1000 is not transmitted to the corresponding database management system due to a network failure or the like,
A method of updating the data managed by the corresponding database management system by issuing an update command after the network failure is recovered will be described with reference to the flowcharts of FIGS. 22 and 23.

【0062】まずネットワークの障害により更新指令が
該当するデータベース管理システムに伝わらないとき、
未更新伝播管理表1070に情報を保存する方法を図2
2を用いて説明する。データベース管理システムが更新
報告の信号を複製管理システム1000に発信する。更
新報告を受けた(処理6000)複製管理システム10
00は、その情報を更新伝播部1003におくり、更新
伝播部1003は複製管理表1001をもとにして、更
新要求を行ったデータベース管理システムが管理するデ
ータが原本のデータであるかどうかを調べる。(処理6
001) 原本のデータである場合、複製管理表1001から複製
のデータをえる。(処理6002) 次に、複製データを管理するデータベース管理システム
へ複製のデータを更新するように指令をだす。(処理6
003) 次に該当するデータベース管理システムへのデータを更
新するための指令が伝わったかどうかを調べる。(処理
6004) 該当するデータベース管理システムへデータを更新する
ための指令が伝わった場合は、処理を終了する。該当す
るデータベース管理システムへデータを更新するための
指令が伝わらなかった場合は、更新未伝播管理表107
0に伝わらなかった情報を書き込んだ後、処理を終了す
る。処理6001において、更新の要求を行ったデータ
ベース管理システムが管理するデータが原本のデータで
ない場合、複製管理表1001から原本のデータをえ
る。(処理6006) 次に、原本のデータを管理するデータベース管理システ
ムへ原本のデータを更新するように指令をだす。(処理
6007) 次に該当するデータベース管理システムへ該当するデー
タを更新するための指令が伝わったかどうかを調べる。
(処理6008) 該当するデータベース管理システムへデータの更新をす
るための指令が伝わった場合は、複製データが更新要求
を行ったデータベース管理システムが管理するデータ以
外にもあるかどうかを調べる。(処理6010) 処理6010において該当する複製のデータが存在しな
ければ処理を終了する。処理6010において該当する
複製のデータが存在する場合、処理6002に移る。処
理6008において、該当するデータベース管理システ
ムへデータ更新の指令が伝わらなかった場合は、更新未
伝播管理表1070に伝わらなかった情報を書き込み
(処理6009)、その後、処理6010に移る。以上
のような方法により、ネットワークの障害によるデータ
の更新指令の未伝播を回避することが可能となる。
First, when the update command is not transmitted to the corresponding database management system due to a network failure,
FIG. 2 shows a method of storing information in the unupdated propagation management table 1070.
2 is used for the explanation. The database management system sends an update report signal to the replication management system 1000. The replication management system 10 that received the update report (process 6000)
00 transmits the information to the update propagation unit 1003. Based on the replication management table 1001, the update propagation unit 1003 checks whether the data managed by the database management system that issued the update request is the original data. . (Process 6
001) When the data is the original data, the copy data is obtained from the copy management table 1001. (Process 6002) Next, a command is issued to the database management system that manages the duplicated data to update the duplicated data. (Process 6
003) Next, it is checked whether or not a command for updating data to the corresponding database management system has been transmitted. (Process 6004) When a command for updating data is transmitted to the corresponding database management system, the process ends. When the command for updating the data is not transmitted to the corresponding database management system, the update unpropagation management table 107
After writing the information that has not been transmitted to 0, the processing ends. In process 6001, if the data managed by the database management system that issued the update request is not the original data, the original data is obtained from the replication management table 1001. (Process 6006) Next, a command is issued to the database management system that manages the original data to update the original data. (Process 6007) Next, it is checked whether or not a command for updating the corresponding data has been transmitted to the corresponding database management system.
(Process 6008) When a command for updating data is transmitted to the corresponding database management system, it is checked whether or not there is duplicated data other than the data managed by the database management system that issued the update request. (Process 6010) If there is no corresponding duplicated data in process 6010, the process ends. If the corresponding duplicated data exists in process 6010, the process moves to process 6002. In process 6008, if the data update command is not transmitted to the relevant database management system, the information that has not been transmitted to the update unpropagation management table 1070 is written (process 6009), and then the process 6010 is entered. By the method as described above, it is possible to avoid the non-propagation of the data update command due to the network failure.

【0063】更新未伝播管理表1070に保存された情
報を再送する方法を図23のフローチャートを用いて説
明する。まず、タイマ管理部1090が一定周期ごとに
更新未伝播管理部1080を起動するための信号を出
す。タイマ管理部1090からの信号を受信した(処理
7000)後、更新未伝播管理部1080は、更新未伝
播管理表1070に未伝播の情報があるかどうかを調べ
る。(処理7002) 処理7000において、未伝播の情報がなければ処理を
終了する。処理7000において、未伝播の情報があれ
ば、更新未伝播管理部1080は更新伝播部1003に
該当するデータベース管理システムにデータ更新の指令
を出すように命令する。(処理7002) 更新伝播部1003は、更新の指令が該当するデータベ
ース管理システムへ伝わったかどうかを調べる。(処理
7003) 処理7003において、指令が該当するデータベース管
理システムに伝わらなかった場合、処理を終了する。処
理7003において、指令が該当するデータベース管理
システムに伝わった場合、更新伝播部1003は、更新
未伝播管理表1070から該当する未伝播の情報を消去
し処理を終了する。
A method of retransmitting the information stored in the update unpropagation management table 1070 will be described with reference to the flowchart of FIG. First, the timer management unit 1090 outputs a signal for activating the update non-propagation management unit 1080 at regular intervals. After receiving the signal from the timer management unit 1090 (process 7000), the update unpropagation management unit 1080 checks whether there is unpropagated information in the update unpropagation management table 1070. (Process 7002) In process 7000, if there is no unpropagated information, the process ends. In process 7000, if there is unpropagated information, the update unpropagation management unit 1080 commands the update propagation unit 1003 to issue a data update command to the corresponding database management system. (Process 7002) The update propagation unit 1003 checks whether the update command has been transmitted to the corresponding database management system. (Process 7003) In process 7003, if the command is not transmitted to the corresponding database management system, the process ends. In process 7003, when the command is transmitted to the relevant database management system, the update propagation unit 1003 erases the relevant unpropagated information from the update unpropagation management table 1070, and ends the process.

【0064】以上のような方法により、ネットワークの
障害によるデータ更新指令の未伝達を回避することが可
能となる。
With the method as described above, it is possible to avoid the untransmitted data update command due to the network failure.

【0065】図18において、データベース1007中
のデータAの複製がデータベース1008中のデータB
にあるとする。今、データAを更新したとき、ネットワ
ークの障害によりデータベース管理システム1006に
データ更新の指令が伝わらず、ネットワークの障害の復
旧後更新指令が伝わる様子を図22および図23のフロ
ーチャートを用いて説明する。計算機1030中のアプ
リケーション1009がデータベース管理システム10
05に対してデータベース1007中のデータAの値を
変更するためコミット要求を行ったとする。要求を受け
た計算機1030中のデータベース管理システム100
5は、図18に示すように、計算機1020中の複製管
理システム1000に対して、データベース1007中
のデータAの値を変更することを報告し(処理600
0)、データAの値を更新した後、アプリケーション1
009に対してコミット終了通知を発行する。アプリケ
ーション1009はその後の処理を続行することができ
る。一方、複製管理システム1000の通信管理部10
04は、更新伝播部1003にデータベース管理システ
ム1005からの更新報告内容を渡す。処理6001に
より更新伝播部1003は、複製管理表1001を参照
することにより、データAが原本のデータであるかどう
かを調べる。この場合、データAは原本であるので、計
算機1040に接続されているデータベース1008中
にデータBとして複製されていることを確認する。(処
理6002) その後、処理6003により計算機1040中のデータ
ベース管理システム1006に対してデータベース10
08中のデータBの値を変更し、コミットする要求を発
行する。しかし、複製管理システムから計算機1040
中のデータベース管理システム1006へいたるネット
ワークに障害が発生しているために、この更新は失敗す
る。(処理6004) そこで、処理6005により更新伝播部1003はこの
更新できなかったデータBに関する情報を更新未伝播管
理表1070に保管する。更新未伝播管理表1070に
は図21のような情報が保存される。一方、処理700
0により、複製管理システム1000内のタイマ管理部
1090によって一定周期おきに更新未伝播管理部10
80を起動させる信号を更新未伝播管理部1080が受
ける。処理7001により、更新未伝播管理部1080
はまず、更新未伝播管理表1070の内容を参照するこ
とにより、未更新の情報があるかどうかを調べ、なけれ
ば終了する。この例では更新未伝播管理表1070に、
未更新のデータの情報が格納されているため、データベ
ース1008中のデータBの値の更新をする指令を更新
伝播部1003に命令をする。次に、処理7002およ
び処理7003により、更新伝播部1003ではデータ
更新の指令が成功すれば、その項目を更新未伝播管理表
1070からこの情報を取り除く。この場合、データベ
ースB中のデータBの値を更新することが試みられ、成
功すれば更新未伝播管理表からこの情報を取り除く。こ
のようにすることによりデータの更新指令の未伝播を回
避することが可能となる。
In FIG. 18, the copy of the data A in the database 1007 is the data B in the database 1008.
Suppose Now, when the data A is updated, how the data update command is not transmitted to the database management system 1006 due to the network failure, and the update command is transmitted after the network failure is recovered will be described with reference to the flowcharts of FIGS. 22 and 23. . The application 1009 in the computer 1030 is the database management system 10
It is assumed that a commit request is issued to 05 to change the value of the data A in the database 1007. Database management system 100 in computer 1030 that received the request
As shown in FIG. 18, 5 reports to the replication management system 1000 in the computer 1020 that the value of the data A in the database 1007 is changed (process 600).
0), after updating the value of data A, application 1
A commit end notification is issued to 009. The application 1009 can continue the subsequent processing. On the other hand, the communication management unit 10 of the replication management system 1000
04 passes the update report content from the database management system 1005 to the update propagation unit 1003. By the process 6001, the update propagation unit 1003 refers to the replication management table 1001 to check whether the data A is the original data. In this case, since the data A is the original data, it is confirmed that the data A is duplicated as the data B in the database 1008 connected to the computer 1040. (Process 6002) After that, in process 6003, the database 10 is sent to the database management system 1006 in the computer 1040.
Change the value of data B in 08 and issue a request to commit. However, from the replication management system to the computer 1040
This update fails because the network to the underlying database management system 1006 has failed. (Process 6004) Therefore, in process 6005, the update propagation unit 1003 stores the information about the data B that could not be updated in the update unpropagation management table 1070. Information as shown in FIG. 21 is stored in the update unpropagation management table 1070. On the other hand, process 700
0, the timer management unit 1090 in the replication management system 1000 updates the non-propagation management unit 10 at regular intervals.
The update non-propagation management unit 1080 receives a signal for activating 80. By the processing 7001, the update non-propagation management unit 1080
First, by referring to the contents of the update unpropagation management table 1070, it is checked whether or not there is any unupdated information, and if there is no update, the process ends. In this example, in the update unpropagation management table 1070,
Since the information of the unupdated data is stored, the update propagation unit 1003 is instructed to update the value of the data B in the database 1008. Next, in processing 7002 and processing 7003, if the data update command succeeds in the update propagation unit 1003, this item is removed from the update unpropagation management table 1070. In this case, an attempt is made to update the value of data B in database B and if successful removes this information from the update unpropagated management table. By doing so, it is possible to avoid the non-propagation of the data update command.

【0066】この例では、更新伝播部1003のデータ
更新の指令がネットワークなどの障害により失敗したと
き、更新未伝播管理表1070、更新未伝播管理部10
80およびタイマ管理部1090により再度、更新伝播
部1003にデータ更新の指令をさせることによりネッ
トワークの障害によるデータ更新の指令の未伝達を回避
できることについてのべた。また、未更新伝播管理表1
070、更新未伝播管理部1080を複製作成部100
2に接続し、かつ複製管理部1002に更新未伝播管理
表へ情報の書込み、および消去の機能をもたせることに
より、複製要求のあったデータベース管理システムへネ
ットワークの障害などにより情報が転送できなかった場
合、この情報を更新未伝播管理表1070に保存しタイ
マ管理部1090により起動した更新未伝播管理部10
80により再度情報の転送を指示するように複製作成部
1002に命令することにより、ネットワークの障害に
よる複製データの転送の失敗を回避することが可能とな
る。(図示せず) また、更新未伝播管理表1070、更新未伝播管理部1
080およびタイマ管理部1090をデータベース管理
システムへ組込むことにより、複製管理システムへ複製
データの要求、データ更新の報告の信号がネットワーク
の障害などにより複製管理システムへ伝わらなかったと
き、これを回避することが可能となる。(図示せず)
In this example, when the data update command of the update propagation unit 1003 fails due to a failure such as a network, the update non-propagation management table 1070 and the update non-propagation management unit 10 are executed.
It has been described that the untransmitted data update command due to a network failure can be avoided by causing the update propagation unit 1003 to again issue the data update command by the 80 and the timer management unit 1090. In addition, the unupdated propagation management table 1
070, the update unpropagation management unit 1080, and the copy creation unit 100
By connecting to No. 2 and making the replication management unit 1002 have the function of writing and erasing information in the update unpropagation management table, the information could not be transferred to the database management system that made the replication request due to a network failure or the like. In this case, this information is stored in the update unpropagation management table 1070 and started by the timer management unit 1090.
By instructing the copy creating unit 1002 to instruct the transfer of information again by 80, it becomes possible to avoid the failure of the transfer of the copy data due to the network failure. (Not shown) In addition, the update non-propagation management table 1070 and the update non-propagation management unit 1
By incorporating the 080 and the timer management unit 1090 into the database management system, when the replication management system does not transmit a replication data request signal or a data update report signal to the replication management system due to a network failure, etc. Is possible. (Not shown)

【0067】[0067]

【発明の効果】請求項1に記載のデータ管理装置は、複
数のデータベース、および前記複数のデータベースに対
応した複数のデータベース管理システムを備えた分散型
データベースにおいて、第一のデータベースを管理する
第一のデータベース管理システムと、第二のデータベー
スを管理する第二のデータベース管理システムと、前記
第一のデータベース管理システム、または前記第二のデ
ータベース管理システムのいずれか一方のデータベース
管理システムが他方のデータベース管理システムに対
し、前記他方のデータベース管理システムが管理するデ
ータベース内に存在するデータを要求したとき、前記他
方のデータベース管理システムが管理するデータベース
内に存在するデータに関する情報を取得し、前記取得し
たデータと前記データの転送先のデータとに関する情報
を記憶し、前記取得したデータを要求したデータベース
管理システムへ前記取得したデータを前記転送先のデー
タに前記取得したデータの格納を指令する機能を有する
複製管理システムとを備えたことによりデータの一元性
を確保することが可能となる。
According to the data management apparatus of the present invention, in a distributed database comprising a plurality of databases and a plurality of database management systems corresponding to the plurality of databases, the first database is managed first. Database management system, a second database management system that manages a second database, one of the first database management system and the second database management system, and the other database management system is the other database management system. When the system is requested for data existing in the database managed by the other database management system, information regarding the data existing in the database managed by the other database management system is acquired, and the acquired data and The day And a copy management system having a function of storing information about the transfer destination data and instructing the database management system that has requested the acquired data to store the acquired data in the transfer destination data. With the provision of, it becomes possible to secure the unity of data.

【0068】請求項2に記載のデータ管理装置は、複数
のデータベース、および前記複数のデータベースに対応
した複数のデータベース管理システムを備えた分散型デ
ータベースにおいて、第一のデータベースを管理する第
一のデータベース管理システムと、第二のデータベース
を管理する第二のデータベース管理システムと、前記第
一のデータベース管理システム、または前記第二のデー
タベース管理システムのいずれか一方のデータベース管
理システムが管理するデータベース内に存在するデータ
を更新したとき、前記データの複製のデータが存在する
かどうかを調べ、該複製のデータが存在する場合、前記
複製のデータが存在するデータベースを管理するデータ
ベース管理システムへ前記複製のデータの更新を指令す
る機能を有する複製管理システムとを備えたことにより
アプリケーションの処理を停止する時間が短縮され、か
つデータの一元性を確保することが可能となる。
A data management apparatus according to a second aspect is a distributed database including a plurality of databases and a plurality of database management systems corresponding to the plurality of databases. The first database manages the first database. Management system, a second database management system that manages a second database, and a database managed by one of the first database management system and the second database management system. When the data to be updated is updated, it is checked whether or not the duplicated data of the data exists. A device with the function of instructing update It reduces the time to stop the processing of the application by providing a management system, and it is possible to ensure centralized of data.

【0069】請求項3に記載のデータ管理装置は、複数
のデータベース、および前記複数のデータベースに対応
した複数のデータベース管理システムを備えた分散型デ
ータベースにおいて、第一のデータベースを管理する第
一のデータベース管理システムと、第二のデータベース
を管理する第二のデータベース管理システムと、前記第
一のデータベース管理システム、または前記第二のデー
タベース管理システムのいずれか一方のデータベース管
理システムが管理するデータベース内に存在するデータ
を更新したとき、前記データの原本のデータが存在する
かどうかを調べ、該原本のデータが存在する場合、前記
原本のデータが存在するデータベースを管理するデータ
ベース管理システムへ前記原本データの更新を指令する
機能を有する複製管理システムとを備えたことによりア
プリケーションの処理を停止する時間が短縮され、かつ
データの一元性を確保することが可能となる。
A data management apparatus according to a third aspect is a distributed database including a plurality of databases and a plurality of database management systems corresponding to the plurality of databases. The first database manages the first database. Management system, a second database management system that manages a second database, and a database managed by one of the first database management system and the second database management system. When updating the data, it is checked whether or not the original data of the data exists, and if the original data exists, the original data is updated to a database management system that manages a database in which the original data exists. With the function of commanding Time to stop the processing of the application by providing a physical system can be shortened, and it is possible to ensure centralized of data.

【0070】請求項4に記載のデータ管理装置におい
て、前記複製管理システムは、データの格納の指令、ま
たはデータの更新の指令が前記データベース管理システ
ムへ伝わらなかった場合、一定時間経過後再び前記デー
タ格納の指令、または前記データ更新の指令を行う機能
を備えたことによりネットワーク(通信経路)の障害に
よる情報の未伝播を回避することが可能となる。
[0070] In the data management apparatus according to claim 4, the replication management system, when a data storage command or a data update command is not transmitted to the database management system, returns the data again after a certain period of time. By having a function of issuing a storage command or a data update command, it is possible to avoid non-propagation of information due to a network (communication path) failure.

【0071】請求項5に記載のデータ管理装置におい
て、前記複製管理システムは、情報の送信および受信を
管理する通信管理部と、原本のデータと複製のデータと
の情報を格納する複製管理表と、前記データベース管理
システムからデータの複製の要求があったとき、前記原
本のデータと前記複製のデータとの関係の情報を複製管
理表に格納し、前記原本のデータを複製の要求があった
データベース管理システムへ転送する指令をする複製作
成部と、前記データベース管理システムからデータの更
新を報告があったとき前記データの原本のデータ、また
は前記データの複製のデータがあるかどうかを調べ、前
記データの原本のデータ、または前記データの複製のデ
ータがある場合、前記原本のデータ、または前記複製の
データを格納するデータベースを管理するデータベース
管理システムへデータ更新の指令をする更新伝播部とを
備えたことによりデータの一元性を確保することが可能
となる。
In the data management apparatus according to claim 5, the replication management system includes a communication management unit that manages transmission and reception of information, and a replication management table that stores information on original data and duplicated data. A database that stores a request for duplication of the original data when a database duplication request is made by the database management system, information about the relationship between the original data and the duplicated data is stored in a duplication management table. A duplication creating unit for instructing transfer to the management system, and when there is a report of data update from the database management system, checks whether there is original data of the data or duplication data of the data, and Original data, or a copy of the above data, if there is data for the original or a copy of the data, Database can be secured centrally of data by providing an update propagation unit for the command of the data update to a database management system for managing.

【0072】請求項6に記載のデータ管理装置におい
て、前記複製管理システムは、データまたはデータ更新
指令に関する情報が前記第一のデータベース管理システ
ム、または前記第二のデータベース管理システムに転送
できかった場合、転送できなかった前記データまたは前
記データ更新指令に関する情報を格納する更新未伝播管
理表と、前記更新未伝播管理表に情報が格納されている
場合、データを再転送するように前記複製作成部、また
は前記更新伝播部に指示する更新未伝播管理部と、一定
時間ごとに前記更新未伝播管理部を起動させるタイマ管
理部とを備えたことによりネットワーク(通信経路)の
障害による情報の未伝播を回避することが可能となる。
In the data management apparatus according to claim 6, when the replication management system cannot transfer data or information about a data update command to the first database management system or the second database management system. An update non-propagation management table that stores information about the data that could not be transferred or the data update command, and, if information is stored in the update non-propagation management table, the copy creation unit that re-transfers the data , Or the non-propagation of information due to a failure of a network (communication path) by providing an update non-propagation management unit that instructs the update propagation unit and a timer management unit that activates the update non-propagation management unit at regular time intervals. Can be avoided.

【0073】請求項7に記載のデータ管理装置におい
て、前記データベース管理システムは、前記データベー
ス管理システムが管理するデータベース内の異なる2つ
のデータに対応関係がある場合、前記異なる2つのデー
タのいずれか1つを更新したとき、他方のデータを前記
更新したデータと前記対応関係を満足するように更新す
る機能を備えたことにより一貫性制約のある異なる2つ
のデータのいずれか一方を更新した場合、他方のデータ
を一貫性制約を満足するように更新することが可能とな
る。
In the data management apparatus according to claim 7, if the database management system has a correspondence relationship between two different data in the database managed by the database management system, one of the two different data is stored. When one of two different data having a consistency constraint is updated by providing a function of updating the other data so as to satisfy the correspondence relationship with the updated data when the other data is updated, the other Data can be updated to satisfy the consistency constraint.

【0074】請求項8に記載のデータ管理方法は、複数
のデータベース、および前記複数のデータベースに対応
した複数のデータベース管理システムを備えた分散型デ
ータベースにおいて、第一のデータベースを管理する第
一のデータベース管理システム、または第二のデータベ
ースを管理する第二のデータベース管理システムのいず
れか一方のデータベース管理システムが他方のデータベ
ース管理システムに対し、前記他方のデータベース管理
システムが管理するデータベース内に存在するデータを
要求したとき、前記他方のデータベース管理システムが
管理するデータベース内に存在するデータに関する情報
を取得し、前記取得したデータと前記データの転送先の
データとに関する情報を記憶し、前記取得したデータを
要求したデータベース管理システムへ前記取得したデー
タを前記転送先のデータに前記取得したデータの格納を
指令することによりデータの一元性を確保することが可
能となる。
The data management method according to claim 8 is a distributed database comprising a plurality of databases and a plurality of database management systems corresponding to the plurality of databases, the first database managing the first database. Either the management system or the second database management system that manages the second database, one database management system sends the data existing in the database managed by the other database management system to the other database management system. When requested, the information related to the data existing in the database managed by the other database management system is acquired, the information related to the acquired data and the data of the transfer destination of the data is stored, and the acquired data is requested. Database The scan was the acquisition to the management system data can be secured centrally of data by commanding the storage of data in the acquired the data transfer destination.

【0075】請求項9に記載のデータ管理方法は、複数
のデータベース、および前記複数のデータベースに対応
した複数のデータベース管理システムを備えた分散型デ
ータベースにおいて、第一のデータベースを管理する第
一のデータベース管理システム、または第二のデータベ
ースを管理する第二のデータベース管理システムのいず
れか一方のデータベース管理システムが管理するデータ
ベース内に存在するデータを更新したとき、前記データ
の複製のデータが存在するかどうかを調べ、該複製のデ
ータが存在する場合、前記複製のデータが存在するデー
タベースを管理するデータベース管理システムへ前記複
製のデータの更新を指令することによりアプリケーショ
ンの処理を停止する時間が短縮され、かつデータの一元
性を確保することが可能となる。
According to a ninth aspect of the data management method, in a distributed database including a plurality of databases and a plurality of database management systems corresponding to the plurality of databases, a first database for managing the first database is provided. Whether data existing in the database managed by either the management system or the second database management system that manages the second database is updated, and whether or not there is duplicated data of the data And if the duplicated data exists, the time for stopping the processing of the application is shortened by instructing the database management system that manages the database in which the duplicated data exists to update the duplicated data, and Ensuring data integrity It can become.

【0076】請求項10に記載のデータ管理方法は、複
数のデータベース、および前記複数のデータベースに対
応した複数のデータベース管理システムを備えた分散型
データベースにおいて、第一のデータベースを管理する
第一のデータベース管理システム、または第二のデータ
ベースを管理する第二のデータベース管理システムのい
ずれか一方のデータベース管理システムが管理するデー
タベース内に存在するデータを更新したとき、前記デー
タの原本のデータが存在するかどうかを調べ、該原本の
データが存在する場合、前記原本のデータが存在するデ
ータベースを管理するデータベース管理システムへ前記
原本のデータの更新を指令することによりアプリケーシ
ョンの処理を停止する時間が短縮され、かつデータの一
元性を確保することが可能となる。
A data management method according to a tenth aspect of the present invention is a distributed database comprising a plurality of databases and a plurality of database management systems corresponding to the plurality of databases, the first database managing the first database. Whether the original data of the data exists when the data existing in the database managed by either the management system or the second database management system that manages the second database is updated If the data of the original exists, the time to stop the processing of the application is shortened by instructing the database management system that manages the database in which the data of the original exists to update the data of the original, and To ensure data unity It is possible.

【0077】請求項11に記載のデータ管理方法は、デ
ータ、またはデータ更新指令に関する情報が前記データ
ベース管理システム、または複製管理システムに転送で
きなかった場合、転送できなかった前記データ、または
前記データ更新指令に関する情報を格納し、一定時間経
過後、転送できなかった前記データ、または前記データ
更新指令を前記データベース管理システムへ転送するこ
とによりネットワーク(通信経路)の障害による情報の
未伝播を回避することが可能となる。
According to the data management method of the eleventh aspect, when the data or the information about the data update command cannot be transferred to the database management system or the replication management system, the data that cannot be transferred or the data update is executed. Information related to a command is stored, and after a certain period of time, the above-mentioned data that could not be transferred or the above-mentioned data update command is transferred to the above-mentioned database management system to avoid the non-propagation of the information due to the failure of the network (communication path). Is possible.

【0078】請求項12に記載のデータ管理方法は、デ
ータベース管理システムが管理するデータベース内の異
なる2つのデータに対応関係がある場合、前記異なる2
つのデータのいずれか1つを更新したとき、他方のデー
タを前記更新したデータと前記対応関係を満足するよう
に更新することにより一貫性制約のある異なる2つのデ
ータのいずれか一方を更新した場合、他方のデータを一
貫性制約を満足するように更新することが可能となる。
According to a twelfth aspect of the data management method, when two different data in the database managed by the database management system have a corresponding relationship, the two different data are stored.
When any one of the two data is updated, and the other data is updated so as to satisfy the correspondence relationship between the updated data and the updated data, and either one of the two different data having a consistency constraint is updated. , The other data can be updated to satisfy the consistency constraint.

【0079】請求項13に記載のデータ管理方法は、デ
ータベース管理システムが管理するデータベース内の異
なる2つのデータに対応関係がある場合、前記異なる2
つのデータのいずれか1つを更新したとき、他方のデー
タを前記更新したデータと前記対応関係を満足するよう
に更新し、前記他方のデータの原本のデータ、または前
記他方のデータの複製のデータを管理するデータベース
管理システムへ前記原本のデータ、または前記複製のデ
ータの更新を指令することによりデータの一元性と一貫
性制約とを満足するように更新することが可能となる。
According to the data management method of the thirteenth aspect, when two different data in the database managed by the database management system have a correspondence relationship, the two different data are stored.
When any one of the two data is updated, the other data is updated so as to satisfy the correspondence relationship with the updated data, and the original data of the other data or the duplicated data of the other data. It is possible to update the original data or the duplicated data by instructing the database management system for managing the data so as to satisfy the unity and consistency constraint of the data.

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

【図1】本発明の実施例1におけるデータ管理装置の構
成を示す図である。
FIG. 1 is a diagram showing a configuration of a data management device according to a first embodiment of the present invention.

【図2】本発明の実施例1または実施例6のデータ管理
装置をネットワークを構成する計算機システムに組込ん
だ一例を示す図である。
FIG. 2 is a diagram showing an example in which the data management apparatus according to the first or sixth embodiment of the present invention is incorporated in a computer system that constitutes a network.

【図3】本発明の実施例1における複製のデータを作成
する手順を示すフローチャートである。
FIG. 3 is a flowchart showing a procedure for creating duplicated data according to the first embodiment of the present invention.

【図4】本発明の実施例1における複製のデータの要求
を示す図である。
FIG. 4 is a diagram showing a request for duplicated data according to the first embodiment of the present invention.

【図5】本発明の実施例1における複製のデータの要求
した際におけるデータの流れを示す図である。
FIG. 5 is a diagram showing a data flow when a copy data request is made in the first embodiment of the present invention.

【図6】複製管理表の一例を示す図である。FIG. 6 is a diagram showing an example of a duplication management table.

【図7】複製管理表に原本のデータと複製のデータとの
関係を複製管理表に書込んだ一例を表す図である。
FIG. 7 is a diagram showing an example in which the relationship between original data and duplicated data is written in the duplication management table.

【図8】複製管理表に原本のデータと複製のデータとの
関係を複製管理表に書込んだ一例を表す図である。
FIG. 8 is a diagram showing an example in which the relationship between original data and duplicated data is written in the duplicate management table in the duplicate management table.

【図9】複製管理表に原本のデータと複製のデータとの
関係を複製管理表に書込んだ一例を表す図である。
FIG. 9 is a diagram showing an example in which the relationship between original data and duplicated data is written in the duplication management table.

【図10】実施例2において、原本のデータを更新した
際に複製管理システムにデータの更新を報告し、前記デ
ータの複製のデータを管理するデータベース管理システ
ムにデータの更新を指示する手順を示すフローチャート
である。
FIG. 10 shows a procedure of reporting the data update to the replication management system when updating the original data and instructing the database management system that manages the data replication of the data to update the data in the second embodiment. It is a flowchart.

【図11】実施例2において、原本のデータを更新した
際に複製管理システムにデータの更新を報告し、前記デ
ータの複製のデータを管理するデータベース管理システ
ムにデータの更新を指示する様子を示す図である。
FIG. 11 shows a state in which, in the second embodiment, when the original data is updated, the data update is reported to the replication management system, and the database management system that manages the duplicated data is instructed to update the data. It is a figure.

【図12】実施例3において、複製のデータを更新した
際に複製管理システムにデータの更新を報告し、前記デ
ータの原本のデータを管理するデータベース管理システ
ムにデータの更新を指示する手順を示すフローチャート
である。
FIG. 12 shows a procedure of reporting a data update to the replication management system when updating the replication data and instructing the database management system that manages the original data of the data to update the data in the third embodiment. It is a flowchart.

【図13】実施例3において、複製のデータを更新した
際に複製管理システムにデータの更新を報告し、前記デ
ータの原本のデータを管理するデータベース管理システ
ムにデータの更新を指示する様子を示す図である。
FIG. 13 shows a state in which, when updating the copy data, the update of the data is reported to the copy management system and the database management system managing the original data of the data is instructed to update the data in the third embodiment. It is a figure.

【図14】本発明の実施例4において、データベース中
の異なる2つのデータ間に一貫性制約が存在する場合、
前記異なる2つのデータのいずれか一つのデータを更新
した際に、他方のデータを一貫性制約を満足するように
更新する方法を示すフローチャートである。
FIG. 14 is a diagram illustrating a case where a consistency constraint exists between two different data in a database according to the fourth embodiment of the present invention.
9 is a flowchart showing a method of updating one of the two different data and updating the other data so as to satisfy a consistency constraint.

【図15】本発明の実施例4において、データベース中
の異なる2つのデータ間に一貫性制約が存在する場合、
前記異なる2つのデータのいずれか一つのデータを更新
した際に、他方のデータを一貫性制約を満足するように
更新する様子を示す図である。
FIG. 15 is a diagram illustrating a case where a consistency constraint exists between two different data in a database according to the fourth embodiment of the present invention.
It is a figure which shows a mode that when one of the two different data is updated, the other data is updated so as to satisfy the consistency constraint.

【図16】本発明の実施例5において、データベース中
の異なる2つのデータ間に一貫性制約が存在し、かつ異
なる2つのデータにはそれぞれ原本、または複製のデー
タが存在する場合、前記原本のデータを更新した際に関
係するデータを一元性、および一貫性満足するように更
新する様子を示す図である。
FIG. 16 is a diagram illustrating a case where a consistency constraint exists between two different data in a database and an original copy or duplicate data exists in each of the two different data in Example 5 of the present invention. It is a figure which shows a mode that the related data is updated so as to satisfy the unity and the consistency when the data is updated.

【図17】本発明の実施例5において、データベース中
の異なる2つのデータ間に一貫性制約が存在し、かつ異
なる2つのデータにはそれぞれ原本、または複製のデー
タが存在する場合、前記原本のデータを更新する前に複
製管理表に格納されている情報を示す図である。
FIG. 17 In Example 5 of the present invention, when there is a consistency constraint between two different data in the database, and two different data each have an original or duplicate data, the original It is a figure which shows the information stored in the duplication management table before updating data.

【図18】本発明の実施例6において、通信路障害など
により複製管理システムからデータベース管理システム
へ情報が伝えられなかった様子と、障害が快復したとき
に情報が伝えられる様子を示す図である。
FIG. 18 is a diagram showing a state in which information is not transmitted from the replication management system to the database management system due to a communication path failure or the like and a state in which information is transmitted when the failure is recovered in Example 6 of the present invention. .

【図19】本発明の実施例6におけるデータ管理装置を
示す図である。
FIG. 19 is a diagram showing a data management device according to a sixth embodiment of the present invention.

【図20】本発明の実施例6における更新未伝播管理表
の一例を示す図である。
FIG. 20 is a diagram showing an example of an update unpropagation management table according to the sixth embodiment of the present invention.

【図21】本発明の実施例6における更新未伝播管理表
に情報を書込んだ一例を示す図である。
FIG. 21 is a diagram showing an example in which information is written in the update unpropagation management table according to the sixth embodiment of the present invention.

【図22】本発明の実施例6において、通信路障害など
により複製管理システムからデータベース管理システム
へ情報が伝えられなかった場合に、複製管理表に情報を
格納する手順を示すフローチャートである。
FIG. 22 is a flow chart showing a procedure of storing information in the replication management table when information is not transmitted from the replication management system to the database management system due to a communication path failure or the like in the sixth embodiment of the present invention.

【図23】本発明の実施例6において、通信路障害など
により複製管理システムからデータベース管理システム
へ情報が伝えられなかった場合に、情報を再送する手順
を示すフローチャートである。
FIG. 23 is a flowchart showing a procedure of retransmitting information in the sixth embodiment of the present invention when information is not transmitted from the replication management system to the database management system due to a communication path failure or the like.

【図24】従来の分散データベースにおけるデータ管理
方法を実現する装置を示す図である。
FIG. 24 is a diagram showing an apparatus that realizes a conventional data management method in a distributed database.

【図25】特開平5―225027における複製データ
管理方式を実現する装置を示す図である。
FIG. 25 is a diagram showing an apparatus that realizes a duplicated data management method in Japanese Patent Laid-Open No. 5-225027.

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

101 複製サーバ 102 ログ転送
マネージャ 103 データベース 201 複製サー
バ 202 ログ転送マネージャ 203 データベ
ース 204 データベース 300 ネットワ
ーク 400 アプリケーション 501 データベ
ース管理システム 503 データベース 601 データベ
ース管理システム 603 データベース 1000 複製管
理システム 1001 複製管理表 1002 複製作
成部 1003 更新伝播部 1004 通信管
理部 1005 データベース管理システム 1006 データベース管理システム 1007 データベース 1008 データ
ベース 1009 アプリケーション 1010 アプリ
ケーション 1020 計算機 1030 計算機 1040 計算機 1050 外部記
憶装置 1060 外部記憶装置 1070 更新未
伝播管理表 1080 更新未伝播管理部 1090 タイマ
管理部 1100 計算機 1110 アプリ
ケーション 1120 データベース管理システム 1130 データベース 1140 外部記
憶装置
101 replication server 102 log transfer manager 103 database 201 replication server 202 log transfer manager 203 database 204 database 300 network 400 application 501 database management system 503 database 601 database management system 603 database 1000 replication management system 1001 replication management table 1002 replication creation unit 1003 update Propagation unit 1004 Communication management unit 1005 Database management system 1006 Database management system 1007 Database 1008 Database 1009 Application 1010 Application 1020 Computer 1030 Computer 1040 Computer 1050 External storage device 1060 External storage device 1070 Update non-propagation management table 1 80 update unpropagated managing unit 1090 timer managing unit 1100 computer 1110 Application 1120 Database Management System 1130 Database 1140 external storage device

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】 複数のデータベース、および前記複数の
データベースに対応した複数のデータベース管理システ
ムを備えた分散型データベースにおいて、第一のデータ
ベースを管理する第一のデータベース管理システムと、
第二のデータベースを管理する第二のデータベース管理
システムと、前記第一のデータベース管理システム、ま
たは前記第二のデータベース管理システムのいずれか一
方のデータベース管理システムが他方のデータベース管
理システムに対し、前記他方のデータベース管理システ
ムが管理するデータベース内に存在するデータを要求し
たとき、前記他方のデータベース管理システムが管理す
るデータベース内に存在するデータに関する情報を取得
し、前記取得したデータと前記データの転送先のデータ
とに関する情報を記憶し、前記取得したデータを要求し
たデータベース管理システムへ前記取得したデータを前
記転送先のデータに前記取得したデータの格納を指令す
る機能を有する複製管理システムとを備えたデータ管理
装置。
1. A first database management system for managing a first database in a distributed database comprising a plurality of databases and a plurality of database management systems corresponding to the plurality of databases,
A second database management system that manages a second database, and one of the first database management system and the second database management system, wherein the other database management system is the other database management system. When requesting the data existing in the database managed by the database management system, the information about the data existing in the database managed by the other database management system is acquired, and the acquired data and the transfer destination of the data Data including information relating to data, and a replication management system having a function of instructing a database management system that has requested the acquired data to store the acquired data in the transfer destination data of the acquired data Management device.
【請求項2】 複数のデータベース、および前記複数の
データベースに対応した複数のデータベース管理システ
ムを備えた分散型データベースにおいて、第一のデータ
ベースを管理する第一のデータベース管理システムと、
第二のデータベースを管理する第二のデータベース管理
システムと、前記第一のデータベース管理システム、ま
たは前記第二のデータベース管理システムのいずれか一
方のデータベース管理システムが管理するデータベース
内に存在するデータを更新したとき、前記データの複製
のデータが存在するかどうかを調べ、該複製のデータが
存在する場合、前記複製のデータが存在するデータベー
スを管理するデータベース管理システムへ前記複製のデ
ータの更新を指令する機能を有する複製管理システムと
を備えたデータ管理装置。
2. A first database management system for managing a first database in a distributed database comprising a plurality of databases and a plurality of database management systems corresponding to the plurality of databases,
Updating the data existing in the database managed by the second database management system for managing the second database, the first database management system, or the second database management system. Then, it is checked whether or not the duplicated data of the data exists, and if the duplicated data exists, the database management system that manages the database in which the duplicated data exists instructs the database management system to update the duplicated data. A data management device having a replication management system having a function.
【請求項3】 複数のデータベース、および前記複数の
データベースに対応した複数のデータベース管理システ
ムを備えた分散型データベースにおいて、第一のデータ
ベースを管理する第一のデータベース管理システムと、
第二のデータベースを管理する第二のデータベース管理
システムと、前記第一のデータベース管理システム、ま
たは前記第二のデータベース管理システムのいずれか一
方のデータベース管理システムが管理するデータベース
内に存在するデータを更新したとき、前記データの原本
のデータが存在するかどうかを調べ、該原本のデータが
存在する場合、前記原本のデータが存在するデータベー
スを管理するデータベース管理システムへ前記原本デー
タの更新を指令する機能を有する複製管理システムとを
備えたデータ管理装置。
3. A first database management system for managing a first database in a distributed database comprising a plurality of databases and a plurality of database management systems corresponding to the plurality of databases,
Updating the data existing in the database managed by the second database management system for managing the second database, the first database management system, or the second database management system. Then, it is checked whether or not the original data of the data exists, and if the original data exists, a function of instructing a database management system that manages a database in which the original data exists to update the original data. And a data management device having a replication management system having the following.
【請求項4】 前記複製管理システムは、データの格納
の指令、またはデータの更新の指令が前記データベース
管理システムへ伝わらなかった場合、一定時間経過後再
び前記データ格納の指令、または前記データ更新の指令
を行う機能を有する請求項1から3のいずれかに記載の
データ管理装置。
4. The replication management system, when a data storage command or a data update command is not transmitted to the database management system, returns the data storage command or the data update command again after a certain period of time. The data management device according to claim 1, which has a function of issuing a command.
【請求項5】 前記複製管理システムは、情報の送信お
よび受信を管理する通信管理部と、原本のデータと複製
のデータとの情報を格納する複製管理表と、前記データ
ベース管理システムからデータの複製の要求があったと
き、前記原本のデータと前記複製のデータとの関係の情
報を複製管理表に格納し、前記原本のデータを複製の要
求があったデータベース管理システムへ転送する指令を
する複製作成部と、前記データベース管理システムから
データの更新を報告があったとき前記データの原本のデ
ータ、または前記データの複製のデータがあるかどうか
を調べ、前記データの原本のデータ、または前記データ
の複製のデータがある場合、前記原本のデータ、または
前記複製のデータを格納するデータベースを管理するデ
ータベース管理システムへデータ更新の指令をする更新
伝播部とを備えた請求項1から4のいずれかに記載のデ
ータ管理装置。
5. The replication management system includes a communication management unit that manages transmission and reception of information, a replication management table that stores information on original data and duplicated data, and data replication from the database management system. Request to store the information on the relationship between the original data and the duplicated data in the duplication management table and issue a command to transfer the original data to the database management system that requested the duplication. When there is a report of data update from the creation unit and the database management system, it is checked whether there is data of the original data of the data, or data of duplication of the data, and the original data of the data or the data of the data. If there is duplicated data, a database management system that manages the original data or the database that stores the duplicated data. The data management apparatus according to any one of claims 1 to 4, further comprising an update propagation unit that issues a data update command to the system.
【請求項6】 前記複製管理システムは、データまたは
データ更新指令に関する情報が前記第一のデータベース
管理システム、または前記第二のデータベース管理シス
テムに転送できかった場合、転送できなかった前記デー
タまたは前記データ更新指令に関する情報を格納する更
新未伝播管理表と、前記更新未伝播管理表に情報が格納
されている場合、データを再転送するように前記複製作
成部、または前記更新伝播部に指示する更新未伝播管理
部と、一定時間ごとに前記更新未伝播管理部を起動させ
るタイマ管理部とを備えた請求項5に記載のデータ管理
装置。
6. The replication management system, when information about data or a data update command cannot be transferred to the first database management system or the second database management system, the data that cannot be transferred or the data An update non-propagation management table that stores information related to a data update command, and when information is stored in the update non-propagation management table, instructs the replication creation unit or the update propagation unit to retransfer the data. The data management device according to claim 5, further comprising: an update non-propagation management unit; and a timer management unit that activates the update non-propagation management unit at regular time intervals.
【請求項7】 前記データベース管理システムは、前記
データベース管理システムが管理するデータベース内の
異なる2つのデータに対応関係がある場合、前記異なる
2つのデータのいずれか1つを更新したとき、他方のデ
ータを前記更新したデータと前記対応関係を満足するよ
うに更新する機能を備えた請求項1から6のいずれかに
記載のデータ管理装置。
7. The database management system, when two different data in a database managed by the database management system have a correspondence relationship, when one of the two different data is updated, the other data is updated. 7. The data management device according to claim 1, further comprising: a function of updating so as to satisfy the correspondence relationship with the updated data.
【請求項8】 複数のデータベース、および前記複数の
データベースに対応した複数のデータベース管理システ
ムを備えた分散型データベースにおいて、第一のデータ
ベースを管理する第一のデータベース管理システム、ま
たは第二のデータベースを管理する第二のデータベース
管理システムのいずれか一方のデータベース管理システ
ムが他方のデータベース管理システムに対し、前記他方
のデータベース管理システムが管理するデータベース内
に存在するデータを要求したとき、前記他方のデータベ
ース管理システムが管理するデータベース内に存在する
データに関する情報を取得し、前記取得したデータと前
記データの転送先のデータとに関する情報を記憶し、前
記取得したデータを要求したデータベース管理システム
へ前記取得したデータを前記転送先のデータに前記取得
したデータの格納を指令するデータ管理方法。
8. In a distributed database comprising a plurality of databases and a plurality of database management systems corresponding to the plurality of databases, a first database management system or a second database for managing the first database is used. When one of the second database management systems to be managed requests the other database management system for data existing in the database managed by the other database management system, the other database management system The information about the data existing in the database managed by the system is acquired, the information about the acquired data and the data of the transfer destination of the data is stored, and the acquired data is stored in the database management system that requested the acquired data. A data management method for instructing storage of the acquired data in the data of the transfer destination.
【請求項9】 複数のデータベース、および前記複数の
データベースに対応した複数のデータベース管理システ
ムを備えた分散型データベースにおいて、第一のデータ
ベースを管理する第一のデータベース管理システム、ま
たは第二のデータベースを管理する第二のデータベース
管理システムのいずれか一方のデータベース管理システ
ムが管理するデータベース内に存在するデータを更新し
たとき、前記データの複製のデータが存在するかどうか
を調べ、該複製のデータが存在する場合、前記複製のデ
ータが存在するデータベースを管理するデータベース管
理システムへ前記複製のデータの更新を指令するデータ
管理方法。
9. In a distributed database comprising a plurality of databases and a plurality of database management systems corresponding to the plurality of databases, a first database management system for managing the first database or a second database is provided. When the data existing in the database managed by one of the second database management systems to be managed is updated, it is checked whether or not there is duplicate data of the data, and the duplicate data exists. In this case, the data management method for instructing a database management system that manages a database in which the duplicated data exists to update the duplicated data.
【請求項10】 複数のデータベース、および前記複数
のデータベースに対応した複数のデータベース管理シス
テムを備えた分散型データベースにおいて、第一のデー
タベースを管理する第一のデータベース管理システム、
または第二のデータベースを管理する第二のデータベー
ス管理システムのいずれか一方のデータベース管理シス
テムが管理するデータベース内に存在するデータを更新
したとき、前記データの原本のデータが存在するかどう
かを調べ、該原本のデータが存在する場合、前記原本の
データが存在するデータベースを管理するデータベース
管理システムへ前記原本のデータの更新を指令するデー
タ管理方法。
10. A first database management system for managing a first database in a distributed database comprising a plurality of databases and a plurality of database management systems corresponding to the plurality of databases,
Or, when updating the data existing in the database managed by either one of the second database management system managing the second database, check whether or not the original data of the data exists, A data management method for instructing a database management system, which manages a database in which the original data exists, to update the original data when the original data exists.
【請求項11】 データ、またはデータ更新指令に関す
る情報が前記データベース管理システム、または複製管
理システムに転送できなかった場合、転送できなかった
前記データ、または前記データ更新指令に関する情報を
格納し、一定時間経過後、転送できなかった前記デー
タ、または前記データ更新指令を前記データベース管理
システムへ転送する請求項8から10のいずれかに記載
のデータ管理方法。
11. When data or information related to a data update command cannot be transferred to the database management system or copy management system, the data that could not be transferred or information related to the data update command is stored for a certain period of time. 11. The data management method according to claim 8, wherein after the elapse, the data that could not be transferred or the data update command is transferred to the database management system.
【請求項12】 データベース管理システムが管理する
データベース内の異なる2つのデータに対応関係がある
場合、前記異なる2つのデータのいずれか1つを更新し
たとき、他方のデータを前記更新したデータと前記対応
関係を満足するように更新する請求項8から11のいず
れかに記載のデータ管理方法。
12. When two different data in a database managed by a database management system have a correspondence relationship, when any one of the two different data is updated, the other data is changed to the updated data. The data management method according to any one of claims 8 to 11, which is updated so as to satisfy the correspondence relationship.
【請求項13】 データベース管理システムが管理する
データベース内の異なる2つのデータに対応関係がある
場合、前記異なる2つのデータのいずれか1つを更新し
たとき、他方のデータを前記更新したデータと前記対応
関係を満足するように更新し、前記他方のデータの原本
のデータ、または前記他方のデータの複製のデータを管
理するデータベース管理システムへ前記原本のデータ、
または前記複製のデータの更新を指令する請求項12に
記載のデータ管理方法。
13. When two different data in a database managed by a database management system have a correspondence relationship, when any one of the two different data is updated, the other data is replaced with the updated data. Update the original data of the other data, or the original data to the database management system that manages the duplicated data of the other data, so as to satisfy the correspondence relationship.
Alternatively, the data management method according to claim 12, wherein an instruction to update the duplicated data is issued.
JP6249849A 1994-10-14 1994-10-14 Data management device and data management method Pending JPH08115247A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6249849A JPH08115247A (en) 1994-10-14 1994-10-14 Data management device and data management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6249849A JPH08115247A (en) 1994-10-14 1994-10-14 Data management device and data management method

Publications (1)

Publication Number Publication Date
JPH08115247A true JPH08115247A (en) 1996-05-07

Family

ID=17199103

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6249849A Pending JPH08115247A (en) 1994-10-14 1994-10-14 Data management device and data management method

Country Status (1)

Country Link
JP (1) JPH08115247A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11249943A (en) * 1998-03-03 1999-09-17 Nec Corp Method and system for synchronous management of distributed data base
JP2000066941A (en) * 1998-08-25 2000-03-03 Nec Corp Method and system for updating distributed file
JP2006268447A (en) * 2005-03-24 2006-10-05 Fuji Xerox Co Ltd Document management method and document management system
JP2009230276A (en) * 2008-03-19 2009-10-08 Nomura Research Institute Ltd Information processing system
US10185735B2 (en) 2012-06-22 2019-01-22 Kabushiki Kaisha Toshiba Distributed database system and a non-transitory computer readable medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11249943A (en) * 1998-03-03 1999-09-17 Nec Corp Method and system for synchronous management of distributed data base
JP2000066941A (en) * 1998-08-25 2000-03-03 Nec Corp Method and system for updating distributed file
JP2006268447A (en) * 2005-03-24 2006-10-05 Fuji Xerox Co Ltd Document management method and document management system
JP4600665B2 (en) * 2005-03-24 2010-12-15 富士ゼロックス株式会社 Document management method and document management system
JP2009230276A (en) * 2008-03-19 2009-10-08 Nomura Research Institute Ltd Information processing system
US10185735B2 (en) 2012-06-22 2019-01-22 Kabushiki Kaisha Toshiba Distributed database system and a non-transitory computer readable medium

Similar Documents

Publication Publication Date Title
JP2894676B2 (en) Asynchronous remote copy system and asynchronous remote copy method
JP3958757B2 (en) Disaster recovery system using cascade resynchronization
JP4044717B2 (en) Data duplication method and data duplication system for storage subsystem
US7114044B2 (en) Storage system, method of controlling storage system, and storage device
US8099387B2 (en) Managing consistency groups using heterogeneous replication engines
US7941622B2 (en) Point in time remote copy for multiple sites
US6820099B1 (en) Instantaneous data updating using snapshot volumes
US20080275926A1 (en) Storage system and method of copying data
JP4434407B2 (en) Subsystem and integrated system thereof
DE19924822A1 (en) Data processing and communication system with protection against loss of data due to catastrophic failure; has local server using operating protocol in which all data is stored in nonvolatile memory
CN101809558A (en) System and method for remote asynchronous data replication
JP2006293947A (en) System for transiting remote copy pair
JP2006004147A (en) Disaster recovery system, program and method for recovering database
JP4136615B2 (en) Database system and database access method
US8725686B2 (en) Method and program for creating determinate backup data in a database backup system
JP4289056B2 (en) Data duplication control method between computer systems
WO2019107232A1 (en) Data backup system, relay site storage, data backup method, and control program for relay site storage
JPH08115247A (en) Data management device and data management method
JP5244440B2 (en) Database replication method, database management system and program
JP2006318505A (en) Remote copy system and remote copy method
JP4138329B2 (en) Data processing system and data processing method
DE102005036291B4 (en) Method for storing recovery data in a system
JP2924956B2 (en) File transfer device, file transmission device, and file transmission method
WO2018235348A1 (en) Database server, database management method, and storage medium
JP2001350661A (en) Shared data management system and shared data management method