JPH0484237A - Update method for overlap data in different type distributed data base - Google Patents

Update method for overlap data in different type distributed data base

Info

Publication number
JPH0484237A
JPH0484237A JP2198169A JP19816990A JPH0484237A JP H0484237 A JPH0484237 A JP H0484237A JP 2198169 A JP2198169 A JP 2198169A JP 19816990 A JP19816990 A JP 19816990A JP H0484237 A JPH0484237 A JP H0484237A
Authority
JP
Japan
Prior art keywords
data
update
updated
duplicate
standard
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
JP2198169A
Other languages
Japanese (ja)
Inventor
Satoshi Takano
智 高野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2198169A priority Critical patent/JPH0484237A/en
Publication of JPH0484237A publication Critical patent/JPH0484237A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To update overlap data even if an update processing which cannot translate data in a standard data operation language by assembling a data update instruction from position information on an update part and data which is read. CONSTITUTION:At first, the requested update processing is executed in one computer system. Then, it is judged whether data on the updated part exists in the other computer system as overlap data or not. When overlap data does not exist, the processing is terminated. When overlap data exists, it is judged whether the executed update instructed can be translated into the standard data operation language or not. When it can be translated into the standard data operation language, the processing is terminated. When it cannot be translated into the standard data operation language, information on the position of the updated part is obtained and position information is held.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、14種の異なる複数のコンピュータシステム
が通信回線やバスなどで結合され、各コンピュータシス
テム間に重複データが存在する異機種分散データベース
における重複データの更新方法に関する。
Detailed Description of the Invention (Industrial Application Field) The present invention is a heterogeneous distributed database in which a plurality of 14 different types of computer systems are connected via communication lines, buses, etc., and duplicate data exists between each computer system. Concerning how to update duplicate data in .

(従来の技術) 従来、機種の買なる複数のコンピュータシステムが通信
回線やバスなどで結合され、各コンピュータシステム間
に重複データが存在する興機種分散データベース環境に
おける重複データの更新方法としては、ある一つのコン
ピュータシステム内で実行されたデータ更新命令を標準
のデータ操作言語に翻訳して重複データを持つ他のコン
ピュータシステムに転送する方法が考えられていた。
(Prior Art) Conventionally, there is a method for updating duplicate data in a multi-model distributed database environment in which multiple computer systems of different models are connected via communication lines, buses, etc., and duplicate data exists between each computer system. Methods have been considered for translating data update instructions executed within one computer system into a standard data manipulation language and transmitting the translated data to other computer systems that have duplicate data.

方、標準のデータ操作言語に翻訳できない処理が生じた
場合には、重複部分全体を転送して前の重複データと置
き換える方法を採用していた。
On the other hand, if a process occurred that could not be translated into a standard data manipulation language, the entire overlap was transferred and replaced with the previous duplicate data.

(発明が解決しようとする課題) 従来の重複部分全体を転送する方法では、重複部分の更
新されていないデータも転送され、無駄なデータ転送コ
ストがかかるという欠点を有していた。
(Problems to be Solved by the Invention) The conventional method of transferring the entire overlapped portion has the disadvantage that unupdated data in the overlapped portion is also transferred, resulting in unnecessary data transfer costs.

そこで本発明の目的は、m種の興なる複数のコンピュー
タシステムに分散している重複データに対して、標準の
データ操作言語に翻訳できないデータ更新処理が生じた
ときにすべての重複データを同様に更新することを可能
とし、さらにデータ更新処理の際の無駄なデータ転送を
抑制した異機種分散データベースにおける重複データの
更新方法を提供することにある。
Therefore, an object of the present invention is to update all duplicate data in the same manner when a data update process that cannot be translated into a standard data manipulation language occurs for duplicate data distributed among multiple computer systems of m types. It is an object of the present invention to provide a method for updating duplicate data in a heterogeneous distributed database, which enables updating and further suppresses wasteful data transfer during data update processing.

(課題を解決するための手段) 本発明の異機種分散データベースにおける重複データの
更新方法は、通信回線やバスなどで結ばれた機種の異な
る複数のコンピュータシステム間に重複データが存在す
る興機種分散データベースにおける重複データの更新方
法であって、あるコンピュータシステム内のデータ更新
命令による更新部分に前記重複データが存在し、前記デ
ータ更新命令を標準のデータ操作言語に翻訳できない場
合に、 前記更新部分の位置を示す情報を保持し、該位置情報を
もとに前記更新部分のデータの内容を読み取り、標準の
データ操作言語を用いて前記位置情報と前記更新部分の
データとからデータ更新命令を組み立て、該データ更新
命令を前記重複データを持つ他のコンピュータシステム
に転送することを特徴とする。
(Means for Solving the Problems) The method for updating duplicate data in a heterogeneous distributed database of the present invention is a method for updating duplicate data in a heterogeneous distributed database in which duplicate data exists between multiple computer systems of different models connected by communication lines, buses, etc. A method for updating duplicate data in a database, when the duplicate data exists in an updated part by a data update command in a certain computer system, and the data update command cannot be translated into a standard data manipulation language. retaining information indicating a position, reading the contents of the data of the update part based on the position information, and assembling a data update command from the position information and the data of the update part using a standard data manipulation language; The present invention is characterized in that the data update command is transferred to another computer system having the duplicate data.

(作用) 本発明は、すでに更新されたデータを読み取り、その更
新部分の位置情報と読み取ったデータとからデータ更新
命令を組み立てることにより、標準のデータ操作言語に
翻訳不可能な更新処理が生じた場合でも他のコンピュー
タシステム内に存在する重複データの更新を可能にして
いる。また、更新部分の位置の情報を保持することによ
って、更新されていないデータを転送することがなくな
り、無駄なデータ転送コストを抑制している。
(Operation) The present invention reads data that has already been updated and assembles a data update command from the position information of the updated portion and the read data, thereby creating an update process that cannot be translated into a standard data manipulation language. It allows updating of duplicate data even if it exists in other computer systems. Furthermore, by retaining information on the location of updated portions, data that has not been updated is not transferred, thereby suppressing wasteful data transfer costs.

(実施例) 次に、本発明の実施例について図面を参照して説明する
(Example) Next, an example of the present invention will be described with reference to the drawings.

第1図は、本発明の一実施例のフローチャートを示す図
である。第2図は、本実施例の関係データベースの表の
更新に適用した場合の一例を示す図である。
FIG. 1 is a diagram showing a flowchart of one embodiment of the present invention. FIG. 2 is a diagram showing an example of the case where the present embodiment is applied to updating a table of a relational database.

第1図を用いて全体の処理の流れを説明する。The overall processing flow will be explained using FIG.

本実施例の処理は大きく二つの部分に分かれる。The processing of this embodiment is broadly divided into two parts.

一方はある一つのコンピュータシステム内でのデータ更
新時の処理であり、他方はそのデータ更新で更新された
データと重複するデータを持つ他のコンピュータシステ
ムに重複データの更新を指示する時の処理である。
One is the processing when updating data within a certain computer system, and the other is the processing when instructing another computer system that has data that overlaps with the data updated by that data update to update the duplicate data. be.

まず、ある一つのコンピュータシステム内でのデータ更
新時の処理について説明する。最初に、要求された更新
処理を実施する(ステップ11)。
First, processing when updating data within one computer system will be explained. First, the requested update process is performed (step 11).

次に 更新された部分のデータが他のコンピュータシス
テムに重複データとして存在するがどうがを判断し、他
のコンピュータシステムに重複データかび在しなければ
処理を終了する(ステップエ2)。他のコンピュータシ
ステムに重複データが存在する場合は、実行された更新
命令が標準のデータ操作言語に翻訳できるがどうか判断
し、標準のデータ操作言語に翻訳できれば処理を終了す
る(ステップ13)。標準のデータ操作言語に翻訳でき
ない場合は、更新された部分の位置の情報を取得してそ
の位置情報を保持する(ステップ14)。
Next, it is determined whether or not the updated data exists as duplicate data in another computer system, and if no duplicate data exists in other computer systems, the process is terminated (Step E2). If duplicate data exists in another computer system, it is determined whether the executed update command can be translated into the standard data manipulation language, and if it can be translated into the standard data manipulation language, the process is terminated (step 13). If it cannot be translated into a standard data manipulation language, information on the location of the updated portion is obtained and retained (step 14).

次に、他のコンピュータシステムに重複データの更新を
指示する時の処理について説明する4、tず、更新され
たデータの位置情報を探索して更新された部分の位置を
認識する(ステップ15)。
Next, we will explain the process when instructing another computer system to update duplicate data. 4. Search for the location information of the updated data and recognize the location of the updated part (step 15) .

次に、更新された部分でまだ処理されていないものがあ
るかどうか判断し、未処理の部分がなければ処理を終了
する(ステップ16)、未処理の部分がある場合、更新
されたデータの位置情報で示される部分を読み取る(ス
テップ17)0次に、位置情報と読み取ったデータの値
からtI准のデータ操作言語を用いてデータ更新命令を
組み立てる(ステップ18)。そして重複データを持つ
他のコンピュータシステムに向けて組み立てた更新命令
を転送する(ステップ19)。転送が終了すると、次の
更新部分の処理を行なうためにステップ15に戻る。第
1図に示す実施例では、更新部分の位置情報の探索と更
新命令の組立・転送とを−・つずつ行っているが、これ
らをまとめて行ってもよい。例えば、最初にすべての更
新部分の位置を認識し、その後に命令の組立を行っても
よい。このようにすると位置情報の探索の際の制御にか
かる全体時間が短縮され、また複数の更新部分を一つに
まとめたりするような最適化が可能となる。
Next, it is determined whether there is any updated part that has not been processed yet, and if there is no unprocessed part, the processing is terminated (step 16). If there is an unprocessed part, the updated data is The part indicated by the position information is read (step 17).Next, a data update command is assembled from the position information and the value of the read data using the tI data manipulation language (step 18). Then, the assembled update command is transferred to other computer systems that have duplicate data (step 19). When the transfer is completed, the process returns to step 15 to process the next updated portion. In the embodiment shown in FIG. 1, the search for the location information of the updated portion and the assembly and transfer of the update command are performed one by one, but they may be performed all at once. For example, the locations of all updated portions may be recognized first, and instructions may then be assembled. In this way, the overall time required for control when searching for position information is shortened, and optimization such as combining multiple updated parts into one becomes possible.

更新命令の転送においても一つずつ転送するのではなく
、組み立てられた更新命令をまとめて一括して転送して
もよい。このようにすると、転送の際の制御メツセージ
の回数を減らすことができる。
When transferring update instructions, assembled update instructions may be transferred all at once instead of being transferred one by one. In this way, the number of control messages during transfer can be reduced.

ステップ14とステップ17の処理の例として、本実施
例を関係データベースの表の更新に適用しな場合の一例
を第2図に示す0点線の矢印は第1図のステップ14で
の処理の流れを示し、実線の矢印は第1図のステップ1
7での処理の流れを示す。更新される表がm個の属性の
レコードをn個持っているとすると、nXmのビットマ
トリックスを用意する0例えば、表のy番目のレコード
のX番目の属性が更新されると、ビットマトリックスの
(x、y)に相当する位置のと・ソトを立てる。
As an example of the processing in steps 14 and 17, an example in which this embodiment is not applied to updating tables in a relational database is shown in Fig. 2. The zero-dot line arrow indicates the flow of processing in step 14 in Fig. 1. , and the solid arrow indicates step 1 in Figure 1.
7 shows the flow of processing in 7. Assuming that the table to be updated has n records with m attributes, prepare an nXm bit matrix.0For example, when the X-th attribute of the y-th record in the table is updated, the bit matrix Set up the and soto at the position corresponding to (x, y).

ステップ17においては、ビットマトリックスを探索し
て位置の情報(x、y)を見つけ、対応表を用いて属性
名と主キー値を取り出す。例えば、属性1が主キー項目
であるとすると、更新された表の属性1の値を探索して
、主キー値がpyであるレコードyの属性名が属性Xで
ある項目の属性値を読み取る。そして、標準のデータ操
作言語を用いて更新命令を組み立てる。例えば、SQL
言語を使うと次のようになる。
In step 17, the bit matrix is searched to find position information (x, y), and the attribute name and primary key value are extracted using the correspondence table. For example, if attribute 1 is the primary key item, search the value of attribute 1 in the updated table and read the attribute value of the item whose attribute name is attribute X in record y whose primary key value is py. . The update instructions are then constructed using a standard data manipulation language. For example, SQL
Using language, it looks like this:

UPDATE TへBLE (更新された表の名前)S
ET属性x−(読み取った属性値) 11HERE属性1=Py; このようにして更新された部分の位置情報をもとにデー
タ更新命令が組み立てられる。
UPDATE T BLE (Name of updated table) S
ET attribute x- (read attribute value) 11HERE attribute 1=Py; A data update command is assembled based on the position information of the updated portion in this way.

(発明の効果) 以上に説明した様に、本発明によれば、他のコンピュー
タシステムに存在する重複データの更新が、標準のデー
タ操作言語に翻訳できない更新が起きたときでも冗長な
データ転送なしで可能となり、また遅延更新(@のシス
テムのデータ更新を即時に実行するのではなく、夜間の
低トラフィックな時間帯に一括して行なうなどある程度
時間を遅らせて更新処理を実行する方法)の場合、ある
データが複数回更新されていても一回の処理で最新の値
に更新できるという効果が得られる。
(Effects of the Invention) As explained above, according to the present invention, redundant data transfer is not performed even when updates of duplicate data existing in other computer systems occur that cannot be translated into a standard data manipulation language. In the case of delayed update (a method of executing the update process after a certain amount of time, such as at night when there is low traffic, instead of updating the data of the @ system immediately) , even if certain data has been updated multiple times, it can be updated to the latest value with a single process.

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

第1図は本発明の一実施例のフローチャートを示す図、
第2図は本実施例を関係データベースの表の更新に適用
した場合の一例を示す図である。
FIG. 1 is a diagram showing a flowchart of an embodiment of the present invention;
FIG. 2 is a diagram showing an example of the case where this embodiment is applied to updating a table of a relational database.

Claims (1)

【特許請求の範囲】 通信回線やバスなどで結ばれた機種の異なる複数のコン
ピュータシステム間に重複データが存在する異機種分散
データベースにおける重複データの更新方法において、
あるコンピュータシステム内のデータ更新命令による更
新部分に前記重複データが存在し、前記データ更新命令
を標準のデータ操作言語に翻訳できない場合に、 前記更新部分の位置を示す情報を保持し、該位置情報を
もとに前記更新部分のデータの内容を読み取り、標準の
データ操作言語を用いて前記位置情報と前記更新部分の
データとからデータ更新命令を組み立て、該データ更新
命令を前記重複データを持つ他のコンピュータシステム
に転送することを特徴とする異機種分散データベースに
おける重複データの更新方法。
[Claims] A method for updating duplicate data in a heterogeneous distributed database in which duplicate data exists between multiple computer systems of different models connected by communication lines, buses, etc.
If the duplicate data exists in a part updated by a data update command in a certain computer system and the data update command cannot be translated into a standard data manipulation language, retain information indicating the location of the updated part, and store the position information. reads the content of the data in the update portion based on the data, assembles a data update instruction from the location information and the data in the update portion using a standard data manipulation language, and uses the data update instruction to read the content of the data in the update portion using a standard data manipulation language. A method for updating duplicate data in a heterogeneous distributed database, the method comprising: updating duplicate data in a heterogeneous distributed database.
JP2198169A 1990-07-26 1990-07-26 Update method for overlap data in different type distributed data base Pending JPH0484237A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2198169A JPH0484237A (en) 1990-07-26 1990-07-26 Update method for overlap data in different type distributed data base

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2198169A JPH0484237A (en) 1990-07-26 1990-07-26 Update method for overlap data in different type distributed data base

Publications (1)

Publication Number Publication Date
JPH0484237A true JPH0484237A (en) 1992-03-17

Family

ID=16386618

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2198169A Pending JPH0484237A (en) 1990-07-26 1990-07-26 Update method for overlap data in different type distributed data base

Country Status (1)

Country Link
JP (1) JPH0484237A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08235049A (en) * 1995-02-27 1996-09-13 Nec Corp Communication system
JP2003517689A (en) * 1999-12-16 2003-05-27 ピクチャーアイキュー コーポレイション Techniques for synchronizing any of a plurality of associated multimedia assets in a distributed system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01226050A (en) * 1988-03-04 1989-09-08 Nec Corp Data sharing control system for different operating systems

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01226050A (en) * 1988-03-04 1989-09-08 Nec Corp Data sharing control system for different operating systems

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08235049A (en) * 1995-02-27 1996-09-13 Nec Corp Communication system
JP2003517689A (en) * 1999-12-16 2003-05-27 ピクチャーアイキュー コーポレイション Techniques for synchronizing any of a plurality of associated multimedia assets in a distributed system
JP2012038326A (en) * 1999-12-16 2012-02-23 Nokia Corp Techniques for synchronizing any of a plurality of associated multimedia assets in a distributed system

Similar Documents

Publication Publication Date Title
US8280840B2 (en) Data integration apparatus, data integration method, and computer product
US7627615B2 (en) Copy-on-write versioning of documents
US7533136B2 (en) Efficient implementation of multiple work areas in a file system like repository that supports file versioning
US20070233753A1 (en) Database system management method, database system, database device, and backup program
US20040205401A1 (en) Method, system and program products for operationally migrating a cluster through emulation
CN109408539B (en) Data operation method, device, server and storage medium
JPH08179980A (en) Distributed data base system
JPH0484237A (en) Update method for overlap data in different type distributed data base
JP3769775B2 (en) Distributed link information maintenance method
JP3623069B2 (en) Data update method in multi-server system
JPH06266599A (en) Data base update information transfer system
JP3012254B2 (en) List information transmission method
JPH0498546A (en) Duplicate data updating system
JP2713405B2 (en) File system
JPH11213006A (en) Information managing device and its history information managing method
US6564376B1 (en) Method, system and program products for operationally backing out components of a cluster through emulation
JPH0877053A (en) Device and method for reflecting duplicated data base
JP2001297005A (en) Client-server system
JP2718663B2 (en) Interactive information search and editing method
JPH0566985A (en) Updating system for data base
JPH04195559A (en) Subfile management system
JP2557953B2 (en) Interface definition and analysis support method
JPH05250335A (en) Data base update processing system of loosely coupled multiprocessor system
JPH08147333A (en) Drawing preparing system
JPH0612388A (en) Access system for decentralized file