JP2650907B2 - Resource synchronization control method - Google Patents

Resource synchronization control method

Info

Publication number
JP2650907B2
JP2650907B2 JP62093017A JP9301787A JP2650907B2 JP 2650907 B2 JP2650907 B2 JP 2650907B2 JP 62093017 A JP62093017 A JP 62093017A JP 9301787 A JP9301787 A JP 9301787A JP 2650907 B2 JP2650907 B2 JP 2650907B2
Authority
JP
Japan
Prior art keywords
processing
resource
update
synchronization
transaction
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.)
Expired - Lifetime
Application number
JP62093017A
Other languages
Japanese (ja)
Other versions
JPS63259742A (en
Inventor
博道 石川
忠弘 長谷川
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62093017A priority Critical patent/JP2650907B2/en
Publication of JPS63259742A publication Critical patent/JPS63259742A/en
Application granted granted Critical
Publication of JP2650907B2 publication Critical patent/JP2650907B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データ処理システムの資源同期制御方式に
係り、特に分散データベースシステムでのデータの同期
を行うのに好適な資源同期制御方式に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a resource synchronization control system for a data processing system, and more particularly to a resource synchronization control system suitable for performing data synchronization in a distributed database system.

〔従来の技術〕[Conventional technology]

従来の複数資源群に対するデータ処理のトランザクシ
ョン終了時の同期制御方式は、特開昭58−163052号公報
に記載のように、各資源を管理するデータベースの制御
を行う処理システムに対するデータベース正常終了命令
(同期処理)を2つの処理フェーズに分割して行ってい
た。具体的には、更新保証処理(第1フェーズ)で、同
期の確証を得て、各資源すべてが同期が行える確認を行
って、同期終了処理(第2フェーズ)でトランザクショ
ン処理の終了を通告して同期の完了を達成するものであ
った。従って、各フェーズごとに処理システム間におけ
る交信が必要となっていた。しかし、複数のデータベー
スの資源のうち一つの資源も更新処理がなされなかった
か、若しくは、その一つの資源のみに対してだけ更新処
理がなされた時は、他のデータベースシステムの資源に
対して資源の整合性を図る必要がないため、同期処理の
確証を得る第1フェーズの更新保証処理を行う必要がな
い。
A conventional synchronous control method at the end of a transaction of data processing for a plurality of resource groups is disclosed in Japanese Patent Application Laid-Open No. 58-163022. (Synchronous processing) is divided into two processing phases. Specifically, in the update assurance processing (first phase), confirmation of synchronization is obtained, confirmation is made that all resources can be synchronized, and the end of transaction processing is notified in synchronization end processing (second phase). To complete the synchronization. Therefore, communication between the processing systems is required for each phase. However, if one of the resources of the plurality of databases has not been updated, or if only one of the resources has been updated, the resources of the other database systems are not updated. Since there is no need to ensure consistency, there is no need to perform the first phase update assurance processing for obtaining confirmation of the synchronization processing.

このように複数のデータベースを管理する処理システ
ムにまたがって、トランザクション処理が為される場合
に同期処理を行うのは、一連のトランザクション処理が
各データベースの処理システムで確実に行われたことを
保証し、いずれかのデータベースの処理システムで未だ
処理完了となっていない状態を防止するためである。
Performing synchronous processing when transaction processing is performed across a processing system that manages multiple databases in this way ensures that a series of transaction processing has been reliably performed in each database processing system. This is to prevent a state in which the processing has not been completed in any of the database processing systems.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

上記従来技術は、トランザクション終了時の同期処理
は、2つの処理(フェーズ)、つまり、同期の確証を得
るための更新保証処理(第1フェーズ)とトランザクシ
ョン処理の終了を通告して同期完了を達成する終了処理
(第2フェーズ)とから成っており、各データベース
(資源管理)の処理システムに対して、各フェーズの交
信回数を削減する点について配慮されておらず、特に、
各データベースの処理システムが分散されているような
場合に、交信負荷が大きくなって、トランザクション処
理に要する時間も長くなり、それに伴ってデータベース
の処理システムの資源を専有する時間も長くなって、他
の処理に対して悪影響を及ぼす問題があった。
In the above-described conventional technology, the synchronization process at the end of a transaction achieves synchronization completion by notifying two processes (phases), that is, an update assurance process (first phase) for obtaining confirmation of synchronization and a completion of the transaction process. End processing (second phase) that does not take into account the reduction of the number of communications in each phase for the processing system of each database (resource management).
When the processing systems of each database are distributed, the communication load increases, the time required for transaction processing increases, and the time required for occupying the resources of the database processing system also increases. There is a problem that has an adverse effect on the processing of.

本発明の目的は、トランザクションの終了時のデータ
ベース処理システムの資源に対して、その資源の整合性
の保証の損うことなく、各データベースの処理システム
間の交信回数を削減する資源同期制御方式を提供するこ
とにある。
An object of the present invention is to provide a resource synchronization control method for reducing the number of communications between the processing systems of each database with respect to the resources of the database processing system at the end of a transaction without impairing the guarantee of the consistency of the resources. To provide.

〔問題点を解決するための手段〕[Means for solving the problem]

上記目的は、各データベースの処理システムのそれぞ
れの資源でのトランザクション処理において、各資源へ
の更新処理が行われているか否かを管理する資源群処理
状態ビット列と、更新処理のなされている資源群の名称
を保持する資源群リストとから成る資源群処理状態管理
テーブルを設け、トランザクション終了処理にあたり、
当該資源処理状態管理テーブルを参照し、資源群処理状
態ビット列と資源群リストから更新処理の為された資源
群を知り、更新処理の態様により、更新処理が全く為さ
れなかった場合及び更新処理か一の資源のみで為された
場合に、第1フェーズ(更新保証処理)と第2フェーズ
(終了処理)から成る同期処理のうち、第1フェーズを
省略することで達成される。
The object of the present invention is to provide a resource group processing status bit string that manages whether or not an update process is being performed on each resource in a transaction process on each resource of the processing system of each database, and a resource group that has been updated. A resource group processing state management table including a resource group list holding the names of
Referring to the resource processing state management table, the resource group that has been updated is known from the resource group processing state bit string and the resource group list. When the processing is performed using only one resource, it is achieved by omitting the first phase of the synchronization processing including the first phase (update assurance processing) and the second phase (end processing).

〔作用〕[Action]

本発明の資源同期制御方式は、分散型データベースの
処理システムにおいて、トランザクション処理の過程
で、各データベースの処理システムの資源へ更新処理が
なされると、資源群処理状態管理テーブルの資源群処理
状態ビット列のビットをオンし、更に資源群リストに更
新処理された資源名称を登録し、トランザクション処理
終了時に、資源群処理状態管理テーブルを参照し、も
し、更新処理が全ての資源にて行われなかった場合は、
全ての資源に対し、第1フェーズ(更新保証処理)を行
わず、第2フェーズ(終了処理)を行い、更新処理が一
の資源に対してのみ行われた場合は、更新処理の為され
た資源に第2フェーズを行い、正常に第2フェーズを終
えたら、他の資源に対して第2フェーズを行い、更新処
理が2以上の資源で為された場合は、更新処理が為され
た資源に対し第1フェーズを行い、同期の確証が得られ
たら全ての資源に対し第2フェーズを行うように動作す
るので、最小の同期処理で複数資源間のトランザクショ
ンの終了を達成することが可能である。
The resource synchronization control method according to the present invention is characterized in that, in a distributed database processing system, when an update process is performed on a resource of a processing system of each database in a transaction process, a resource group processing state bit string of a resource group processing state management table Bit is turned on, and the updated resource name is registered in the resource group list. At the end of the transaction processing, the resource group processing state management table is referred to. If the update processing has not been performed for all the resources, If
When the first phase (update assurance processing) is not performed on all resources, the second phase (end processing) is performed, and when the update processing is performed on only one resource, the update processing is performed. The second phase is performed on the resource, and after the second phase is completed normally, the second phase is performed on the other resources. If the update processing is performed on two or more resources, the updated resource is performed. Performs the first phase, and when the confirmation of the synchronization is obtained, the operation is performed to perform the second phase for all the resources. Therefore, it is possible to complete the transaction between a plurality of resources with minimum synchronization processing. is there.

〔実施例〕〔Example〕

以下、本発明の一実施例を第1図から第5図により説
明する。本発明のシステム構成の一例を第図に示すと、
各処理装置はCPUと処理プログラムとデータベースマネ
ージメントシステム(DBMS)を有する。またそれぞれの
処理装置が有するオンラインコントロールプログラムに
よって、処理装置間の通信制御が行われる。各処理装置
はディスク装置等にデータを保有し、資源を管理してい
る。また各処理装置の処理プログラム内には後述する資
源群処理状態管理テーブルが設けられている。このよう
なシステム構成において、本発明の制御方式の一実施例
を第1図を使って説明すると、処理装置Bが、トランザ
クション処理を行うよう動作すると、当制御方式におけ
る当トランザクションの同期の制御を行う管理システム
としての機能をも果すものである。処理装置A及び処理
装置Cは、処理装置Bで発生したトランザクションの処
理のうち、資源A,Cに対するデータの参照.更新等の依
頼された処理を管理する管理システムである。
An embodiment of the present invention will be described below with reference to FIGS. An example of the system configuration of the present invention is shown in FIG.
Each processing device has a CPU, a processing program, and a database management system (DBMS). Communication control between the processing devices is performed by an online control program of each processing device. Each processing device holds data in a disk device or the like and manages resources. A resource group processing status management table, which will be described later, is provided in the processing program of each processing device. In such a system configuration, an embodiment of the control method of the present invention will be described with reference to FIG. 1. When the processing device B operates to perform transaction processing, the control of the synchronization of the transaction in the control method is performed. It also functions as a management system to perform. The processing units A and C refer to data for resources A and C in the processing of the transaction generated by the processing unit B. This is a management system that manages requested processing such as updating.

資源群の処理状態を管理する資源群処理状態管理テー
ブルの内容の概要を第2図bに示す。資源群処理状態管
理テーブルは、処理装置の処理プログラム内に設けら
れ、その内容は可変の資源群数にビット列と処理した資
源群リストから構成される。
FIG. 2B shows an outline of the contents of the resource group processing state management table for managing the processing state of the resource group. The resource group processing state management table is provided in the processing program of the processing device, and its contents include a variable number of resource groups, a bit string, and a processed resource group list.

次に、第1図aを用いて、トランザクション開始に伴
う処理について説明すると、まず処理装置Bにおいて、
資源群処理状態管理テーブルの初期化が行われ、トラン
ザクションが開始される(1)。そして、処理装置Aに
対して処理装置Bがデータの参照。更新の処理の依頼を
行う際に、特に処理装置Aへデータの更新処理(3)を
依頼する際に、処理装置B内の資源群処理状態管理テー
ブルの更新フラグをまず設定する(2)。その後更新処
理に係るものか否かを問い合せ、更新処理に係るものと
の報告されると、当該報告に従い更新フラグの設定をも
う一度別に行う(4)。資源群処理状態管理テーブルに
更新処理前に設定したフラグのビットと更新処理後に設
定したフラグのビットの論理積を取り、更新処理状態に
ある資源について更新フラグが設定される。同様に、処
理装置Cに対しても(5),(6),(7)の同様の処
理がなされ、また、自管理システムである処理装置Bに
も同様の(8),(9)の処理がなされ、資源群に対す
る処理状態の管理を行う。以上の資源に対する更新処理
状態を管理する処理のフローチャートを示したのが、第
2図である。
Next, a process associated with the start of a transaction will be described with reference to FIG. 1A.
The resource group processing state management table is initialized, and a transaction is started (1). Then, the processing apparatus B refers to the data with respect to the processing apparatus A. When requesting an update process, particularly when requesting the processing device A to perform a data update process (3), an update flag of the resource group processing status management table in the processing device B is first set (2). Thereafter, it is inquired whether or not the update processing is involved, and when it is reported that the update processing is involved, the update flag is set once again according to the report (4). The logical AND of the flag bit set before the update processing and the flag bit set after the update processing is calculated in the resource group processing state management table, and the update flag is set for the resource in the update processing state. Similarly, the same processing of (5), (6), and (7) is performed on the processing apparatus C, and the same processing of (8) and (9) is performed on the processing apparatus B, which is its own management system. The processing is performed, and the processing state of the resource group is managed. FIG. 2 shows a flowchart of the processing for managing the update processing state for the above resources.

この資源への処理を第2図aのフローチャートを使っ
て説明すると、トランザクション処理において、各資源
に対して、データの更新の処理が依頼される場合は、更
新のチエックを行う。それは更新可能性が有る場合(1
1),処理装置B内の資源群処理状態管理テーブルへの
更新ビットをオンにする(12)。資源での更新処理が為
されている時に、更新処理に係る処理であるかの問い合
せを行い、この問い合せに対して更新処理に係る処理で
あるとの報告がある場合(13)は、処理装置B内の資源
群処理状態管理テーブルの更新ビットを新たにオンに
し、前述の更新可能性有りのときの更新ビットと報告が
あったときの更新ビットとの論理積を行い(14)、真に
更新処理中に資源群について資源群処理状態管理テーブ
ルの資源群数のビット列がオンになり、更新処理実行中
を資源群処理状態管理テーブルで管理する。
This resource processing will be described with reference to the flowchart of FIG. 2A. In the transaction processing, when data update processing is requested for each resource, an update check is performed. If it is updatable (1
1) Turn on the update bit for the resource group processing status management table in the processing device B (12). When the update process is performed on the resource, an inquiry is made as to whether the process is related to the update process. If the inquiry is reported to be a process related to the update process (13), the processing device The update bit of the resource group processing state management table in B is newly turned on, and the above-mentioned update bit when there is a possibility of update and the update bit when there is a report are performed (14), and true During the update process, the bit string of the number of resource groups in the resource group processing state management table is turned on for the resource group, and the updating process is being managed by the resource group processing state management table.

この様に、第2図aの資源への更新状態管理処理が行
われ、第1図aのトランザクションの終了処理(10)
が、開始された時点で、第2図bに示した資源群処理状
態管理テーブルを参照し、資源Bの処理装置Bは、各資
源の処理状態に応じた同期処理の制御を行い、より少な
い交信回数によるトランザクション終了処理の制御を行
う。以上の同期処理のフローを示したのが第3図であ
る。つまり、第1図では、更新状態の管理を行い、この
結果を資源群処理状態管理テーブルで保持し、更に当該
テーブルを使って、同期の制御処理を説明したのが第3
図である。
In this way, the update state management processing for the resources in FIG. 2A is performed, and the transaction end processing (10) in FIG. 1A is performed.
Is started, the processing unit B of the resource B refers to the resource group processing state management table shown in FIG. 2B, controls the synchronous processing according to the processing state of each resource, and Controls transaction end processing based on the number of communications. FIG. 3 shows the flow of the above-described synchronization processing. That is, in FIG. 1, the update state is managed, the result is held in the resource group processing state management table, and the synchronization control processing is described using the table.
FIG.

第3図は、トランザクション処理を管理し、トランザ
クションの終了処理において以下のような終了の同期処
理を行う。資源群処理状態管理テーブルの資源群数のビ
ット列を参照して、全てのビットがオフかどうかチエッ
ク(15)、全てのビットがオフならば、更新処理が全く
行われなかったものとして、各処理装置に対し、トラン
ザクションの終了を通告する同期終了処理C(第2フェ
ーズ)を行う(22)。次に1ビットのみオンであるかを
チェックし(16)、もし1ビットのみオンの場合は、資
源群処理状態管理テーブルの処理は資源群リストによ
り、ビットオンの資源を有する処理装置に対し、同期終
了処理C(第2フェーズ)を行い、ロールバックでなけ
れば(18)、他の資源の処理装置に対し、同期終了処理
C(第2フェーズ)を行う(19)。このように、全ての
ビットがオフか、1ビットのみオンの時は更新処理が他
の資源で行われなかったので、更新処理の完了を確認し
同期処理の確証を得る第1フェーズの更新保証処理を行
う必要がない。また、複数ビットオンの場合は、ビット
オンの各資源を管理する処理装置に対してそれぞれ第1
フェーズの同期処理である更新保証処理Pr−Cを行い
(20)、ロールバックでなければ(21)、各処理装置に
対し、同期終了処理C(第2フェーズ)を行う(22)。
FIG. 3 manages transaction processing, and performs the following end synchronization processing in transaction end processing. Referring to the bit string of the number of resource groups in the resource group processing state management table, check whether all bits are off (15). If all bits are off, it is determined that no update processing has been performed, and each processing is performed. A synchronization end process C (second phase) for notifying the device of the end of the transaction is performed (22). Next, it is checked whether only one bit is on (16). If only one bit is on, the processing of the resource group processing state management table is performed by the resource group list for the processing device having the bit-on resource. Synchronization end processing C (second phase) is performed, and if it is not rollback (18), synchronization end processing C (second phase) is performed on the processing device of another resource (19). As described above, when all the bits are off or only one bit is on, the update processing has not been performed by another resource, so that the completion of the update processing is confirmed and the synchronization processing is confirmed. No action is required. When a plurality of bits are turned on, the first processing unit manages each bit-on resource.
An update assurance process Pr-C, which is a phase synchronization process, is performed (20), and if it is not rollback (21), a synchronization end process C (second phase) is performed for each processing device (22).

以上のように、処理状態に応じた同期処理が行われ、
トランザクションに関する全ての処理の終了となる。
As described above, synchronization processing according to the processing state is performed,
All processes related to the transaction are completed.

次に、トランザクション終了に伴う処理について、個
別の処理パターンを第1図bで、各資源の処理状態別の
制御例を示す。
Next, FIG. 1B shows an example of control according to the processing state of each resource for the processing associated with the end of a transaction, with reference to FIG. 1B.

X1は当トランザクション処理において、最大の交信回
数となる場合の例である。当例においては、3つの資源
全てに対して更新処理が行われた場合は、各資源を管理
する処理装置に対し、第1フェーズである同期処理の確
証を得るための更新保証処理(Pr−C)を3つの処理装
置それぞれに対して行う。もし全ての管理システムから
確証が得られない場合は、例えば、更新処理が実施され
た資源のうち、いずれかがロックして閉塞状態になった
か、障害状態になった場合等では、結局トランザクショ
ン処理のうちの更新処理が確実に完了していないので、
更新保証処理(Pr−C)を行なっても同期処理の確証が
得られない。また、単に更新処理が実行されても終了し
ていない場合もある。このような場合は、ロールバック
処理により、各資源の処理装置はトランザクションの開
始状態に戻される。全ての確証が得られた場合は、トラ
ンザクション処理の終了を通告する第2フェーズの同期
終了(C)をそれぞれの処理装置に対して行い、トラン
ザクションに関する全ての処理の終了となる。
X1 is an example of the case where the maximum number of communications is reached in this transaction processing. In this example, when the update processing is performed on all three resources, the update assurance processing (Pr- C) is performed for each of the three processing devices. If confirmation cannot be obtained from all management systems, for example, if any of the resources that have undergone the update process are locked and become blocked, Update process has not been completed,
Even if the update assurance process (Pr-C) is performed, confirmation of the synchronization process cannot be obtained. Further, there is a case where the updating process is not completed even if the updating process is simply performed. In such a case, the processing unit of each resource is returned to the transaction start state by the rollback processing. When all the confirmations are obtained, the second phase synchronization end (C) for notifying the end of the transaction processing is performed for each processing device, and all the processing related to the transaction is ended.

X3,Xnは当トランザクション処理において最小の交信
回数となる場合の例である。当例においては、1つの資
源のみ更新かあるいは、全ての資源に更新が行われなか
った場合であり、前者の場合は、更新処理の為された資
源以外の資源群へ更新処理の完了を確認し、同期処理の
確証を得る第1フェーズの処理が省略できる。まず更新
の行われた資源の処理装置に対する同期終了(C)を行
い処理が成功しなかった場合、全ての処理装置に対しロ
ールバックを行う。成功した場合は、残りの処理装置に
対し、同期終了処理(C)を行い、トランザクションに
関する全ての処理の終了となる。後者の場合にも、更新
処理が為されていないために、資源群への更新処理の完
了を確認し、同期処理の確証を得る第1フェーズを省略
できる。従って、各資源に対し、同期終了処理(C)を
行うのみである。
X3 and Xn are examples in which the minimum number of communications is performed in the transaction processing. In this example, only one resource is updated or all resources are not updated. In the former case, the completion of the update process is confirmed for a resource group other than the resource for which the update process has been performed. However, the first-phase processing for obtaining confirmation of the synchronization processing can be omitted. First, synchronization of the updated resources with respect to the processing devices is completed (C), and if the processing is not successful, rollback is performed for all the processing devices. If the processing has succeeded, a synchronization end process (C) is performed on the remaining processing devices, and all processes related to the transaction are ended. Also in the latter case, since the update process has not been performed, the first phase for confirming the completion of the update process for the resource group and obtaining confirmation of the synchronization process can be omitted. Therefore, only the synchronization end processing (C) is performed for each resource.

X2は当トランザクション処理において、資源Aの処理
装置Aに対しては、検索処理が行われ、他の資源の処理
装置に対しては、更新処理が行われた場合の例である。
当例においては、検索処理しか行われなかった資源の処
理装置に対しては、同期処理のフェーズ分けは、行わ
ず、更新処理が行われた資源の処理装置に対してのみ第
1フェーズの同期処理である更新保証処理(Pr−C)を
行い、確証が得られた後、トランザクション処理の終了
を通告する第2フェーズの同期終了処理と処理装置Aに
対する同期終了処理を行うものである。
X2 is an example of a case where, in this transaction processing, a search process is performed on the processing device A of the resource A, and an update process is performed on the processing device of another resource.
In this example, the synchronization processing in the first phase is not performed for the resource processing device for which only the search process has been performed, and the synchronization process is not divided for the resource processing device for which the update process has been performed. The update assurance process (Pr-C), which is a process, is performed, and after confirmation is obtained, a second phase synchronization end process for notifying the end of the transaction process and a synchronization end process for the processing device A are performed.

本実施例によれば、トランザクションの終了時に、資
源群処理状態管理テーブルを参照し、当該テーブル内の
資源群処理状態ビット列と資源群リストにより、各デー
タベースの資源の更新処理状態と更新処理に係る資源名
称をチエックし、更新処理がされなかったか、更新処理
が一の資源群においてのみ行われた場合に、同期の確証
を得る第1フェーズを省略して、各データベースの処理
システム間の交信回数を減少させて、トランザクション
処理の終了を確実に行うことができ、効率良く資源の同
期制御が行える効果がある。
According to the present embodiment, at the end of the transaction, the resource group processing state management table is referred to, and the resource group processing state bit sequence and the resource group list in the table relate to the update processing state and update processing of the resources of each database. When the resource name is checked and the update process is not performed or the update process is performed only in one resource group, the first phase for obtaining confirmation of synchronization is omitted, and the number of communications between the processing systems of each database is omitted. , The transaction processing can be surely terminated, and there is an effect that resource synchronization control can be performed efficiently.

また、本実施例のような複数のデータベースの処理シ
ステムを使ってのトランザクションの処理を行う場合
に、上述のような効率のよい同期処理が為されるので、
末だデータの更新処理が完了していない処理装置がある
場合でも、誤まってトランザクションが終了してしまう
ことなく、複数の資源の処理装置間の整合性が図られ
る。
Further, when a transaction is processed using a processing system of a plurality of databases as in the present embodiment, the above-described efficient synchronous processing is performed.
Even in the case where there is a processing device that has not completed the data update process, consistency between the processing devices of a plurality of resources can be achieved without erroneously terminating the transaction.

〔発明の効果〕〔The invention's effect〕

本発明によれば、複数の資源にまたがって、トランザ
クションが処理される場合に、資源群処理状態管理テー
ブルにより、トランザクション処理を各資源で確実に終
了させるための同期制御における最適な同期処理を、各
資源の処理システムに対し行うことにより、交信回数を
減少させ、より効率の良いデータ処理方式を実現する効
果がある。
According to the present invention, when a transaction is processed across a plurality of resources, the resource group processing state management table allows an optimum synchronization process in the synchronization control for surely terminating the transaction process on each resource. By performing the processing for each resource processing system, the number of communications is reduced, and there is an effect that a more efficient data processing method is realized.

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

第1図は本発明の一実施例の複数資源に対するトランザ
クション処理の概略図、第2図は、第1図の資源へ対す
る処理時の流れ図、第3図は、第1図のトランザクショ
ン終了処理の流れ図、第4図は、資源への処理とトラン
ザクション終了処理の対応表を示した図、第5図は本発
明のシステムの一構成図である。 1〜9……データ処理、 10……トランザクション終了処理、 15〜22……整合性制御における同期処理、 X1〜Xn……整合性制御における同期処理例のパターン。
FIG. 1 is a schematic diagram of a transaction process for a plurality of resources according to an embodiment of the present invention, FIG. 2 is a flow chart at the time of processing on the resources of FIG. 1, and FIG. FIG. 4 is a flowchart showing a correspondence table between processing on resources and transaction end processing, and FIG. 5 is a block diagram of a system according to the present invention. 1-9 ...... data processing, 10 ...... transaction termination processing, the synchronization process in the 15 to 22 ...... integrity control, the pattern of the synchronization processing example in the X 1 to X n ...... consistency control.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数のデータ資源を有する分散型データベ
ースシステムにおいて、前記システム内に各資源に対す
る更新処理の状態を管理するテーブルを設け、トランザ
クション処理においてデータ資源の更新処理の依頼が為
されると、当該データ資源について更新処理が実行中で
あることを前記テーブルに登録し、トランザクション処
理の終了時に、前記テーブルの管理する更新処理の状態
を参照し、更新処理が全ての資源のいずれにおいても行
なわれなかったならば、全てのデータ資源に対して同期
の完了を達成する同期終了処理を行ない、ひとまとまり
のデータ資源が1つのものについてのみ更新処理が行な
われたならば、更新処理の為された当該データ資源につ
いてまず同期終了処理を行ない、当該同期終了処理の成
功後に他の全てのデータ資源に対して同期終了処理を行
ない、ひとまとまりのデータ資源が2つ以上のものにつ
いて更新処理が行なわれたならば、更新処理の行なわれ
たデータ資源に対して同期の確証を得る更新保証処理を
行ない、同期の確証が得られれば全てのデータ資源へ同
期終了処理を行なうことを特徴とする資源同期制御方
法。
In a distributed database system having a plurality of data resources, a table for managing the status of update processing for each resource is provided in the system, and when a request for update processing of data resources is made in transaction processing. In the table, the fact that the update process is being executed for the data resource is registered in the table, and at the end of the transaction process, the state of the update process managed by the table is referred to, and the update process is performed in all the resources. If not, a synchronization termination process is performed for all the data resources to complete the synchronization. If only one data resource is updated, the update process is performed. First, a synchronization end process is performed on the data resource that has been Data synchronization is performed on the data resources, and if the update processing is performed on two or more data resources, the update is obtained to confirm the synchronization of the updated data resources. A resource synchronization control method comprising: performing a guarantee process; and performing a synchronization termination process on all data resources when synchronization is confirmed.
JP62093017A 1987-04-17 1987-04-17 Resource synchronization control method Expired - Lifetime JP2650907B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62093017A JP2650907B2 (en) 1987-04-17 1987-04-17 Resource synchronization control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62093017A JP2650907B2 (en) 1987-04-17 1987-04-17 Resource synchronization control method

Publications (2)

Publication Number Publication Date
JPS63259742A JPS63259742A (en) 1988-10-26
JP2650907B2 true JP2650907B2 (en) 1997-09-10

Family

ID=14070693

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62093017A Expired - Lifetime JP2650907B2 (en) 1987-04-17 1987-04-17 Resource synchronization control method

Country Status (1)

Country Link
JP (1) JP2650907B2 (en)

Also Published As

Publication number Publication date
JPS63259742A (en) 1988-10-26

Similar Documents

Publication Publication Date Title
US5838923A (en) Method and system for synchronizing computer mail user directories
US6412034B1 (en) Transaction-based locking approach
EP0477123B1 (en) A method of managing unit-of-work identifiers in a distributed transaction processing system
JPH06301588A (en) Transaction processing synchronizing method and commit processing method for transaction
JPH10187519A (en) Method for preventing contention of distribution system
JPH08153027A (en) System and method for management of distributed request in parallel database
JPH0552973B2 (en)
CN108304251B (en) Thread synchronization method and server
US6799172B2 (en) Method and system for removal of resource manager affinity during restart in a transaction processing system
JP2650907B2 (en) Resource synchronization control method
CN112954008A (en) Distributed task processing method and device, electronic equipment and storage medium
JPS59111564A (en) Cyclic two phase commitment controlling system
JPH0612310A (en) File simultaneous editing device
JPH08235096A (en) Setting system and method for inter-process link connection
JP2938860B1 (en) Distributed data management system
JP2001306380A (en) Two-phase commitment evading system and its program recording medium
JPH02122362A (en) Decentralized data control system
JP3185343B2 (en) Information processing system
JPS6316774B2 (en)
CN115586979A (en) Method, micro service cluster, system, device and program product for message processing
CN116743837A (en) Communication control method, device, electronic equipment and storage medium
JPH0833856B2 (en) Serial number management method
JPH1153242A (en) Database system and database updating method
JPH087765B2 (en) Work alternative method of LAN integrated production system
JP2926873B2 (en) Computer system

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term