JPH0962557A - Distributed database system - Google Patents

Distributed database system

Info

Publication number
JPH0962557A
JPH0962557A JP7245492A JP24549295A JPH0962557A JP H0962557 A JPH0962557 A JP H0962557A JP 7245492 A JP7245492 A JP 7245492A JP 24549295 A JP24549295 A JP 24549295A JP H0962557 A JPH0962557 A JP H0962557A
Authority
JP
Japan
Prior art keywords
database
data
processing device
database processing
item
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
JP7245492A
Other languages
Japanese (ja)
Inventor
Haruyuki Mizuno
晴之 水野
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 JP7245492A priority Critical patent/JPH0962557A/en
Publication of JPH0962557A publication Critical patent/JPH0962557A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To reduce the data transfer volume and to imposse no load on a communication line neither a database processor of the other party by repairing only required data to be accessed at the time of issue of an inquiry request. SOLUTION: It is assumed that a data base DB1 of a database processor 10-1 has a part to be repaired in a partial item K. The database processor 10-1 is started with this part left unrepaired. Thereafter, inquiry requests related to items other than the part to be repaired are normally accepted, but the part to be repaired is repaired when an inquiry request including this part is issued. That is, the processor 10-1 receives data presentation for a proper access timing of the pertinent part from other database processors 10-2 to 10-4 and not only responds to inquiries but also repairs data of this part.

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 system for controlling a plurality of database processing devices each storing a database in which some items are duplicated and stored in a distributed manner.

【0002】[0002]

【従来の技術】データベースの内容や構造が複雑化する
と、そのデータベースの必要な項目のみを取り込んだ複
数のデータベース処理装置によってデータベースが分散
管理されることがある。このようなシステムでは、各デ
ータベース処理装置は他のデータベース処理装置と格納
したデータ中の任意の項目を少なくとも一部重複させる
ようにして管理している。従って、例えばあるデータの
ある項目について更新や削除の要求があると、データ中
にその項目を含むデータベースは全て削除や更新の対象
となる。即ち、いずれかのデータベース処理装置に対し
このような問い合わせ要求があると、そのデータベース
処理装置は自己のデータの該当する項目についての更新
や削除をすると共に他のデータベース処理装置にアクセ
スして該当する部分の修正や削除を同時に実行する。こ
のような管理のために、各データベース処理装置には、
全てのデータベース処理装置のデータベース構成等を表
示するための記憶装置が設けられる。
2. Description of the Related Art When the content or structure of a database becomes complicated, the database may be distributed and managed by a plurality of database processing devices that take in only the necessary items of the database. In such a system, each database processing device manages an arbitrary item in the data stored with another database processing device such that they overlap at least partially. Therefore, for example, when there is a request to update or delete an item of a certain data, all databases including the item in the data are targets of the deletion or update. That is, when such an inquiry request is made to one of the database processing devices, the database processing device updates or deletes the corresponding item of its own data and accesses the other database processing device to make the corresponding request. Modify or delete parts at the same time. For such management, each database processing device
A storage device is provided for displaying the database configuration and the like of all database processing devices.

【0003】また、あるデータベース処理装置が何らか
の障害等により一時的に処理を中断した場合には、他の
データベース処理装置からの更新や削除に対するアクセ
スが受け付けられない。従って、障害から回復した場合
に、各データベース処理装置と重複して保持しているデ
ータの項目について一括して修復が必要となる。このよ
うな目的のために、各データベース処理装置に他の全て
のデータベース処理装置のデータベース中で利用が可能
なデータの項目と不可能なデータの項目とを区別して表
示する可用性判定処理を行う装置が設けられる(特開平
5−108453号公報)。
Further, when a certain database processing device temporarily suspends the processing due to some trouble or the like, access for update or deletion from another database processing device cannot be accepted. Therefore, when recovering from a failure, it is necessary to collectively repair the items of data that are redundantly held in each database processing device. For such a purpose, a device that performs availability determination processing in which each database processing device distinguishably displays items of data that can be used and items of data that cannot be used in the databases of all other database processing devices Is provided (Japanese Patent Laid-Open No. 5-108453).

【0004】[0004]

【発明が解決しようとする課題】ところで、上記のよう
な従来の分散データシステムには次のような解決すべき
課題があった。従来システムでは、障害から回復したデ
ータベース処理装置は、他のデータベース処理装置の各
データの項目と重複するデータの項目がある場合、一貫
性を保障するために該当する部分の転送を要求し、それ
をコピーして自己のデータベースの修復を行う。
The conventional distributed data system as described above has the following problems to be solved. In a conventional system, a database processing device that has recovered from a failure requests the transfer of the relevant part to ensure consistency when there is an item of data that duplicates the item of each data of another database processing device. Copy and repair your own database.

【0005】ところが、このような他のデータベースか
らのデータのコピーを行う際には、大量のデータが一括
して転送される。従って、データの転送路となるデータ
ベース処理装置間を結ぶ通信回線がこの転送処理のため
に長時間専有される。また、データを提供する側のデー
タベース処理装置もその間長時間専有される。従って、
通信回線とそのデータベース処理装置のオーバヘッドが
大きくなり、通常の問い合わせ処理等に支障が生じると
いう問題があった。
However, when copying data from such another database, a large amount of data is transferred at once. Therefore, the communication line connecting the database processing devices, which serves as a data transfer path, is exclusively used for this transfer process for a long time. Further, the database processing device on the data providing side is also occupied for a long period of time. Therefore,
There is a problem in that the overhead of the communication line and its database processing device becomes large, and normal inquiry processing and the like are hindered.

【0006】[0006]

【課題を解決するための手段】本発明は以上の点を解決
するため次の構成を採用する。 (構成1)本発明の分散データシステムは、所定のデー
タ中の任意の項目を互いに少なくとも一部重複させて分
散して格納した複数のデータベース処理装置から成り、
全部または一部のデータベース処理装置には、データベ
ースの利用要求を処理する問い合わせ装置と、各データ
ベース処理装置のデータの構成を示す構成情報と、その
データの各項目が利用可能かどうかを示す可用性情報と
を格納するディレクトリ記憶装置と、データベース処理
装置が一時停止後再起動したとき、他のデータベースか
ら最新の情報を取得して可用性情報を更新するディレク
トリ記憶同期装置と、データベースの利用要求があった
とき、自己のデータベース処理装置に格納されたデータ
中の該当する項目の可用性情報を参照し、利用可能でな
い場合、他のデータベース処理装置から該当する項目を
含むアクセス単位量のデータを受け入れて、該当する項
目を修復し、ディレクトリ記憶装置の該当する可用性情
報を変更する障害回復装置を備える。
The present invention adopts the following constitution in order to solve the above points. (Structure 1) The distributed data system of the present invention comprises a plurality of database processing devices in which arbitrary items in predetermined data are stored in a distributed manner by overlapping at least some of them.
All or some of the database processing devices include an inquiring device that processes a database usage request, configuration information indicating the data configuration of each database processing device, and availability information indicating whether or not each item of the data is available. There is a request to use the directory storage device that stores and the database storage device that acquires the latest information from another database and updates the availability information when the database processing device is restarted after being suspended. At this time, the availability information of the corresponding item in the data stored in its own database processing device is referred to, and if it is not available, the data of the access unit amount including the corresponding item is accepted from another database processing device, and the corresponding Failure to repair items and modify applicable availability information for directory storage It provided with a recovery device.

【0007】(説明)全部または一部のデータベース処
理装置としたのは、一部のデータベース処理装置にのみ
この構成を採用し、他のデータベース処理装置は従来の
方法を採用してもよいという意味である。データベース
の利用要求には、更新、追加、削除、検索参照等の汎用
のデータベースアクセス用命令による各種の要求を含
む。問い合わせ装置は、その要求を解釈してデータベー
スのアクセス制御等を行うものをいう。データベース処
理装置には多数のデータが格納されており、各データは
幾つかの項目により構成される。あるデータベース処理
装置はそのうちの適当な数の項目のみを含むデータを格
納し、他のデータベース処理装置は別の幾つかの項目に
を含むデータを格納する。従って、各データベース処理
装置はそれぞれ少なくとも一部共通する項目をそのデー
タ中に含む。全部が共通していてもよいし、他のどのデ
ータベース処理装置に無い項目を含んでもよい。構成情
報はその内容を表示するデータである。
(Explanation) All or part of the database processing device means that this structure may be adopted only in a part of the database processing devices and the conventional method may be adopted in the other database processing devices. Is. The database use request includes various requests by general-purpose database access commands such as update, addition, deletion, and search reference. The inquiry device is a device that interprets the request and controls access to the database. A large amount of data is stored in the database processing device, and each data is composed of several items. Some database processors store data containing only the appropriate number of items, and other database processors store data containing some other item. Therefore, each of the database processing devices includes at least partially common items in its data. All may be common, or may include items that are not present in any other database processing device. The configuration information is data for displaying the contents.

【0008】ディレクトリ記憶同期装置は、データベー
ス処理装置が再起動の際利用不可の項目を残したまま運
用を開始できるように、可用性情報を整える役割を果た
す。可用性情報で利用不可とされるのは、何らかの原因
で障害を生じた情報と、他のデータベースとともに更新
されるべきものが未更新の状態となったものを含む。ア
クセス単位量のデータとは、問い合わせの対象となった
項目を参照するためにいずれかの他のデータベースをア
クセスしたとき、その一回のアクセスで転送されるデー
タのことをいう。一回のアクセスでは問い合わせ要求に
応じられないなら、2回アクセスし、該当する項目の修
復はその2回分行う。
The directory storage synchronization device plays a role of preparing availability information so that the database processing device can start operation while the unusable item remains when it is restarted. The availability information that cannot be used includes information in which a failure has occurred for some reason and information that should be updated together with other databases is in an unupdated state. The data of the access unit amount means the data transferred in one access when any other database is accessed to refer to the item that is the subject of the inquiry. If the inquiry request cannot be answered in one access, the access is performed twice, and the corresponding item is repaired twice.

【0009】(構成2)このシステムは、該当する項目
を含むデータを受け入れる他のデータベース処理装置が
複数存在する場合、最も経済的に該当するデータを受け
入れられるデータベース処理装置を選択することが好ま
しい。 (説明)最も経済的とは、例えば通信コストの安い場合
等をいう。同一のデータなら経済的に転送を受けられる
方がよいからである。
(Structure 2) In this system, when there are a plurality of other database processing devices that receive data including the corresponding item, it is preferable to select the database processing device that can receive the corresponding data most economically. (Explanation) The most economical means, for example, when communication costs are low. This is because it is better to receive the same data economically.

【0010】[0010]

【発明の実施の形態】以下、本発明の実施の形態を具体
例を用いて説明する。図1は、本発明の分散データベー
スシステム実施例を示すブロック図である。図のシステ
ムは、複数のデータベース処理装置10−1〜10−4
がネットワーク1を介して接続されている。各データベ
ース処理装置は、それぞれほぼ同一の構成とされてい
る。ここでは、データベース処理装置10−1のみ具体
的なブロック図を図示している。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to specific examples. FIG. 1 is a block diagram showing an embodiment of a distributed database system of the present invention. The system shown in the figure includes a plurality of database processing devices 10-1 to 10-4.
Are connected via the network 1. The database processing devices have substantially the same configuration. Here, only the database processing device 10-1 shows a specific block diagram.

【0011】図のデータベース処理装置10−1は、デ
ータベースDB1を所有しており、ここに問い合わせ処
理の対象となるデータDが格納されている。なお、この
データDは適当な数の項目Kにより構成されている。こ
のようなデータベースDB1の問い合わせ処理等を実行
するために、問い合わせ処理装置3、障害回復装置4、
ディレクトリ記憶装置6、ディレクトリ記憶同期装置7
が設けられている。
The database processing apparatus 10-1 shown in the figure owns a database DB1 in which data D to be inquired is stored. The data D is composed of an appropriate number of items K. In order to execute such inquiry processing of the database DB1, the inquiry processing device 3, the failure recovery device 4,
Directory storage device 6, directory storage synchronization device 7
Is provided.

【0012】問い合わせ処理装置3は、外部からデータ
ベースDB1に対する利用要求、例えば更新、追加、削
除、検索、参照等の問い合わせ要求があった場合に、こ
れを処理する部分である。即ち、データベースDB1中
の該当するデータを取り出して必要な項目を編集し問い
合わせ先に回答するといった処理を行う従来よく知られ
た構成の装置である。障害回復装置4は、このデータベ
ース処理装置10−1が何らかの原因で動作を停止した
場合で再起動するとき、状態保障トランザクションと呼
ばれる一定の修復処理を行う部分である。なお、本発明
のデータベース処理装置の場合でこの修復処理は後で説
明するアクセス単位量のデータ毎に行われる。
The inquiry processing device 3 is a part for processing an external request for use of the database DB1, for example, an inquiry request for update, addition, deletion, search, reference or the like. That is, it is a device having a conventionally well-known structure that performs a process of taking out corresponding data in the database DB1, editing necessary items, and replying to an inquiry destination. The failure recovery device 4 is a part that performs a certain restoration process called a state guarantee transaction when the database processing device 10-1 is restarted when the operation is stopped for some reason. Incidentally, in the case of the database processing apparatus of the present invention, this restoration processing is performed for each data of the access unit amount which will be described later.

【0013】ディレクトリ記憶同期装置7は、データベ
ース処理装置10−1が何らかの原因で一時停止し、そ
の後再起動したときに、他のデータベース処理装置10
−2〜10−4等のデータベース更新状況を含む最新の
情報を取得してディレクトリ記憶装置6に記憶された可
用性情報12を更新する装置である。ディレクトリ記憶
装置6は、データベース管理のための構成情報11と可
用性情報12とを記憶する部分である。構成情報11
は、自己のデータベースDB1の構成のみならず他のデ
ータベース処理装置10−1〜10−4のデータベース
の構成を含めて表示する情報である。
The directory storage synchronization device 7 is operated by another database processing device 10-1 when the database processing device 10-1 is temporarily stopped for some reason and then restarted.
-2 to 10-4 and the like, which acquires the latest information including the database update status and updates the availability information 12 stored in the directory storage device 6. The directory storage device 6 is a part that stores configuration information 11 and availability information 12 for database management. Configuration information 11
Is information to be displayed including not only the configuration of its own database DB1 but also the configuration of the databases of the other database processing devices 10-1 to 10-4.

【0014】図2には、データベース処理装置のデータ
内容説明図を示す。この図に示すように、例えば図1に
示したデータベース処理装置10−1のデータベースD
B1は、項目K1,K2,K3,K4から構成されるデ
ータを格納しているものとする。なお、このデータは多
数のデータの群から構成されるが、図では1本の帯で示
している。図1のデータベース処理装置10−2は、こ
の図に示すデータベースDB2を格納しているものとす
る。なお、このデータベースDB2は項目K1,K2,
K3から構成されるものとする。データベース処理装置
10−3は、データベースDB3を格納している。この
データベースDB3は項目K3とK4から構成される。
また、データベース処理装置10−4はデータベースD
B4を格納している。このデータベースDB4は項目K
2,K3,K4から構成されるものとする。
FIG. 2 shows a data content explanatory view of the database processing device. As shown in this figure, for example, the database D of the database processing apparatus 10-1 shown in FIG.
It is assumed that B1 stores data composed of items K1, K2, K3, and K4. Although this data is composed of a group of many data, it is shown by one band in the figure. It is assumed that the database processing device 10-2 of FIG. 1 stores the database DB2 shown in this figure. This database DB2 has items K1, K2,
It shall consist of K3. The database processing device 10-3 stores the database DB3. This database DB3 is composed of items K3 and K4.
Further, the database processing device 10-4 uses the database D.
It stores B4. This database DB4 has item K
2, K3 and K4.

【0015】即ち、この図に示すように、例えばデータ
ベースDB1とデータベースDB2とは、項目K1,K
2,K3を重複して格納している。しかし、項目K4は
データベースDB1のみに格納されている。そして、例
えば、データベースDB2に対する問い合わせ処理の際
に、項目K1に対する修正、更新処理等が行われた場
合、同時にデータベースDB1の項目K1も同一の修
正、更新処理を行う。しかしながら、もしデータベース
DB1が何らかの障害等でアクセスできない状態にある
場合には、データベースDB2の項目K1のみが更新さ
れるので、データベースDB1の項目K1は、その後問
い合わせ処理等に使用されると間違った情報を提供する
ことになる。そこで、このデータベースDB1の項目K
1は必要な修復が行われるまで使用不可という扱いにな
る。従来は、データベースDB1を管理するデータベー
ス処理装置が再起動した場合、その内容を一括して修復
するため、このような使用不可という状態は継続しな
い。ところが、本発明ではデータベースの一部に修復す
べき箇所があっても運用を開始することから、このよう
な使用不可という状態が継続する。
That is, as shown in this figure, for example, the database DB1 and the database DB2 are the items K1 and K.
2 and K3 are redundantly stored. However, the item K4 is stored only in the database DB1. Then, for example, when a correction or update process for the item K1 is performed during the inquiry process for the database DB2, the same correction or update process is also performed for the item K1 of the database DB1 at the same time. However, if the database DB1 is inaccessible due to some trouble or the like, only the item K1 of the database DB2 is updated, so that the item K1 of the database DB1 is incorrect information if it is subsequently used for inquiry processing or the like. Will be provided. Therefore, item K of this database DB1
No. 1 is treated as unusable until necessary repair is performed. Conventionally, when the database processing device that manages the database DB1 is restarted, the contents thereof are collectively restored, and such an unusable state does not continue. However, in the present invention, even if there is a portion to be restored in the database, the operation is started, and such a state of being unusable continues.

【0016】図3には、ディレクトリ記憶装置6に記憶
した構成情報11と可用性情報12の具体的な内容説明
図を示す。この図は、まず各データベースDB1,DB
2,DB3,DB4の各データについて、それぞれどの
ような項目を格納しているかを示す。格納されていない
項目については“−”で示されている。これによって、
各データベース処理装置におけるデータベースの構成が
明らかになる。一方、例えばデータベースDB1につい
て見ると、ここには項目K1〜K4までのデータが格納
されている。ところが、先の説明により、例えば項目K
1が装置の一時停止中、他のデータベース処理装置で更
新処理等が行われ、修復が必要になったものとする。こ
の場合に、図に示すように、例えばデータベースDB1
の項目K1について使用不可という表示が行われる。こ
れが可用性情報12である。以上のような情報は、全て
のデータベース処理装置のディレクトリ記憶装置6に格
納されるものとする。
FIG. 3 shows a specific content explanatory diagram of the configuration information 11 and the availability information 12 stored in the directory storage device 6. This figure shows each database DB1, DB
It shows what kind of items are stored for each data of 2, DB3 and DB4. Items that are not stored are indicated by "-". by this,
The structure of the database in each database processing device becomes clear. On the other hand, looking at, for example, the database DB1, data of items K1 to K4 are stored here. However, from the above explanation, for example, item K
It is assumed that while No. 1 is in the temporary stop of the apparatus, another database processing apparatus performs the update processing and the like and needs the restoration. In this case, as shown in the figure, for example, the database DB1
The item K1 is displayed as being unusable. This is the availability information 12. The above information is stored in the directory storage devices 6 of all the database processing devices.

【0017】例えば、ここで図1に示すデータベース処
理装置10−1が一定の時間動作を停止した後、再起動
したとする。この場合には、ディレクトリ記憶同期装置
7がディレクトリ記憶装置6の構成情報11や可用性情
報12を参照してこれを更新する。即ち、再起動直後に
ディレクトリ記憶同期装置7は他のデータベース処理装
置10−2〜10−4に対しこのデータベース処理装置
10−1が再起動したことを通知すると共に、自己のデ
ータベース処理装置10−1が動作を停止中、どのよう
な項目が更新削除等されて修復を必要になったかという
情報を得る。これは各データベース処理装置の持つ問い
合わせ記録等を参照することによって容易に得られる。
そして、自己のディレクトリ記憶装置6に格納された可
用性情報12を最新のものに更新する。以前にも再起動
等の動作があった場合、必ずしも全ての項目がこれまで
使用可であったとは限らない。従って、これまで使用不
可とされたものも含めて今回新たに使用不可になったも
の等を追加し、可用性情報の更新を行う。
For example, assume that the database processing device 10-1 shown in FIG. 1 is restarted after being stopped for a certain period of time. In this case, the directory storage synchronization device 7 refers to the configuration information 11 and the availability information 12 of the directory storage device 6 and updates them. That is, immediately after the restart, the directory storage synchronization device 7 notifies the other database processing devices 10-2 to 10-4 that the database processing device 10-1 has been restarted, and at the same time, its own database processing device 10-. While 1 is not operating, it obtains information about what items have been updated and deleted, and need to be repaired. This can be easily obtained by referring to the inquiry record or the like of each database processing device.
Then, the availability information 12 stored in its own directory storage device 6 is updated to the latest one. If there has been an operation such as restarting before, not all the items have been usable so far. Therefore, the availability information is updated by adding the newly disabled ones including the previously disabled ones.

【0018】なお、その場合に、図3に示したように、
例えばデータベースDB1の項目K1が使用不可と表示
されると共に、そのデータの最新版がデータベースDB
2に格納されているということも、同時に表示してお
く。これは、後で修復を必要になった際に参照するため
に重要な情報となる。本発明のシステムは、このような
処理をディレクトリ記憶同期装置7が行った後、全ての
データを完全に修復させない状態で運用を開始する点に
特徴がある。
In that case, as shown in FIG.
For example, the item K1 of the database DB1 is displayed as unavailable and the latest version of the data is displayed in the database DB1.
The fact that it is stored in 2 is also displayed at the same time. This is important information for future reference in case you need to repair it. The system of the present invention is characterized in that after the directory storage synchronization device 7 performs such processing, the operation is started in a state where all data is not completely restored.

【0019】また、修復の際には、本発明のシステムで
は、アクセス単位量のデータの更新が行われる。図4に
は、このようなアクセス単位量のデータ更新内容を示す
説明図を図示した。本発明においては、運用開始後障害
のある即ち修復を必要とする項目についての問い合わせ
要求があった場合に、初めてその部分の修復を行う。こ
のとき、その修復は全てのデータについて一括して行う
わけではない。全てのデータについて一括して修復を行
えば、従来と同様に、その時点で通信回線を長時間専有
し、このデータの転送を受ける相手方のデータベース処
理装置にも大きな負荷をかける。
Further, at the time of restoration, in the system of the present invention, the data of the access unit amount is updated. FIG. 4 illustrates an explanatory diagram showing the contents of data update of such an access unit amount. In the present invention, when an inquiry request is made for an item having a failure, that is, an item requiring repair after the start of operation, the part is repaired only for the first time. At this time, the restoration is not performed collectively for all the data. If all the data are collectively repaired, the communication line is occupied for a long time at that time, and a large load is applied to the database processing device of the other party who receives the data transfer, as in the conventional case.

【0020】一方、本発明のシステムでは、問い合わせ
の対象となった項目を参照するために、いずれかのデー
タベースをアクセスしたとき、その1回のアクセスで転
送されるデータ分だけの修復を行う。これをアクセス単
位量と呼んでいるが、この程度の量の修復となれば通信
回線や相手方のデータベース処理装置に対する負荷も小
さい。図4に示すように、例えばデータベースDB1の
全データに対して、アクセス単位量のデータは図のハッ
チングで示した程度の量であったとする。この場合に
は、問い合わせ要求が1回あるごとにこの量のデータ修
復が行われ、何回かの問い合わせ要求があれば、自然に
全てのデータについての修復が完了する。
On the other hand, in the system of the present invention, when any one of the databases is accessed in order to refer to the item that is the object of the inquiry, only the data transferred by the single access is restored. This is called an access unit amount, but if this amount of restoration is performed, the load on the communication line and the other party's database processing device will be small. As shown in FIG. 4, for example, with respect to all the data in the database DB1, it is assumed that the data of the access unit amount is the amount shown by hatching in the figure. In this case, this amount of data restoration is performed each time there is an inquiry request, and if there are several inquiry requests, restoration of all data is naturally completed.

【0021】このアクセス単位量のデータは全データに
比較して十分少ない量のデータであり、なおかつ1個の
データよりも多くて修復の効率は高い。具体的には、1
件のデータの項目K1に対する問い合わせ要求があった
場合に、1回のアクセスではその最新データを持つデー
タベース処理装置から数万件のデータ中から1000件
分程度のデータ転送を受ける。この転送量は、バッファ
メモリの容量その他の事情により設定される量である。
The access unit amount of data is a sufficiently small amount of data as compared with all the data, and more than one data, the recovery efficiency is high. Specifically, 1
When an inquiry request is made to the item K1 of the data of the item, in one access, about 1000 items of data are transferred from the tens of thousands of data from the database processing device having the latest data. This transfer amount is an amount set depending on the capacity of the buffer memory and other circumstances.

【0022】以下、本発明の装置の動作を具体的なフロ
ーチャートを用いて順に説明する。図5は、障害発生後
の再起動処理フローチャートである。まず、ステップS
1において障害が発生すると、ステップS2において一
時停止処理が行われる。そして、ステップS3で再起動
されると、先に説明した通り、ディレクトリ記憶同期装
置7が動作し、ディレクトリ記憶装置6に対し必要な可
用性情報12を格納する。即ち、ここで可用性情報12
を最新のものに更新する。もちろん、その際先に説明し
た図3に示すような情報も同時に格納する。こうして、
装置の運用を開始する。
The operation of the apparatus of the present invention will be described below in order with reference to a concrete flow chart. FIG. 5 is a flowchart of restart processing after a failure occurs. First, step S
If a failure occurs in 1, the temporary stop process is performed in step S2. Then, when it is restarted in step S3, as described above, the directory storage synchronization device 7 operates to store the necessary availability information 12 in the directory storage device 6. That is, here, the availability information 12
To the latest one. Of course, at that time, the information as shown in FIG. 3 described above is also stored at the same time. Thus
Start operation of the device.

【0023】次に、図6を用いて、例えば検索依頼のた
めの問い合わせがあった際の動作を説明する。まず、問
い合わせ要求があると、ステップS1において、問い合
わせ処理装置3はディレクトリ記憶同期装置7に対しそ
の該当する項目についての可用性判定の依頼を行う。ス
テップS2において、ディレクトリ記憶同期装置7はデ
ィレクトリ記憶装置6を参照して修復されていない項目
を確認する。もし、使用可能な項目のみを含む問い合わ
せ要求の場合には、ステップS3からステップS8に飛
び、通常通り検索処理と回答を行う。一方、修復の必要
な項目と判断した場合には、ステップS4において、デ
ィレクトリ記憶装置6は別のデータベース処理装置の同
じ項目について可用性を判定し、障害回復装置4に通知
する。
Next, the operation when there is an inquiry for a search request will be described with reference to FIG. First, when an inquiry request is made, in step S1, the inquiry processing device 3 requests the directory storage synchronization device 7 to determine availability of the corresponding item. In step S2, the directory storage synchronization device 7 refers to the directory storage device 6 to confirm an item that has not been restored. If the inquiry request includes only usable items, the process jumps from step S3 to step S8, and the search process and the reply are performed as usual. On the other hand, when it is determined that the item needs to be repaired, the directory storage device 6 determines the availability of the same item of another database processing device in step S4 and notifies the failure recovery device 4 of the availability.

【0024】即ち、図3に示したディレクトリ記憶装置
6の記憶内容の中には他のデータベースについても使用
可能か不可かという情報が含まれている。従って、使用
可能なデータベースを判定して障害回復装置4に通知す
る。ステップS5において、障害回復装置4は1つのデ
ータベース処理装置が指定された場合、そのデータベー
ス処理装置に対するデータ転送要求を行う。一方、2以
上のデータベースを指定された場合には、最もコストの
安いデータベース処理装置に対し最新データの要求を行
う。
That is, the stored contents of the directory storage device 6 shown in FIG. 3 include information indicating whether or not other databases can be used. Therefore, the usable database is determined and the failure recovery device 4 is notified. In step S5, when one database processing device is designated, the failure recovery device 4 makes a data transfer request to the database processing device. On the other hand, when two or more databases are designated, the latest data is requested to the database processing device with the lowest cost.

【0025】コストの安いデータベース処理装置という
のは、例えば通信コストの安いものをいう。遠距離のデ
ータベース処理装置から転送を受ければ通信料金が高く
なるため、近距離のものを選択する。次に、ステップS
6で、障害回復装置4は該当する項目を含む所定のデー
タ単位をそのデータベース処理装置から受け入れる。そ
して、自己のデータベースを更新する。そして、ステッ
プS7に移り、ディレクトリ記憶装置6の使用不可とあ
る表示を消去し、使用可能としてステップS8に移り、
通常の検索処理と回答を行う。1回のアクセス単位のデ
ータ転送を受けて要求のあった問い合わせに対して回答
できない場合には、複数回のデータ単位の転送を受ける
ことも可能である。参照、削除等の問い合わせがあった
場合も同様である。
A low-cost database processing device is, for example, a device with low communication cost. Communication charges will increase if data is transferred from a long-distance database processing device, so a short-distance data processing device is selected. Next, step S
At 6, the failure recovery device 4 accepts a predetermined data unit containing the relevant item from its database processing device. Then it updates its own database. Then, the process proceeds to step S7, the display indicating that the directory storage device 6 is unusable is erased, the directory storage device 6 is made available, and the process proceeds to step S8.
Perform normal search processing and answer. If it is not possible to respond to the requested inquiry after receiving the data transfer in one access unit, it is possible to receive the data transfer in multiple times. The same applies when an inquiry such as reference or deletion is made.

【0026】以上により、障害が発生し一旦データベー
ス処理装置が動作を停止し、再度起動された場合に、デ
ータ修復のためのデータ転送が大量に集中するといった
状態を防止できる。
As described above, it is possible to prevent a situation in which a large amount of data transfer for data restoration is concentrated when a failure occurs and the database processing device once stops its operation and is restarted.

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

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

【図2】データベース処理装置のデータ内容説明図であ
る。
FIG. 2 is an explanatory diagram of data contents of a database processing device.

【図3】ディレクトリ記憶装置の記憶内容説明図であ
る。
FIG. 3 is an explanatory diagram of stored contents of a directory storage device.

【図4】アクセス単位のデータ更新説明図である。FIG. 4 is an explanatory diagram of data updating for each access unit.

【図5】障害発生後再起動処理の動作フローチャートで
ある。
FIG. 5 is an operation flowchart of restart processing after a failure occurs.

【図6】検索動作のフローチャートである。FIG. 6 is a flowchart of a search operation.

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

3 問い合わせ処理装置 4 障害回復装置 6 ディレクトリ記憶装置 7 ディレクトリ記憶同期装置 10−1〜10−4 データベース処理装置 DB1 データベース 3 Query Processing Device 4 Failure Recovery Device 6 Directory Storage Device 7 Directory Storage Synchronous Device 10-1 to 10-4 Database Processing Device DB1 Database

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 所定のデータ中の任意の項目を互いに少
なくとも一部重複させて分散して格納した複数のデータ
ベース処理装置から成り、 全部または一部のデータベース処理装置には、データベ
ースの利用要求を処理する問い合わせ装置と、 各データベース処理装置のデータの構成を示す構成情報
と、そのデータの各項目が利用可能かどうかを示す可用
性情報とを格納するディレクトリ記憶装置と、 データベース処理装置が一時停止後再起動したとき、他
のデータベースから最新の情報を取得して前記可用性情
報を更新するディレクトリ記憶同期装置と、 データベースの利用要求があったとき、自己のデータベ
ース処理装置に格納されたデータ中の該当する項目の可
用性情報を参照し、利用可能でない場合、他のデータベ
ース処理装置から該当する項目を含むアクセス単位量の
データを受け入れて、該当する項目を修復し、ディレク
トリ記憶装置の該当する可用性情報を変更する障害回復
装置を備えたことを特徴とする分散データベースシステ
ム。
1. A plurality of database processing devices in which arbitrary items in predetermined data are at least partially overlapped with each other and distributed and stored, and a database use request is issued to all or some of the database processing devices. An inquiry device to be processed, a configuration information indicating a data configuration of each database processing device, a directory storage device storing availability information indicating whether or not each item of the data is available, and a database processing device after the suspension. When restarting, the latest information is obtained from another database and the availability information is updated, and when there is a request to use the database, the corresponding information in the data stored in its own database processing device Refer to the availability information of the item to be used, and if it is not available, from another database processor Distributed database system that accept data access unit amount including those items and repair the desired item, and further comprising a fault recovery apparatus for changing the appropriate availability information in the directory memory.
【請求項2】 該当する項目を含むデータを受け入れる
他のデータベース処理装置が複数存在する場合、 最も経済的に該当するデータを受け入れられるデータベ
ース処理装置を選択することを特徴とする請求項1記載
の分散データベースシステム。
2. The database processing device capable of receiving the most economically applicable data is selected when there are a plurality of other database processing devices that accept the data including the corresponding item. Distributed database system.
JP7245492A 1995-08-30 1995-08-30 Distributed database system Pending JPH0962557A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7245492A JPH0962557A (en) 1995-08-30 1995-08-30 Distributed database system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7245492A JPH0962557A (en) 1995-08-30 1995-08-30 Distributed database system

Publications (1)

Publication Number Publication Date
JPH0962557A true JPH0962557A (en) 1997-03-07

Family

ID=17134474

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7245492A Pending JPH0962557A (en) 1995-08-30 1995-08-30 Distributed database system

Country Status (1)

Country Link
JP (1) JPH0962557A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008310591A (en) * 2007-06-14 2008-12-25 Nomura Research Institute Ltd Cluster system, computer, and failure recovery method
JP2010257426A (en) * 2009-04-28 2010-11-11 Internatl Business Mach Corp <Ibm> Method of synchronizing data between databases, and computer system therefor, and computer program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008310591A (en) * 2007-06-14 2008-12-25 Nomura Research Institute Ltd Cluster system, computer, and failure recovery method
JP2010257426A (en) * 2009-04-28 2010-11-11 Internatl Business Mach Corp <Ibm> Method of synchronizing data between databases, and computer system therefor, and computer program
US8751445B2 (en) 2009-04-28 2014-06-10 International Business Machines Corporation Method of synchronizing data between databases, and computer system and computer program for the same

Similar Documents

Publication Publication Date Title
US5799322A (en) System and method for stopping updates at a specified timestamp in a remote duplicate database facility
US7565572B2 (en) Method for rolling back from snapshot with log
US6611923B1 (en) System and method for backing up data stored in multiple mirrors on a mass storage subsystem under control of a backup server
US5799323A (en) Remote duplicate databased facility with triple contingency protection
US7680994B2 (en) Automatically managing the state of replicated data of a computing environment, and methods therefor
US5835915A (en) Remote duplicate database facility with improved throughput and fault tolerance
JPH07175700A (en) Database management system
JP2001508900A (en) Data distribution and duplication in distributed data processing systems.
JPH07319747A (en) Data updating system
US20040193796A1 (en) Data sharing method among remote computer systems and disk control device thereof
US7117249B1 (en) Computer system and data sharing method between computers
JP2000099359A (en) Restoration in multicomputer system
US7194675B2 (en) Backup method, backup system, disk controller and backup program
JPH0962557A (en) Distributed database system
US7107485B2 (en) Method, apparatus, and computer readable medium for managing multiple system
JP2004295272A (en) Transaction control method
JPH03202935A (en) Synchronization update system in distributed processing system
JPH07281933A (en) Computer system
JPH05108453A (en) Access controller for distributed data base
JPH06250901A (en) Data base maintenance method
JP3253321B2 (en) Synchronization confirmation processing method for database access
JPH0430220A (en) Maintenance system for software
JPH03196341A (en) Data synchronization managing system in on-line system
JP3028544B2 (en) Load balancing method for distributed processing system
JPH06175902A (en) Distributed file system, file managing device, centralized controller and distributed file managing method