[go: up one dir, main page]

JPS63278155A - Management processing system for decentralized data base - Google Patents

Management processing system for decentralized data base

Info

Publication number
JPS63278155A
JPS63278155A JP62114085A JP11408587A JPS63278155A JP S63278155 A JPS63278155 A JP S63278155A JP 62114085 A JP62114085 A JP 62114085A JP 11408587 A JP11408587 A JP 11408587A JP S63278155 A JPS63278155 A JP S63278155A
Authority
JP
Japan
Prior art keywords
data
center
update
updating
transfer
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
JP62114085A
Other languages
Japanese (ja)
Inventor
Masamichi Kaneko
金子 雅道
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP62114085A priority Critical patent/JPS63278155A/en
Publication of JPS63278155A publication Critical patent/JPS63278155A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To maintain and secure the consistency of data by feeding the updating log of a center of its own collected during a certain period to a remote center and disposing a means reflecting on a data base of its own in the remote center. CONSTITUTION:The data bases 10A, 10B having the data of the same contents are developed on computer systems 1A, 1B. Updating log transfer parts 5A, 5B in data consistency processing parts 4A, 4B transfer updating log information stored in the log data sets 9A, 9B of the center of its own to the remote center periodically at night. Updating reflecting processing parts 6A, 6B receive the updating log information from the remote center, calculates an updating difference and the updating difference of the center of its own and compares. When a remote updating item is not updated in the center of its own, the contents of updating are reflected in the data bases 10A, 10B of the center of its own. When it is updated in the center of its own, whether they are reflected or not decided according to the predetermined level of the center and processed and when the reception processing of the updating log is completed, the center of a transmission side marks a next transfer.

Description

【発明の詳細な説明】 〔概要〕 複数の計算機システムにおいてデータベースを一元管理
する場合に、特定センタ以外のデータベースの利用が制
限されるという問題を解決するため、各システムが原則
として同じ内容のデータベースを保持し、ある期間内に
収集した自センタの更新ログを相手センタへ送り、相手
センタではその更新ログに基づいて、自データヘースに
反映する手段を設けることにより、複数の計算機システ
ムで非同期・独立に更新されたデータベースのデータ整
合性を維持・保証する。
[Detailed Description of the Invention] [Summary] In order to solve the problem that when databases are centrally managed in multiple computer systems, the use of databases other than a specific center is restricted, each system has a database with the same contents in principle. The update logs of the own center collected within a certain period are sent to the other center, and the other center has a means to reflect the update logs in its own data directory, thereby allowing multiple computer systems to operate asynchronously and independently. Maintain and guarantee data integrity of updated databases.

〔産業上の利用分野〕[Industrial application field]

本発明は、複数センタで非同期・独立にデータベースの
更新があっても1そのデータ整合性を維持・保証する分
散データベース管理処理方式に関するものである。
The present invention relates to a distributed database management processing method that maintains and guarantees data integrity even when databases are updated asynchronously and independently at multiple centers.

〔従来の技術〕[Conventional technology]

第6図は通信回線結合による従来の分散システムの例を
示す。
FIG. 6 shows an example of a conventional distributed system using communication line connections.

計算機システム間が通信回線で結ばれると、他系にある
データベースをリアルタイムでアクセスできるようにな
り、データベースが一元管理できるようになった。しか
し、この場合、データベースが特定センタに集中してし
まい、別センタでそのデータベースを保持して使用する
ことができない。また、複数センタにデータベースを置
いた場合には2両者が更新されると、整合性を維持する
ことができないため1片系しか更新できなかった。
When computer systems were connected by communication lines, it became possible to access databases in other systems in real time, and it became possible to centrally manage databases. However, in this case, the database is concentrated in a specific center, and it is not possible to maintain and use the database in another center. Furthermore, when databases are placed in multiple centers, if both centers are updated, consistency cannot be maintained, so only one system can be updated.

例えば、第6図(イ)に示す分散システムでは。For example, in the distributed system shown in FIG. 6(a).

各ユーザUl、U2は、それぞれの計算機システムIA
、IBに分散しているが、ファイルx、yが分散されて
いないため、同時にファイルx、yの2つを利用するこ
とはできない。
Each user Ul, U2 has their own computer system IA.
, IB, but files x and y are not distributed, so two files x and y cannot be used at the same time.

第6図(ロ)に示す分散システムでは、各ユーザおよび
各ファイルが、計算機システムIA、IBに分散し、計
算機システムIAが持つファイルXは1例えばサービス
終了後の夜間に、計算機システムIBのファイルX′に
複写されるようになっている。しかし、ファイルX′の
更新骨をファイルXに反映する手段がないため、ファイ
ルX′は参照専用となる。ユーザU2が更新するために
は、計算機システムIAが持つファイルXを更新しなけ
ればならない。
In the distributed system shown in FIG. 6(B), each user and each file are distributed to computer systems IA and IB, and the file X held by computer system IA is It is designed to be copied to X'. However, since there is no means to reflect the update of file X' in file X, file X' is only for reference. In order for user U2 to update, he must update file X held by computer system IA.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記従来の方式によれば、システムによってデータベー
スの利用が限定され、特定センタに負荷が集中したり、
また更新処理では2回線を経由して他系システムへのア
クセスが必要になって2応答が遅くなるという問題があ
った。
According to the conventional method described above, the use of the database is limited depending on the system, and the load is concentrated on a specific center.
In addition, the update process requires access to other systems via two lines, resulting in a slow response.

本発明は上記問題点の解決を図り、各計算機システムが
それぞれ独立にデータベースを保持するかのように、デ
ータベースを非同期・独立に更新できるようにすると共
に、非同期・独立に更新しでも、データ整合性を維持・
保証できるようにすることを目的としている。
The present invention aims to solve the above problems, and makes it possible to update the database asynchronously and independently, as if each computer system maintains its own database, and to maintain data consistency even if the database is updated asynchronously and independently. Maintain sex/
The purpose is to provide a guarantee.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は本発明の基本構成例を示す。 FIG. 1 shows an example of the basic configuration of the present invention.

第1図において、LA、IBはそれぞれCPUおよびメ
モリ等を有する計算機システム、2A。
In FIG. 1, LA and IB are computer systems 2A each having a CPU, memory, etc.

2Bはデータベースを参照・更新する端末、3A。2B is a terminal that refers to and updates the database; 3A;

3Bはデータベースへの参照・更新を処理する応用処理
部、4A、4Bは各計算機システムが持つデータベース
の整合性を保証するデータ整合処理部、5A、5Bは更
新ログを他の計算機システムに転送する更新ログ転送部
、6A、6Bは他の計算機システムから送られてきた更
新ログを自システムに反映する更新反映処理部、7A、
7Bはデータベースへのアクセス機能を提供するデータ
管理部、8A、8Bは更新ログ情報を収集する更新履歴
保存処理部、9A、9Bは更新ログ情報が格納されるロ
グデータセント、IOA、IOBは同じ内容のデータが
展開されたデータベースを表す。
3B is an application processing unit that processes references and updates to the database; 4A and 4B are data consistency processing units that ensure consistency of the databases of each computer system; and 5A and 5B are transfers of update logs to other computer systems. Update log transfer units 6A, 6B are update reflection processing units 7A, which reflect update logs sent from other computer systems to their own systems;
7B is a data management unit that provides a database access function, 8A and 8B are update history storage processing units that collect update log information, 9A and 9B are log data centers where update log information is stored, and IOA and IOB are the same. Represents a database in which content data is expanded.

4一 本発明では、複数の計算機システムLA、IB−hに同
じ内容のデータを持つデータベース10A。
41 In the present invention, a database 10A has data with the same contents in a plurality of computer systems LA and IB-h.

10Bが展開される。これらのデータベース10A、1
0Bは、それぞれ各計算機システムLA。
10B is expanded. These databases 10A, 1
0B is each computer system LA.

IBにおいて、応用処理部3A、3Bおよびデータ管理
部7A、7Bを介して、非同期・独立に参照・更新され
るようになっている。
In the IB, the information is referenced and updated asynchronously and independently via the application processing units 3A and 3B and the data management units 7A and 7B.

更新履歴保存処理部8A、8Bは、データベースIOA
、IOBを更新するときに、そのレコードの論理キー、
変更項目名、変更項目値などの更新ログ情報を、それぞ
れログデータセット9A。
The update history storage processing units 8A and 8B are database IOA
, when updating the IOB, the logical key of the record,
Update log information such as changed item names and changed item values are stored in log data sets 9A.

9Bに出力する。Output to 9B.

更新ログ転送部5A、5Bは3例えば夜間など。The update log transfer units 5A and 5B are operated during the night, for example.

定期的に自センタのログデータセット9A、9Bに格納
された更新ログ情報を、相手センタに転送する処理を実
行する。この転送も非同期に行うことができる。
A process of periodically transferring update log information stored in the log data sets 9A and 9B of the own center to the other center is executed. This transfer can also be done asynchronously.

更新反映処理部6A、6Bは、相手センタから送られた
更新ログ情報を受け取ると、相手センタでの更新差分(
各論理キー毎の更新内容の最終値または開始値と最終値
)と、自センタにおける更新差分とを算出し1両者を比
較する。そして、相手センタにおける更新項目が自セン
タで更新されていない場合には、自センタのデータベー
ス10A、10Bにその更新内容を反映する。自センタ
でも更新されていた場合には、予め定めたセンタのレベ
ルによって、それを反映するか否かを決定し、それに従
って処理する。更新ログについての受信処理が完了した
ならば、その旨を発信側センタに報告し3発信側センタ
では9次回の転送骨をマークする。
When the update reflection processing units 6A and 6B receive the update log information sent from the partner center, the update reflection processing units 6A and 6B calculate the update difference (
The final value (or start value and final value) of the update content for each logical key and the update difference at the own center are calculated and the two are compared. If the updated items at the other center have not been updated at the own center, the updated contents are reflected in the databases 10A and 10B of the own center. If the own center has also been updated, it is determined whether or not to reflect the update based on the predetermined level of the center, and processing is performed accordingly. When the reception process for the update log is completed, this fact is reported to the originating center, and the third originating center marks the 9th transfer bone.

〔作用〕[Effect]

本発明によれば、データベースIOA、IOBは、原則
として同じ内容のデータを保持し、それぞれの計算機シ
ステムLA、IBにおいて、非同期・独立に参照・更新
することができる。更新によって、データベースIOA
、IOB間に、一時的に不一致が生じるが、データ整合
処理部4A。
According to the present invention, the databases IOA and IOB basically hold data with the same content, and can be referenced and updated asynchronously and independently in the respective computer systems LA and IB. By updating the database IOA
, IOB, although there is a temporary mismatch between them, the data matching processing unit 4A.

4Bにより、定期的に他の計算機システムにおける更新
内容が、自システムのデータベースに反映されるので、
データ整合性を維持・保証することが可能になる。
With 4B, updates in other computer systems are regularly reflected in the database of the own system.
It becomes possible to maintain and guarantee data integrity.

第1図の例では、2つの計算機システムにおける分散デ
ータベース管理を示しているが、3以上の計算機システ
ムによる分散データベース管理についても、同様にデー
タ整合性を保証することができる。
Although the example in FIG. 1 shows distributed database management in two computer systems, data consistency can be similarly guaranteed in distributed database management in three or more computer systems.

〔実施例〕〔Example〕

第2図(A)、 (B)は本発明の一実施例に係る転送
フロー、第3図はデータ整合処理説明図、第4図は第1
図図示データ整合処理部の処理構成例。
2(A) and 2(B) are transfer flows according to an embodiment of the present invention, FIG. 3 is an explanatory diagram of data matching processing, and FIG.
An example of the processing configuration of the illustrated data matching processing section.

第5図は本発明の一実施例による動作側説明図を示す。FIG. 5 shows an explanatory diagram of the operation side according to an embodiment of the present invention.

以下、第2図に従って、第1図に示した本発明の一実施
例に係るシステムの転送フローについて説明する。第1
図に示す計算機システムIAを発信側センタ、計算機シ
ステムIBを受信側センタとして説明するが、この逆の
転送も同様であり。
The transfer flow of the system according to the embodiment of the present invention shown in FIG. 1 will be described below with reference to FIG. 1st
Although the computer system IA shown in the figure will be described as the sending center and the computer system IB as the receiving center, the reverse transfer is also the same.

独立に処理可能となっている。以下の説明における番号
■〜@は5第2図(AL (B)に示す■〜[相]に対
応する。
It can be processed independently. The numbers ■~@ in the following description correspond to ■~[phases] shown in 5.FIG. 2 (AL (B)).

■ 第2図(A)に示すように9発信側センタのジョブ
において、データベースIOAに対する更新があると、
更新履歴保存処理部8Aにより。
■ As shown in Figure 2 (A), when there is an update to the database IOA in the job of the 9 originating center,
By the update history storage processing unit 8A.

ログデータセット9Aに、その更新履歴のデータを保存
する。
The update history data is stored in the log data set 9A.

■ 例えばサービス終了時など、定期的にログデータを
まとめて、他の計算機システムに転送するが、そのとき
1発信開始を示す転送ログレコードを生成し、ログデー
タセット9Aの最終位置に書き出す。
(2) Log data is periodically collected and transferred to another computer system, such as when a service ends, and at that time a transfer log record indicating the start of one transmission is generated and written at the final position of the log data set 9A.

■ ログデータセット9Aから更新データのログレコー
ドを読み、同じ論理キーを持つ更新データがあれば、そ
れらを統合して2発信データを作成し2発信データセン
トに格納する。
- Read the log record of update data from the log data set 9A, and if there is update data with the same logical key, integrate them to create 2 outgoing data and store it in the 2 outgoing data center.

■ 既存のファイル転送処理機能などにより9発信デー
タセットを、受信側センタへ発信する。
■ Send 9 outgoing data sets to the receiving center using existing file transfer processing functions.

また、計算機システムIBの更新データを、以前に発信
側センタである計算機システムIAが受信したときに、
自データベースIOAに反映できなかったものがあれば
、その発信側未反映分の更新データからなるデータセッ
トを、受信側センタへ送る。その後、計算機システムI
Bの受信ジョブを起動する。
Also, when the computer system IA, which is the originating center, previously received the update data of the computer system IB,
If there is something that could not be reflected in the own database IOA, a data set consisting of updated data that has not been reflected on the sending side is sent to the receiving side center. After that, computer system I
Start B's reception job.

■ 第2図(B)に示すように、受信側センタのジョブ
では、前回発信側センタから受信したときに、自データ
ヘースIOBに未反映であった更新データと、今回受信
した発信データセントの更新データとから、更新差分を
算出し、その差分レコードによって9発信側差分データ
セットを作成する。また2発信側センタにおける前回未
反映分の更新データと、受信側センタにおけるそれまで
の更新データが格納された受信側ログデータセント9B
との更新差分を算出し。
■ As shown in Figure 2 (B), in the receiving center's job, the update data that was not reflected in its own data base IOB when it was previously received from the originating center, and the update of the originating data center received this time. An update difference is calculated from the data, and 9 originating side difference data sets are created using the difference record. In addition, the receiving side log data center 9B stores the updated data that has not been reflected in the previous time at the sending center and the updated data up to that point at the receiving center.
Calculate the update difference with.

差分レコードを生成して、受信側差分データセットを作
成する。そして1発信側差分データセットと受信側差分
データセントとの内容を比較し、自データヘースIOB
に反映すべき更新デ−タからなる反映データ保存データ
セットを作成する。発信側センタで更新され、受信側セ
ンタで更新されていない更新項目については2反映デー
タとするが9両センタで更新された項目については、予
め定めたセンタの優先レベルにより、一方の更新データ
だけが有効となるように反映データを生成する。
Generate delta records to create a receiver delta dataset. Then, compare the contents of the first differential data set on the transmitting side and the differential data set on the receiving side, and
Create a reflection data storage data set consisting of the updated data to be reflected. Updated items that were updated at the originating center but not updated at the receiving center will be reflected in 2 data, but for items updated at the 9-ryo center, only one of the updated data will be reflected depending on the predetermined priority level of the center. Generate reflection data so that it is valid.

■ 反映データ保存データセントから反映データのレコ
ードを読み出し、データベースIOBに更新内容を反映
する。また、このときに他の利用者が資源を占有してい
るために、データベースIOBへ反映できないデータが
ある場合には。
■ Read the reflected data record from the reflected data storage data center and reflect the updated contents in the database IOB. Also, at this time, if there is data that cannot be reflected in the database IOB because another user is occupying the resource.

未反映分保存データセットとして、その反映データを保
存する。この未反映分のデータは1次回に更新データを
受信したとき、上記処理■における発信側差分データセ
ントの作成に用いる。
The reflected data is saved as an unreflected data set. This unreflected data is used to create the originating side difference data center in the process (2) above when update data is received the first time.

■ データベースIOBへの更新反映処理が終了したな
らば、処理終了を発信側センタへ通知するための返信レ
コードを生成し、返信データセントを作成する。
- When the update reflection process to the database IOB is completed, a reply record is generated to notify the originating center of the completion of the process, and a reply data center is created.

■ 受信終了を示す転送ログレコードを生成し。■ Generate a transfer log record indicating completion of reception.

自ログデータセット9Bに格納する。Store it in own log data set 9B.

■ 処理■により作成した返信データセットを。■Reply dataset created by processing■.

発信側センタへ送り、返信受理ジョブを起動する。これ
により、第2図(A)に示す処理[相]が動作する。
Send it to the originating center and start the reply reception job. As a result, the process [phase] shown in FIG. 2(A) operates.

[相] 発信側センタでは、受信側センタからの転送結
果を受理し、その返信データセントの内容に基づいて、
上記処理■で書き込んだ発信開始を示す転送ログレコー
ドを、転送終了を示すように更新する。次に更新データ
を受信側センタへ送る場合には、この転送ログレコード
以降の更新データを9発信データセントの作成に利用す
る。
[Phase] The originating center receives the transfer result from the receiving center, and based on the contents of the reply data center,
The transfer log record written in the above process (2) indicating the start of the call is updated to indicate the end of the transfer. Next, when updating data is sent to the receiving center, the updated data after this transfer log record is used to create 9 outgoing data cents.

以−ヒの実施例のように、未反映分の更新データを未反
映分保存データセットとして保存しておくことにより、
転送受信中に他の利用者が占有中であったため2反映が
できなかったデータについても、後に対処できるように
なる。また2反映データ保存データセットを確保してお
くことにより。
As in the example below, by saving the unreflected update data as an unreflected data set,
Even data that could not be reflected because it was occupied by another user during transfer and reception can be dealt with later. Also, by securing a data set for saving 2 reflected data.

= 11 = 転送受信中にジョブが異常終了した場合の復旧も可能に
なっている。
= 11 = It is also possible to recover if the job ends abnormally during transfer reception.

次に第3図に従って、データ整合処理の具体例を説明す
る。
Next, a specific example of data matching processing will be explained according to FIG.

第3図(イ)に示すように、データベース1゜は2項目
11〜i1を持つDBレコードR1,R2、・・・から
なる。今、1回の更新によって3例えばレコードR1の
項目if、i5.i8.illが更新されたとする。更
新データは、第3図(ロ)に示すように、更新項目番号
を示すレコードと、更新前の各項目の値を持つレコード
と、更新後の各項目の値を持つレコードとからなる。こ
の中の1つの項目は、レコードを識別する論理キーとな
っている。転送終了を示す前回の転送ログレコード以降
の更新データが、受信側センタに対する転送対象となる
As shown in FIG. 3(A), the database 1° consists of DB records R1, R2, . . . having two items 11 to i1. Now, by one update, 3 items, for example, items if, i5, of record R1. i8. Suppose that ill has been updated. As shown in FIG. 3(b), the update data consists of a record indicating the update item number, a record with the value of each item before the update, and a record with the value of each item after the update. One of the items is a logical key that identifies the record. The updated data after the previous transfer log record indicating the end of transfer is to be transferred to the receiving center.

例えば、同じレコードの項目i5の値が、Xがら2に更
新され、さらに2からyに更新された場合には、転送時
にその2つの更新データを統合し。
For example, if the value of item i5 in the same record is updated from X to 2, and then from 2 to y, the two updated data are integrated at the time of transfer.

Xからyに更新されたことを示す発信データを生成する
Generate outgoing data indicating that X has been updated to y.

受信側センタにおける反映データの生成は1例えば第3
図(ハ)に示すように行われる。なお。
The generation of reflected data at the receiving center is
This is done as shown in Figure (c). In addition.

説明を簡単化するため、1つのレコードについての更新
データだけを図示している。
To simplify the explanation, only updated data for one record is illustrated.

受信側センタでは、前回受信時の未反映分と。At the receiving center, it is the unreflected portion from the previous reception.

今回受信した発信データセントの発信データとから1発
信側差分データセットを作成する。例えば。
One originating side difference data set is created from the originating data of the originating data center received this time. for example.

項目i5については、旧の値rWJから新の値ryJに
更新されたものとして、差分レコードを生成する。同様
に2発信側センタにおける前回受信時の未反映分データ
と、受信側ログデータセットとから、受信側差分データ
セットを作成する。
Regarding item i5, a difference record is generated assuming that the old value rWJ has been updated to the new value ryJ. Similarly, a receiving side difference data set is created from the unreflected data from the previous reception at the second sending center and the receiving side log data set.

この発信側差分データセットと受信側差分データセット
とを比較することにより、自データヘースに反映すべき
反映データからなる反映データ保存データセットを作成
する。
By comparing the difference data set on the sending side and the difference data set on the receiving side, a reflected data storage data set consisting of the reflected data to be reflected in the own data domain is created.

第1図に示すデータ整合処理部4A、4Bは。The data matching processing units 4A and 4B shown in FIG.

例えば第4図に示す処理を行うプログラム群によって構
成される。
For example, it is composed of a group of programs that perform the processing shown in FIG.

転送データの発信処理40では、転送ログレコードの追
加処理41.ログレコードの読み込み処理421発信デ
ータセットへのレコード出力処理43、日本語ラインプ
リンタへの印刷処理44などを行う。
In the transfer data transmission process 40, the transfer log record addition process 41. A log record reading process 421, a record output process 43 to an outgoing data set, a print process 44 to a Japanese line printer, etc. are performed.

受信側センタからの返信通知の反映処理50では、転送
ログレコードの書き換え処理519作業データセントの
読み込み処理523日本語ラインプリンタへの印刷処理
53などを行う。
In the processing 50 for reflecting the reply notification from the receiving center, processing 51 for rewriting the transfer log record, processing 523 for reading the work data center, printing processing 53 on the Japanese line printer, and the like are performed.

更新データを受信する受信ドライバ60は、差分レコー
ドの組立て、差分レコードの出力および差分レコードに
ついて論理キーの同じものをまとめる項目マージなどの
差分データセントの生成処理61を1発信側のものと、
受信側のものとについて行う。その後、データベースの
物理的なキーであるエントリ番号の書き換えと、ヒツト
リストの設定および反映対象データの生成によって9反
映データセットとヒントリストの生成処理62を行う。
A reception driver 60 that receives update data performs differential data center generation processing 61 such as assembling differential records, outputting differential records, and merging items that have the same logical key for differential records with one originating side;
Do this for the receiving side. Thereafter, a process 62 for generating a nine reflection data set and a hint list is performed by rewriting the entry number, which is a physical key of the database, setting a hit list, and generating reflection target data.

データベースへの反映処理63では2通知用返信レコー
ドの生成、資源管理ファイルへのアクセス、レコードの
チェックとデータベースへの書き込み処理を行う。この
とき、競合排他制御などにより、未反映分データがあれ
ば、未反映分保存データセントに出力する。最後に、資
源管理ファイルへのアクセスによって、排他制御を解除
スる。
In the database reflection process 63, a 2-notification reply record is generated, the resource management file is accessed, the record is checked, and the data is written to the database. At this time, if there is unreflected data due to competitive exclusive control or the like, it is output to the unreflected data storage center. Finally, exclusive control is released by accessing the resource management file.

転送受信中にジョブが異常終了した場合、受信復旧ドラ
イバ70が起動される。受信復旧ドライバ70は1反映
データ保存データセントから反映済みデータのキーを展
開する処理71と2反映対象データのヒントリストを生
成する処理72と。
If the job ends abnormally during transfer reception, the reception recovery driver 70 is activated. The reception recovery driver 70 performs 1 processing 71 for expanding the key of the reflected data from the reflected data storage data center, and 2 processing 72 for generating a hint list of the reflected data.

データベースに反映する処理73と、資源管理ファイル
へのアクセス処理74を行う。なお、中断点の検出は、
資源管理ファイルによって行う。
Processing 73 for reflecting on the database and processing 74 for accessing the resource management file are performed. Note that the detection of the break point is
This is done using the resource management file.

共通処理部80として、転送ログレコードの追加処理8
1.転送ログレコードの書き換え処理82、転送ログレ
コードの読み込み処理83.印刷処理84.レコードの
入力・出力処理85などが用意される。
Transfer log record addition processing 8 as the common processing unit 80
1. Transfer log record rewriting process 82, transfer log record reading process 83. Print processing 84. Record input/output processing 85 and the like are provided.

第1図に示す更新反映処理部6A、6Bにおけ=15− る比較対象ログ範囲を、第5図に示す転送#1〜転送#
10の動作例に従って説明する。
The comparison target log range of =15- in the update reflection processing units 6A and 6B shown in FIG. 1 is set to transfer #1 to transfer # shown in FIG.
This will be explained according to 10 operation examples.

転送#1:計算機システム(B)から計算機システム(
A)へ、更新Bのデータを送ると、計算機システム(A
)では、更新Bと更新Aとを比較する。
Transfer #1: From computer system (B) to computer system (
When update B data is sent to A), the computer system (A)
), updates B and A are compared.

転送#2:計算機システム(B)では、転送#2により
3次の(al、 (blを比較する。なお、以下の説明
で「生き残ったもの」とは、相手側でまだ処理されてい
ない有効な更新データを意味する。
Transfer #2: In the computer system (B), transfer #2 compares the tertiary (al, (bl). Note that in the following explanation, "survivors" refer to valid data that has not yet been processed on the other side. This means updated data.

(al  更新Aのうち#1で生き残ったもの十更新C (bl#1未反映分十更新り 転送#3:次のta)、 tb>を比較する。(al Update A that survived #1 and update C (Updated enough to reflect bl #1 Transfer #3: Compare the next ta) and tb>.

(al  (#1未反映分十更新D)のうち#2で生き
残ったもの十更新F (bl#2未反映分十更新E 転送#4:次のfat、 (blを比較する。
(al (#1 Ten updates D for unreflected parts), ten updates that survived in #2 F (bl#2 Ten updates E for unreflected parts) Transfer #4: Next fat, (Compare bl.

(al#3未反映分十更新H (bl  (#2未反映分十更新E)のうち#3で生き
残ったもの十更新G 転送#5:次の+al、 (blを比較する。
(Al#3 Unreflected tenth update H (bl (#2 Unreflected tenth update E) that survived #3 Update G Transfer #5: Compare next +al, (bl).

fal  l#2未反映分十更新E)のうち#3で生き
残ったもの十更新G)のうち#4で生き残ったもの十更
新I fbl#4未反映分十更新J 転送#6:次の+al、 (b)を比較する。
fal l#2 10 updates of unreflected portions of E) that survived in #3 10 updates of G) that survived in #4 10 update I fbl#4 10 updates of unreflected portions J Transfer #6: Next +al , (b).

fal#5未反映分十更新K (b)  (#4未反映分十更新J)のうち#5で生き
残ったもの十更新り 転送#7:次のfal、 (blを比較する。
fal #5 10 updates of unreflected portions K (b) Of (#4 10 updates of unreflected portions J), those that survived in #5 are updated and transferred #7: Compare the next fal, (bl).

fa)#6未反映分十更新0 fb)  (((#4未反映分十更新J)で#5の生き
残り)十更新し)と#6の生き残り十更新P十更新R 転送#8:次の(al、 (blを比較する。
fa) #6 unreflected 10 updates 0 fb) (((#4 unreflected 10 update J) survives #5) 10 updates) and #6 survivors 10 updates P 10 updates R Transfer #8: Next Compare (al, (bl).

fal  (#4未反映分十更新J)のうち#5の生き
残り十更新り十更新P (b)#6の未反映分十更新0+更新Q転送#9:次の
fat、 (blを比較する。
fal (#4 unreflected tenth update J), #5 survival ten update ten update P (b) #6 unreflected tenth update 0 + update Q transfer #9: next fat, (compare bl .

(al  (#7未反映分十更新Q)のうち4↑8の生
き残り十更新5 (b)  (#8未反映分十更新R)のうち#7の生き
残り十更新T 転送#10:次の(al、 (blを比較する。
(al (#7 unreflected tenth update Q), 4↑8 surviving ten update 5 (b) #7 out of (#8 unreflected tenth update R), #7 surviving ten update T Transfer #10: Next Compare (al, (bl).

(at  (#8未反映分十更新R)のうち#9の生き
残り十更新■ (bl#9未反映分十更新U 以上の動作例のように、未反映分データを処理すること
により、更新ログの転送を非同期に行っても1各計算機
システムのデータ整合性を保証することができる。しか
し、処理を簡易化するため。
(at (#8 Unreflected 100 update R), #9 surviving 10 updates ■ (bl #9 Unreflected 10 updates Data consistency of each computer system can be guaranteed even if the logs are transferred asynchronously.However, in order to simplify the processing.

更新ログの転送処理を1例えば一般のオンライン・サー
ビス終了後の夜間に、各計算機システムが同期をとって
行うこととし、未反映分データの処理を省略するように
してもよい。
The update log transfer process may be performed by each computer system in synchronization, for example, at night after the end of a general online service, and the processing of unreflected data may be omitted.

C発明の効果〕 以上説明したように5本発明によれば、複数の計算機シ
ステムが保持する同様な内容のデータベースを、非同期
・独立に更新しても、そのデータ整合性を維持・保証す
ることが可能になり、効率的な分散データベース管理が
可能になる。
C. Effects of the Invention] As explained above, according to the present invention, data integrity can be maintained and guaranteed even if databases with similar contents held by multiple computer systems are updated asynchronously and independently. This enables efficient distributed database management.

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

第1図は本発明の基本構成例、第2図(A)1(B)は
本発明の一実施例に係る転送フロー、第3図はデータ整
合処理説明図、第4図は第1図図示データ整合処理部の
処理構成例、第5図は本発明の一実施例による動作側説
明図、第6図は従来システムの例を示す。 図中、LA、IBは計算機システム、2A、2Bは端末
、3A、3Bは応用処理部、  4A、  4Bはデー
タ整合処理部、5A、5Bは更新ログ転送部、6A、6
Bは更新反映処理部、7A、7Bはデータ管理部、8A
、8Bは更新層厚保存処理部。 9A、9Bはログデータセット、IOA、IOBはデー
タベースを表す。
FIG. 1 is an example of the basic configuration of the present invention, FIGS. 2(A) and 1(B) are transfer flows according to an embodiment of the present invention, FIG. 3 is an explanatory diagram of data matching processing, and FIG. 4 is the same as that shown in FIG. 1. FIG. 5 is an explanatory diagram of the operation side according to an embodiment of the present invention, and FIG. 6 shows an example of a conventional system. In the figure, LA and IB are computer systems, 2A and 2B are terminals, 3A and 3B are application processing units, 4A and 4B are data matching processing units, 5A and 5B are update log transfer units, and 6A and 6
B is update reflection processing unit, 7A, 7B is data management unit, 8A
, 8B is an updated layer thickness preservation processing section. 9A and 9B represent log data sets, and IOA and IOB represent databases.

Claims (1)

【特許請求の範囲】 複数の計算機システムにそれぞれ同じ内容のデータを持
つデータベースを展開し、該データベースを各計算機シ
ステムが非同期・独立に更新する分散データベース管理
処理方式であって、 上記データベースの更新に際して更新ログ情報を収集す
る更新履歴保存処理手段(8A、8B)と、ある期間内
に収集された更新ログ情報をまとめて、他の計算機シス
テムに転送する更新ログ転送手段(5A、5B)と、 他の計算機システムから受け取った更新ログ情報と、自
計算機システムにおける更新ログ情報とを比較し、他の
計算機システムにおける更新ログ情報を自計算機システ
ム内のデータベースに反映する更新反映処理手段(6A
、6B)とを備え、複数の計算機システムにおけるデー
タベースのデータ整合性を保証するようにしたことを特
徴とする分散データベース管理処理方式。
[Claims] A distributed database management processing method in which a database with the same data is developed in a plurality of computer systems, and each computer system updates the database asynchronously and independently, the method comprising: update history storage processing means (8A, 8B) that collects update log information; update log transfer means (5A, 5B) that collects update log information collected within a certain period and transfers it to another computer system; Update reflection processing means (6A
, 6B), and guarantees data consistency of databases in a plurality of computer systems.
JP62114085A 1987-05-11 1987-05-11 Management processing system for decentralized data base Pending JPS63278155A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62114085A JPS63278155A (en) 1987-05-11 1987-05-11 Management processing system for decentralized data base

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62114085A JPS63278155A (en) 1987-05-11 1987-05-11 Management processing system for decentralized data base

Publications (1)

Publication Number Publication Date
JPS63278155A true JPS63278155A (en) 1988-11-15

Family

ID=14628704

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62114085A Pending JPS63278155A (en) 1987-05-11 1987-05-11 Management processing system for decentralized data base

Country Status (1)

Country Link
JP (1) JPS63278155A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2659156A1 (en) * 1990-03-02 1991-09-06 Truong Trong Thi Andre METHOD FOR THE AUTOMATIC ARCHIVING OF DOCUMENTS BY DIGITAL ROUTE.
JPH0744442A (en) * 1993-07-30 1995-02-14 Nec Corp Maintenance system for database
US6625705B2 (en) * 1993-04-23 2003-09-23 Emc Corporation Remote data mirroring system having a service processor
WO2009107184A1 (en) * 2008-02-25 2009-09-03 株式会社富士通エフサス Method for processing replication, program for processing replication, and device for processing replication

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2659156A1 (en) * 1990-03-02 1991-09-06 Truong Trong Thi Andre METHOD FOR THE AUTOMATIC ARCHIVING OF DOCUMENTS BY DIGITAL ROUTE.
US6625705B2 (en) * 1993-04-23 2003-09-23 Emc Corporation Remote data mirroring system having a service processor
US7055059B2 (en) 1993-04-23 2006-05-30 Emc Corporation Remote data mirroring
US7073090B2 (en) 1993-04-23 2006-07-04 Emc Corporation Remote data mirroring system having a remote link adapter
JPH0744442A (en) * 1993-07-30 1995-02-14 Nec Corp Maintenance system for database
WO2009107184A1 (en) * 2008-02-25 2009-09-03 株式会社富士通エフサス Method for processing replication, program for processing replication, and device for processing replication
JP5080636B2 (en) * 2008-02-25 2012-11-21 株式会社富士通エフサス Replica processing method, program and apparatus

Similar Documents

Publication Publication Date Title
US6694335B1 (en) Method, computer readable medium, and system for monitoring the state of a collection of resources
EP0226734B1 (en) Method and apparatus for managing obsolescence of data objects
JP5559821B2 (en) Method for storing data, method for mirroring data, machine-readable medium carrying an instruction sequence, and program for causing a computer to execute the method
US6317754B1 (en) System for user control of version /Synchronization in mobile computing
EP1459213B1 (en) System and methods for asychronous synchronization
US6934877B2 (en) Data backup/recovery system
US7836015B1 (en) Fast synchronization of computer databases using coverage status
JP2558052B2 (en) Transaction processing system using hypothetical commit two-phase commit protocol and operating method thereof
US7650369B2 (en) Database system management method and database system
US7562100B2 (en) Maintaining coherency in a symbiotic computing system and method of operation thereof
JP4025475B2 (en) Database exchange system
US20160070774A1 (en) Maintaining a relationship between two different items of data
US20060195487A1 (en) Systems and Methods for Managing the Synchronization of Replicated Version-Managed Databases
US7860827B1 (en) Data synchronization method for an application database available on multiple wirelessly connected platforms
JPH10187519A (en) How to prevent contention in distribution systems
JP2003296171A (en) Electronic form management method and program
US20130006920A1 (en) Record operation mode setting
JP4998010B2 (en) Database system management, database system, program and processing apparatus
JPS63278155A (en) Management processing system for decentralized data base
US20020042910A1 (en) Method of detecting write conflicts in replicated databases without memory overhead
JPH0528021A (en) Management method of two-way arrangement data
JP2701814B2 (en) Distributed file management method
KR100470259B1 (en) Method, system and program products for atomically and persistently swapping resource groups
JPH11312112A (en) Computer system with database replication function
US20020161789A1 (en) Parallel replication mechanism for state information produced by serialized processing