JPS63113645A - Repeating processing system for decentralized data base system - Google Patents

Repeating processing system for decentralized data base system

Info

Publication number
JPS63113645A
JPS63113645A JP61259134A JP25913486A JPS63113645A JP S63113645 A JPS63113645 A JP S63113645A JP 61259134 A JP61259134 A JP 61259134A JP 25913486 A JP25913486 A JP 25913486A JP S63113645 A JPS63113645 A JP S63113645A
Authority
JP
Japan
Prior art keywords
node
communication line
database
nodes
distributed
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
JP61259134A
Other languages
Japanese (ja)
Inventor
Kuniharu Moriyoshi
森吉 国治
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP61259134A priority Critical patent/JPS63113645A/en
Publication of JPS63113645A publication Critical patent/JPS63113645A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve flexibility by allowing a decentralized data base control part to transmits protocol forth and back by using a preliminary communication line based on previously stored data when recognizing the use of a communication line which is used preferentially. CONSTITUTION:Data on the communication line which connects respective nodes 1-1-1-3 directly and is used with top priority when the protocol is transmitted forth to and back from the nodes and data on the preliminary communication line that connects nodes which are not relative directly to the transmission of the protocol as repeating nodes and is used when said communication line is not used are stored previously. Then, when a decentralized data base control part 5 recognizes that the communication line which is used most preferentially can not be used, the preliminary communication line is used on the basis of the data to transmit the protocol. Consequently, the flexibility of the processing system can be improved.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、データベースを複数のノードに分散させて
いる分散データベースシステムの中継処理方式に関する
ものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a relay processing method for a distributed database system in which a database is distributed to a plurality of nodes.

[従来の技術] 第4図は、一般的な分散データベースシステムの構成を
示した図であり、図において、(1−1)〜(1−3)
はノード、(2−1)〜(2−3)は各ノードで実行さ
れる応用プログラム、(3−1)〜(3−3)は各ノー
ドに分散配置されているデータベース、(4−1)〜(
4−3)は各ノード間を結ぶ通信回線、すなわち通信パ
スである。上述したごとき構成の分散データシステムに
おいて、例えばノード(1−1)の応用プログラム(2
−1)がノード(1−2)のデータベース(3〜2)を
利用する場合は、まずノート(1−1)がノード(1−
2)に対する通信パス(4−1)を確立し、次いで、ノ
ード(1−1)とノード(1−2)間でノード(1−1
)がノード(1−2)のデータベースをアクセスするた
めのプロトコル送受信が行われる。
[Prior Art] Fig. 4 is a diagram showing the configuration of a general distributed database system, and in the figure, (1-1) to (1-3)
are nodes, (2-1) to (2-3) are application programs executed on each node, (3-1) to (3-3) are databases distributed on each node, and (4-1) are application programs executed on each node. )~(
4-3) is a communication line connecting each node, that is, a communication path. In the distributed data system configured as described above, for example, the application program (2) of the node (1-1)
-1) uses the database (3-2) of node (1-2), first the notebook (1-1) uses the database (3-2) of node (1-2).
2) is established, and then the communication path (4-1) is established between the node (1-1) and the node (1-2).
) performs protocol transmission and reception for accessing the database of node (1-2).

上述した分散データベースシステムにおける一連の処理
動作について、更に第5図にて詳細に説明する。
A series of processing operations in the above-mentioned distributed database system will be further explained in detail with reference to FIG.

処理要求元ノード(1−1)にて実行された応用プログ
ラム(2−1)からのデータベース操作命令の発行によ
ってデータベースの存在するノード(1−2)が指定さ
れると、上記要求元ノード(1−1)の分散データベー
ス制御部(5)は、指定ノード、つまりデータベースが
配置されているノード(1−2)との通信パス(4)を
確立した後、上記データベース操作命令に対応するプロ
トコルを、上記ノード(1−2)へ送信する。次いで上
記ノード(1−2)では、このノード(1−2)の分散
データベース制御部(5)が上記ノード(1−1)より
受は取ったデータベース操作命令に対するプロトコルを
データベース処理部(6)へ受は渡し、データベース(
3)に対するアクセスが行われる。
When the node (1-2) where a database exists is specified by issuing a database operation command from the application program (2-1) executed at the processing requesting node (1-1), the requesting node (1-1) After establishing a communication path (4) with the specified node, that is, the node (1-2) where the database is located, the distributed database control unit (5) of 1-1) executes a protocol corresponding to the database operation command. is transmitted to the node (1-2). Next, in the node (1-2), the distributed database control unit (5) of this node (1-2) transmits the protocol for the database operation command received from the node (1-1) to the database processing unit (6). Transfer the payment to the database (
3) is accessed.

[発明が解決しようとする問題点コ 従来の分散データベースシステムにおける中継処理方式
は、以上のように構成されていたので。
[Problems to be Solved by the Invention] The relay processing method in the conventional distributed database system was configured as described above.

ノード(1−1)とノード(1−2)とを結ぶ通信パス
(4)がノード(1−1)における応用プログラム(2
−1)あるいは上記ノード(1−1)における別のプロ
グラムによって使用されている場合には、次いで起動さ
れた上記ノード(1−1)の応用プログラム(2−i)
によっては、ノード(1−2)に配置されている上記デ
ータベース(3)をアクセスできないことになる。そこ
でこのノード(1−1)の応用プログラム(2−i)で
ノード(1−2)のデータベース(3)をアクセスする
には。
The communication path (4) connecting the node (1-1) and the node (1-2) is the application program (2) in the node (1-1).
-1) or if it is being used by another program in the node (1-1), the application program (2-i) of the node (1-1) that is subsequently started;
In some cases, the database (3) located in the node (1-2) cannot be accessed. Therefore, in order to access the database (3) of the node (1-2) using the application program (2-i) of this node (1-1).

通信パス(4)が上記応用プログラム(2−1)によっ
て使用されているか否かを確認する必要があるとともに
、上記通信パス(4)が未使用であるとき以外には上記
データベース(3)のアクセスが実行できないという問
題点があった。
It is necessary to check whether the communication path (4) is being used by the application program (2-1), and to check whether the communication path (4) is used by the database (3) except when the communication path (4) is not used. There was a problem that access could not be executed.

この発明は上記のような問題点を解消するためになされ
たもので、データベースの処理要求元ノードと、このノ
ードからの処理要求を受けてデータベースを提供するノ
ードとを直接結んでいる通信パスが既に別のプログラム
にて使用されているか、あるい使用できないときにも、
上記2つのノード間に、これら2つのノード間を中継す
る中継ノードを設定することにより、上記ノード間でデ
ータベース処理を行なうことが可能な分散データベース
システムを得ることを目的とする。
This invention was made in order to solve the above-mentioned problems, and is based on a communication path that directly connects a database processing request source node and a node that receives a processing request from this node and provides the database. Even if it is already in use by another program or cannot be used,
The object of the present invention is to obtain a distributed database system that can perform database processing between the two nodes by setting up a relay node that relays between the two nodes.

[問題点を解決するための手段] この発明に係る分散データベースシステムの中継処理方
式は、各々のノードに、上記各々のノード間にてプロト
コルの授受を行なうに際して最も優先的に使用される上
記各々のノード間を直接に接続している通信回線に関す
るデータと、この通信回線が使用できないときに使用さ
れるプロトコルとの授受とは直接関係のないノードを中
継ノードとして上記各々のノード間を接続する予備的な
通信回線に関するデータとを予め記憶させておき、分散
データベース制御部が上記量も優先的に使用される通信
回線の使用ができないことを認識したときに上記データ
に基づいて上記予備的な通信回線を使用してプロトコル
の授受を行なうようにしたことを特徴とするものである
[Means for Solving the Problems] The relay processing method of the distributed database system according to the present invention provides each node with the above-mentioned methods that are used most preferentially when exchanging protocols between the above-mentioned respective nodes. A node that is not directly related to the exchange of data regarding the communication line that directly connects the nodes and the protocol used when this communication line is unavailable is used as a relay node to connect the above nodes. Data regarding the preliminary communication line is stored in advance, and when the distributed database control unit recognizes that the communication line that is to be used preferentially cannot be used, the data regarding the preliminary communication line is stored in advance based on the above data. This system is characterized in that protocols are exchanged using a communication line.

[作 用コ この発明における分散データベースシステムの中継処理
方式は、分散データベース制御部が最も優先的に使用さ
れる通信回線の使用ができないことを認識したときに、
予め記憶させておいたデータに基づいて予備的な通信回
線を使用し、プロトコルの授受を行なうので、処理方式
の柔軟性を向上させる。
[Operation] The relay processing method of the distributed database system in this invention is such that when the distributed database control unit recognizes that the communication line that is used most preferentially cannot be used,
Since protocols are exchanged using a preliminary communication line based on pre-stored data, the flexibility of the processing method is improved.

[実施例コ 以下、この発明の一実施例を図し二ついて説明する。第
1図において、 (1−1)〜(1−3)はノード、(
2−1)〜(2−i)はノード(1−1)で実行される
応用プログラム、(3)はノード(1−2)に配置され
ているデータベース、(4−1)〜(4−3)は各ノー
ド間を移ぶ通信回線すなわち通信パス、(5)は各ノー
トに存在する分散データベース制御部、(6)は白ノー
ドつまりノード(1−2)に対するデータベース及びア
クセス要求を処理するデータベース処理部、(7−1)
〜(7−3)は各ノードに存在する自ノード情報テーブ
ル、(8−1) (8−3)は各ノードに存在する分散
制御テーブルである。自ノード情報テーブル(7−1)
〜(7−3)と分散制御テーブル(8−1)(8−3)
は分散データベース制御部(5)により参照されるテー
ブルである。自ノード情報テーブル(7−1)〜(7−
3)には自ノード名が定義されている。また1分散制御
テーブル(8−1) (8−3)は複数の要素で構成さ
れていて、各構素は他ノード名、当該他ノードと自ノー
ド間を結ぶ正規の通信パス名、及び自ノードと中継ノー
ド間を結ぶ通信パス名で構成されている。第1図の実施
例の構成においては、ノード(1−1)がデータベース
の処理要求元ノードであり、ノード(1−2)がデータ
ベースを提供するノードであり、ノード(1−3)がノ
ード(1−1)とノード(1−2)との間に設定された
中継ノードである。
[Embodiment] Hereinafter, one embodiment of the present invention will be explained with reference to two drawings. In Figure 1, (1-1) to (1-3) are nodes, (
2-1) to (2-i) are application programs executed on node (1-1), (3) is a database located in node (1-2), and (4-1) to (4- 3) is a communication line or communication path that moves between each node, (5) is a distributed database control unit that exists in each node, and (6) is a white node that processes database and access requests for nodes (1-2). Database processing section, (7-1)
-(7-3) are self-node information tables existing in each node, and (8-1) and (8-3) are distributed control tables existing in each node. Own node information table (7-1)
~ (7-3) and distributed control table (8-1) (8-3)
is a table referenced by the distributed database control unit (5). Own node information table (7-1) to (7-
3) defines the own node name. In addition, one distributed control table (8-1) (8-3) is composed of multiple elements, and each element is the other node name, the regular communication path name connecting the other node and the own node, and the own It consists of a communication path name that connects a node and a relay node. In the configuration of the embodiment shown in FIG. 1, a node (1-1) is a database processing requesting node, a node (1-2) is a node providing a database, and a node (1-3) is a node This is a relay node set between node (1-1) and node (1-2).

次にこの発明の一実施例に従う分散データベースシステ
ムの動作について分散データベース制御部(5)の動作
を示す第2図のフローチャートを参照しながら説明する
。まずノード(1−1)の応用プログラム(2−1)が
ノード(1−2)のデータベース(3)をアクラスする
ため1分散データベース制御部(5)に対してデータベ
ース操作命令を発行する(ステップ101)。この応用
プログラム(2−1)からの要求の場合、ノード(1−
1)とノード(1−2)を結ぶ正規の通信パス(4−1
)を確立して、データベースアクセス用のプロトコルを
ノード(1−1)と(1−2)間で送受信できる。次い
でノード(1−1)の応用プログラム(2−i)がノー
ド(1−2)のデータベース(3)をアクセスするため
、分散データベース制御部(5)に対して、データベー
ス操作命令を発行すると(ステップ102)、分散デー
タベース制御部(5)は分散制御テーブル(8−1)よ
り指定の他ノード名(1−2)に対応する正規通信パス
名(4−1)を得る(ステップ104)。
Next, the operation of the distributed database system according to an embodiment of the present invention will be explained with reference to the flowchart of FIG. 2 showing the operation of the distributed database control section (5). First, the application program (2-1) of the node (1-1) issues a database operation command to the distributed database control unit (5) in order to access the database (3) of the node (1-2) (step 101). In the case of a request from this application program (2-1), the node (1-
1) and the node (1-2).
) can be established to transmit and receive protocols for database access between nodes (1-1) and (1-2). Next, when the application program (2-i) of the node (1-1) issues a database operation command to the distributed database control unit (5) in order to access the database (3) of the node (1-2), ( Step 102), the distributed database control unit (5) obtains the regular communication path name (4-1) corresponding to the specified other node name (1-2) from the distributed control table (8-1) (Step 104).

ところが、当該通信パス(4−1)は、応用プログラム
(2−1)で既に使用中のため(ステップ1o5)、分
散データベース制御部(5)は分散制御テーブル(g−
i)より他ノード名に対応する中継ノード通信パス名を
得る(ステップ106)。このノード(1−1)とノー
ド(1−3)を結ぶ中継ノード通信パス(4−2)を確
立して(ステップ107)、ノード(1−1)とノード
(1−3)間においてデータベースアクセス用のプロト
コル送受信が開始される(ステップ108) 、中継ノ
ード(1−3)においては、同じく分散データベース制
御部(5)が作動し、分散制御テーブル(8−3)より
指定のノード (1−2)に対応する通信パス名(4−
3)を得てノード(1−1)から受信したデータベース
アクセス用のプロトコルをノード(1−2)へ送信する
。ノート(1−2)においても、分散データベース制御
部(5)が作動するが(ステップ101)、ノード(1
−3)から受信したプロトコル内の指定ノード名と自ノ
ード名が一致しているため(ステップ102)、データ
ベース処理部(6)に対してデータベース(3)のアク
セス要求を行う(ステップ103)。このようにして各
ノードの分散データ制御部の制御により、処理要求元で
あるノード(1−1)からのデータベースアクセス用の
プロトコルが中継ノード(1−3)を経由してデータベ
ースを提供するノード(1−2)へ伝達される。
However, since the communication path (4-1) is already in use by the application program (2-1) (step 1o5), the distributed database control unit (5) uses the distributed control table (g-
From i), the relay node communication path name corresponding to the other node name is obtained (step 106). A relay node communication path (4-2) connecting this node (1-1) and node (1-3) is established (step 107), and a database is established between node (1-1) and node (1-3). Transmission and reception of the access protocol is started (step 108). In the relay node (1-3), the distributed database control unit (5) also operates, and the designated node (1) is activated from the distributed control table (8-3). -2) Communication path name (4-
3) and transmits the database access protocol received from node (1-1) to node (1-2). The distributed database control unit (5) also operates in the node (1-2) (step 101);
Since the specified node name in the protocol received from -3) matches the own node name (step 102), a request is made to the database processing unit (6) to access the database (3) (step 103). In this way, under the control of the distributed data control unit of each node, the database access protocol from the processing requesting node (1-1) is transferred to the node providing the database via the relay node (1-3). (1-2).

また1本実施例では通信回線によるネットワーク構成シ
ステムへの適用例を示したが、ローカルエリアネットワ
ーク構成システムあるいはそれらの複合化ネットワーク
システムにおいても同様の効果を奏する。さらに、本発
明の分散データベース制御部の制御方式によれば、第3
図に示すようにデータベースの処理要求元のノード(1
−1)とデータベースを提供するノード(1−2)の間
に複数の中継ノード(10−1) (10−2) (1
0−i)を設定シテ、データベースアクセス用のプロト
コルを多段に構成し、伝達することもできる。
Further, in this embodiment, an example of application to a network configuration system using communication lines has been shown, but the same effect can be achieved in a local area network configuration system or a composite network system thereof. Furthermore, according to the control method of the distributed database control unit of the present invention, the third
As shown in the figure, the database processing request source node (1
-1) and the node (1-2) providing the database, there are multiple relay nodes (10-1) (10-2) (1
It is also possible to configure and transmit a protocol for database access in multiple stages.

[発明の効果コ 以上のようにこの発明によれば、分散データベース制御
部は、最も優先的に使用される通信回線の使用ができな
いことを認識したときに予め記憶させておいたデータに
基づいて予備的な通信回線を使用してプロトコルの授受
を行なうようにしたので、ネットワークを有効利用した
柔軟性の高い分散データベースシステムを構築できると
いう効果がある。
[Effects of the Invention] As described above, according to the present invention, when the distributed database control unit recognizes that the most preferentially used communication line cannot be used, it Since the protocol is exchanged using a backup communication line, it is possible to construct a highly flexible distributed database system that makes effective use of the network.

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

第1図は本発明の一実施例による分散データベースシス
テムを示す概略構成図、第2図本発明の一実施例である
分散データベースM御部の動作を示すフローチャート、
第3図は、本発明の他の実施例による分散データベース
システムを示す概略構成図、第4図は一般の分散データ
ベースシステムを示す概略構成図、第5図は分散データ
ベースシステムにおける従来の分散処理方式を示す概略
構成図である。 図において、(1−1)〜(1−3)はノード、(2−
1)〜(2−i)は応用プログラム、(3−1)〜(3
−3)はデータベース、(4−1)〜(4−3)は通信
パス、(5)は分散データベース処理部、(7−1)〜
(7−3)は自ノード情報テーブル、(8−1) (8
−3)は分散制御テーブルである。 なお、図中同一符号は同−或は相当部分を示す。
FIG. 1 is a schematic configuration diagram showing a distributed database system according to an embodiment of the present invention, FIG. 2 is a flowchart showing the operation of a distributed database M control section according to an embodiment of the present invention,
FIG. 3 is a schematic block diagram showing a distributed database system according to another embodiment of the present invention, FIG. 4 is a schematic block diagram showing a general distributed database system, and FIG. 5 is a conventional distributed processing method in a distributed database system. FIG. In the figure, (1-1) to (1-3) are nodes, (2-
1) to (2-i) are application programs, (3-1) to (3
-3) is a database, (4-1) to (4-3) are communication paths, (5) is a distributed database processing unit, (7-1) to
(7-3) is the own node information table, (8-1) (8
-3) is a distributed control table. Note that the same reference numerals in the figures indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 応用プログラムとこの応用プログラム中のデータベース
操作命令に対応するデータベースアクセス用のプロトコ
ルを送出する分散データベース制御部と、アクセス対象
となるデータベースとを具備した複数のノードと、上記
複数のノード間を接続する通信回線とを有する分散デー
タベースシステムにおいて、上記各々のノードに、上記
各々のノード間にてプロトコルの授受を行なうに際して
最も優先的に使用される上記各々のノード間を直接に接
続している通信回路に関するデータと、この通信回線が
使用できないときに使用されるプロトコルの授受とは直
接関係のないノードを中継ノードとして上記各々のノー
ド間を接続する予備的な通信回線に関するデータとを予
め記憶させとおき、上記分散データベース制御部が上記
最も優先的に使用される通信回線の使用ができないこと
を認識したときに上記データに基づいて上記予備的な通
信回線を使用してプロトコルの授受を行なうようにした
ことを特徴とする分散データベースシステムの中継処理
方式。
Connecting a plurality of nodes including an application program, a distributed database control unit that sends out a database access protocol corresponding to a database operation command in the application program, and a database to be accessed, and the plurality of nodes. In a distributed database system having a communication line, a communication circuit that directly connects each of the above nodes and is used most preferentially when exchanging protocols between each of the above nodes. and data regarding a preliminary communication line that connects each of the above nodes by using a node that is not directly related to the exchange of protocols used when this communication line is unavailable as a relay node. and when the distributed database control unit recognizes that the most preferentially used communication line cannot be used, the protocol is sent and received using the preliminary communication line based on the data. A relay processing method for a distributed database system that is characterized by the following.
JP61259134A 1986-10-30 1986-10-30 Repeating processing system for decentralized data base system Pending JPS63113645A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61259134A JPS63113645A (en) 1986-10-30 1986-10-30 Repeating processing system for decentralized data base system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61259134A JPS63113645A (en) 1986-10-30 1986-10-30 Repeating processing system for decentralized data base system

Publications (1)

Publication Number Publication Date
JPS63113645A true JPS63113645A (en) 1988-05-18

Family

ID=17329794

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61259134A Pending JPS63113645A (en) 1986-10-30 1986-10-30 Repeating processing system for decentralized data base system

Country Status (1)

Country Link
JP (1) JPS63113645A (en)

Similar Documents

Publication Publication Date Title
JPS63113645A (en) Repeating processing system for decentralized data base system
JPS61127251A (en) Subscriber protocol processing system
JPH0473178B2 (en)
JPS6374346A (en) Subscriber identification system
JPS62100854A (en) Communication system between host and terminal
CN109495462A (en) A kind of Dynamic link library data distribution formula system and its data interactive method
JPS63138834A (en) Call setting system
JP2687524B2 (en) Data link connection control method
JPH054040Y2 (en)
JPH06290127A (en) Computer system
JP2929995B2 (en) Asynchronous transfer mode network connection method for existing telephone network connection terminals
JP3082218B2 (en) Communication control device
JP2522847B2 (en) Programmable controller system
JPH057210A (en) Communication system
JPS63133204A (en) Interface for data transmission of sequencer
JP2001175522A (en) Method and system for exclusive control
JPS62117439A (en) Abnormality evading system
KR100953965B1 (en) Method for connecting loop of branch processor
JPS63279361A (en) Data pass-through system
JPH0314044A (en) Inter-program communication system
JPH0381852A (en) Connection control system
JPH05282225A (en) Intra-terminal data communication equipment
JPS63278161A (en) Secrecy protecting system for decentralized data base system
JPH041844A (en) Control system for function difference between decentralized processors
JPH0236016B2 (en)