JPH034339A - System for updating data base in distributed processing system - Google Patents
System for updating data base in distributed processing systemInfo
- Publication number
- JPH034339A JPH034339A JP1137432A JP13743289A JPH034339A JP H034339 A JPH034339 A JP H034339A JP 1137432 A JP1137432 A JP 1137432A JP 13743289 A JP13743289 A JP 13743289A JP H034339 A JPH034339 A JP H034339A
- Authority
- JP
- Japan
- Prior art keywords
- node
- journal
- database
- nodes
- update
- 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
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は、通信回線で相互接続された分散処理システム
における分散データベースの更新方式に係り、特に、各
ノードに対しデータを効率よく配置し管埋する分散処理
システムにおけるデータベース更新方式に関する。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a method for updating a distributed database in a distributed processing system interconnected by communication lines, and in particular, to efficiently allocate and manage data to each node. This paper relates to database update methods in distributed processing systems.
[従来の技術]
従来、分散処理システムにおいて、複数の計算機システ
ム(ノード)における分散データベースの同期更新(同
時的な更新)を行なう方式として、例えば、「日経コン
ピュータ、1988年5月23日号」(第101頁〜第
116頁、特に第114頁〜第115頁)に記載のよう
に、更新前後のファイル・イメージのジャーナルを、各
データ処理システム(各々のノード)で取得する方式が
知られている。また、特開昭63−156258号公報
(第2頁)に記載のように、分散データベースシステム
のトランザクション処理において、トランザクションの
ログ(ジャーナル)を、各サイト(ノード)で取得し、
また、複数トランザクションについての間合せメツセー
ジおよび回答メツセージを一括して所要のサイトに送る
ことにより、メツセージ数を減少させる方式が知られて
いる。[Prior Art] Conventionally, in a distributed processing system, as a method for synchronously updating (simultaneously updating) a distributed database in multiple computer systems (nodes), for example, "Nikkei Computer, May 23, 1988 issue" has been proposed. As described in (pages 101 to 116, especially pages 114 to 115), there is a known method in which each data processing system (each node) acquires a journal of file images before and after update. ing. In addition, as described in Japanese Patent Application Laid-open No. 156258/1983 (page 2), in transaction processing of a distributed database system, transaction logs (journals) are acquired at each site (node),
Furthermore, a method is known in which the number of messages is reduced by sending interim messages and reply messages for multiple transactions all at once to a required site.
[発明が解決しようとする課題]
上記従来技術は、いずれも、ジャーナルを各ノードで取
得するようになっており、そのため以下に示すようにジ
ャーナル管理が複雑化する問題があった。[Problems to be Solved by the Invention] In all of the above-mentioned conventional techniques, a journal is acquired at each node, and as a result, journal management becomes complicated as described below.
すなわち、ワークステーションや小型計算機システムの
データベースと大型計算機システムとを含む分散処理シ
ステムでは、大型計算機システムで集中してジャーナル
管理を行なうことができない。That is, in a distributed processing system that includes a database of a workstation or small computer system and a large computer system, journal management cannot be performed centrally in the large computer system.
障害が発生した場合、該障害となったデータベースの管
理光(該データベースが付いている計算機システム)の
計算機システム単位tこジャーナルが分散しているので
、データベースの回復方法が複雑である。When a failure occurs, the database recovery method is complicated because the management light (computer system to which the database is attached) of the failed database is distributed among the computer system units and journals.
ワークステーションや小型計算機システムでそれぞれジ
ャーナルを取得できるようにするために、それらワーク
ステーションや小型計算機システム用のソフトウェア構
成・が複雑になり、処理性能や媒体利用効率が低下する
問題がある。In order to enable each workstation or small computer system to acquire journals, the software configuration for those workstations or small computer systems becomes complicated, resulting in a problem of reduced processing performance and medium usage efficiency.
従って、本発明の目的は、上記従来技術の間層点を解消
し、ジャーナルを集中管理できるようにして、システム
全体の管理を一元化し、処理性能を向上すると共に、障
害時の回復処理を迅速化し、また、媒体の利用効率を向
上できるようにした分散処理システムにおけるデータベ
ース更新方式を提供することにある。Therefore, an object of the present invention is to eliminate the above-mentioned problems in the prior art, enable centralized management of journals, unify management of the entire system, improve processing performance, and speed up recovery processing in the event of a failure. The object of the present invention is to provide a database update method in a distributed processing system that can improve the usage efficiency of media.
[課題を解決するための手段]
上記目的を達成するため、本発明の分散処理システムに
おけるデータベース更新方式は、それぞれデータベース
を有する複数のノードと、ノード間の通信手段と、任意
の1つのノードからの更新要求により複数のノードで同
期をとってデータベースを更新する手段とを備えたもの
において、特徴として、サーバ側ノードおよびクライア
ント側ノードのジャーナルを一個所の特定ノードで取得
する手段を具備する。すなわち、データベースを管理す
る個々のノード(クライアント側ノードおよびサーバ側
ノード)が1通信回線を通じて、個々のデータベースの
更新情報を一個所の特定ノードに送り、それらの更新情
報のジャーナルを該特定ノードで集中して取得するよう
に構成したことを特徴とする。[Means for Solving the Problems] In order to achieve the above object, the database update method in the distributed processing system of the present invention includes a plurality of nodes each having a database, communication means between the nodes, and an update method from any one node. The system is equipped with a means for synchronizing and updating a database in a plurality of nodes in response to an update request, and is characterized by having means for acquiring journals of a server-side node and a client-side node at one specific node. In other words, each node (client side node and server side node) that manages a database sends update information of each database to one specific node through one communication line, and the journal of the update information is stored at that specific node. It is characterized by being configured so that it can be acquired in a concentrated manner.
ここで、クライアント側ノードとは、利用者によりトラ
ンザクション入力のあったノードをいい、サーバ側ノー
ドとは、要求に応じデータベースを提供するノードをい
う、勿論、クライアントがデータベース提供を兼ねるこ
ともあり、また、特定ノードがクライアントまたはサー
バを兼ねることもある。Here, the client-side node refers to a node where a transaction is input by a user, and the server-side node refers to a node that provides a database in response to a request.Of course, the client may also serve as a database provider. Further, a specific node may also serve as a client or a server.
あるノードのデータベースに障害が発生した際に、この
障害の回復指示は、前記−個所の特定ノードにより集中
的に実行される。When a failure occurs in the database of a certain node, recovery instructions for this failure are centrally executed by the specified node.
また、前記特定ノードに集中的に設けたジャーナル取得
手段とは別に、個々のノード(サーバ側ノードやクライ
アント側ノード)に、セキユア状態のトランザクション
のみのジャーナルを取得する手段を付加することができ
る。このため、該当トランザクションのコミット状態を
他のノードに送信後、ジャーナルとして取得した情報を
不要化する(不要となった旧履歴情報を抹消して別の新
しい履歴情報を格納できるようにする)。Furthermore, in addition to the journal acquisition means provided centrally in the specific node, means for acquiring journals of only transactions in the secure state can be added to individual nodes (server-side nodes and client-side nodes). Therefore, after transmitting the commit state of the transaction to other nodes, the information acquired as a journal is made unnecessary (old history information that is no longer needed is deleted so that new history information can be stored).
[作用] 上記構成に基づく作用を説明する。[Effect] The effect based on the above configuration will be explained.
本発明によれば、複数のノード(サーバ側およびクライ
アント側)におけるデータベースの更新ジャーナルを一
個所の特定ノードで取得するようにしたので、ジャーナ
ル管理が容易になり、処理性能が向上する。このことを
、クライアント側ノードが特定ノードになる場合とサー
バ側ノードが特定ノードになる場合について、以下に説
明する。According to the present invention, since update journals of databases in a plurality of nodes (server side and client side) are acquired at one specific node, journal management is facilitated and processing performance is improved. This will be explained below regarding the case where the client side node becomes the specific node and the case where the server side node becomes the specific node.
クライアント側のノードでジャーナルを一括して取得す
るには、サーバ側へのDB更新要求に対する応答情報と
してDB更新情報をクライアント側へ送信して、送信さ
れた情報をジャーナルに取得する(第2図の実施例)。To acquire journals all at once on a client side node, DB update information is sent to the client side as response information to a DB update request to the server side, and the sent information is acquired in the journal (Figure 2). example).
サーバ側のノードでジャーナルを一括して取得するには
、コミット保証の送信をクライアント側で行なった際に
クライアント側のDB更新情報をサーバ側に同時に送信
して、送信された情報をジャーナルに取得する(第3図
の実施例)。To acquire journals all at once on a server-side node, when a commit guarantee is sent on the client side, DB update information on the client side is simultaneously sent to the server side, and the sent information is acquired in the journal. (Example shown in Figure 3).
それによって、DBの更新ジャーナルは一個所で取得さ
れる。As a result, the DB update journal is acquired in one place.
次に、データベース障害時の回復指示を一個所で行なう
には、ジャーナルを取得したノードからDBのバックア
ップからの回復指示を行ない、DBバックアップ後に取
得したジャーナルのうち。Next, in order to issue recovery instructions in the event of a database failure in one place, the node that acquired the journal issues a recovery instruction from the DB backup, and one of the journals acquired after the DB backup.
障害のあったDBのジャーナル情報を障害DBの管理ノ
ードに対して送信して回復するように動作する。それに
よって、回復指示は一個所で行なえる(第7図の実施例
)。It operates to recover by sending the journal information of the failed DB to the management node of the failed DB. Thereby, recovery instructions can be given in one place (the embodiment shown in FIG. 7).
クライアント側、サーバ側で処理するトランザクション
のみ取得する履歴情報の格納部を設けて、コミット時に
DBの更新イメージとコミットを決定したことを示すジ
ャーナルを取得した後にコミット処理を行ない、コミッ
ト状態を他のノードに送信後、(送信してしまえば、こ
の格納部の情報は不要となるので、)ジャーナルとして
取得した情報の上から別のトラ・ンザクションの情報を
書き込み可能とすることで、不要化する。A history information storage section is provided to acquire only the transactions processed on the client side and server side, and after acquiring the DB update image and the journal indicating that the commit has been decided at the time of commit, the commit process is performed and the commit state is transferred to other After sending the information to the node, it becomes unnecessary by making it possible to write the information of another transaction over the information obtained as a journal (because once the information is sent, the information in this storage is no longer needed) .
これによって仕掛は中(セキユア状態)のトランザクシ
ョンについてのみ、ジャーナルを持つことが可能になる
。This allows the in-process to have a journal only for medium (secure) transactions.
[実施例] 以下に1本発明の実施例を図面によって説明する。[Example] An embodiment of the present invention will be described below with reference to the drawings.
第1図は1本発明の一実施例のシステム構成図である0
本実施例で、分散処理システムは、3つのノード11,
12.および13、すなわち、計算機システム#I、#
II、および#■を含み、各ノード間に通信回線117
,118,127を設けている。ノード11,12.1
3には、それぞれ、データベース(DB) 115.1
25.135が接続されると共に、端末システム116
,126゜136が接続され、それによって、本システ
ムは各端末システムより入力されたトランザクションの
処理を各ノードで行なうデータ処理システムを構成して
いる。FIG. 1 is a system configuration diagram of an embodiment of the present invention.
In this embodiment, the distributed processing system includes three nodes 11,
12. and 13, i.e. computer system #I, #
II, and #■, and a communication line 117 between each node.
, 118, 127 are provided. Node 11, 12.1
3 each has a database (DB) 115.1
25.135 is connected and the terminal system 116
, 126 and 136 are connected, thereby forming a data processing system in which each node processes transactions input from each terminal system.
本実施例の特徴として、これらのノードのうちの特定の
1つ(この場合、ノード11)のみに、集中的にジャー
ナル格納部114およびDBバックアップ格納部119
を設ける。各ノードで発生したジャーナルは、計算機シ
ステム#■ (ノード11)で取得され、格納部114
に格納される。As a feature of this embodiment, the journal storage unit 114 and the DB backup storage unit 119 are centrally stored only in a specific one of these nodes (in this case, node 11).
will be established. The journal generated at each node is acquired by the computer system #■ (node 11) and stored in the storage unit 114.
is stored in
DBバックアップ格納部119は、計算機システム31
(ノード11)のデータベース115だけでなく、計算
機システム#II、 am (ノード12゜13)のデ
ータベース125,136のDBバックアップ情報も格
納するようになっている。なお、DBバックアップデー
タは、一般に、トランザクション処理開始以前(通常は
、当日のオンライントランザクション処理の開始前、又
は前日のデータ処理終了後)に、オペレータにより取得
される。The DB backup storage unit 119 is the computer system 31
It is designed to store not only the database 115 of (node 11) but also DB backup information of the databases 125 and 136 of computer system #II, am (node 12-13). Note that the DB backup data is generally acquired by the operator before the start of transaction processing (usually before the start of the current day's online transaction processing or after the end of the previous day's data processing).
ノード12および13には、仕掛は中のトランザクショ
ン(更新の途中のトランザクション、すなわち、セキユ
ア状態におけるトランザクション)に対してのみ、トラ
ンザクション履歴情報を取得するための、トランザクシ
ョン履歴格納部124および134を設ける・。なお、
ノード1におけるジャーナル格納部114は、トランザ
クション履歴格納部124,134と同様の機能を兼用
することができる。The nodes 12 and 13 are provided with transaction history storage units 124 and 134 for acquiring transaction history information only for transactions in progress (transactions in the middle of updating, that is, transactions in a secure state). . In addition,
The journal storage unit 114 in the node 1 can also serve the same function as the transaction history storage units 124 and 134.
各ノード11.12,13には、オペレーティングシス
テム111,121,131が存在すると共に、トラン
ザクションの制御を行なうDB/DCプログラム112
,122,132と、各端末116,126,136か
らの入力メツセージに従い、自ノードや他ノードのデー
タベースの参照・更新を行なって、端末へ応答メツセー
ジを送信するアプリケーションプログラム(AP) 1
13゜123.133とが存在する。Each node 11, 12, 13 has an operating system 111, 121, 131, and a DB/DC program 112 that controls transactions.
, 122, 132 and each terminal 116, 126, 136, an application program (AP) 1 that references and updates the database of its own node and other nodes, and sends a response message to the terminal.
13°123.133 exists.
第2図は、第1図において、#■計算機システム11の
端末システム116から入力されたトランザクションに
よって、データベース115および125を更新する場
合の、DB/DCプログラム112および122の処理
例を示す流れ図である。端末116からの入力によって
、トランザクションは開始する(21)、AP113に
よる、ノード1のデータベースの更新要求後、このAP
113からノード2のデータベース更新要求があると、
ノード2 ヘD M L (Data Manipul
ationL anguage)が送信される(22)
、ノード2では、DML処理として、ノード2のDBの
更新処理をメモリ上で行なうと共に、ノード2のDBの
更新情報をノード1へ送信する(23)、ノード1は、
AP処理の終了時に、ノード2およびノード1のDB更
新ジャーナル、コミットを決定したことを示すジャーナ
ルを取得してDB115を更新しく24)、ノード2ヘ
コミツト送信をする(25)、ノード2は、ノード2の
DB125を更新してノード1ヘセキユア状態解消を送
信する(26)、ノード1は、セキニア状態解消受信後
、コミット完了を示すジャーナルを取得して(27)、
入力端末へ応答を返すなどしてトランザクション処理を
終了する(28)。ノード2は処理23と26の間はセ
キユア状態(29)であり、その間にシステムダウンし
た際にはノード1の指示によってシステム回復を行なう
。FIG. 2 is a flowchart showing an example of the processing of the DB/DC programs 112 and 122 when the databases 115 and 125 are updated by transactions input from the terminal system 116 of the #■ computer system 11 in FIG. be. The transaction is started (21) by input from the terminal 116. After the AP 113 requests to update the database of node 1, this AP
When there is a database update request for node 2 from 113,
D M L (Data Manipul
ationL anguage) is sent (22)
As a DML process, node 2 performs update processing of the DB of node 2 on the memory, and also sends update information of the DB of node 2 to node 1 (23).
At the end of the AP processing, acquire the DB update journals of node 2 and node 1, the journal indicating that the commit has been decided, and update the DB 115 (24), and send the commit to node 2 (25). Node 1 updates the DB 125 of Node 1 and sends the release of the secure state to node 1 (26). After receiving the release of the secure state, node 1 obtains a journal indicating completion of the commit (27).
The transaction processing is ended by returning a response to the input terminal (28). Node 2 is in a secure state (29) during processes 23 and 26, and if the system goes down during that time, it performs system recovery according to instructions from node 1.
第3図は第1図にお・いて、#■計算機システム12の
端末システム126から入力されたトランザクションに
よって、データベース125および115を更新する場
合の、DB/DCプログラム122および112の処理
例を示す流れ図である。FIG. 3 shows a processing example of the DB/DC programs 122 and 112 when the databases 125 and 115 in FIG. 1 are updated by transactions input from the terminal system 126 of the #■ computer system 12. This is a flowchart.
端末システム126からの入力によってトランザクショ
ンが開始する(30)、AP123によるノード2のD
B更新DML処理31は、メモリ上の処理で行なわれる
。該AP123からのノードIDB更新要求があると、
ノード1へ該要求のDMLを送信する(32)、ノード
1では、要求を受けると、メモリ上での処理を行ない(
33)、応答を返す、APの処理が終ると、ノード2は
コミット保証の送信を行ない(34)、同時にノード2
のDB更新情報を送信する(34)、ノード1は、ノー
ド1およびノード2のDB更新ジャーナルのコミットを
決定したことを示すジャーナルを取得して(35)、応
答を返す、ノード2は、DB125を更新(36)後、
コミット状態を送信しく37)、ノード1はコミット決
定を受信したことを示すジャーナルを取得後、DB11
5を更新して(38)、ノード2に応答を返す、ノード
2は、端末システム126に応答を返すなどして、トラ
ンザクションを終了する(39)。処理35と36の間
はセキユア状態であり、この間でダウンした場合に、ノ
ード2はノード1のジャーナル状態に従って回復する。A transaction is initiated (30) by input from terminal system 126, D of node 2 by AP 123.
The B update DML process 31 is performed in memory. When there is a node IDB update request from the AP 123,
Sends the DML of the request to node 1 (32). Upon receiving the request, node 1 performs processing in memory (
33), returns a response, and when the AP processing is completed, node 2 sends a commit guarantee (34), and at the same time node 2
(34), Node 1 obtains a journal indicating that it has decided to commit the DB update journals of Node 1 and Node 2 (35), and returns a response. After updating (36),
37), node 1 obtains a journal indicating that it has received a commit decision, and then sends the commit state to DB 11.
5 (38) and returns a response to node 2. Node 2 returns a response to terminal system 126, etc., and ends the transaction (39). There is a secure state between processes 35 and 36, and if node 2 goes down during this period, node 2 will recover according to the journal state of node 1.
第4図は、第1図において、#■計算機システム12の
端末システム126から入力されたトランザクションに
よりデータベース125および135を更新する場合の
、DB/DCプログラム122および132の処理例を
示す流れ図である。端末システム126からの入力によ
ってトランザクションが開始する(41)。AP123
からノード2のDB更新要求後、該APからノード゛3
のDB更新要求が発生すると、ノード3へDML送信を
行なう(42)、ノード3は、ノード2からの該要求に
よって、メモリ上の処理としてDBを更新してDB更新
情報をノード2へ送信する(43)。APの処理終了に
よってノード2のトランザクション履歴格納部124に
ノード2およびノード3のDB更新情報を取得し、DB
125の更新を行なうと共に、ノード1でジャーナルを
一元管理するためにノード1にノード2,3のDB更新
情報を連絡して、ノード1からジャーナル取得完了を待
つ処理を行なう(44)、ノード3ヘコミツト送信を行
ない(45)、ノード3のDBを更新する(46)。FIG. 4 is a flow chart showing a processing example of the DB/DC programs 122 and 132 when the databases 125 and 135 are updated by transactions input from the terminal system 126 of the #■ computer system 12 in FIG. . A transaction is initiated by input from terminal system 126 (41). AP123
After requesting the DB update of node 2 from
When a DB update request occurs, it sends a DML to node 3 (42). In response to the request from node 2, node 3 updates the DB as a process in memory and sends the DB update information to node 2. (43). Upon completion of the AP processing, the DB update information of nodes 2 and 3 is acquired in the transaction history storage unit 124 of node 2, and the DB
125, and also communicates the DB update information of nodes 2 and 3 to node 1 in order to centrally manage the journal on node 1, and waits for the completion of journal acquisition from node 1 (44), node 3 A commit transmission is performed (45), and the DB of node 3 is updated (46).
ノード2は、ノード3からの受信完了でトランザクショ
ン履歴の情報を不要化して(47)、トランザクション
履歴を別トランザクションで再使用を可能とする。(つ
まり、別の新しいトランザクション情報を重ね書きする
ことで、不要になった旧トランザクション情報を抹消す
る)。ノード1に全処理の終了を示すためにコミット完
了連絡を行ない(48)、端末システム126へ応答を
返して、トランザクション処理を終了する(49)。Upon completion of the reception from node 3, node 2 makes the transaction history information unnecessary (47), allowing the transaction history to be reused in another transaction. (In other words, old transaction information that is no longer needed is deleted by overwriting new transaction information.) A commit completion notification is sent to the node 1 to indicate the end of all processing (48), a response is returned to the terminal system 126, and the transaction processing is ended (49).
処理43から46の間はセキユア状態であり、その間で
ダウンした際はノード2のトランザクション履歴に取得
された状態に従ってシステム回復を行なう。Processes 43 to 46 are in a secure state, and if the node goes down during that time, the system is recovered according to the state acquired in the transaction history of node 2.
第5図は本発明による通信回線によって送信するデータ
ベースの更新情報例である。メッセージ長51は全体の
長さを示す。トランザクション状態52はDBを更新し
たトランザクションの状態を示すものであり、トランザ
クションの発生したノード(メツセージを入力した端末
システムの管理光ノード)のノード名521、そのノー
ドでトランザクションを一意的゛に識別するために番号
付けしたトランザクション識別子522、トランザクシ
ョンが処理のどの過程にあるかを示すコミット状態52
3、本トランザクションがアクセスしたDB数524よ
り成る。データベースの物理アドレス53は、ノード名
で、磁気ディスク装置の場合はボリューム名である。更
新位置、更新長54は、磁気ディスク装置のシリンダ番
号、トラック番号と更新長を示している。更新前イメー
ジ55はデータベースの更新前の情報であり、更新後イ
メージ56はデータベースの更新後の情報である。FIG. 5 is an example of database update information transmitted via a communication line according to the present invention. Message length 51 indicates the entire length. The transaction status 52 indicates the status of the transaction that updated the DB, and indicates the node name 521 of the node where the transaction occurred (the management optical node of the terminal system that input the message), which uniquely identifies the transaction at that node. A transaction identifier 522 numbered for each transaction, and a commit state 52 indicating which stage of processing the transaction is in.
3. Consists of 524 DBs accessed by this transaction. The physical address 53 of the database is a node name, and in the case of a magnetic disk device, a volume name. The update position and update length 54 indicate the cylinder number, track number, and update length of the magnetic disk device. The before-update image 55 is the information before the database is updated, and the after-update image 56 is the information after the database is updated.
第6図は本発明によるトランザクション履歴の情報例で
ある。全体のデータ長61とトランザクション状態62
は第5図の51と52に相当する。FIG. 6 is an example of transaction history information according to the present invention. Overall data length 61 and transaction status 62
correspond to 51 and 52 in FIG.
データベースの物理アドレス63は第5図の53に相当
する。更新位置、更新長64は第5図の54に相当する
。更新前イメージ65は第5図の55に相当する。更新
後イメージ66は第5図の66相当の情報である。The database physical address 63 corresponds to 53 in FIG. The update position and update length 64 correspond to 54 in FIG. The pre-update image 65 corresponds to 55 in FIG. The updated image 66 is information equivalent to 66 in FIG.
第7図は、第1図において本発明によるデータベース障
害時の回復指示を一個所で実行する実施例である0本実
施例では計算機システム1から他の計算機システム2,
3のデータベースの回復例を示している。DBの回復に
は通信回線117゜118を用いてファイル転送によっ
て行なう、DBバックアップ119を用いて回復指示(
71)をファイル転送する。DBバックアップ後のジャ
ーナル114を読み込み(72)、障害の発生している
DBに対するジャーナルか否か(73)、およびコミッ
ト完了したトランザクションか否か(74)のチエツク
後、ファイル転送によって更新後イメージに回復指示(
75)を行なう、最終に取得されたジャーナルまでの処
理完了(76)で、全処理が終了する。FIG. 7 shows an embodiment in which the recovery instructions in the event of a database failure according to the present invention are executed in one place in FIG.
3 shows an example of database recovery. DB recovery is performed by file transfer using communication lines 117 and 118, and recovery instructions (
71) file transfer. After reading the journal 114 after the DB backup (72) and checking whether it is a journal for the failed DB (73) and whether the transaction has been committed (74), it is transferred to the updated image by file transfer. Recovery instructions (
75), and the entire process ends when the process up to the last acquired journal is completed (76).
[発明の効果]
以上詳しく説明したように、本発明によれば、分散処理
システムにおいて、各所のノードのデータベースに関す
るジャーナルを一個所の特定ノードで集中して取得する
ことによって、ジャーナル管理が容易になり、ジャーナ
ルを管理する人手を減少することができるので、経済的
であると共に、この集中取得したジャーナルを見ること
によって。[Effects of the Invention] As described above in detail, according to the present invention, in a distributed processing system, journal management is facilitated by centrally acquiring journals related to databases of nodes at one location at one specific node. By looking at this centrally acquired journal, it is economical and can reduce the manpower to manage the journal.
システム全体の動作を把握することができ、性能向上を
図ることができる効果を奏する。It is possible to understand the operation of the entire system, which has the effect of improving performance.
また、データベース障害時の回復指示を一個所で実行す
ることにより、他の計算機システムの省力化ができると
共に、迅速な回復処理を行なうことができる結果、信頼
性が向上する効果を奏する。In addition, by executing recovery instructions in the event of a database failure in one place, it is possible to save labor in other computer systems, and also to perform quick recovery processing, which has the effect of improving reliability.
更に、セキユア状態のトランザクションのみのジャーナ
ルを取得する手段を設けたことによって、その格納のた
めの記憶媒体量を削減することができ、経済性がある等
の効果を奏する。Further, by providing a means for acquiring a journal of only transactions in a secure state, the amount of storage medium for storing them can be reduced, resulting in economical effects.
第1図は本発明の一実施例のシステム構成図、第2図、
第3図、および、第4図は本発明の一実施例によるDB
/DCの処理手順を示す流れ図、第5図は本発明の一実
施例によるデータベース更新情報の一例を示す図、第6
図は本発明の一実施例によるトランザクション履歴情報
の一例を示す図、第7図は本発明の一実施例によるデー
タベースの回復手順を示す流れ図である。
11.12.13・旧・・ノード(計算機システム)、
21〜28.30〜39.41〜49・・・−D B更
新手順、24,25・・・・・・#■ノードでのジャー
ナル取得、44・・・・・・トランザクション履歴格納
部での情報取得、71〜76・・・・・・データベース
回復手順、111,121,131・・・・・・オペレ
ーティングシステム、112,122,132・・・・
・・DB/DC(データベース/データコミュニケーシ
ョン)プログラム、113,123,133・・・・・
・アプリケーションプログラム、114・・・・・・ジ
ャーナル格納部、115,125,135・・・・・・
データベース、116.126,136・・・・・・端
末システム、117゜118.127・・・・・・通信
回線、119・・・・・・データベースバックアップ格
納部、124,134・・・・・・トランザクション履
歴格納部。
第2F:jA
言十亡1崎システム/(ノート”I)
くフライアンl>
針算禍システム2〈ノーF′2)
〈サーIぐ一便1〉
一3図
S五システム
第4図
第5図
第6(1FIG. 1 is a system configuration diagram of an embodiment of the present invention, FIG.
FIG. 3 and FIG. 4 show a DB according to an embodiment of the present invention.
FIG. 5 is a flowchart showing the processing procedure of /DC, FIG. 5 is a diagram showing an example of database update information according to an embodiment of the present invention, and FIG.
FIG. 7 is a diagram showing an example of transaction history information according to an embodiment of the present invention, and FIG. 7 is a flow chart showing a database recovery procedure according to an embodiment of the present invention. 11.12.13 Old... Node (computer system),
21-28. 30-39. 41-49...-D B update procedure, 24, 25...... #■ Journal acquisition at node, 44...... Transaction history storage unit Information acquisition, 71-76... Database recovery procedure, 111, 121, 131... Operating system, 112, 122, 132...
...DB/DC (database/data communication) program, 113, 123, 133...
・Application program, 114...Journal storage unit, 115, 125, 135...
Database, 116.126, 136...Terminal system, 117°118.127...Communication line, 119...Database backup storage unit, 124,134... - Transaction history storage section. 2nd F: jA Kotojuu Ichisaki System/(Note “I) Kuflyan l> Hand calculation system 2〈No F'2)〈Sir I Guichibin 1〉 Figure 13 S5 System Figure 4 Figure 5 Figure 6 (1)
Claims (1)
ード間の通信手段と、任意の1つのノードからの更新要
求により複数のノードで同期をとつてデータベースを更
新する手段とを備えた分散処理システムにおいて、サー
バ側ノードおよびクライアント側ノードのジャーナルを
一個所の特定ノードで取得する手段を具備したことを特
徴とする分散処理システムにおけるデータベース更新方
式。 2、あるノードのデータベースに障害が発生した際に、
該障害の回復指示を前記特定ノードにより実行するよう
に構成したことを特徴とする請求項1記載の分散処理シ
ステムにおけるデータベース更新方式。 3、セキユア状態のトランザクションのみのジャーナル
をサーバ側またはクライアント側で取得する手段を具備
したことを特徴とする請求項1記載の分散処理システム
におけるデータベース更新方式。[Scope of Claims] 1. A computer system comprising a plurality of nodes each having a database, means for communication between the nodes, and means for synchronizing and updating the database in the plurality of nodes in response to an update request from any one node. 1. A database update method in a distributed processing system, characterized in that the system includes means for acquiring journals of a server-side node and a client-side node at one specific node. 2. When a failure occurs in the database of a certain node,
2. The database update method in a distributed processing system according to claim 1, wherein the specific node executes the failure recovery instruction. 3. The database update method in a distributed processing system according to claim 1, further comprising means for acquiring a journal of only transactions in a secure state on the server side or the client side.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1137432A JPH034339A (en) | 1989-06-01 | 1989-06-01 | System for updating data base in distributed processing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1137432A JPH034339A (en) | 1989-06-01 | 1989-06-01 | System for updating data base in distributed processing system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH034339A true JPH034339A (en) | 1991-01-10 |
Family
ID=15198487
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1137432A Pending JPH034339A (en) | 1989-06-01 | 1989-06-01 | System for updating data base in distributed processing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH034339A (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH06214853A (en) * | 1992-12-02 | 1994-08-05 | Internatl Business Mach Corp <Ibm> | Method and system for backup and restoration of database |
| JPH0836515A (en) * | 1994-07-25 | 1996-02-06 | Nec Corp | File restoration system |
| WO1996027157A1 (en) * | 1995-02-28 | 1996-09-06 | Ntt Data Communications Systems Corporation | Cooperative distributed system, and journal and recovery processings therein |
| JP2003263356A (en) * | 2002-03-11 | 2003-09-19 | Toyota Motor Corp | Client, client-server system, server, program, recording medium, and data control method |
| WO2011030432A1 (en) | 2009-09-10 | 2011-03-17 | ヤマザキマザック株式会社 | Attachment unit for machining of five surfaces |
| WO2011039886A1 (en) | 2009-10-01 | 2011-04-07 | ヤマザキマザック株式会社 | 5-face machining angle tool holder |
| JP2022095645A (en) * | 2017-09-29 | 2022-06-28 | オラクル・インターナショナル・コーポレイション | System and method for capture of change data from distributed data sources, for use with heterogeneous targets |
-
1989
- 1989-06-01 JP JP1137432A patent/JPH034339A/en active Pending
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH06214853A (en) * | 1992-12-02 | 1994-08-05 | Internatl Business Mach Corp <Ibm> | Method and system for backup and restoration of database |
| JPH0836515A (en) * | 1994-07-25 | 1996-02-06 | Nec Corp | File restoration system |
| WO1996027157A1 (en) * | 1995-02-28 | 1996-09-06 | Ntt Data Communications Systems Corporation | Cooperative distributed system, and journal and recovery processings therein |
| US6052695A (en) * | 1995-02-28 | 2000-04-18 | Ntt Data Communications Systems Corporation | Accurate completion of transaction in cooperative type distributed system and recovery procedure for same |
| JP2003263356A (en) * | 2002-03-11 | 2003-09-19 | Toyota Motor Corp | Client, client-server system, server, program, recording medium, and data control method |
| WO2011030432A1 (en) | 2009-09-10 | 2011-03-17 | ヤマザキマザック株式会社 | Attachment unit for machining of five surfaces |
| US8061939B2 (en) | 2009-09-10 | 2011-11-22 | Yamazaki Mazak Corporation | Attachment unit for five-face machining |
| WO2011039886A1 (en) | 2009-10-01 | 2011-04-07 | ヤマザキマザック株式会社 | 5-face machining angle tool holder |
| US8708623B2 (en) | 2009-10-01 | 2014-04-29 | Yamazaki Mazak Corporation | Angle tool holder for five-face machining |
| JP2022095645A (en) * | 2017-09-29 | 2022-06-28 | オラクル・インターナショナル・コーポレイション | System and method for capture of change data from distributed data sources, for use with heterogeneous targets |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8185493B2 (en) | Solution method of in-doubt state in two-phase commit protocol of distributed transaction | |
| JP3050510B2 (en) | Image data management device | |
| US5140689A (en) | Data recovery system and method of distributed transaction processing system | |
| US7539703B2 (en) | Setup method for disaster recovery system | |
| CN111506592B (en) | Database upgrading method and device | |
| JP5467625B2 (en) | Production-substitution system including a production system that processes transactions and a substitution system that is a backup system of the production system | |
| JP2003528392A (en) | Method and apparatus for recovering ongoing changes made in a software application | |
| US20070143362A1 (en) | Database system including center server and local servers | |
| KR101424568B1 (en) | Client and database server for resumable transaction and method thereof | |
| CN114363350A (en) | Service management system and method | |
| JPH034339A (en) | System for updating data base in distributed processing system | |
| JP3340431B2 (en) | Database management method | |
| CN114237832B (en) | Distributed transaction processing method, apparatus, device, storage medium, and program product | |
| JP2002244887A (en) | Log collection system and method | |
| JP2000259505A (en) | Inter-system data backup system and its method | |
| JPH07114495A (en) | Multiplexing file managing system | |
| JP2000148563A (en) | Multiple server computer system | |
| CN114218236A (en) | Database cluster metadata management method | |
| JP2005135125A (en) | Failover processing method | |
| JPH0833859B2 (en) | Multiple subsystem type online system | |
| JP2000082040A (en) | Office backup system, center server, office server, office backup method and recording medium | |
| JP2000082005A (en) | Data processing method for inter-system database sharing system | |
| JP2569063B2 (en) | Failure recovery method for complex subsystem type online system. | |
| JP2007011896A (en) | Distributed transaction system | |
| JP2609625B2 (en) | Failure recovery method for complex subsystem type distributed database system |