JPH0778121A - Method for managing data in distributing processing system - Google Patents

Method for managing data in distributing processing system

Info

Publication number
JPH0778121A
JPH0778121A JP5223103A JP22310393A JPH0778121A JP H0778121 A JPH0778121 A JP H0778121A JP 5223103 A JP5223103 A JP 5223103A JP 22310393 A JP22310393 A JP 22310393A JP H0778121 A JPH0778121 A JP H0778121A
Authority
JP
Japan
Prior art keywords
data
site
area
changed
change
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
JP5223103A
Other languages
Japanese (ja)
Inventor
Takashi Kamo
隆 加茂
Momotoshi Ito
百利 伊東
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP5223103A priority Critical patent/JPH0778121A/en
Publication of JPH0778121A publication Critical patent/JPH0778121A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To efficiently manage changing processing as the whole system by reflecting the changed result of a site having higher priority order when the changing processing of copied data is executed on plural sites in the distributing system in parallel. CONSTITUTION:In this distributing processing system consisting of a data management computer 1 for concentrically managing data and distributed computers arranged on plural sites, a data record 8 is divided into plural areas 10 consisting of one or more items and each area 10 is provided with a changing site column 11 to be an item for recording the changing site of the area 10 and a counter 9 for expressing the version of data. The computer 1 is provided with an area management table 4 recording the priority order 5 of respective sites corresponding to the changes of respective areas 10 in the record 8 and a primary file 6 for storing master data 12 to be concentrically managed. A distributed computer 2 in each site is provided with a distributed file 7 for storing the copy data of the master data 12 which are prepared at the time of changing data and changed data 14 changed by the computer 2.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、複数のサイトに分散配
置されたコンピュータで同一データの複製をもち、各サ
イトで並列に変更処理が可能な分散処理システムのデー
タ管理方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data management system for a distributed processing system in which computers distributed in a plurality of sites duplicate the same data and each site can perform change processing in parallel.

【0002】[0002]

【従来の技術】従来は、たとえば前田・所・清水編「分
散オペレーティングシステム」共立出版、1991年、
165頁から166頁に述べられているように、同じバ
ージョンのデータに対し、複数のサイトにおいてデータ
項目間で独立な変更が行われた場合、それぞれの更新項
目を融合し新たなバージョンを作成し、同じデータ項目
に対して競合が起きる場合、後に変更されたサイトのバ
ージョンを破棄するというものであった。
2. Description of the Related Art Conventionally, for example, "Distributed Operating System" edited by Maeda, Tokoro and Shimizu, Kyoritsu Shuppan, 1991,
As described on pages 165 to 166, when the same version of data is changed independently on multiple sites, the update items are merged to create a new version. , If there is a conflict for the same data item, then later discard the version of the modified site.

【0003】[0003]

【発明が解決しようとする課題】上記公知例のような方
法では、各サイトのデータ変更に対する優先順位を考慮
していないため、他に優先して処理しなければならない
サイトのデータであっても、同じデータ項目に対する競
合が起きた場合には破棄されてしまう。このため、デー
タが破棄されたサイトでは変更処理の再実行が必要とな
り、処理効率が低下する。
In the method described in the above-mentioned publicly known example, since the priority of data change of each site is not taken into consideration, even if the data of the site must be processed with priority over other sites. , If a conflict occurs for the same data item, it will be discarded. Therefore, it is necessary to re-execute the change process at the site where the data has been discarded, and the processing efficiency is reduced.

【0004】本発明は、他に優先して処理しなければな
らないサイトによるデータの変更を優先的に反映させる
ことにより、効率的な分散処理システムのデータ管理方
式を提供することを目的とする。
It is an object of the present invention to provide an efficient data management system for a distributed processing system by preferentially reflecting a data change by a site that should be processed preferentially.

【0005】[0005]

【課題を解決するための手段】上記目的は、分散処理シ
ステムで扱うデータのレコードを1つ以上の項目からな
る領域に分割し、データ管理コンピュータに各領域の変
更に対する各サイトの優先順位を登録した領域管理表を
設け、分散コンピュータで変更されたデータの領域を、
データ管理コンピュータ上で領域管理表に登録された優
先順位に従ってマスタデータに反映することにより達成
できる。
The above-mentioned object is to divide a record of data handled by a distributed processing system into areas consisting of one or more items, and register the priority of each site for changes in each area in a data management computer. The area management table is set up, and the area of the data changed by the distributed computer
This can be achieved by reflecting on the master data according to the priority order registered in the area management table on the data management computer.

【0006】[0006]

【作用】各領域の変更サイトを記録する項目には、当該
領域を変更したサイトが記録される。変更データはデー
タ管理コンピュータに転送された後、変更領域につい
て、記録された変更サイトに対し領域管理表の優先順位
が取得される。同様にデータ管理コンピュータのマスタ
データの同一領域の優先順位が取得され、両者の順位を
比較し、変更データの優先順位がマスタデータの優先順
位より高い場合、変更された領域で置き換えられる。変
更された全領域が置換可能な場合、変更したサイトの変
更処理を反映した内容でマスタデータが更新される。
In the item for recording the changed site in each area, the site that changed the area is recorded. After the change data is transferred to the data management computer, the priority of the area management table for the recorded change site is acquired for the changed area. Similarly, the priorities of the same areas of the master data of the data management computer are acquired, the priorities of the two are compared, and if the priority of the changed data is higher than the priority of the master data, the changed areas are replaced. When all the changed areas can be replaced, the master data is updated with the content that reflects the change processing of the changed site.

【0007】[0007]

【実施例】図1に、本発明になる実施例のシステム構成
を示す。データを集中管理するデータ管理コンピュータ
1と、複数サイトに配置された分散コンピュータ2から
なる分散処理システムにおいて、データのレコード8を
1つ以上の項目からなる領域10に分割し、各領域10
ごとに当該領域10の変更サイトを記録する項目である
変更サイト欄11、およびデータのバージョンを表すカ
ウンタ9を設ける。データ管理コンピュータ1上には、
レコード8の各領域10の変更に対する各サイトの優先
順位5を登録した領域管理表4、および、集中管理され
るマスタデータ12を記憶させる1次ファイル6を設け
る。各サイトの分散コンピュータ2には、データの変更
時にマスタデータ12の複製データ13と、データの変
更を行うデータ変更手段18と、変更処理により作られ
る変更データ14を記憶する分散ファイル7を設ける。
FIG. 1 shows a system configuration of an embodiment according to the present invention. In a distributed processing system including a data management computer 1 that centrally manages data and a distributed computer 2 arranged at a plurality of sites, a record 8 of data is divided into areas 10 each including one or more items.
A change site column 11 that is an item for recording the change site of the area 10 and a counter 9 that indicates the version of the data are provided for each. On the data management computer 1,
An area management table 4 in which the priority order 5 of each site with respect to changes in each area 10 of the record 8 is registered, and a primary file 6 for storing master data 12 that is centrally managed are provided. The distributed computer 2 at each site is provided with the duplicated data 13 of the master data 12 when changing the data, the data changing means 18 for changing the data, and the distributed file 7 for storing the changed data 14 created by the changing process.

【0008】次に本発明の動作を図1、図2、図3によ
り説明する。図2はデータ変更手段18のフローチャー
ト、図3はデータ管理手段3のフローチャートである。
各サイトの分散コンピュータ2でデータを変更する場
合、データ変更手段18によりデータ管理コンピュータ
1の1次ファイル6からマスタデータ12の複製データ
13を取得し分散ファイル7に記憶させ(ステップ2
1)、この複製データ13に対して変更処理を行う(ス
テップ22)。変更のあった領域10の変更サイト欄1
1に、当該サイトに相当するコードを記録する(ステッ
プ23)。変更処理が終了した時点で、1つ以上の変更
データ14がデータ管理コンピュータ1に転送される
(ステップ25)。転送された各変更データ14につい
て、データ管理手段3により変更データ14に対応する
マスタデータ12を1次ファイル6から読み出し(ステ
ップ31)、バージョンを表すカウンタ9を比較し、バ
ージョンが古い場合には変更データ14を破棄し(ステ
ップ34)、それ以外の場合に変更データ14とマスタ
データ12間で変更された領域10ごとに、変更サイト
欄11をもとに、領域管理表4に登録されている該当サ
イトの優先順位5を比較し(ステップ40)、変更デー
タ14中の領域10のサイトの優先順位5の方がマスタ
データ12の同一領域の優先順位5より高い場合、領域
10を変更データ中の領域10で置き換えて行き(ステ
ップ42)、変更領域10すべての変更領域10が置き
換えできた場合、1次ファイル6中のマスタデータ12
を更新する(ステップ37)。変更領域10すべてが置
き換えできなかった場合には、分散コンピュータ2によ
る変更データ14を破棄する(ステップ43)。
Next, the operation of the present invention will be described with reference to FIGS. 1, 2 and 3. 2 is a flowchart of the data changing means 18, and FIG. 3 is a flowchart of the data managing means 3.
When the data is changed by the distributed computer 2 at each site, the copy data 13 of the master data 12 is acquired from the primary file 6 of the data management computer 1 by the data changing means 18 and stored in the distributed file 7 (step 2
1) A change process is performed on the duplicated data 13 (step 22). Change site column 1 of changed area 10
The code corresponding to the site is recorded in 1 (step 23). When the change processing is completed, one or more pieces of change data 14 are transferred to the data management computer 1 (step 25). For each transferred change data 14, the data management means 3 reads the master data 12 corresponding to the change data 14 from the primary file 6 (step 31), compares the counter 9 indicating the version, and when the version is old, The change data 14 is discarded (step 34), and in other cases, it is registered in the area management table 4 based on the change site column 11 for each area 10 changed between the change data 14 and the master data 12. If the priority 5 of the site of the area 10 in the change data 14 is higher than the priority 5 of the same area of the master data 12, the area 10 is changed. When the change area 10 is replaced with all the change areas 10 (step 42), all the change areas 10 can be replaced. Static data 12
Is updated (step 37). If all the change areas 10 cannot be replaced, the change data 14 by the distributed computer 2 is discarded (step 43).

【0009】次に複数サイトで複製データ13が並列に
変更処理される例として、サイトZで登録または変更さ
れたマスタデータ12に対し、サイトXで領域A,Bを
サイトYで領域B,Cを変更する場合のデータの変更過
程を示す。サイトXで領域A,Bを変更すると、領域
A,Bの変更サイト欄11にXが記録され、サイトYで
領域B,Cを変更すると、領域B,Cの変更サイト欄1
1にYが記録される。まず、サイトXの変更が終了した
とすると、変更データ14はマスタデータ12と領域
A,Bの変更サイト11に対応する優先順位5が比較さ
れ、領域A,Bが変更データ14で置換されてマスタデ
ータ15となる。サイトYの変更が終了すると、変更デ
ータ16はマスタデータ15と領域B,Cの変更サイト
11に対応する優先順位5が比較され、領域B,Cが変
更データ16で置換されてマスタデータ17となる。こ
の例で領域Bが複数サイトで並列に変更されたが、領域
10の変更に対する優先順位5の高いサイトによる変更
が生かされる。
Next, as an example in which the replicated data 13 is changed in parallel at a plurality of sites, with respect to the master data 12 registered or changed at the site Z, areas A and B at the site X and areas B and C at the site Y. The data change process when changing is shown. When the areas A and B are changed at the site X, X is recorded in the changed site column 11 of the areas A and B, and when the areas B and C are changed at the site Y, the changed site column 1 of the areas B and C is changed.
Y is recorded in 1. First, assuming that the change of the site X is completed, the change data 14 is compared with the master data 12 and the priority 5 corresponding to the change site 11 of the areas A and B, and the areas A and B are replaced with the change data 14. It becomes the master data 15. When the change of the site Y is completed, the change data 16 is compared with the master data 15 and the priority 5 corresponding to the change site 11 of the areas B and C, the areas B and C are replaced with the change data 16, and the master data 17 is obtained. Become. In this example, the area B is changed in parallel at a plurality of sites, but the change of the area 10 is made by the site having the higher priority level 5.

【0010】上記の動作により、データ管理コンピュー
タ1上の1次ファイル6中には、各サイトで並列に変更
処理された結果のうち、領域10に対する変更サイトの
優先順位5の高いものが反映され、マスタデータ17と
して記憶されることになる。
By the above operation, in the primary file 6 on the data management computer 1, of the results of parallel change processing at each site, the one having the higher priority 5 of the changed site for the area 10 is reflected. , Master data 17 will be stored.

【0011】[0011]

【発明の効果】本発明によれば、複数サイトのコンピュ
ータ上に分散配置された同一データに対して複数のサイ
トで並列に変更処理が実行された場合、各領域とも優先
順位の高いサイトの変更が反映されるため、優先順位の
高いサイトによるデータの変更処理が無駄なく実行でき
る。
According to the present invention, when the change processing is executed in parallel at the plurality of sites for the same data distributed on the computers at the plurality of sites, the change of the site having a high priority in each area is performed. Is reflected, it is possible to perform data change processing by a site with a high priority without waste.

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

【図1】本発明の1実施例のシステム構成図である。FIG. 1 is a system configuration diagram of an embodiment of the present invention.

【図2】データ変更手段のフローチャートである。FIG. 2 is a flowchart of a data changing unit.

【図3】データ管理手段のフローチャートである。FIG. 3 is a flowchart of a data management means.

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

1…データ管理コンピュータ、 2…分散コンピュータ、 3…データ管理手段、 4…領域管理表、 5…優先順位、 6…1次ファイル、 7…分散ファイル、 8…レコード、 9…カウンタ、 10…領域、 11…変更サイト欄、 12…マスタデータ、 13…複製データ、 14…変更データ、 15…マスタデータ、 16…変更データ、 17…マスタデータ。 DESCRIPTION OF SYMBOLS 1 ... Data management computer, 2 ... Distributed computer, 3 ... Data management means, 4 ... Area management table, 5 ... Priority order, 6 ... Primary file, 7 ... Distributed file, 8 ... Record, 9 ... Counter, 10 ... Area , 11 ... changed site column, 12 ... master data, 13 ... replicated data, 14 ... changed data, 15 ... master data, 16 ... changed data, 17 ... master data.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】データを集中管理するデータ管理コンピュ
ータと複数のサイトに配置された分散コンピュータから
構成され、データ管理コンピュータ上のマスタデータの
複製を各サイトの分散コンピュータの記憶装置にもち、
各サイトで並列にこれらの複製データに対し変更処理が
可能な分散処理システムのデータ管理方式において、 データのレコードを1つ以上の項目からなる領域に分割
し、各領域ごとに当該領域の変更サイトを記録する項
目、およびレコードのバージョンを表すカウンタを備
え、 データ管理コンピュータに、各領域の変更に対する各サ
イトの優先順位を記録した領域管理表をもち、 分散コンピュータでデータを変更した場合、変更データ
をデータ管理コンピュータに転送し、変更データとデー
タ管理コンピュータ上のマスタデータのバージョンをカ
ウンタをもとに比較し、バージョンが古い場合、変更デ
ータを破棄し、 バージョンの比較で破棄されなかった場合、変更データ
の変更された領域と基本データの同一領域について、変
更サイトを記録した項目に対応する領域管理表の優先順
位を比較し、変更データ中のサイトの優先順位が高い場
合、領域を当該サイトによる変更データの領域で置き換
え、変更された領域すべてが置き換えできた場合、マス
タデータを更新し、 変更領域すべてが置き換えできなかった場合には、分散
コンピュータによる変更データを破棄すること、を特徴
とする分散処理システムのデータ管理方法。
1. A data management computer for centrally managing data and distributed computers arranged at a plurality of sites, wherein master data on the data management computer is duplicated in a storage device of the distributed computer at each site.
In the data management method of the distributed processing system that can change these duplicated data in parallel at each site, the data record is divided into areas consisting of one or more items, and the change site of the area is changed for each area. The data management computer has an area management table that records the priority of each site for changes in each area, and the change data when the data is changed by distributed computers. To the data management computer and compare the version of the change data and the master data on the data management computer based on the counter. If the version is old, the change data is discarded, and if it is not discarded by the version comparison, Change site for the changed area of changed data and the same area of basic data When the priority of the area management table corresponding to the recorded items is compared, and the priority of the site in the change data is high, the area is replaced with the area of the change data by the site, and all changed areas can be replaced A method for managing data in a distributed processing system, characterized in that master data is updated, and if all changed areas cannot be replaced, the changed data by the distributed computer is discarded.
JP5223103A 1993-09-08 1993-09-08 Method for managing data in distributing processing system Pending JPH0778121A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5223103A JPH0778121A (en) 1993-09-08 1993-09-08 Method for managing data in distributing processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5223103A JPH0778121A (en) 1993-09-08 1993-09-08 Method for managing data in distributing processing system

Publications (1)

Publication Number Publication Date
JPH0778121A true JPH0778121A (en) 1995-03-20

Family

ID=16792878

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5223103A Pending JPH0778121A (en) 1993-09-08 1993-09-08 Method for managing data in distributing processing system

Country Status (1)

Country Link
JP (1) JPH0778121A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1032580A (en) * 1996-07-16 1998-02-03 Toshiba Corp Method and device for controlling storing means
JP2001175681A (en) * 1999-12-21 2001-06-29 Hitachi Ltd Database system, method for generating replica of database, and computer-readable recording medium with recorded program for replica generation of database
JP2005301784A (en) * 2004-04-14 2005-10-27 Nippon Telegr & Teleph Corp <Ntt> Attribute information update device and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1032580A (en) * 1996-07-16 1998-02-03 Toshiba Corp Method and device for controlling storing means
JP2001175681A (en) * 1999-12-21 2001-06-29 Hitachi Ltd Database system, method for generating replica of database, and computer-readable recording medium with recorded program for replica generation of database
JP2005301784A (en) * 2004-04-14 2005-10-27 Nippon Telegr & Teleph Corp <Ntt> Attribute information update device and program
JP4580184B2 (en) * 2004-04-14 2010-11-10 日本電信電話株式会社 Attribute information update device and program

Similar Documents

Publication Publication Date Title
JP2009093349A (en) Information retrieval system, apparatus for registering index for information retrieval, information retrieval method, and program
JPH0863342A (en) Program management method and device therefor
US7581135B2 (en) System and method for storing and restoring a data file using several storage media
JP2004318288A (en) Method and device for processing data and its processing program
JPH0778121A (en) Method for managing data in distributing processing system
CN109977092A (en) A kind of method and calculating equipment of duplication file
JPH02212949A (en) Reorganization processing system for data base in on-line operation
JP4167889B2 (en) Data conversion method and computer system therefor
JPH0218635A (en) Decentralized process file control system
JP2679602B2 (en) Evacuation medium creation system
JPH039426A (en) Software development environment storing system
JPH11110262A (en) Information management system
JP2563328B2 (en) How to copy a document file
JPH06332856A (en) On-line job processing system
JP3057685B2 (en) Version control method
JPH0330033A (en) File copying processor
JPS63150745A (en) Plural version managing system
JP2920978B2 (en) Library update method
JPH0962554A (en) Quiescent point save generation system
JPS63228244A (en) Record storage control system
JPH04304536A (en) Maintenance system for master file
JPH09330255A (en) Method and device for converting data
JPH02220151A (en) Variable length data access system
JPH05210554A (en) On-line file control system
JPS63178328A (en) Correcting information control system for program