JP2000132441A - Decentralized data base system, processor, and data base access method - Google Patents

Decentralized data base system, processor, and data base access method

Info

Publication number
JP2000132441A
JP2000132441A JP10301871A JP30187198A JP2000132441A JP 2000132441 A JP2000132441 A JP 2000132441A JP 10301871 A JP10301871 A JP 10301871A JP 30187198 A JP30187198 A JP 30187198A JP 2000132441 A JP2000132441 A JP 2000132441A
Authority
JP
Japan
Prior art keywords
node
database
access
access request
nodes
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
JP10301871A
Other languages
Japanese (ja)
Inventor
Kunihiko Hanazono
邦彦 花園
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 JP10301871A priority Critical patent/JP2000132441A/en
Publication of JP2000132441A publication Critical patent/JP2000132441A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Hardware Redundancy (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide the decentralized data base system, processor, and data base access method which can improve the turn-around time by shortening the wait time for access to a data base even in the case of fault occurrence. SOLUTION: If a fault occurs to the data base 2A and access is disabled, a DB arrangement converting mechanism 1A selects an active node 3 so that a data base 2B at a mirror destination is accessed. Consequently, the active node 3 performs all access processing such as retrieval, updating, etc., by using the data base 2B at the mirror destination instead of the fault data base 2A until the data base 2A recovers. A standby node 4 changes from a standby state to an active state to perform processings for access to the data bases 2A and 3B.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ネットワーク上に
分散して存在するデータベースへのアクセス等の処理を
実行する分散データベースシステム、処理装置及びデー
タベースアクセス方法に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a distributed database system, a processing device, and a database access method for executing processing such as access to a database distributed on a network.

【0002】[0002]

【従来の技術】従来、この種の分散データベースシステ
ムにおいては、データベースへのアクセスを行う中央処
理装置(以下、CPUという)などの処理装置が障害を
発生した場合に対処するため、各CPUに対応してデー
タベースをディスク・ミラーリングしたり、データベー
スを2重化するようにしている。
2. Description of the Related Art Conventionally, in a distributed database system of this type, each CPU is provided with a processing unit such as a central processing unit (hereinafter referred to as a CPU) for accessing a database in order to cope with a failure. Then, the database is disk mirrored or the database is duplicated.

【0003】このディスク・ミラーリングを行うように
した従来の分散データベースシステムの処理動作を、図
7に示す構成図を参照して説明する。最初に、アクティ
ブノード2が障害を発生している状態において、端末6
からデータベース2Aの検索要求が送出されると、DB
アクセス要求ノード1は、データベース配置変換機構1
Aによって、アクセス要求先として、アクティブノード
2ではなく、待機ノード4を決定すると共に、待機ノー
ド4へアクセス要求を送出する。
[0003] The processing operation of a conventional distributed database system that performs this disk mirroring will be described with reference to the configuration diagram shown in FIG. First, in a state where the active node 2 has failed, the terminal 6
Sends a database 2A search request to
The access request node 1 is a database layout conversion mechanism 1
A determines the standby node 4 instead of the active node 2 as the access request destination and sends an access request to the standby node 4.

【0004】このアクセス要求を受信した待機ノード4
は、自己においてデータベースアクセスを行うプロセス
を起動して、アクティブ状態になった時点で、データベ
ース2Aをアクセス(検索処理)すると共に、このアク
セス結果(検索結果)を、DBアクセス要求ノー1ドへ
転送する。データベース2Aに障害が発生している場合
には、ミラー先のデータベース2Bが参照されることに
なる。なお、上述した条件において、端末6からの処理
要求が更新処理の場合、待機ノード4は、データベース
2Aを更新すると共に、更新されたデータベース2Aの
ミラーリングをデータベース2Bに行う。
The standby node 4 receiving this access request
Starts the process of accessing the database by itself, accesses the database 2A (retrieval processing) and transfers the access result (retrieval result) to the DB access request node 1 when it becomes active. I do. If a failure has occurred in the database 2A, the mirrored database 2B is referred to. In addition, under the above-mentioned conditions, when the processing request from the terminal 6 is an update process, the standby node 4 updates the database 2A and performs mirroring of the updated database 2A on the database 2B.

【0005】続いて、データベースを2重化するように
した従来の分散データベースシステムの構成図を図8に
示す。
Next, FIG. 8 shows a configuration diagram of a conventional distributed database system in which the database is duplicated.

【0006】この従来の分散データベースシステムの処
理動作を説明する。アクティブノード2が障害を発生し
ている状態において、端末6からデータベース2の検索
要求が送出されると、DBアクセス要求ノード1は、デ
ータベース配置変換機構1Aによって、アクセス要求先
として、アクティブノード2ではなく、アクティブノー
ド7を決定すると共に、アクティブノード7へアクセス
要求を送出する。このアクセス要求を受信したアクティ
ブノード7は、データベース2Aにアクセス(検索)す
ると共に、このアクセス結果(検索結果)を、DBアク
セス要求ノード1へ転送する。なお、端末6からの処理
要求がデータベース2Aの更新処理であった場合は、最
初にデータベース2Aが更新された後、データベース2
Bにミラーリングが行われるので、アクティブノード2
に障害が発生している場合には、このアクティブノード
2が回復するまでは、アクティブノード2によるデータ
ベース2Aへの更新処理、及びアクティブノード7によ
るデータベース2Bへのミラーリングは実行されない。
The processing operation of the conventional distributed database system will be described. When a search request for the database 2 is sent from the terminal 6 in a state where the active node 2 has failed, the DB access request node 1 uses the database arrangement conversion mechanism 1A as an access request destination, and And determines the active node 7 and sends an access request to the active node 7. The active node 7 receiving the access request accesses (searches) the database 2A and transfers the access result (search result) to the DB access request node 1. If the processing request from the terminal 6 is an update process of the database 2A, after the database 2A is updated first, the database 2A is updated.
B is mirrored, so active node 2
, The update process to the database 2A by the active node 2 and the mirroring to the database 2B by the active node 7 are not executed until the active node 2 recovers.

【0007】さらに、データベースを2重化するように
した分散データベースシステムとしては、特開平8−2
78911号に開示されたものがある。この公報に開示
されたシステムにおいては、データベースを格納してい
る1つのディスク装置と、このディスク装置に対するア
クセス処理を行う1つのデータベースサイトとを対応さ
せ、このような関係のものを複数組構成して多重化して
いる。例えば原本のデータベースと複製のデータベース
を設けて2重化する場合においては、一方の処理系に障
害が発生した場合には、他方の処理系において処理する
ことで、システムを停止することなく処理を継続するよ
うにしている。
Further, a distributed database system in which the database is duplicated is disclosed in Japanese Patent Laid-Open No. Hei 8-2.
No. 78911. In the system disclosed in this publication, one disk device storing a database is associated with one database site for performing access processing to the disk device, and a plurality of sets of such a relationship are configured. Multiplexed. For example, in the case where the original database and the duplicate database are provided and duplexed, when a failure occurs in one processing system, the processing is performed in the other processing system without stopping the system. I try to continue.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、図7に
示した従来の分散データベースシステムでは、アクティ
ブノード2に障害が発生している際に、データベース2
Aへの検索要求があった場合には、待機ノード4がアク
ティブノード2に代替してデータベース2Aにアクセス
することができるが、待機ノード4は、データベースア
クセスを行うプロセスを起動してアクティブ状態になる
までは、データベース2Aへのアクセス処理を実行する
ことができない。すなわち、待機ノード4をアクティブ
ノードに切り替える場合、待機ノード4において上記プ
ロセスを起動しなければならない。このため、データベ
ースへアクセスする準備が整うまでは、データベースへ
のアクセスが停止してしまうという問題点があった。
[0007] However, in the conventional distributed database system shown in FIG.
When there is a search request to A, the standby node 4 can access the database 2A instead of the active node 2, but the standby node 4 activates a process for accessing the database and enters the active state. Until the access processing to the database 2A cannot be executed. That is, when the standby node 4 is switched to the active node, the above process must be started in the standby node 4. For this reason, there is a problem that the access to the database is stopped until the preparation for accessing the database is completed.

【0009】また、図8に示した従来の分散データベー
スシステムでは、障害後も障害前と同じアクセス処理能
力を保つために、データベース層のアクティブノードと
データベースを2重化するようにしているので、データ
ベース層においては、2重化しない場合に比べて2倍の
アクティブノードが必要である。すなわち、2重化しな
い場合、例えば3つのデータベースにそれぞれ対応し
て、3つのアクティブノードが必要なのに対し、2重化
する場合は、前記3つのアクティブノードに加えて、各
データベースがミラーリングされたデータベースに対応
して、3つのアクティブノードがさらに必要となる。す
なわち6つのアクティブノードが必要となる。
In the conventional distributed database system shown in FIG. 8, the active node and the database in the database layer are duplicated in order to maintain the same access processing capacity after the failure as before the failure. In the database layer, twice as many active nodes are required as compared to the case without duplication. That is, in the case of no duplication, for example, three active nodes are required respectively corresponding to three databases, whereas in the case of duplication, in addition to the three active nodes, a database in which each database is mirrored , Three additional active nodes are required. That is, six active nodes are required.

【0010】データベースの更新処理時には、最初にミ
ラー元のデータベース2Aが更新された後、ミラー先の
データベース2Bがミラー化されるので、端末6からの
処理要求がデータベース2Aの更新処理で、且つアクテ
ィブノード2に障害が発生している場合には、このアク
ティブノード2が回復するまでは、アクティブノード2
によるデータベース2Aへの更新処理、及びアクティブ
ノード7によるデータベース2Bへのミラーリングは実
行されない。すなわち障害を発生したアクティブノード
が回復するまでは、データベースへのアクセスが停止し
てしまうという問題点があった。
At the time of updating the database, the database 2A at the mirror source is first updated, and then the database 2B at the mirror destination is mirrored. If a failure has occurred in the node 2, the active node 2 is restored until the active node 2 recovers.
Is not executed by the active node 7 and the update process to the database 2A by the active node 7 is not executed. That is, there is a problem in that access to the database is suspended until the active node that has failed recovers.

【0011】上記公報に開示されたシステムにおいて
も、図4に示した従来の分散データベースシステムの場
合と同様に、 障害後も障害前と同じアクセス処理能力
を保つために、データベースサイトは、2重化しない場
合に比べて2倍必要である。例えば、異なる2つのデー
タベースを2重化する際には、各原本のデータベースに
それぞれ対応する2つのデータベースサイトと、各複製
のデータベースにそれぞれ対応する2つのデータベース
サイトの、合計4つのデータベースサイトが必要であ
る。勿論、異なる3つのデータベースを2重化する場合
は合計6つのデータベースサイトが必要である。
In the system disclosed in the above publication, as in the case of the conventional distributed database system shown in FIG. 4, in order to maintain the same access processing capacity after a failure as before the failure, the database site is duplicated. It is twice as much as when it is not used. For example, when duplicating two different databases, a total of four database sites are required, two database sites corresponding to each original database and two database sites corresponding to each duplicate database. It is. Of course, when three different databases are duplicated, a total of six database sites are required.

【0012】この発明の目的は、障害発生時において
も、データベースへのアクセス待機時間を短縮させるこ
とによりターンアラウンド・タイムを向上させることが
できる分散データベースシステムを提供することにあ
る。
An object of the present invention is to provide a distributed database system capable of improving a turnaround time by shortening a database access waiting time even when a failure occurs.

【0013】[0013]

【課題を解決するための手段】上記目的を達成するた
め、本発明の第1の観点に係る分散データベースシステ
ムは、各々論理的に接続された通信路を介してデータベ
ースにアクセスする複数のノードと、該複数のノードに
対してアクセス要求を送信するアクセス要求ノードとを
有する分散データベースシステムであって、前記複数の
ノードのそれぞれは、複数のデータベースのうちの互い
に異なるデータベースにアクセスすると共に、他のノー
ドがアクセスするデータベースに対応したバックアップ
用のデータベースにアクセスするアクセス手段を備え、
前記アクセス要求ノードは、前記複数のノードのうちの
何れかのノードに対してアクセス要求を送信する送信手
段と、前記送信手段からのアクセス要求に対応したノー
ドがデータベースにアクセス可能か否かを判断する判断
手段と、前記判断手段によってアクセス不可能と判断さ
れた場合は、当該アクセス不可能なノードがアクセスす
べきデータベースに対応するバックアップ用のデータベ
ースにアクセスするノードに対して、アクセス要求を送
信する処理手段とを備えたことを特徴とする。
To achieve the above object, a distributed database system according to a first aspect of the present invention comprises a plurality of nodes each accessing a database via a logically connected communication path. , An access requesting node that transmits an access request to the plurality of nodes, wherein each of the plurality of nodes accesses a different one of the plurality of databases, and Equipped with access means to access the backup database corresponding to the database accessed by the node,
The access request node transmits a request for transmitting an access request to any one of the plurality of nodes, and determines whether a node corresponding to the access request from the transmission means can access the database. When the determination means determines that the access is not possible, the access request is transmitted to the node that accesses the backup database corresponding to the database to which the inaccessible node should access. And processing means.

【0014】このような分散データベースシステムにお
いては、アクセス要求ノードは、処理手段によって、ア
クセス不可能なノードがアクセスすべき所定のデータベ
ースに対応するバックアップ用のデータベースにアクセ
スするノードに対して、アクセス要求を送信する。従っ
て、アクセス要求の送信対象の所定のノードに障害が発
生した場合であっても、当該所定のノードがアクセスす
べきデータベースに対応したバックアップ用データベー
スがアクセスされるので、当該所定のノードがアクセス
すべきデータベースに対してのアクセス要求が停止する
ことはない。
In such a distributed database system, the access requesting node sends an access request to the node accessing the backup database corresponding to the predetermined database to be accessed by the inaccessible node by the processing means. Send Therefore, even when a failure occurs in a predetermined node to which an access request is to be transmitted, the backup database corresponding to the database to be accessed by the predetermined node is accessed, so that the predetermined node does not The request for access to the power database should not be stopped.

【0015】また、上記第1の観点に係る分散データベ
ースシステムにおいて、前記複数のノードに接続された
前記複数のデータベース、及び複数のバックアップ用の
データベースに物理的に接続され、前記アクセス要求ノ
ードからの要求を受信する待機ノードを更に備え、前記
アクセス要求ノードは、前記判断手段によってアクセス
不可能と判断された場合は、前記待機ノードにアクセス
要求を送信する手段を備え、前記待機ノードは、前記ア
クセス要求に応答して、前記アクセス不可能なノードが
アクセスすべき、データベースにアクセスすると共にバ
ックアップ用のデータベースにアクセスするアクセス手
段を備えるものとしてもよい。
Further, in the distributed database system according to the first aspect, the plurality of databases connected to the plurality of nodes and the plurality of backup databases are physically connected to the plurality of backup databases. A standby node that receives a request, wherein the access request node further includes a unit that transmits an access request to the standby node when the access unit determines that the access is not possible; In response to the request, the inaccessible node may have access means for accessing the database and accessing the backup database to be accessed.

【0016】このような分散データベースシステムにお
いては、前記待機ノードは、アクセス手段によって、前
記アクセス要求からのアクセス要求に応答して、前記ア
クセス不可能なノードがアクセスすべき、所定のデータ
ベースにアクセスすると共にバックアップ用のデータベ
ースにアクセスする。従って、アクセス要求の送信対象
の所定のノードに障害が発生した場合であっても、当該
所定のノードがアクセスすべきデータベースに対応した
バックアップ用データベースがアクセスされるので、当
該所定のノードがアクセスすべきデータベースに対して
のアクセス要求が停止することはない。
In such a distributed database system, the standby node accesses a predetermined database to be accessed by the inaccessible node in response to an access request from the access request by an access means. And access the backup database. Therefore, even when a failure occurs in a predetermined node to which an access request is to be transmitted, the backup database corresponding to the database to be accessed by the predetermined node is accessed, so that the predetermined node does not The request for access to the power database should not be stopped.

【0017】なお、前記待機ノードは複数備えるように
することもできる。この場合、前記アクセス要求ノード
は、複数の待機ノードのうちのいずれかの待機ノードに
アクセス要求を送信する。このため、何れかの待機ノー
ドによって、前記アクセス不可能なノードがアクセスす
べき、所定のデータベースにアクセスすると共にバック
アップ用のデータベースにアクセスすることができる。
Incidentally, a plurality of the standby nodes may be provided. In this case, the access request node transmits an access request to any one of the plurality of standby nodes. For this reason, any of the standby nodes can access a predetermined database to which the inaccessible node should access and also access a backup database.

【0018】また、上記第1の観点に係る分散データベ
ースシステムにおいて、前記アクセス要求ノードは、前
記判断手段によってアクセス不可能と判断された場合
は、前記複数の待機ノードのうちの何れかの待機ノード
にアクセス要求を送信する手段と、前記送信する手段か
ら送信されたアクセス要求に対する応答が有るか否かを
判断する手段と、前記判断する手段によって応答が無い
と判断された場合は、当該アクセス要求に対する応答が
無かった待機ノードとは異なる待機ノードに対して、ア
クセス要求を送信する手段とを備えるものとしてもよ
い。
Further, in the distributed database system according to the first aspect, when the access request node is determined to be inaccessible by the determining means, any one of the plurality of standby nodes may be used as the access node. Means for transmitting an access request to the access request; means for determining whether or not there is a response to the access request transmitted from the transmitting means; and when the determination means determines that there is no response, the access request And a means for transmitting an access request to a standby node different from the standby node that has not responded to the request.

【0019】このような分散データベースシステムにお
いては、前記アクセス要求ノードは、複数の待機ノード
のうちの、障害の発生していない待機ノードにアクセス
要求を送信する。このため、所定の待機ノードに障害が
発生している場合であっても、他の正常な待機ノードに
よって、前記アクセス不可能なノードがアクセスすべ
き、所定のデータベースにアクセスすると共にバックア
ップ用のデータベースにアクセスすることができる。
In such a distributed database system, the access request node transmits an access request to a standby node in which a failure has not occurred among a plurality of standby nodes. For this reason, even if a failure has occurred in a predetermined standby node, another normal standby node accesses a predetermined database to be accessed by the inaccessible node and a backup database. Can be accessed.

【0020】また、上記アクセス要求ノードは、前記複
数のノード及び待機ノードについての状態の遷移を示す
情報と、アクセス処理の種類を示す情報と、これらの情
報に基づいて決定されるアクセス要求の送信先を示す情
報とを記憶したテーブルを備えるようにすることもでき
る。この場合、ノードの状態の遷移とアクセス処理の種
類とに応じて、アクセス要求の送信先が決定される。
The access request node transmits information indicating a state transition of the plurality of nodes and the standby node, information indicating an access processing type, and transmission of an access request determined based on the information. It is also possible to provide a table storing information indicating the destination. In this case, the transmission destination of the access request is determined according to the state transition of the node and the type of access processing.

【0021】本発明の第2の観点に係る処理装置は、各
々論理的に接続された通信路を介してデータベースにア
クセスする複数のノードに対してアクセス要求を送信す
るアクセス要求ノードを有する処理装置であって、前記
複数のノードのうちの何れかのノードに対してアクセス
要求を送信する第1の送信手段と、前記送信手段からの
アクセス要求に対応したノードがデータベースにアクセ
ス可能か否かを判断する判断手段と、前記判断手段によ
ってアクセス不可能と判断された場合は、当該アクセス
不可能なノードがアクセスすべきデータベースに対応す
るバックアップ用のデータベースにアクセスするノード
に対して、アクセス要求を送信する処理手段とを備えた
ことを特徴とする。
A processing device according to a second aspect of the present invention has a processing device having an access request node for transmitting an access request to a plurality of nodes that access a database via logically connected communication paths. And a first transmitting unit that transmits an access request to any one of the plurality of nodes, and whether a node corresponding to the access request from the transmitting unit can access the database. An access request is transmitted to the determining means for determining and, if the determining means determines that the access is not possible, to the node accessing the backup database corresponding to the database to be accessed by the inaccessible node. And processing means for performing the processing.

【0022】このような処理装置においては、アクセス
要求ノードは、処理手段によって、アクセス不可能なノ
ードがアクセスすべき所定のデータベースに対応するバ
ックアップ用のデータベースにアクセスするノードに対
して、アクセス要求を送信する。従って、アクセス要求
の送信対象の所定のノードに障害が発生した場合であっ
ても、当該所定のノードがアクセスすべきデータベース
に対応したバックアップ用データベースがアクセスされ
るので、当該所定のノードがアクセスすべきデータベー
スに対してのアクセス要求が停止することはない。
In such a processing device, the access requesting node sends an access request to the node accessing the backup database corresponding to the predetermined database to be accessed by the inaccessible node by the processing means. Send. Therefore, even when a failure occurs in a predetermined node to which an access request is to be transmitted, the backup database corresponding to the database to be accessed by the predetermined node is accessed, so that the predetermined node does not The request for access to the power database should not be stopped.

【0023】また、上記第2の観点に係る処理装置にお
いて、前記判断手段によってアクセス不可能と判断され
た場合に、前記複数のノードに接続された前記複数のデ
ータベース、及び複数のバックアップ用のデータベース
に物理的に接続される待機ノードにアクセス要求を送信
する第2の送信手段を備えるものとしてもよい。
In the processing apparatus according to the second aspect, when the determination means determines that the access is not possible, the plurality of databases connected to the plurality of nodes and the plurality of backup databases are provided. May be provided with a second transmitting means for transmitting an access request to a standby node physically connected to the communication node.

【0024】このような処理装置においては、前記アク
セス要求ノードは、複数の待機ノードのうちの、障害の
発生していない待機ノードにアクセス要求を送信する。
このため、所定の待機ノードに障害が発生している場合
であっても、他の正常な待機ノードによって、前記アク
セス不可能なノードがアクセスすべき、所定のデータベ
ースにアクセスすると共にバックアップ用のデータベー
スにアクセスすることができる。
In such a processing device, the access request node transmits an access request to a standby node in which a failure has not occurred among a plurality of standby nodes.
For this reason, even if a failure has occurred in a predetermined standby node, another normal standby node accesses a predetermined database to be accessed by the inaccessible node and a backup database. Can be accessed.

【0025】本発明の第3の観点に係るデータベースア
クセス方法は、各々論理的に接続された通信路を介して
複数のデータベースのうちの互いに異なるデータベース
にアクセスすると共に、他のノードがアクセスするデー
タベースに対応したバックアップ用のデータベースにア
クセスする複数のノードと、前記複数のノードに対して
アクセス要求を送信するアクセス要求ノードとを有する
分散データベースシステムにおけるデータベースアクセ
ス方法において、前記アクセス要求ノードは、前記複数
のノードのうちの何れかのノードに対してアクセス要求
を送信する送信ステップと、前記送信ステップにより送
信されたアクセス要求に対応したノードがデータベース
にアクセス可能か否かを判断する判断ステップと、前記
判断ステップによってアクセス不可能と判断された場合
は、当該アクセス不可能なノードがアクセスすべきデー
タベースに対応するバックアップ用のデータベースにア
クセスするノードに対して、アクセス要求を送信する送
信ステップとを含むことを特徴とする。
A database access method according to a third aspect of the present invention accesses a database different from a plurality of databases through a logically connected communication path, and a database accessed by another node. In a database access method in a distributed database system having a plurality of nodes that access a backup database corresponding to a plurality of nodes, and an access request node that transmits an access request to the plurality of nodes, the access request node includes the plurality of nodes. A transmitting step of transmitting an access request to any one of the nodes; a determining step of determining whether a node corresponding to the access request transmitted by the transmitting step can access a database; According to the decision step Transmitting an access request to a node accessing a backup database corresponding to the database to be accessed by the inaccessible node when the access is determined to be inaccessible. And

【0026】このようなデータベースアクセス方法にお
いては、アクセス要求ノードは、処理ステップによっ
て、アクセス不可能なノードがアクセスすべき所定のデ
ータベースに対応するバックアップ用のデータベースに
アクセスするノードに対して、アクセス要求を送信す
る。従って、アクセス要求の送信対象の所定のノードに
障害が発生した場合であっても、当該所定のノードがア
クセスすべきデータベースに対応したバックアップ用デ
ータベースがアクセスされるので、当該所定のノードが
アクセスすべきデータベースに対してのアクセス要求が
停止することはない。
In such a database access method, the access requesting node, by the processing step, sends an access request to a node accessing a backup database corresponding to a predetermined database to be accessed by an inaccessible node. Send Therefore, even when a failure occurs in a predetermined node to which an access request is to be transmitted, the backup database corresponding to the database to be accessed by the predetermined node is accessed, so that the predetermined node does not The request for access to the power database should not be stopped.

【0027】[0027]

【発明の実施の形態】以下、本発明の実施の形態を、図
面を参照して説明する。図1は、本発明に係る分散デー
タベースシステムの一実施形態を示すブロック図であ
る。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing one embodiment of a distributed database system according to the present invention.

【0028】図1に示すように、機能層であるデータベ
ースアクセス要求ノード(以下、DBアクセス要求ノー
ドという)1と、データベース層であるアクティブノー
ド2、3及び待機ノード4と、がそれぞれネットワーク
5に接続されている。
As shown in FIG. 1, a database access request node (hereinafter referred to as a DB access request node) 1 which is a functional layer, and active nodes 2 and 3 and a standby node 4 which are database layers are connected to a network 5 respectively. It is connected.

【0029】DBアクセス要求ノード1とデータベース
層の各ノードはネットワーク5を介して、アクセス要
求、アクセス結果、障害を発生している旨等のデータの
授受を行う。
The DB access request node 1 and each node in the database layer exchange an access request, an access result, and data indicating that a failure has occurred via the network 5.

【0030】DBアクセス要求ノード1には、プレゼン
テーション層である端末6が接続されると共に、データ
ベース配置変換機構1Aが設けられている。端末6から
は、データベースの作成、検索、更新等の処理要求が送
出される。
The DB access request node 1 is connected to a terminal 6 which is a presentation layer, and is provided with a database layout conversion mechanism 1A. From the terminal 6, processing requests such as creation, retrieval, and updating of a database are transmitted.

【0031】DB配置変換機構1Aは、データベース2
Aあるいはデータベース3Aに障害が発生して、アクセ
スが不可能となった際には、ミラー先のデータベースに
対してデータベースアクセス処理が行われる様に、デー
タベース2Aへのアクセス要求の場合にはアクティブノ
ード3を、一方、データベース3Aへのアクセス要求の
場合はアクティブノード2を選択する。この結果、障害
データベースが復旧するまでは、この障害データベース
に代わって、ミラー先のデータベースに対して検索、更
新など全てのアクセス処理が行われる。
The DB layout conversion mechanism 1A includes a database 2
When a failure occurs in the database A or the database 3A and access becomes impossible, the active node is used in the case of an access request to the database 2A so that the database access processing is performed on the mirror destination database. In the case of an access request to the database 3A, the active node 2 is selected. As a result, until the failure database is restored, all access processing such as searching and updating is performed on the mirror destination database in place of the failure database.

【0032】また、DB配置変換機構1Aには、データ
ベース層のノードの状態遷移とアクセス処理の種類との
関係に応じて決定されるアクセス処理の要求先を示して
いる要求先データ(例えばテーブル形式でのデータ)を
保持している。この要求先データについては後述する。
The DB allocation conversion mechanism 1A stores request destination data (for example, a table format) indicating a request destination of an access process determined according to a relationship between a state transition of a node in a database layer and a type of an access process. Data). This request destination data will be described later.

【0033】アクティブノード2は、データベース2
A、3Bをアクセスし、アクティブノード3はデータベ
ース3A、2Bをアクセスする。すなわち、各アクティ
ブノードは、自己のノードに対応した原本のデータベー
ス(ミラー元)と、他のアクティブノードに対応する原
本のデータベースのミラーリング先のデータベースと
を、アクセスする。換言すれば、例えばデータベース2
A(ミラー元)をアクセスするのはアクティブノード2
であるが、このデータベース2Aをミラーリングするデ
ータベース2Bをアクセスするのはアクティブノード3
である。従って、データベースアクセス要求ノード(以
下、DBアクセス要求ノードという)1は、端末6から
の処理要求(トランザクション処理)が、例えばデータ
ベース2Aの検索などの更新処理以外の処理の場合には
アクティブノード2のみにアクセス要求を送出し、一
方、更新処理の場合は、アクティブノード2、3に対し
てアクセス要求を送出する。これによって、データベー
ス2Aとデータベース2Bの内容を同一に維持すること
ができる。データベース3Aに対するアクセス処理につ
いても、上述したような処理が行われる。
The active node 2 has a database 2
A and 3B are accessed, and the active node 3 accesses the databases 3A and 2B. That is, each active node accesses the original database (mirror source) corresponding to its own node and the mirroring database of the original database corresponding to the other active nodes. In other words, for example, database 2
Active node 2 accesses A (mirror source)
However, the active node 3 accesses the database 2B that mirrors the database 2A.
It is. Therefore, if the processing request (transaction processing) from the terminal 6 is a processing other than the update processing such as the search of the database 2A, the database access request node (hereinafter referred to as DB access request node) 1 In the case of the updating process, the access request is sent to the active nodes 2 and 3. Thereby, the contents of the database 2A and the database 2B can be kept the same. The processing described above is also performed for the access processing to the database 3A.

【0034】待機ノード4は、通常は待機状態になって
おり、DBアクセス要求ノード1からのアクセス要求に
応答して、アクティブ状態となるプロセス(すなわちデ
ータベースアクセスを行うプロセス)を起動する。この
結果、上記各データベースへのアクセスが可能となる。
The standby node 4 is normally in a standby state, and starts a process to be in an active state (ie, a process for performing database access) in response to an access request from the DB access request node 1. As a result, access to each of the above databases becomes possible.

【0035】次に、要求先データの一例を図2に示す。
図2(a)は、データベース2Aへのアクセス処理の要
求先の一例を示している。図2(a)において、符号2
0で示される行においては、アクティブノード2が正常
の場合には、更新処理では、アクティブノード2、3が
要求先となり、更新処理以外の処理では、アクティブノ
ード2が要求先となることが示されている。符号30で
示される行においては、アクティブノード2に障害が発
生して待機ノード4へ切り替えている期間中の場合に
は、更新処理及び更新処理以外の処理共にアクティブノ
ード3が要求先となることが示されている。符号40で
示される行においては、切替が終了し、待機ノード4が
アクティブノードに変化した場合には、更新処理では、
アクティブノード4、3が要求先となり、更新処理以外
の処理では、アクティブノード4が要求先となることが
示されている。
Next, an example of the request destination data is shown in FIG.
FIG. 2A shows an example of a request destination of an access process to the database 2A. In FIG. 2A, reference numeral 2
The row indicated by 0 indicates that when the active node 2 is normal, the active nodes 2 and 3 are the request destinations in the update processing, and that the active node 2 is the request destination in the processing other than the update processing. Have been. In the row indicated by reference numeral 30, when the active node 2 has failed and is switching to the standby node 4, the active node 3 is the request destination for both the update processing and the processing other than the update processing. It is shown. In the row indicated by reference numeral 40, when the switching is completed and the standby node 4 changes to the active node, in the updating process,
It is shown that the active nodes 4 and 3 are request destinations, and in processes other than the update process, the active node 4 is the request destination.

【0036】図2(b)は、データベース3Aへのアク
セス処理の要求先の一例を示している。図2(b)にお
いて、符号50で示される行においては、アクティブノ
ード3が正常の場合には、更新処理では、アクティブノ
ード2、3が要求先となり、更新処理以外の処理では、
アクティブノード3が要求先となることが示されてい
る。符号60で示される行においては、アクティブノー
ド3に障害が発生して待機ノード4へ切り替えている期
間中の場合には、更新処理及び更新処理以外の処理共に
アクティブノード2が要求先となることが示されてい
る。符号70で示される行においては、切替が終了し、
待機ノード4がアクティブノードに変化した場合には、
更新処理では、アクティブノード4、2が要求先とな
り、更新処理以外の処理では、アクティブノード4が要
求先となることが示されている。
FIG. 2B shows an example of a request destination of an access process to the database 3A. In FIG. 2B, in the row indicated by reference numeral 50, when the active node 3 is normal, the active nodes 2 and 3 are request destinations in the update processing, and in the processing other than the update processing,
It is shown that the active node 3 is the request destination. In the row indicated by reference numeral 60, during a period in which a failure has occurred in the active node 3 and switching to the standby node 4 is being performed, the active node 2 is the request destination for both the update processing and processing other than the update processing. It is shown. In the line indicated by reference numeral 70, the switching is completed,
When the standby node 4 changes to the active node,
In the update processing, the active nodes 4 and 2 are the request destinations, and in the processing other than the update processing, the active node 4 is the request destination.

【0037】なお、この実施形態では、DBアクセス要
求ノード1、DB配置変換機構1A、アクティブノード
2、3、及び待機ノード4は、当該各構成要素の機能を
実現するためのプログラムを記憶しているハードディス
ク及びメモリ、及び中央処理装置を備え、中央処理装置
が、ハードディスクやメモリから、そのプログラムを読
み出して実行することにより実現するようにしている。
In this embodiment, the DB access request node 1, the DB layout conversion mechanism 1A, the active nodes 2, 3 and the standby node 4 store programs for realizing the functions of the respective constituent elements. A hard disk and a memory, and a central processing unit, and the central processing unit reads the program from the hard disk or the memory and executes the program to realize the program.

【0038】次に、データベースへのアクセス処理動作
について、図3に示すフローチャートを参照して説明す
る。なお、この実施形態では、データベース2Aへのア
クセス要求の場合についての処理動作を説明する。
Next, the operation of accessing the database will be described with reference to the flowchart shown in FIG. In this embodiment, a processing operation in the case of an access request to the database 2A will be described.

【0039】最初に、DBアクセス要求ノード1は、要
求元である端末6からのトランザクション処理としての
データベース2Aへの処理要求を受信すると(ステップ
101)、所定のプロトコルに基づいて、アクティブノ
ード2が正常であるか否かを判断する(ステップ10
2)。アクティブノード2Aが正常の場合、DBアクセ
ス要求ノード1では、処理要求が更新処理か否かを判断
し(ステップ103)、更新処理の場合には、DB配置
変換機構1Aは、アクティブノード2へアクセス要求を
送出すると共に、アクティブノード3へアクセス要求を
送出する(ステップ104)。アクセス要求を受け取っ
たアクティブノード2は、データベース2Aに対してア
クセス処理(更新処理)を実行する(ステップ10
5)。一方、アクティブノード3では、データベース2
Bを、データベース2Aの記憶内容と同一になるように
ミラーリングする(ステップ106)。
First, when the DB access request node 1 receives a processing request from the requesting terminal 6 to the database 2A as a transaction process (step 101), the active node 2 receives a request based on a predetermined protocol. It is determined whether or not it is normal (step 10).
2). If the active node 2A is normal, the DB access request node 1 determines whether the processing request is an update process (step 103). If the update request is an update process, the DB allocation conversion mechanism 1A accesses the active node 2 A request is sent and an access request is sent to the active node 3 (step 104). The active node 2 that has received the access request executes an access process (update process) on the database 2A (step 10).
5). On the other hand, in the active node 3, the database 2
B is mirrored so as to be the same as the storage content of the database 2A (step 106).

【0040】上記ステップ103において、更新処理以
外の処理(例えば検索、参照等の処理)の場合、DB配
置変換機構1Aは、アクティブノード2のみに対して、
アクセス要求を送出する(ステップ107)。アクティ
ブノード2はデータベース2Aに対して更新以外の処理
を行う(ステップ108)。
In the above step 103, in the case of a process other than the update process (for example, a process of search, reference, etc.), the DB arrangement conversion mechanism 1A
An access request is sent (step 107). The active node 2 performs processing other than updating on the database 2A (step 108).

【0041】上記ステップ102においてアクティブノ
ード2に障害が発生して、データベース2Aへのアクセ
スが不可能の場合、DB配置変換機構1Aは、データベ
ース2A、3Bへのアクセス処理を行うデータベース層
のノードを、アクティブノード2から待機ノード4に切
り替えると共に(ステップ109)、ミラー先のデータ
ベース2Bがアクセスされるように、アクティブノード
3を選択してアクセス要求を送出する(ステップ11
0)。
If a failure has occurred in the active node 2 in step 102 and access to the database 2A is impossible, the DB layout conversion mechanism 1A determines a node in the database layer that performs access processing to the databases 2A and 3B. Then, the active node 2 is switched to the standby node 4 (step 109), and the active node 3 is selected and the access request is transmitted so that the mirror destination database 2B is accessed (step 11).
0).

【0042】切り替えられた待機ノード4は、データベ
ース2A、3Bへのアクセス処理を行うプロセスを起動
する。
The switched standby node 4 activates a process for accessing the databases 2A and 3B.

【0043】一方、アクティブノード3では、データベ
ース2Bに対して、参照、検索、更新などの全てのアク
セス処理を行う(ステップ111)。すなわち、ノード
の切り替えの期間中においては、DB配置変換機構1A
は、データベース2Aへのアクセス要求先は、すべてア
クティブノード3とする。これにより、アクティブノー
ド2に障害が発生してデータベース2Aへのアクセスが
不可能になってから、待機ノード4からデータベース2
Aへのアクセスが可能となるまでの期間は、アクティブ
ノード3が障害のアクティブノード2に代替して、ミラ
ー先のデータベース2Bに対してアクセス処理を行うこ
とにより、データベース2Aへのアクセス要求が停止さ
れることはない。
On the other hand, the active node 3 performs all access processing such as reference, search, and update on the database 2B (step 111). That is, during the node switching period, the DB arrangement conversion mechanism 1A
Assume that all access request destinations to the database 2A are to the active node 3. Thus, after a failure occurs in the active node 2 and access to the database 2A becomes impossible, the standby node 4
Until the access to A becomes possible, the active node 3 performs the access process to the mirror destination database 2B in place of the failed active node 2, thereby stopping the access request to the database 2A. It will not be done.

【0044】そして、待機ノード4が待機状態からアク
ティブ状態に変化して(ステップ112)、データベー
ス2A、3Bへのアクセス処理が可能となると、待機ノ
ード4はアクティブノードとしての機能を果たすことに
なる。ここでは、この機能を果たす待機ノード4をアク
ティブノード4とする。すると、DB配置変換機構1A
は、アクティブノード3に、データベース2Bの内容を
読み出して、アクティブノード4に転送するように指示
する。このアクティブノード4では、転送されたデータ
ベース2Bの内容をデータベース2Aに反映させる(ス
テップ113)。この結果、データベース2Aとデータ
ベース2Bの内容は同一になる。
When the standby node 4 changes from the standby state to the active state (step 112) and the access processing to the databases 2A and 3B becomes possible, the standby node 4 functions as an active node. . Here, the standby node 4 performing this function is referred to as an active node 4. Then, the DB arrangement conversion mechanism 1A
Instructs the active node 3 to read the contents of the database 2B and transfer it to the active node 4. The active node 4 reflects the transferred contents of the database 2B on the database 2A (step 113). As a result, the contents of the database 2A and the database 2B become the same.

【0045】これ以後のデータベース2Aへのアクセス
要求については、DB配置変換機構1Aは、アクティブ
ノード4を選択する(ステップ114)。一方、アクセ
ス要求が更新処理の場合のみ、アクティブノード3に、
データベース2Bへのアクセス要求が送出されるように
する(ステップ115)。この結果、データベース2B
は、データベース2Aのミラーリングを行うことにな
る。勿論、データベース3Aへのアクセス要求があった
場合は、アクティブノード3が選択され、更新処理の場
合のみアクティブノード2も選択されることになる。
For subsequent access requests to the database 2A, the DB layout conversion mechanism 1A selects the active node 4 (step 114). On the other hand, only when the access request is an update process, the active node 3
An access request to the database 2B is sent (step 115). As a result, the database 2B
Performs mirroring of the database 2A. Of course, when there is an access request to the database 3A, the active node 3 is selected, and only in the case of the update process, the active node 2 is selected.

【0046】また、アクティブノード2は障害が回復し
た後は待機ノードとなり、上述した待機ノード4と同様
の機能を果たす。すなわち、初期状態より、アクティブ
ノード2とアクティブノード4との役割が入れ替わった
状態となる。
The active node 2 becomes a standby node after the recovery from the failure, and performs the same function as the standby node 4 described above. That is, the roles of the active node 2 and the active node 4 are switched from the initial state.

【0047】これ以降は、データベース層ノードに障害
が発生する毎に、上述したような切替処理が行われる。
Thereafter, each time a failure occurs in the database layer node, the above-described switching processing is performed.

【0048】上述した処理動作において、アクティブノ
ード2の障害発生後のシステムの態様を示す構成図を図
4に示す。
FIG. 4 is a configuration diagram showing an aspect of the system after the occurrence of a failure in the active node 2 in the above-described processing operation.

【0049】同4に示すように、データベース2Aへの
アクセス要求があり、且つ、アクティブノード2に障害
が発生していると、アクティブノード2から待機ノード
4に切り替わり、待機ノード4は上記プロセスを起動す
る。これと同時に、アクティブノード3は、待機ノード
4がアクティブ状態となる期間中、データベース2Aの
ミラー先であるデータベース2Bへのアクセス処理を行
う。待機ノード4がアクティブ状態になると、上述した
ようにデータベース2Bの内容がデータベース2Aに反
映される。そして待機ノード4はアクティブノード4な
り、データベース2A、3Bへのアクセス処理を行うこ
とになる。一方、アクティブノード3は、データベース
3A、2Bへのアクセス処理を行うことになる。
As shown in FIG. 4, when there is an access request to the database 2A and a failure occurs in the active node 2, the active node 2 switches to the standby node 4, and the standby node 4 executes the above process. to start. At the same time, the active node 3 performs access processing to the database 2B, which is the mirror destination of the database 2A, while the standby node 4 is in the active state. When the standby node 4 becomes active, the contents of the database 2B are reflected on the database 2A as described above. The standby node 4 becomes the active node 4 and performs access processing to the databases 2A and 3B. On the other hand, the active node 3 performs access processing to the databases 3A and 2B.

【0050】上述したように、本実施形態によれば、デ
ータベース層における障害が発生したアクティブノード
がアクセスすべきデータベースの、ミラーリング先のデ
ータベースは、データベース層における他のアクティブ
ノードからアクセスされるので、アクティブノードに障
害が発生した後、待機ノードをアクティブノードに切り
替える期間中(すなわち、待機状態からアクティブ状態
に変化して、データベースへのアクセスが可能になるま
での期間中)であっても、障害を発生したアクティブノ
ードがアクセスを行っていたデータベースへの処理要求
が停止することがない。これは、データベースへのアク
セス待機時間を大幅に短縮させることを意味する。すな
わち、アクティブノードの障害発生時における、従端末
6が処理要求を発行してから応答を受信するまでの時間
を、従来と比較して、大幅に短縮することができる。よ
って、ターンアラウンド・タイムを向上させることがで
きる。
As described above, according to this embodiment, the mirroring destination database of the database to be accessed by the failed active node in the database layer is accessed from another active node in the database layer. Even after the active node fails, the failure occurs even during the period of switching the standby node to the active node (that is, during the period from when the standby state is changed to the active state until the database can be accessed). The processing request to the database accessed by the active node that caused the error does not stop. This means that the waiting time for access to the database is significantly reduced. That is, when a failure occurs in the active node, the time from when the slave terminal 6 issues a processing request to when it receives a response can be significantly reduced as compared with the related art. Therefore, the turnaround time can be improved.

【0051】また、本実施形態によれば、上記図8に示
した従来の分散データベースシステム、及び上述した特
開平8−278911号の公報に開示されたシステムと
比較して、データベースへアクセスする手段を必要最小
限に抑制して、データベースの2重化を図ることができ
る。
According to the present embodiment, the means for accessing the database is different from that of the conventional distributed database system shown in FIG. 8 and the system disclosed in Japanese Patent Application Laid-Open No. 8-278911. Can be suppressed to the minimum necessary, and the database can be duplicated.

【0052】また、上述した実施形態では、1つの待機
ノードを備えるようにしたが、図5に示す様に、待機ノ
ードを2重化しても良い。図5は、図1に示した構成に
おいて、待機ノード50を追加した構成になっている。
この様な構成にすることにより、待機ノード4が何らか
の原因によって障害が発生した際には、障害を発生した
アクティブノードから待機ノード50に切り替えて、図
3に示した処理動作を実施しすることができる。勿論、
待機ノードを3重化、4重化、・・・、多重化すること
により、より一層、待機ノードの障害に対応することが
できる。
In the embodiment described above, one standby node is provided. However, as shown in FIG. 5, the standby node may be duplicated. FIG. 5 shows a configuration in which a standby node 50 is added to the configuration shown in FIG.
With this configuration, when a failure occurs in the standby node 4 for some reason, the active node that has failed is switched to the standby node 50 and the processing operation illustrated in FIG. 3 is performed. Can be. Of course,
By multiplexing the standby nodes in triple, quadruple,..., It is possible to further cope with the failure of the standby nodes.

【0053】また、上述した実施形態では、2つのアク
ティブノード、2つのミラー元のデータベース、2つの
ミラー先のデータベースを備えるようにしているが、3
つ以上の、アクティブノード、ミラー元のデータベー
ス、及びミラー先のデータベースを備えるようにしても
良い。図6は、前記各構成要素を4つ備えた場合の構成
図を示しており、図1に示した構成において、アクティ
ブノード61、62、ミラー元のデータベース61A、
62A、データベース61Aのミラー先のデータベース
61B、及びデータベース62Aのミラー先のデータベ
ース62Bを追加した構成になっている。このような構
成にすることにより、図1に示した実施形態における負
荷と同一の負荷を処理する場合でも、各アクティブノー
ドに負荷分散させることができるので、1つのアクティ
ブノードのデータ処理量が軽減される。また、このデー
タ処理量を同一とした場合には、図1に示した実施形態
に比較して、より多くのデータを取り扱うことができ
る。
In the above embodiment, two active nodes, two mirror source databases, and two mirror destination databases are provided.
One or more active nodes, a mirror source database, and a mirror destination database may be provided. FIG. 6 shows a configuration diagram in the case where four components are provided. In the configuration shown in FIG. 1, active nodes 61 and 62, a mirror source database 61A,
62A, a mirror database 61B of the database 61A, and a mirror database 62B of the database 62A are added. With this configuration, even when the same load as the load in the embodiment shown in FIG. 1 is processed, the load can be distributed among the active nodes, so that the data processing amount of one active node is reduced. Is done. Further, when the data processing amount is the same, more data can be handled as compared with the embodiment shown in FIG.

【0054】また、上述した実施形態では、ミラー元の
データベースと、ミラー先のデータベースとをそれぞれ
別々のハードディスクで構成するようにしているが、こ
れに限定されることなく、1つのハードディスクにそれ
ら2種類のデータベースを格納するようにすることもで
きる。例えば、データベース2Aと、データベース3B
とを1つのハードディスクに格納する。
In the above-described embodiment, the database of the mirror source and the database of the mirror destination are respectively constituted by separate hard disks. However, the present invention is not limited to this. Different types of databases can be stored. For example, database 2A and database 3B
Are stored in one hard disk.

【0055】また、上述した実施形態では、アクティブ
ノードに障害が発生した場合に待機ノードに切り替える
ようにしているが、これに限定されることなく、次のよ
うにすることも出来る。すなわち、所定のアクティブノ
ードと所定のデータベースとの間の通信路に障害が発生
し、該所定のアクティブノードが、そのデータベースへ
アクセスすることが不可能な場合に、待機ノードに切り
替えるようにすることもできる。勿論、複数の待機ノー
ドを設けた場合においては、1つの待機ノードとデータ
ベースとの間の通信路に障害が発生した場合に、他の待
機ノードに切り替えるようにすることも出来る。
Further, in the above-described embodiment, when a failure occurs in the active node, switching to the standby node is performed. However, the present invention is not limited to this, and the following can be performed. That is, when a failure occurs in a communication path between a predetermined active node and a predetermined database, and the predetermined active node cannot access the database, switching to the standby node is performed. Can also. Of course, in the case where a plurality of standby nodes are provided, if a failure occurs in a communication path between one standby node and the database, it is possible to switch to another standby node.

【0056】さらに、上述した実施形態では、DBアク
セス要求ノード1と、上記各アクティブノード及び単一
又は複数の待機ノードとを、バス型のネットワークで接
続して、アクティブノードに障害が発生している場合に
おいて、そのアクティブノードに代替して、待機ノード
に切り替えるようにしているが、これを、次のようにし
ても良い。すなわち、DBアクセス要求ノード1と、上
記各アクティブノード及び単一又は複数の待機ノードの
それぞれとを専用回線で接続し、複数のアクティブノー
ド及び単一又は複数の待機ノードは正常であるが、何れ
かの専用回線に障害が発生した場合に、上述したような
ノード切替処理を行うようにすることもできる。
Further, in the above embodiment, the DB access request node 1 is connected to each of the active nodes and one or a plurality of standby nodes via a bus-type network. In this case, the active node is switched to the standby node instead of the active node, but this may be performed as follows. That is, the DB access request node 1 is connected to each of the active nodes and the single or plural standby nodes by a dedicated line, and the plural active nodes and the single or plural standby nodes are normal. When a failure occurs in such a dedicated line, the above-described node switching processing may be performed.

【0057】[0057]

【発明の効果】以上、説明したように、本発明によれ
ば、アクセス要求の送信対象の所定のノードに障害が発
生した場合であっても、当該所定のノードがアクセスす
べきデータベースに対応したバックアップ用データベー
スがアクセスされるので、当該所定のノードがアクセス
すべきデータベースに対してのアクセス要求が停止する
ことはない。
As described above, according to the present invention, even when a failure has occurred in a predetermined node to which an access request is to be transmitted, the predetermined node can handle a database to be accessed. Since the backup database is accessed, the access request for the database to be accessed by the predetermined node does not stop.

【0058】従って、障害発生時においても、データベ
ースへのアクセス待機時間を短縮させることにより、タ
ーンアラウンド・タイムを向上させることができる。
Therefore, even when a failure occurs, the turnaround time can be improved by shortening the waiting time for access to the database.

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

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

【図2】データベース配置変換機構が保持する要求先デ
ータの一例である。
FIG. 2 is an example of request destination data held by a database layout conversion mechanism.

【図3】本実施形態の処理動作を示すフローチャートで
ある。
FIG. 3 is a flowchart illustrating a processing operation according to the embodiment.

【図4】アクティブノードの障害発生後のシステムの態
様を示す構成図である。
FIG. 4 is a configuration diagram illustrating an aspect of a system after a failure of an active node occurs.

【図5】本発明に係る分散データベースシステムの他の
実施形態を示すブロック図である。
FIG. 5 is a block diagram showing another embodiment of the distributed database system according to the present invention.

【図6】本発明に係る分散データベースシステムの他の
実施形態を示すブロック図である。
FIG. 6 is a block diagram showing another embodiment of the distributed database system according to the present invention.

【図7】従来の分散データベースシステムの構成を示す
構成図である。
FIG. 7 is a configuration diagram showing a configuration of a conventional distributed database system.

【図8】従来の分散データベースシステムの構成を示す
構成図である。
FIG. 8 is a configuration diagram showing a configuration of a conventional distributed database system.

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

1 データベースアクセス
要求ノード 1A データベース配置変換
機構 2、3、61、62 アクティブノード 2A、3A、61A、62A ミラー元のデータベー
ス 2B、3B、61B、62B ミラー先のデータベー
ス 4、50 待機ノード 5 ネットワーク 6 端末
Reference Signs List 1 database access request node 1A database layout conversion mechanism 2, 3, 61, 62 active node 2A, 3A, 61A, 62A mirror source database 2B, 3B, 61B, 62B mirror destination database 4, 50 standby node 5 network 6 terminal

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】各々論理的に接続された通信路を介してデ
ータベースにアクセスする複数のノードと、該複数のノ
ードに対してアクセス要求を送信するアクセス要求ノー
ドとを有する分散データベースシステムであって、 前記複数のノードのそれぞれは、 複数のデータベースのうちの互いに異なるデータベース
にアクセスすると共に、他のノードがアクセスするデー
タベースに対応したバックアップ用のデータベースにア
クセスするアクセス手段を備え、 前記アクセス要求ノードは、 前記複数のノードのうちの何れかのノードに対してアク
セス要求を送信する送信手段と、 前記送信手段からのアクセス要求に対応したノードがデ
ータベースにアクセス可能か否かを判断する判断手段
と、 前記判断手段によってアクセス不可能と判断された場合
は、当該アクセス不可能なノードがアクセスすべきデー
タベースに対応するバックアップ用のデータベースにア
クセスするノードに対して、アクセス要求を送信する処
理手段とを備えたことを特徴とする分散データベースシ
ステム。
1. A distributed database system comprising: a plurality of nodes each accessing a database via logically connected communication paths; and an access request node transmitting an access request to the plurality of nodes. Each of the plurality of nodes includes access means for accessing a different one of the plurality of databases and accessing a backup database corresponding to a database accessed by another node; Transmitting means for transmitting an access request to any one of the plurality of nodes; determining means for determining whether a node corresponding to the access request from the transmitting means can access a database; If access is determined to be inaccessible by the determination means Is distributed database system, characterized in that the inaccessible node to a node to access the database for backup corresponds to the database to be accessed, and a processing means for transmitting an access request.
【請求項2】前記複数のノードに接続された前記複数の
データベース、及び複数のバックアップ用のデータベー
スに物理的に接続され、前記アクセス要求ノードからの
要求を受信する待機ノードを更に備え、 前記アクセス要求ノードは、 前記判断手段によってアクセス不可能と判断された場合
は、前記待機ノードにアクセス要求を送信する手段を備
え、 前記待機ノードは、 前記アクセス要求に応答して、前記アクセス不可能なノ
ードがアクセスすべき、データベースにアクセスすると
共にバックアップ用のデータベースにアクセスするアク
セス手段を備えたことを特徴とする請求項1に記載の分
散データベースシステム。
2. The system according to claim 1, further comprising: a standby node physically connected to the plurality of databases and the plurality of backup databases connected to the plurality of nodes, and receiving a request from the access request node. The requesting node includes means for transmitting an access request to the standby node when it is determined that the access is inaccessible by the determining means, wherein the standby node responds to the access request and the inaccessible node 2. The distributed database system according to claim 1, further comprising access means for accessing a database to be accessed and a database for backup.
【請求項3】前記待機ノードを複数備え、 前記アクセス要求ノードは、 前記判断手段によってアクセス不可能と判断された場合
は、前記複数の待機ノードのうちのいずれかの待機ノー
ドにアクセス要求を送信する手段を備えたことを特徴と
する請求項2に記載の分散データベースシステム。
3. A plurality of said standby nodes, wherein said access request node transmits an access request to any one of said plurality of standby nodes when said access means determines that access is not possible. 3. The distributed database system according to claim 2, further comprising:
【請求項4】前記アクセス要求ノードは、 前記判断手段によってアクセス不可能と判断された場合
は、前記複数の待機ノードのうちの何れかの待機ノード
にアクセス要求を送信する手段と、 前記送信する手段から送信されたアクセス要求に対する
応答が有るか否かを判断する手段と、 前記判断する手段によって応答が無いと判断された場合
は、当該アクセス要求に対する応答が無かった待機ノー
ドとは異なる待機ノードに対して、アクセス要求を送信
する手段とを備えたことを特徴とする請求項3に記載の
分散データベースシステム。
4. The access request node, when the determination unit determines that access is not possible, a unit that transmits an access request to any one of the plurality of standby nodes; Means for determining whether there is a response to the access request transmitted from the means; and a standby node different from the standby node having no response to the access request if the determination means determines that there is no response. 4. The distributed database system according to claim 3, further comprising means for transmitting an access request to the distributed database.
【請求項5】前記アクセス要求ノードは、 前記複数のノード及び待機ノードについての状態の遷移
を示す情報と、アクセス処理の種類を示す情報と、これ
らの情報に基づいて決定されるアクセス要求の送信先を
示す情報とを記憶したテーブルを備え、 ノードの状態の遷移とアクセス処理の種類とに応じて、
前記テーブルを参照して、アクセス要求の送信先を決定
することを特徴とする請求項1乃至4に記載の分散デー
タベースシステム。
5. An access request node, comprising: information indicating a state transition of the plurality of nodes and a standby node; information indicating an access processing type; and transmission of an access request determined based on the information. It has a table that stores information indicating the destination, and according to the transition of the state of the node and the type of access processing,
5. The distributed database system according to claim 1, wherein a destination of the access request is determined with reference to the table.
【請求項6】前記待機ノードは、 前記複数のノードのそれぞれに対応しており、前記アク
セス要求ノードからのアクセス要求に応答して、前記ア
クセス不可能なノードに代替し、所定のデータベースに
アクセスすることを特徴とする請求項1乃至3に記載の
分散データベースシステム。
6. The standby node, corresponding to each of the plurality of nodes, responds to an access request from the access request node, substitutes the inaccessible node, and accesses a predetermined database. The distributed database system according to claim 1, wherein:
【請求項7】各々論理的に接続された通信路を介してデ
ータベースにアクセスする複数のノードに対してアクセ
ス要求を送信する処理装置であって、 前記複数のノードのうちの何れかのノードに対してアク
セス要求を送信する第1の送信手段と、 前記送信手段からのアクセス要求に対応したノードがデ
ータベースにアクセス可能か否かを判断する判断手段
と、 前記判断手段によってアクセス不可能と判断された場合
は、当該アクセス不可能なノードがアクセスすべきデー
タベースに対応するバックアップ用のデータベースにア
クセスするノードに対して、アクセス要求を送信する処
理手段とを備えたことを特徴とする処理装置。
7. A processing apparatus for transmitting an access request to a plurality of nodes accessing a database via communication paths logically connected to each other, comprising: First transmitting means for transmitting an access request to the database, determining means for determining whether a node corresponding to the access request from the transmitting means can access the database, and determining that the access is not possible by the determining means Processing means for transmitting an access request to a node accessing a backup database corresponding to a database to be accessed by the inaccessible node.
【請求項8】前記判断手段によってアクセス不可能と判
断された場合に、 前記複数のノードに接続された前記複数のデータベー
ス、及び複数のバックアップ用のデータベースに物理的
に接続される待機ノードにアクセス要求を送信する第2
の送信手段を備えたことを特徴とする請求項7に記載の
処理装置。
8. When the determining means determines that access is not possible, access is made to the plurality of databases connected to the plurality of nodes and the standby node physically connected to the plurality of backup databases. Second to send request
8. The processing apparatus according to claim 7, further comprising a transmitting unit.
【請求項9】各々論理的に接続された通信路を介して複
数のデータベースのうちの互いに異なるデータベースに
アクセスすると共に、他のノードがアクセスするデータ
ベースに対応したバックアップ用のデータベースにアク
セスする複数のノードと、 前記複数のノードに対してアクセス要求を送信するアク
セス要求ノードとを有する分散データベースにおけるデ
ータベースアクセス方法であって、 前記アクセス要求ノードは、 前記複数のノードのうちの何れかのノードに対してアク
セス要求を送信する送信ステップと、 前記送信ステップにより送信されたアクセス要求に対応
したノードがデータベースにアクセス可能か否かを判断
する判断ステップと、 前記判断ステップによってアクセス不可能と判断された
場合に、当該アクセス不可能なノードがアクセスすべき
データベースに対応するバックアップ用のデータベース
にアクセスするノードに対して、アクセス要求を送信す
る送信ステップとを含むことを特徴とするデータベース
アクセス方法。
9. A plurality of databases that access different ones of the plurality of databases via communication paths that are logically connected to each other and access a backup database corresponding to a database accessed by another node. A database access method in a distributed database, comprising: a node; and an access request node that transmits an access request to the plurality of nodes, wherein the access request node is for any one of the plurality of nodes. A transmitting step of transmitting an access request through the transmitting step; a determining step of determining whether a node corresponding to the access request transmitted by the transmitting step is capable of accessing the database; and a case in which the determining step determines that access is not possible. Inaccessible Database access method node to the node to access the database for backup corresponds to the database to be accessed, characterized in that it comprises a transmission step of transmitting an access request.
JP10301871A 1998-10-23 1998-10-23 Decentralized data base system, processor, and data base access method Pending JP2000132441A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10301871A JP2000132441A (en) 1998-10-23 1998-10-23 Decentralized data base system, processor, and data base access method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10301871A JP2000132441A (en) 1998-10-23 1998-10-23 Decentralized data base system, processor, and data base access method

Publications (1)

Publication Number Publication Date
JP2000132441A true JP2000132441A (en) 2000-05-12

Family

ID=17902163

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10301871A Pending JP2000132441A (en) 1998-10-23 1998-10-23 Decentralized data base system, processor, and data base access method

Country Status (1)

Country Link
JP (1) JP2000132441A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003022209A (en) * 2001-07-05 2003-01-24 Nri & Ncc Co Ltd Distributed server system
JP2008525914A (en) * 2004-12-30 2008-07-17 イーエムシー コーポレイション System and method for dynamic data backup
KR101490090B1 (en) * 2005-12-29 2015-02-04 아마존 테크놀로지스, 인크. Distributed replica storage system with web services interface
JPWO2015025384A1 (en) * 2013-08-21 2017-03-02 株式会社東芝 Database system, program, and data processing method
US10162875B2 (en) 2013-08-27 2018-12-25 Kabushiki Kaisha Toshiba Database system including a plurality of nodes
CN113609104A (en) * 2021-08-19 2021-11-05 京东科技信息技术有限公司 Partial fault key value pair distributed storage system access method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63108437A (en) * 1986-10-25 1988-05-13 Nec Corp Trouble reporting system in hot standby system
JPH04299743A (en) * 1991-03-28 1992-10-22 Omron Corp Computer network system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63108437A (en) * 1986-10-25 1988-05-13 Nec Corp Trouble reporting system in hot standby system
JPH04299743A (en) * 1991-03-28 1992-10-22 Omron Corp Computer network system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003022209A (en) * 2001-07-05 2003-01-24 Nri & Ncc Co Ltd Distributed server system
JP2008525914A (en) * 2004-12-30 2008-07-17 イーエムシー コーポレイション System and method for dynamic data backup
JP4705649B2 (en) * 2004-12-30 2011-06-22 イーエムシー コーポレイション System and method for dynamic data backup
KR101490090B1 (en) * 2005-12-29 2015-02-04 아마존 테크놀로지스, 인크. Distributed replica storage system with web services interface
JPWO2015025384A1 (en) * 2013-08-21 2017-03-02 株式会社東芝 Database system, program, and data processing method
US10685041B2 (en) 2013-08-21 2020-06-16 Kabushiki Kaisha Toshiba Database system, computer program product, and data processing method
US10162875B2 (en) 2013-08-27 2018-12-25 Kabushiki Kaisha Toshiba Database system including a plurality of nodes
CN113609104A (en) * 2021-08-19 2021-11-05 京东科技信息技术有限公司 Partial fault key value pair distributed storage system access method and device
CN113609104B (en) * 2021-08-19 2023-11-03 京东科技信息技术有限公司 Method and device for accessing distributed storage system by key value of partial fault

Similar Documents

Publication Publication Date Title
WO2019085875A1 (en) Configuration modification method for storage cluster, storage cluster and computer system
US5812748A (en) Method for improving recovery performance from hardware and software errors in a fault-tolerant computer system
US7260625B2 (en) Data center system and method for controlling the same
EP0988596B1 (en) Method and system for recovery in a partitioned shared nothing database system using virtual shared disks
US7673106B2 (en) Computer system, management method and storage network system
EP2224341B1 (en) Node system, server switching method, server device, and data transfer method
US8032786B2 (en) Information-processing equipment and system therefor with switching control for switchover operation
WO2002077818A1 (en) Server duplexing method and duplexed server system
EP1214663B1 (en) Scalable file server with highly available pairs
JP3887130B2 (en) High availability computer system and data backup method in the same system
JP2000132441A (en) Decentralized data base system, processor, and data base access method
WO1997049034A1 (en) Job taking-over system
JPH11224207A (en) Computer constituting multi-cluster system
JP2001109642A (en) Cluster system and data copying method therefor
JP2002149459A (en) Redundant database management and retrieval system
JP2006058960A (en) Synchronization method and system in redundant configuration server system
CN115185747A (en) Four-control storage data access method
JPH09305558A (en) Data base server for duplex system
JPH08185330A (en) Method for switching redundant computer system
JP2001244977A (en) Device, system and method for data transfer and storage medium
JPH04299435A (en) Data base equivalent system
JPH0993244A (en) Multiple system
JPH11312111A (en) Method for restoring data base and data base management system thereof
JPH09305494A (en) Data transfer control circuit for extended storage device
JP2000148523A (en) Duplex memory device and method for switching memory