[go: up one dir, main page]

JPH06119227A - Distributed data base control system - Google Patents

Distributed data base control system

Info

Publication number
JPH06119227A
JPH06119227A JP4292054A JP29205492A JPH06119227A JP H06119227 A JPH06119227 A JP H06119227A JP 4292054 A JP4292054 A JP 4292054A JP 29205492 A JP29205492 A JP 29205492A JP H06119227 A JPH06119227 A JP H06119227A
Authority
JP
Japan
Prior art keywords
copy
data base
update
database
computer
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
JP4292054A
Other languages
Japanese (ja)
Inventor
Suguru Kawakami
英 川上
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP4292054A priority Critical patent/JPH06119227A/en
Publication of JPH06119227A publication Critical patent/JPH06119227A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To shorten the updating time of a distributed data base. CONSTITUTION:In the case of updating a data base 15 by a computer 1, a copy kind designating means 73 is referred to, and when it shows that the data base 15 is main, only the data base 15 is updated by an updating means 34, and a data base 25, etc., are not updated. Also, when the copy kind designating means 73 shows that the data base 15 is subsidiary, updating of its data base is requested to the computer in which the main data base is stored through a communication controller 31 by the updating means 34. The subsidiary data base 15 is not updated. On the other hand, when a synchronous time designated by a synchronous time designating means 74 comes, the computer in which the main data base is contained sends updating history of the data base to all the computers in which the subsidiary data base is stored, and requests updating.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、分散データベースにお
ける重複した格納データを制御する分散データベース制
御システムに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a distributed database control system for controlling duplicate stored data in a distributed database.

【0002】[0002]

【従来の技術】図2は、従来の分散データベース制御シ
ステム(分散DBMS)の機能の一例を示すブロック図
である。また、図3は、図2中の格納情報管理テーブル
の構造の説明図である。図示の分散データベース管理シ
ステムは、通信網45で接続された複数の計算機41、
42上の複数の分散データベース管理システム50、6
0で構成されている。例えば、計算機41で利用者から
データベースに対する検索要求があると、問合せ処理機
能51が格納情報管理テーブル54の内容を調べる。そ
して、自分のデータベース55に該当するデータが格納
されていれば、検索機能52を使用して、例えば、表5
6の内容を応答する。
2. Description of the Related Art FIG. 2 is a block diagram showing an example of functions of a conventional distributed database control system (distributed DBMS). 3 is an explanatory diagram of the structure of the stored information management table in FIG. The distributed database management system shown in the figure has a plurality of computers 41 connected by a communication network 45,
Multiple distributed database management systems 50, 6 on 42
It consists of zero. For example, when a user requests a database search from the computer 41, the inquiry processing function 51 checks the contents of the stored information management table 54. Then, if the corresponding data is stored in the own database 55, using the search function 52, for example,
The contents of 6 are responded.

【0003】また、計算機41で利用者からデータベー
スに対する更新要求があると、問合せ処理機能51が格
納情報管理テーブル54の内容を調べ、自分のデータベ
ース55の表56を更新するとともに該当する表66を
格納している計算機42に対しても更新を命令する。こ
れを受けた計算機42は、更新機能63を使用して、表
66の内容を更新し、更新が完了したことをこの命令を
出した計算機41に応答する。計算機42で更新要求が
あった場合も、計算機41と同様に問合せ処理機能61
が格納情報テーブル64の内容を調べ、自分のデータベ
ース65の表66を更新するとともに該当する表56を
格納している計算機41に対しても更新を命令する。デ
ータベースでは、一連のデータベースに対する処理のま
とまりをトランザクションと呼ぶ。例えば、銀行等の業
務処理において、口座Aから口座Bへの送金は、口座A
の更新と口座Bの更新から成っている。即ち、送金のト
ランザクションは、口座Aからの出金処理と口座Bへの
入金処理の2つの処理から成っている。この2つの処理
のうち、どちらか一方が失敗した状態であると、銀行全
体として、預金残高が正しくなくなってしまう。このた
め、データベースでは、一方の処理がうまく実行できな
い場合、他方の処理をロールバックして、データベース
の状態を正常に保つ。このために、トランザクションの
コミット要求に対し、そのトランザクションの正常終了
の通知を受け取らなかった場合に、トランザクションで
なされた更新処理の一部を無効にするロールバック要求
を出すことができる。
When a user requests a database update from the computer 41, the inquiry processing function 51 checks the contents of the stored information management table 54, updates the table 56 of its own database 55, and updates the corresponding table 66. The update is also instructed to the stored computer 42. Receiving this, the computer 42 uses the update function 63 to update the contents of the table 66 and responds to the computer 41 which has issued this command that the update has been completed. Even when there is an update request from the computer 42, the inquiry processing function 61 as in the computer 41.
Examines the contents of the stored information table 64, updates the table 66 of its own database 65, and also instructs the computer 41 storing the corresponding table 56 to update. In a database, a set of processes for a series of databases is called a transaction. For example, in the business processing of a bank or the like, the transfer of money from Account A to Account B is
And account B updates. That is, the remittance transaction consists of two processes, a withdrawal process from the account A and a deposit process into the account B. If either one of these two processes is unsuccessful, the deposit balance will be incorrect for the entire bank. Therefore, in the database, when one process cannot be executed successfully, the other process is rolled back to keep the state of the database normal. Therefore, when a transaction commit request is not received, the rollback request for invalidating a part of the update processing performed in the transaction can be issued when the notification of the normal end of the transaction is not received.

【0004】即ち、例えば、計算機41で利用者から、
トランザクションのコミット要求が出された場合、問合
せ処理機能51は、トランザクションに関係する計算機
42の分散DBMS60にコミットの準備を命令する。
このコミット準備命令に対するすべての応答が正常であ
れば、トランザクションに関係する分散DBMS60に
コミットを命令する。このコミット命令に対する応答に
1つでも異常があれば、トランザクションに関係した分
散DBMS60にロールバックを命令する。このよう
に、1つのトランザクションの中の更新が複数の計算機
41、42上で行なわれた場合、その更新を同期させる
ために、分散DBMS50、60同士がコミットの準備
とコミットの2回のやりとりを行なうことを2相コミッ
トシステムと呼んでいる。以下、2相コミットシステム
について説明する。
That is, for example, from the user on the computer 41,
When a transaction commit request is issued, the query processing function 51 commands the distributed DBMS 60 of the computer 42 related to the transaction to prepare for commit.
If all the responses to this commit preparation instruction are normal, the commit is issued to the distributed DBMS 60 related to the transaction. If even one response to this commit command is abnormal, the distributed DBMS 60 related to the transaction is commanded to roll back. In this way, when an update in one transaction is performed on a plurality of computers 41, 42, the distributed DBMSs 50, 60 exchange commit preparations and commits twice in order to synchronize the updates. What we do is called a two-phase commit system. The two-phase commit system will be described below.

【0005】図4は、コミットメント制御の説明図、図
5は、分散データベースにおけるサブトランザクション
の説明図であり、図6は、2相コミット方式が正常な場
合の説明図、図7は、2相コミット方式でのサブトラン
ザクションの失敗例の説明図である。まず、トランザク
ション管理について説明すると、トランザクションは、
例えば、銀行業務の送金処理については、A口座からB
口座への送金の場合、A口座からの出金とB口座への入
金の2つのサブトランザクションから成る。このような
トランザクションを実行する場合、A口座からの出金
(図4の“更新1”)のみ完了し、B口座への入金(図
4の“更新2”)が障害により完了しないとすると、銀
行全体としてのデータベースの内容が狂ってしまう。こ
のため、トランザクションの開始から、“更新1”、
“更新2”の処理を一時保存用の他のファイルに保存
し、双方のサブトランザクションの完了後、コミットに
よりデータベースを更新するようにしている。これをコ
ミットメント制御という。“更新1”のみ完了し、“更
新2”が障害となると、“更新1”はデータベースには
反映されない。
FIG. 4 is an explanatory diagram of commitment control, FIG. 5 is an explanatory diagram of subtransactions in a distributed database, FIG. 6 is an explanatory diagram when the two-phase commit method is normal, and FIG. 7 is two-phase. It is explanatory drawing of the failure example of the sub-transaction by a commit method. First of all, I will explain about transaction management.
For example, for remittance processing for banking operations, from A account to B
The transfer to an account consists of two subtransactions: withdrawal from A account and deposit into B account. When executing such a transaction, assuming that only the withdrawal from the A account (“update 1” in FIG. 4) is completed and the deposit into the B account (“update 2” in FIG. 4) is not completed due to an obstacle, The contents of the database of the bank as a whole will go wrong. Therefore, from the start of the transaction, "Update 1",
The process of "update 2" is stored in another file for temporary storage, and after completion of both subtransactions, the database is updated by commit. This is called commitment control. When only "update 1" is completed and "update 2" becomes an obstacle, "update 1" is not reflected in the database.

【0006】上記の例で、分散データベースでは、通信
回線を介して分散して設置された各計算機で、それぞれ
のサブトランザクションが実行される。このように、分
散データベースでは、図5に示すように、利用者にとっ
てのトランザクションは各計算機で実行されるサブトラ
ンザクションの集まりとして実現される。分散データベ
ースで上述したコミットメント制御を行なうとすると、
図6及び図7に示すように、“サブトランザクション
1”と“サブトランザクション2”を別々の計算機でコ
ミットすることになる。この場合、トランザクションの
依頼側のマスタ計算機から、まず双方の計算機へコミッ
ト準備指示を順次出し、双方の計算機から準備完了の応
答を受けた後、コミット指示を各計算機に出すようにし
ている。これを2相コミット方式という。2相コミット
方式が正常に行なわれる場合は、図6に示すように、双
方の計算機からコミット準備指示に対する準備完了応答
が得られ、コミット指示が出される。これに対し、図7
に示すように、2相コミット方式で、例えば、“サブト
ランザクション2”を実行する計算機がコミット準備失
敗の場合は、各計算機に対し、アボート指示が出され、
双方の計算機とも実行を中止する。
In the above example, in the distributed database, the respective sub-transactions are executed by the respective computers installed in a distributed manner via the communication line. Thus, in the distributed database, as shown in FIG. 5, a transaction for the user is realized as a set of sub-transactions executed by each computer. If the commitment control described above is performed in the distributed database,
As shown in FIGS. 6 and 7, “sub-transaction 1” and “sub-transaction 2” will be committed by different computers. In this case, the master computer, which is the transaction requesting side, first issues a commit preparation instruction to both computers, and after receiving a response of completion of preparation from both computers, issues a commit instruction to each computer. This is called a two-phase commit method. When the two-phase commit method is normally performed, as shown in FIG. 6, the preparation completion response to the commit preparation instruction is obtained from both computers, and the commit instruction is issued. On the other hand, FIG.
As shown in, in the two-phase commit method, for example, when the computer that executes “sub-transaction 2” fails in commit preparation, an abort instruction is issued to each computer,
Stop execution on both computers.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上述し
た従来の技術には、次のような問題があった。即ち、こ
のように、従来分散データベースでは、同じデータを複
数のデータベースに格納する場合、複数の分散DBMS
に更新の命令を出す必要があり、さらに更新の同期をと
るために2相コミットシステムによって複数の分散DB
MSに対しコミットの準備とコミット要求を通信しなけ
ればならなかった。つまり、このようなシステムでは、
計算機間の通信が多く必要となり、データ処理性能の低
下の原因となっていた。本発明は、以上の点に着目して
なされたもので、同じデータを複数のデータベースに格
納する場合、必ずしも複数のデータベース上の同じデー
タを同期して更新する必要が無いことに着目し、更新の
性能が高い分散データベース制御システムを提供するこ
とを目的とするものである。
However, the above-mentioned conventional technique has the following problems. That is, as described above, in the conventional distributed database, when the same data is stored in a plurality of databases, a plurality of distributed DBMSs are used.
It is necessary to issue an update command to multiple distributed DBs by the two-phase commit system in order to synchronize the update.
I had to communicate the prepare for commit and the commit request to the MS. So in such a system,
This requires a lot of communication between computers, which causes a decrease in data processing performance. The present invention has been made by paying attention to the above points, and when storing the same data in a plurality of databases, it is not always necessary to update the same data in a plurality of databases in synchronization, The purpose of the present invention is to provide a distributed database control system with high performance.

【0008】[0008]

【課題を解決するための手段】本発明の分散データベー
ス制御システムは、通信回線で接続された複数の計算機
内に同一データを重複分散して格納するデータベース
と、当該各データベースに重複して格納しているデータ
のコピーに対し、一部のコピーを主コピーに指定し、当
該主コピー以外の他のコピーを従コピーに指定するコピ
ー種類指定手段と、当該データについての更新要求に対
しては、前記主コピーを格納したデータベースを持つ計
算機で当該主コピーだけを更新し、その更新履歴を保存
する更新手段と、前記主コピーを格納した計算機が、前
記従コピーを格納した計算機に対し、更新履歴を送り、
当該更新履歴によって前記従コピーを前記主コピーと同
じ内容に更新する時期を指定する同期時期指定手段とを
備えたことを特徴とするものである。
DISCLOSURE OF THE INVENTION A distributed database control system of the present invention stores a database in which the same data is redundantly distributed and stored in a plurality of computers connected by a communication line, and stores the same data in each of the databases. For the copy of the data, the copy type designating means for designating a part of the copy as the primary copy and the other copy other than the primary copy as the slave copy, and the update request for the data, An update unit that updates only the main copy on a computer having a database storing the main copy and stores the update history, and a computer that stores the main copy updates the update history with respect to the computer that stores the slave copy. Send
And a synchronization timing designating unit for designating a timing when the slave copy is updated to the same content as the primary copy according to the update history.

【0009】[0009]

【作用】本発明の分散データベース制御システムにおい
ては、計算機で分散データベースを更新する場合、各デ
ータベースに格納された表などのデータが重複している
とき、更新手段によって、コピー種類指定手段に主コピ
ーと指定されているデータベースのみ更新する。このた
め、主コピーを格納している計算機で更新要求が生じた
ときは、自分のデータベースのみを更新し、従コピーを
格納している計算機で更新要求が生じたときは、主コピ
ーを格納している計算機に更新を依頼することになる。
複数の更新から成るトランザクションがコミット(実
行)されるとき、それぞれの更新について主コピーのみ
の更新を行なう。トランザクションを構成する複数の更
新のうちの一部が失敗したため、ロールバックしなけれ
ばならないときも主コピーの更新履歴のみをロールバッ
クする。一方、同期時期指定手段に主コピーと従コピー
とを一致させるための同期時期が指定されている。この
同期時期が来ると、主コピーを格納している計算機は各
従コピーを格納している計算機に主コピーの更新履歴を
送る。各従コピーを格納している計算機は、更新履歴を
受け取ると、各従コピーを更新手段によって更新する。
In the distributed database control system of the present invention, when the distributed database is updated by the computer, when the data such as the table stored in each database are duplicated, the update unit makes the main copy to the copy type designation unit. Only the database specified as is updated. Therefore, when an update request occurs on the computer that stores the primary copy, only your database is updated, and when an update request occurs on the computer that stores the slave copy, the main copy is stored. You will be asked to update the calculator.
When a transaction consisting of multiple updates is committed (executed), only the main copy is updated for each update. When some of the multiple updates that make up a transaction have failed, only the update history of the main copy is rolled back when it must be rolled back. On the other hand, the synchronization timing designating means designates the synchronization timing for matching the primary copy and the secondary copy. When this synchronization time comes, the computer storing the primary copy sends the update history of the primary copy to the computer storing each slave copy. Upon receiving the update history, the computer storing each slave copy updates each slave copy by the updating means.

【0010】[0010]

【実施例】以下、本発明の実施例を図面を参照して詳細
に説明する。図1は、本発明の分散データベース制御シ
ステムの一実施例のブロック図である。図示のシステム
は、計算機1、2等から成る。各計算機1、2は、通信
網5で接続されている。各計算機1、2は、プロセッサ
30、35、通信制御装置31、36、主記憶装置3
2、37、磁気ディスク33、38等から成る。プロセ
ッサ30、35は、それぞれ磁気ディスク33、38に
格納されたデータベース15、25の更新処理等を行な
う。プロセッサ30、35は、このための更新手段34
を備えている。更新手段34、39は、磁気ディスクの
入出力プログラム等から成り、他の計算機のデータベー
スの更新依頼を出すときは、通信制御装置31、36に
その旨指示する。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a block diagram of an embodiment of the distributed database control system of the present invention. The illustrated system is composed of computers 1, 2 and so on. The computers 1 and 2 are connected by a communication network 5. Each of the computers 1 and 2 has processors 30, 35, communication control devices 31, 36, and a main storage device 3.
2, 37, magnetic disks 33, 38 and the like. The processors 30 and 35 perform update processing of the databases 15 and 25 stored in the magnetic disks 33 and 38, respectively. The processors 30 and 35 have updating means 34 for this purpose.
Is equipped with. The updating means 34, 39 are composed of an input / output program of a magnetic disk, etc. When issuing a request for updating the database of another computer, the updating means 34, 39 are instructed to that effect to the communication control devices 31, 36.

【0011】通信制御装置31、36は、通信網5を介
して各計算機1、2相互の通信制御を行なう。この通信
制御装置31、36は、更新手段34、37から他の計
算機のデータベース更新依頼を受けたときは、該当する
計算機に対し、更新依頼を送信する。主記憶装置32、
37は、ランダム・アクセス・メモリ等から成り、磁気
ディスク33、38に格納されたデータを一時的に格納
する。データベース15、25を管理するための格納情
報管理テーブル14、24は、主記憶装置32、37に
常駐される。格納情報管理テーブル14、24は、それ
ぞれコピー種類指定手段73、83と、同期時期指定手
段74、84とを備えている。
The communication control devices 31 and 36 control communication between the computers 1 and 2 via the communication network 5. When receiving a database update request for another computer from the update means 34, 37, the communication control devices 31, 36 transmit the update request to the corresponding computer. Main memory 32,
The numeral 37 is composed of a random access memory or the like, and temporarily stores the data stored in the magnetic disks 33 and 38. The stored information management tables 14 and 24 for managing the databases 15 and 25 are resident in the main storage devices 32 and 37. The stored information management tables 14 and 24 respectively include copy type designating means 73 and 83 and synchronization time designating means 74 and 84.

【0012】コピー種類指定手段73、83は、各デー
タベース15、25に重複して格納しているデータのコ
ピーに対し、一部のコピーを主コピーに指定し、当該主
コピー以外の他のコピーを従コピーに指定する。同期時
期指定手段74、84は、主コピーを格納した計算機
が、従コピーを格納した計算機に対し、更新履歴を送
り、当該更新履歴によって従コピーを主コピーと同じ内
容に更新する時期を指定する。磁気ディスク33、37
は、データベース15、25の他、各種の制御プログラ
ム及び処理プログラムを格納している。次に、本発明の
システムの機能及び動作を説明する。
The copy type designating means 73, 83 designates a part of the duplicate copies of the data stored in the databases 15, 25 as the main copy, and copies other than the main copy. Is designated as a slave copy. The synchronization timing designating means 74, 84 designates the timing when the computer storing the primary copy sends the update history to the computer storing the secondary copy, and the secondary copy is updated to the same content as the primary copy by the update history. . Magnetic disks 33, 37
Stores various control programs and processing programs in addition to the databases 15 and 25. Next, the function and operation of the system of the present invention will be described.

【0013】図8は、本発明の分散データベース制御シ
ステムの機能ブロック図であり、図9は、図8中の格納
情報管理テーブルの構造の説明図である。また、図10
は、データベース更新手順を説明するフローチャートで
あり、図11は、データベース同期手順を説明するフロ
ーチャートである。利用者からデータベースに対する検
索要求があった場合は、従来と同一の処理をする。本発
明では、図9に示すように格納情報管理テーブル14に
コピーの種類の欄と同期時期の欄が追加されている。こ
れらは、コピー種類指定手段73と、同期時期指定手段
74を構成する。 (A)利用者からデータベースに対する更新要求がある
と(図10ステップS1)、問合せ処理機能11が格納
情報管理テーブル14、24等の内容を調べる(ステッ
プS2、S3)。 (1)更新する表のコピーの種類欄73が同格であれ
ば、従来と同じ処理となる(ステップS4)。
FIG. 8 is a functional block diagram of the distributed database control system of the present invention, and FIG. 9 is an explanatory diagram of the structure of the stored information management table in FIG. In addition, FIG.
11 is a flowchart illustrating a database updating procedure, and FIG. 11 is a flowchart illustrating a database synchronizing procedure. When the user makes a search request to the database, the same process as the conventional process is performed. In the present invention, as shown in FIG. 9, a column of copy type and a column of synchronization time are added to the stored information management table 14. These constitute copy type designating means 73 and synchronization time designating means 74. (A) When the user makes an update request to the database (step S1 in FIG. 10), the inquiry processing function 11 checks the contents of the stored information management tables 14 and 24 (steps S2 and S3). (1) If the copy type column 73 of the table to be updated has the same rating, the same process as the conventional process is performed (step S4).

【0014】(2)更新する表のコピーの種類欄73が
「主」であれば、その分散DBMSが管理しているデー
タベースを要求に従って更新する(ステップS5)。そ
して、さらに、表更新履歴17に、どの表のどのレコー
ドを更新したかを記録する(ステップS6)。 (3)更新する表のコピーの種類欄73が「従」であれ
ば、「主」の分散DBMSにデータベースの更新の要求
を転送する(ステップS7、S8)。「主」である分散
DBMSは、転送された更新要求を利用者から来た更新
要求と同様に処理する。つまり、データベース15を更
新し(ステップS5)、表更新履歴17に、どの表のど
のレコードを更新したかを記録し(ステップS6)、更
新を要求した分散DBMSに結果を応答する。一方、
「主」の分散DBMSからの更新結果を受けた分散DB
MSは、これを利用者に応答する。
(2) If the copy type column 73 of the table to be updated is "main", the database managed by the distributed DBMS is updated according to the request (step S5). Then, which record of which table is updated is recorded in the table update history 17 (step S6). (3) If the copy type column 73 of the table to be updated is “subordinate”, the database update request is transferred to the “main” distributed DBMS (steps S7 and S8). The "main" distributed DBMS processes the forwarded update request in the same way as an update request coming from a user. That is, the database 15 is updated (step S5), which record of which table is updated is recorded in the table update history 17 (step S6), and the result is returned to the distributed DBMS that requested the update. on the other hand,
Distributed DB that received update results from the "main" distributed DBMS
The MS responds to this with the user.

【0015】(B)利用者から、トランザクションのコ
ミットが要求された場合、従来のシステムと同一の処理
をする。即ち、問合せ処理機能11は、トランザクショ
ンに関係した計算機の分散DBMSにコミットの準備を
命令する。このコミット準備命令に対するすべての応答
が正常であれば、トランザクションに関係した分散DB
MSにコミットを命令する。このコミット命令に対し、
データベースの更新は「主」のデータベースのみについ
て行なわれる(ステップS5、S8)。また、このコミ
ット命令に対する応答に1つでも異常があれば、トラン
ザクションに関係した分散DBMSにロールバックを命
令する。この場合、このロールバック命令に対し、デー
タベースの更新は「主」のデータベースのみについて行
なわれる(ステップS5、S8)。
(B) When the user requests the transaction to be committed, the same processing as the conventional system is performed. That is, the inquiry processing function 11 commands the distributed DBMS of the computer related to the transaction to prepare for commit. If all responses to this commit preparation command are normal, the distributed DB related to the transaction
Command the MS to commit. For this commit command,
The database is updated only for the "main" database (steps S5 and S8). If even one response to this commit command is abnormal, the distributed DBMS related to the transaction is instructed to roll back. In this case, the database is updated only for the "main" database in response to this rollback command (steps S5 and S8).

【0016】(C)更新機能11は、格納情報管理テー
ブル14の同期時期21に書かれた時期が来ると(図1
1ステップS11)、表更新履歴17の内容により、そ
れまでになされた当該表に対する更新の履歴すべてを、
コピーの種類73が「従」である計算機の分散DBMS
に送る(ステップS12、S13)。これを受けた分散
DBMSの問合せ処理機能は更新機能によって、データ
ベースを更新し(図10ステップS9)、正常に終了し
たことを応答する。すべての「従」のコピーが完了した
ら、表更新履歴から、当該表の更新履歴を削除する。
(C) When the update function 11 reaches the time written in the synchronization time 21 of the stored information management table 14 (see FIG. 1).
1 step S11), according to the contents of the table update history 17, all the history of updates to the table made so far,
Distributed DBMS of the computer whose copy type 73 is "subordinate"
To (steps S12 and S13). Upon receiving this, the inquiry processing function of the distributed DBMS updates the database by the update function (step S9 in FIG. 10), and responds that it has normally completed. When all the "subordinate" copies are completed, the update history of the table is deleted from the table update history.

【0017】[0017]

【発明の効果】以上説明したように、本発明の分散デー
タベース制御システムによれば、利用者から更新要求を
受付けたとき、主のコピーを格納しているデータベース
だけを更新し、従のコピーを格納しているデータベース
は、まとめて定期的に更新するようにしたので、データ
ベースを重複して格納しても、重複して格納していない
場合と同様の時間でデータベースを更新することができ
る。また、従来の分散DBMSのように重複して格納し
たデータを常に値が同じであるように保ちたいときは従
来と同様に更新の同期を取ることができる。
As described above, according to the distributed database control system of the present invention, when the update request is received from the user, only the database storing the main copy is updated and the subordinate copy is updated. Since the stored databases are collectively and periodically updated, even if the databases are redundantly stored, the databases can be updated in the same time as when they are not redundantly stored. Further, when it is desired to keep the values of duplicated stored data always the same as in the conventional distributed DBMS, the update can be synchronized as in the conventional case.

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

【図1】本発明の分散データベース制御システムの一実
施例のブロック図である。
FIG. 1 is a block diagram of an embodiment of a distributed database control system of the present invention.

【図2】従来の分散データベース制御システムの機能ブ
ロック図である。
FIG. 2 is a functional block diagram of a conventional distributed database control system.

【図3】従来の格納情報管理テーブルの構造の説明図で
ある。
FIG. 3 is an explanatory diagram of a structure of a conventional stored information management table.

【図4】コミットメント制御の説明図である。FIG. 4 is an explanatory diagram of commitment control.

【図5】分散データベースにおけるサブトランザクショ
ンの説明図である。
FIG. 5 is an explanatory diagram of sub-transactions in the distributed database.

【図6】2相コミット方式が正常な場合の説明図であ
る。
FIG. 6 is an explanatory diagram when the two-phase commit method is normal.

【図7】2相コミット方式でのサブトランザクションの
失敗例の説明図である。
FIG. 7 is an explanatory diagram of a failure example of a sub-transaction in the two-phase commit method.

【図8】本発明の分散データベース制御システムの機能
ブロック図である。
FIG. 8 is a functional block diagram of the distributed database control system of the present invention.

【図9】本発明の格納情報管理テーブルの構造の説明図
である。
FIG. 9 is an explanatory diagram of a structure of a stored information management table of the present invention.

【図10】データベース更新手順を説明するフローチャ
ートである。
FIG. 10 is a flowchart illustrating a database update procedure.

【図11】データベース同期手順を説明するフローチャ
ートである。
FIG. 11 is a flowchart illustrating a database synchronization procedure.

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

1、2 計算機 14、24 格納情報管理テーブル 15、25 データベース 34、39 更新手段 73 コピー種類指定手段 74 同期時期指定手段 1, 2 Computers 14, 24 Storage information management table 15, 25 Databases 34, 39 Update means 73 Copy type designation means 74 Synchronization timing designation means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 通信回線で接続された複数の計算機内に
同一データを重複分散して格納するデータベースと、 当該各データベースに重複して格納しているデータのコ
ピーに対し、一部のコピーを主コピーに指定し、当該主
コピー以外の他のコピーを従コピーに指定するコピー種
類指定手段と、 当該データについての更新要求に対しては、前記主コピ
ーを格納したデータベースを持つ計算機で当該主コピー
だけを更新し、その更新履歴を保存する更新手段と、 前記主コピーを格納した計算機が、前記従コピーを格納
した計算機に対し、更新履歴を送り、当該更新履歴によ
って前記従コピーを前記主コピーと同じ内容に更新する
時期を指定する同期時期指定手段とを備えたことを特徴
とする分散データベース制御システム。
1. A database in which the same data is redundantly distributed and stored in a plurality of computers connected by a communication line, and a part of the copy of the data stored in each of the databases is duplicated. For a copy type designating unit that designates a main copy and designates a copy other than the main copy as a slave copy, and for an update request for the data, a computer that has a database storing the main copy is used for the master copy. An updating unit that updates only the copy and saves the update history, and a computer that stores the primary copy sends the update history to the computer that stores the slave copy, and the slave copy uses the update history as the master copy. A distributed database control system, comprising: a synchronization timing designating means for designating a timing of updating to the same content as a copy.
JP4292054A 1992-10-06 1992-10-06 Distributed data base control system Pending JPH06119227A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4292054A JPH06119227A (en) 1992-10-06 1992-10-06 Distributed data base control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4292054A JPH06119227A (en) 1992-10-06 1992-10-06 Distributed data base control system

Publications (1)

Publication Number Publication Date
JPH06119227A true JPH06119227A (en) 1994-04-28

Family

ID=17776946

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4292054A Pending JPH06119227A (en) 1992-10-06 1992-10-06 Distributed data base control system

Country Status (1)

Country Link
JP (1) JPH06119227A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11212848A (en) * 1998-01-27 1999-08-06 Mitsubishi Electric Corp Network system and replica maintenance method
JP2006507551A (en) * 2002-02-19 2006-03-02 クゥアルコム・インコーポレイテッド Method and apparatus for two-phase commit in data distribution to a web farm
JP2006079551A (en) * 2004-09-13 2006-03-23 Canon Inc COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND COMMUNICATION METHOD
JP2009122935A (en) * 2007-11-14 2009-06-04 Oki Electric Ind Co Ltd Database provision device, database client terminal, database system, database provision program and database client program
WO2010032278A1 (en) * 2008-09-17 2010-03-25 富士通株式会社 Data update synchronization method and system by two-phase commit
US8650274B2 (en) 2008-03-31 2014-02-11 Fujitsu Limited Virtual integrated management device for performing information update process for device configuration information management device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11212848A (en) * 1998-01-27 1999-08-06 Mitsubishi Electric Corp Network system and replica maintenance method
JP2006507551A (en) * 2002-02-19 2006-03-02 クゥアルコム・インコーポレイテッド Method and apparatus for two-phase commit in data distribution to a web farm
JP2006079551A (en) * 2004-09-13 2006-03-23 Canon Inc COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND COMMUNICATION METHOD
JP2009122935A (en) * 2007-11-14 2009-06-04 Oki Electric Ind Co Ltd Database provision device, database client terminal, database system, database provision program and database client program
US8650274B2 (en) 2008-03-31 2014-02-11 Fujitsu Limited Virtual integrated management device for performing information update process for device configuration information management device
WO2010032278A1 (en) * 2008-09-17 2010-03-25 富士通株式会社 Data update synchronization method and system by two-phase commit
US8572047B2 (en) 2008-09-17 2013-10-29 Fujitsu Limited Method and system for data update synchronization by two-phase commit

Similar Documents

Publication Publication Date Title
CA3121919C (en) System and method for augmenting database applications with blockchain technology
US7103586B2 (en) Collision avoidance in database replication systems
US5781910A (en) Preforming concurrent transactions in a replicated database environment
US6029177A (en) Method and system for maintaining the integrity of a database providing persistent storage for objects
US8713046B2 (en) Snapshot isolation support for distributed query processing in a shared disk database cluster
EP1704470B1 (en) Geographically distributed clusters
US5737738A (en) Distributed read/write replication with primary copy first write and primary copy transfer features
US7177866B2 (en) Asynchronous coordinated commit replication and dual write with replication transmission and locking of target database on updates only
EP0988596B1 (en) Method and system for recovery in a partitioned shared nothing database system using virtual shared disks
JPH0131216B2 (en)
KR20030054442A (en) A High Avaliability Structure of MMDBMS Using Log Information for Diskless Environment
US7603389B2 (en) Optimized statement caching for transaction replay
EP1704480B1 (en) Cluster database with remote data mirroring
US11494347B1 (en) Efficient update-anywhere replication of queue operations on a replicated message queue
JPH06119227A (en) Distributed data base control system
JPH0464146A (en) Optimizing system for commitment processing in distributed system
CA2618938C (en) Data consistency control method and software for a distributed replicated database system
JP3330006B2 (en) Network system including information storage system, input system of the system, and
US6539434B1 (en) UOWE's retry process in shared queues environment
JP2000187605A (en) Pure parallel data base management system
JP2629330B2 (en) Data update commit processing method
JP3253321B2 (en) Synchronization confirmation processing method for database access
JPH0498546A (en) Duplicate data updating system
JPH0460850A (en) Transaction completion processing system
Bhalla et al. Implementing message oriented transaction processing for distributed database management systems