JPS63259742A - Resource synchronization control system - Google Patents

Resource synchronization control system

Info

Publication number
JPS63259742A
JPS63259742A JP62093017A JP9301787A JPS63259742A JP S63259742 A JPS63259742 A JP S63259742A JP 62093017 A JP62093017 A JP 62093017A JP 9301787 A JP9301787 A JP 9301787A JP S63259742 A JPS63259742 A JP S63259742A
Authority
JP
Japan
Prior art keywords
processing
resource
update
synchronization
resources
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.)
Granted
Application number
JP62093017A
Other languages
Japanese (ja)
Other versions
JP2650907B2 (en
Inventor
Hiromichi Ishikawa
石川 博道
Tadahiro Hasegawa
長谷川 忠弘
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

Landscapes

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

Abstract

PURPOSE:To reduce the number of times of communication and to realize a more efficient data processing system by performing the optimum synchronization processing for the processing system of respective resources by a resource group processing state control table. CONSTITUTION:The resource group processing state control table consisting of a resource group processing state bits string, which controls whether an update processing for the respective resource is being performed or not, and a resource list which holds the name of a resource group which is being processed by the update processing, is provided. At a transaction finish processing, as referring to the resource processing state control table, the resource group which is processed by the update processing, is known from the resource processing state bits string and the resource group list, and according to the situation of the update processing, when the update processing was not performed at all, and when the update processing was performed for only one resource, a first phase in the synchronization processing, consisting of the first phase (update insurance processing) and the second phase (finish processing), is omitted. Thus, the finish of the transaction between plural resources can be attained by the minimum synchronization processing.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データ処理システムの資源同期制御1“ノ方
式に係り、特に分散データベースシステムでの。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a resource synchronization control method 1" for a data processing system, particularly in a distributed database system.

データの同期を行うのに好適な資源同期制御方式゛に関
する。
The present invention relates to a resource synchronization control method suitable for synchronizing data.

(従来の技術〕 従来の複数資源群に対するデータ処理のトラン1.。(Conventional technology) Conventional data processing sequence for multiple resource groups 1. .

ザクシ冨ン終了時の同期制御方式は、特開昭58゜−1
63052号公報に記載のように、各資源を管理。
The synchronous control method at the end of the
Manage each resource as described in Publication No. 63052.

するデータベースの制御を行う処理システムに対。For processing systems that control databases.

するデータベース正常終了命令(同期処理)を2゜つの
処理フェーズに分割して行っていた。具体的−5゜には
、更新保証処理(第1フエーズ)で、同期の。
The database normal termination command (synchronous processing) was divided into two processing phases. Specifically, at -5°, synchronization is performed in the update guarantee processing (first phase).

確証を得て、各資源すべてが同期が行える確認を゛行っ
て、同期終了処理(第2フエーズ)でトラン。
After obtaining confirmation and confirming that all resources can be synchronized, perform the synchronization end process (second phase).

ザクシツン処理の終了を通告して同期の完了を達。The synchronization is completed by notifying the end of the synchronization process.

成するものであった。従って5各フエーズごとに5処理
システム間における交信が必要となっていた8しかし、
複数のデータベースの資源のうち一つの。
It was something that could be accomplished. Therefore, communication between the 5 processing systems was required for each phase.8However,
One of multiple database resources.

資源も更新処理がなされなかったか、若しくは、。Either the resource was not updated or...

その一つの資源のみて対してだけ更新処理がなさ゛れだ
時は、他のデータベースシステムの資源に対t。
If it is necessary to update only that one resource, update the resources of other database systems.

して資源の整合性を図る必要がないため、同期処・理の
確証を得る第1フエーズの更新保証処理を行・う必要が
ない。
Since there is no need to ensure consistency of resources, there is no need to perform update guarantee processing in the first phase to obtain confirmation of synchronization processing.

このように複数のデータベースをq:理する処理・シス
テムにまだがって、トランザクション処理が】)為され
る場合に同期処理を行うのは、一連のトラ。
In this way, when transaction processing is carried out across processing systems that manage multiple databases, it is a series of transactions that performs the synchronized processing.

ンザクシ目ン処理が各データベースの処理システ。The processing system of each database is the processing system for snails.

ムで確集に行われたことを保証し、いずれ力\のデ。Guarantee that it was done in a timely manner, and that it will eventually become a force.

−タベースの処理システムで末だ処理完了となつ、でい
ない状態を防止するためである。     。
- This is to prevent a situation where the database processing system is unable to complete processing. .

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記従来技術は、トランザクション終了時の同゛期処理
は、2つの処理(フェーズ)、つまり、同。
In the above-described conventional technology, the synchronous processing at the end of a transaction is performed in two processes (phases), that is, at the same time.

期の確証を得るだめの更新保証処理(第17エー。Renewal guarantee processing to obtain confirmation of the period (17th A.

ズ)とトランザクン日ン処理の終了を通告して同1期完
了を達成する終了処理(第2フエーズ)とか“ら成って
おり、各データベース(資源管理)の処理システムに対
して、谷フーーズの交信回数を削。
The process consists of a termination process (second phase) that notifies the end of transaction date processing to achieve the completion of the same period. Reduce the number of communications.

滅する点について配慮されておらず、特に、各デ。There is no consideration given to the point of extinction, especially when it comes to each device.

−タベースの処理システムが分散されているよう1゜な
場合に、交信負荷が大きくなって、トランザク。
- If the database processing system is distributed, the communication load will increase and transactions will occur.

シロン処理に要する時間も長くなり、それに伴つ゛てデ
ータベースの処理システムの資源を専有する“時間も長
くなって、他の処理に対して悪影響を及・ぼす問題があ
った。              15本発明の目的
は5 トランザクションの終了時の。
There is a problem that the time required for the silon processing becomes longer, and the time required to monopolize the resources of the database processing system also becomes longer, which adversely affects other processing.15 According to the present invention The purpose is 5. At the end of the transaction.

データベース処理システムの資源に対して、その。For the resources of the database processing system.

資源の整合性の保証を損うことなく、各データベ。each database without compromising guarantees of resource integrity.

−スの処理システム間の交信回数を削減する資源。- Resources that reduce the number of communications between base processing systems.

同期制御方式を提供することにある。     ・、 
3 。
The objective is to provide a synchronous control method.・、
3.

〔問題点を解決するだめの手段〕[Failure to solve the problem]

上記目的は、各データベースの処理システムの゛それぞ
れの資源でのトランザクション処理におい。
The above purpose is for transaction processing using each resource of each database processing system.

て、各資源への更新処理が行われているか否かを。Check whether update processing is being performed on each resource.

管理する資源群処理状態ビット列と、更新処理の1なさ
れている資源群の名称を保持する資源群リス。
A resource group list that holds the managed resource group processing status bit string and the name of the resource group that has been updated.

トとから成る資源群処理状態管理テーブルを設け、“ト
ランザクション終了処理にあたり、当該資源処。
A resource group processing status management table consisting of a resource group processing status management table consisting of

理状態管理テーブルを参照し、資源群処理状態ビット列
と資源群リストから更新処理の為された資10源群を知
り、更新処理の態様により、更新処理が。
Refer to the physical status management table, find out the resource groups that have been updated from the resource group processing status bit string and the resource group list, and perform the update process depending on the update process mode.

全く為されなかった場合及び更新処理か−の資源゛のみ
で為された場合に、第17エーズ(更新保証・処理)と
第2フエーズ(終了処理)から成る同期・処理のうち、
第17エーズを省略することで達成15される。
Of the synchronization/processing consisting of the 17th phase (update guarantee/processing) and the 2nd phase (termination process), if the update process is not performed at all or if the update process is performed using only the resources of -
15 is achieved by omitting the 17th ace.

〔作用〕[Effect]

本発明の資源同期制御方式は、分散型データベ。 The resource synchronization control method of the present invention is a distributed database.

−スの処理システムにおいて、トランザクション。- A transaction in a base processing system.

処理の過程で、各データベースの処理システムの1・ 
4 ・ 資源へ更新処理がなされると、資源群処理状態管理テー
ブルの資源群処理状態ビット列のビットな。
During the processing process, 1.
4. When update processing is performed on a resource, the bits of the resource group processing status bit string in the resource group processing status management table.

オンし、更に資源群リストに更新処理された資源“名称
を登録し、トランザクション処理終了時に1資源群処理
状態管理テーブルを参照し、もし更新5処理が全ての資
源にて行われなかった場合は、全。
On, register the name of the updated resource in the resource group list, refer to the 1 resource group processing status management table at the end of transaction processing, and if update 5 processing is not performed on all resources. ,all.

ての資源に対し、第1フエーズ(更新保証処理)“を行
わず、第2フエーズ(終了処理)を行い、更゛新処理が
−の資源に対してのみ行われた場合は、。
If the second phase (termination process) is performed without performing the first phase (update guarantee process) for all resources, and the update process is performed only for - resources.

更新処理の為された資源に第2フエーズを行い、10正
常に第27エーズを終えたら、他の資源に対し・て第2
7エーズを行い、更新処理が2以上の資源゛で為された
場合は、更新処理が為された資源に対・し第17エーズ
を行い、同期の確証が得られたら・全ての資源に対し第
2フエーズを行うように動作5するので、最小の同期処
理で複数資源間のトラン。
Perform the second phase on the resource that has been updated, and after successfully completing the 27th phase, perform the second phase on the other resources.
Perform 7 aids, and if update processing is performed on two or more resources, perform 17 aids on the resources for which update processing was performed, and once synchronization is confirmed, perform 17 aids on all resources. Since the operation 5 is performed to perform the second phase, transactions between multiple resources can be performed with minimal synchronization processing.

ザクシ日ンの終了を達成することが可能である。。It is possible to achieve the end of Zakushi Sun. .

〔実施例〕〔Example〕

以下、本発明の一実施例を第1図から第5図に。 An embodiment of the present invention is shown in FIGS. 1 to 5 below.

より説明する。本発明のシステム構成の一例を第一、1
゜図に示すと、各処理装置はCPUと処理プロゲラ゛ム
とデータベースマネージメントシステム(DB’MS)
を有する。またそれぞれの処理装置が有す′るオンライ
ンコントロールプログラムによって、。
I will explain further. An example of the system configuration of the present invention is as follows.
As shown in the figure, each processing device consists of a CPU, a processing program, and a database management system (DB'MS).
has. In addition, each processing device has an online control program.

処理装置間の通信制御が行われる。各処理装置け1デイ
スク装置等にデータを保有し、資源を管理し。
Communication control between processing devices is performed. Data is stored in each processing unit and one disk device, etc., and resources are managed.

ている。また各処理装置の処理プログラム内には゛後述
する資源群処理状態管理テーブルが設けられ゛ている。
ing. In addition, a resource group processing status management table, which will be described later, is provided in the processing program of each processing device.

このようなシステム構成において、末完。With this kind of system configuration, it is completely finished.

明の制御方式の一実施例を第1図を使って説明すlOる
と、処理装置Bが、トランザクション処理を行・うよう
動作すると、当制御方式における当トラン・ザクジョン
の同期の制御を行う管理システムとし・ての機能をも果
すものである。処理装置A及び処・理装置Cは、処理装
置Bで発生したトランサクシ151ンの処理のうち、資
源A、CK対するデータの。
An example of the control method according to the present invention will be explained using FIG. It also functions as a management system. The processing device A and the processing/processing device C process the data for the resources A and CK among the processing of the transaction 151 generated by the processing device B.

υ照、更新等の依頼された処理を管理する管理シ。A management system that manages requested processing such as lighting and updates.

ステムである。It is a stem.

資源群の処理状態を管理する資源群処理状態管。A resource group processing status manager that manages the processing status of resource groups.

理テーブルの内容の概要を第2図すに示す。資源−。An overview of the contents of the management table is shown in Figure 2. Resources.

群処理状態管理テーブルは、処理装置の処理プロ。The group processing status management table is the processing program of the processing device.

グラム内に設けられ、その内容は可変の資源群数゛のビ
ット列と処理した資源群リストから構成され゛る。
The content consists of a bit string with a variable number of resource groups and a list of processed resource groups.

次に、第1図aを用いて、トランザクン目ン開−□始に
伴う処理について説明すると、まず処理装置゛Bにおい
て、資源群処理状態管理テーブルの初期化が行われ、ト
ランザクションが開始される(1)。。
Next, using FIG. 1a, we will explain the processing associated with the start of a transaction. First, in the processing device B, the resource group processing status management table is initialized, and the transaction is started. (1). .

そして、処理装置Aに対して処理装置Bがデータ゛の参
照、更新の処理の依頼を行う際に、特に処理11・装置
Aヘデータの更新処理(3)を依頼する際に、処理装置
B内の資源群処理状態管理テーブルの更新・フラグをま
ず設定する(2)。その後更新処理に係る・ものか否か
を問い合せ、更新処理に係るものとの・報告されると、
当該報告に従い更新フラグの設定15をもう一度別に行
う(4)。資源群処理状態管理チー。
Then, when processing device B requests processing device A to refer to and update data, particularly when requesting processing 11 and data update processing (3) to device A, processing in processing device B is performed. First, the update/flag of the resource group processing status management table is set (2). After that, we inquire whether it is related to the update process or not, and when it is reported that it is related to the update process,
According to the report, the update flag is set 15 again separately (4). Resource group processing status management team.

プルに更新処理前に設定したフラグのビットと更。Change the flag bits set before the pull update process.

新処理後に設定したフラグのビットの論理積を取9す、
更新処理状態にある資源について更新フラグが設定され
る。同様に、処理装置Cに対しても(5)、 7 。
Performs the logical product of the bits of the flag set after the new process,
An update flag is set for a resource that is in an update processing state. Similarly, for processing device C (5), 7.

(61、(71の同様の処理がなされ、また、自管理シ
ス゛テムである処理装置Bにも同様の(81# (91
の処理が。
(61, (Similar processing of (71) is performed, and similar processing of (81# (91
The processing of.

なされ、資源群に対する処理状態の管理を行う。。and manages the processing status of resource groups. .

以上の資源に対する更新処理状態を管理する処理・のフ
ローチャートを示したのが、第2図である。−゛この資
源への処理を第2図aのフローチャードを使って説明す
ると、トランザクション処理にお。
FIG. 2 shows a flowchart of the process for managing the update processing status for the above-mentioned resources. -゛The process for this resource can be explained using the flowchart in Figure 2a as transaction processing.

いて、各資源に対して、データの更新の処理が依。The data update process depends on each resource.

頼される場合は、更新のチェックを行う。それは・更新
可能性が有る場合(11)、処理装置B内の資10源群
処理状態管理テーブルへの更新ビットをオン・にする(
12)。資源での更新処理が為されている・時に、更新
処理に係る処理であるかの問い合せを・行い、この問い
合せに対して更新処理に係る処理であるとの報告がある
場合(13)は、処理装置B15内の資源群処理状態管
理テーブルの更新ビットを。
Check for updates if requested. If there is a possibility of updating (11), turn on the update bit for the resource group processing status management table in processing device B (
12). When an update process is being performed on a resource, an inquiry is made as to whether the process is related to an update process, and if there is a report that the process is related to an update process in response to this inquiry (13), The update bit of the resource group processing status management table in the processing device B15.

新たにオンにし、前述の更新可能性有りのときの。When it is newly turned on and there is a possibility of updating as mentioned above.

更新ビットと報告があったときの更新ビットとの。The update bit and the update bit when there is a report.

論理積を行い(14)、真に更新処理中の資源群に。Performs logical AND (14) to determine the resource group that is truly undergoing update processing.

ついて資源群処理状態管理テーブルの資源群数9.1、
8 。
Therefore, the number of resource groups in the resource group processing status management table is 9.1,
8.

ビット列がオンとなり、更新処理実行中を資源群。The bit string is turned on and the resource group is updated.

処理状態管理テーブルで管理する。Manage using the processing status management table.

この様に、第2図aの資源への更新状態管理処。In this way, the update state management process for the resources in FIG. 2a.

理が行われ、第1図aのトランザクションの終了。The transaction of FIG. 1a is completed.

処理(10)が、開始された時点で、第2図すに示。When the process (10) is started, it is shown in FIG.

した資源群処理状態管理テーブルを参照し、資源。Refer to the resource group processing status management table and select resources.

Bの処理装置Bは、各資源の処理状態に応じた同。Processing device B of B performs the same processing according to the processing status of each resource.

期処理の制御を行い、より少ない交信回数による。control the periodic processing and reduce the number of communications.

トランザクション処理処理の制御を行う。以上の。Controls transaction processing. More than.

同期処理のフローを示しだのが第6図である。つ1(1
まり、第1図では、更新状態の管理を行い、この。
FIG. 6 shows the flow of the synchronization process. 1 (1)
In other words, in FIG. 1, the update status is managed.

結果を資源群処理状態管理テーブルで保持し、更。The results are retained and updated in the resource group processing status management table.

に当該テーブルを使って、同期の制御処理を説明。Using this table, explain the synchronization control process.

したのが第3図である。The result is shown in Figure 3.

第3図は、トランザクション処理を管理し、ト、。FIG. 3 shows how to manage transaction processing.

ランザクシロンの終了処理において以下のような終了の
同期処理を行う。資源群処理状態管理テーブルの資源群
数のビット列を参照して、全てのビットがオフかどうか
チェックしく15)、全てのビットがオフならば、更新
処理が全く行われなかつたものとして、各処理装置に対
し、トランザクシ・オンの終了を通告する同期終了処理
C(第2フエ・−ズ)を行う(22)。次に1ビツトの
みオンであるかをチェックしく1 /l) 、もし1ビ
ツトのみオンの場合は、資源群処理状態管理テーブルの
処理は資源5群リストにより、ビットオンの資源を有す
る処理・装置に対し、同期終了処理C(第2フエーズ)
を・行い、ロールバックでなければ(18)、他の資源
の処理装置に対し、同期終了処理C(第2フエーズ・)
を行う(19)。このように、全てのビットがオフ10
か、1ビツトのみオンの時は更新処理が他の資源・で行
われなかったので、更新処理の完了を確認し。
In the termination processing of Ranzaxiron, the following termination synchronization processing is performed. Refer to the bit string for the number of resource groups in the resource group processing status management table and check whether all bits are off.15) If all bits are off, it is assumed that no update processing has been performed, and each processing Synchronization end processing C (second phase) is performed to notify the device of the end of the transaction (22). Next, check whether only 1 bit is on (1/l), and if only 1 bit is on, processing of the resource group processing status management table is performed by the processing/device that has the resource with the bit on according to the resource 5 group list. In contrast, synchronization end processing C (second phase)
If it is not a rollback (18), the synchronization end process C (second phase) is performed for other resource processing devices.
(19). In this way, all bits are off 10
Or, if only one bit is on, the update process was not performed on other resources, so check that the update process is complete.

同期処理の確証を得る第1フエーズの更新保証処・理を
行う必要がない。また、複数ビットオンの場・合は、ビ
ットオンの各資源を管理する処理装置に15対してそれ
ぞれ第1フエーズの同期処理である更。
There is no need to perform update guarantee processing in the first phase to ensure synchronization processing. In addition, if multiple bits are on, the first phase of synchronization processing is performed for each of the 15 processing devices that manage the resources with the bits on.

新保証処理Pr−Cを行い(20)、ロールノ)ツクで
な。
Execute the new warranty process Pr-C (20) and click Rollno.

ければ(21)%缶処理装置に対し、同期終了処理。If (21)%, perform synchronous termination processing for the can processing device.

C(第2フエーズ)を竹う(22)。Take C (second phase) (22).

以上のように、処理状態に応じた同期処理が行、。As described above, synchronous processing is performed according to the processing status.

われ、トランプクン■ソに関する全ての処理の終゛了と
なる。
We will conclude all dealings with Trump.

次に、トランザクシ」ン終了に伴う処理につい。Next, let's talk about the processing associated with the end of the transaction.

て、個別の処理パターンを第1図すで、各資源の゛処理
状態別の制御例を示す。
The individual processing patterns are shown in FIG. 1, which shows an example of control for each processing state of each resource.

Xlは当トランザクシ■/処理において、最大゛の交信
回数となる場合の例である。当例において゛は、3つの
資源全てに対して更新処理が行われた。
Xl is an example of the case where the maximum number of communications is ``in this transaction ``/process. In this example, update processing was performed on all three resources.

場合は、各資源を管理する処理装置に対し、第1゜フー
ーズである同期処理の確証を得るための更新10保証処
理(Pr−C)を3つの処理装置それぞれに。
In this case, update 10 guarantee processing (Pr-C) is applied to each of the three processing devices to obtain confirmation of synchronization processing, which is the first step, for the processing devices that manage each resource.

対して行う。もし全ての管理システムから確証が。Do it against. If there is confirmation from all management systems.

得られない場合は、例えば、更新処理が実施され。If it cannot be obtained, for example, an update process is performed.

た資源のうち、いずれかがロックして閉塞状態に“なっ
たか、障害状態になった場合等では、結局ト1′″ラン
ザクシーン処理のうちの更新処理が確実に完。
If one of the resources is locked and becomes blocked, or becomes in a failure state, the update process in the 1' run sequence process will definitely be completed.

了していないの・で、更新保証処理(Pr−C)を行・
なっても同期処理の確証が得られない。また、単。
I have not completed the update guarantee process (Pr-C).
Even if this happens, there is no guarantee that the synchronization process is complete. Also, simple.

に更新処理が笑行されても終了していない場合も・ある
。このような場合は、ロールバック処理によ2j、11
 。
There are cases where the update process is not completed even after it is completed. In such a case, the rollback process will restore 2j, 11
.

す、各資源の処理装置はトランザクシロンの開始・状態
に戻される。全ての確証が得られた場合は、・トランザ
クシロン処理の終了を通告する第2フエ・−ズの同期終
了処理fclをそれぞれの処理装置に対・して行い、ト
ランザクシロンに関する全ての処理)の終了となる。
Then, the processing units for each resource are returned to the starting state of the transaction. If all the confirmations are obtained, the second phase synchronization termination process fcl is performed on each processing device to notify the end of the transaction process, and all processes related to the transaction process are completed. It ends.

X3.Xnは当トランザクシlン処理において最小の交
信回数となる場合の例である。当例にお・いては、1つ
の資源のみ更新かあるいは、全ての・資源に更新が行わ
れなかった場合であり、前者の10場合は、更新処理の
、為された資源以外の資源群へ。
X3. Xn is an example where the number of communications is the minimum in this transaction process. In this example, only one resource is updated, or all resources are not updated. In the former case, the update process is applied to a group of resources other than the updated resource. .

更新処理の完了を確認し、同期処理の確証を得る。Confirm the completion of the update process and obtain confirmation of the synchronization process.

第1フエーズの処理が省略できる。まず更新の行。Processing in the first phase can be omitted. First, the update line.

われた資源の処理装置に対する同期終了処理(C1を。Synchronization end processing (C1) for the processing device of the resource.

行い処理が成功しなかった場合、全ての処理装置、。All processing devices, if the processing performed is not successful.

に対しロールバックを行う。成功した場合は、残。Perform a rollback. If successful, leave.

りの処理装置に対し、同期終了処理(C1を行い、ト。Perform synchronization end processing (C1) on the other processing device.

ランザクシ目ンに関する全ての処理の終了となる。This is the end of all processing related to Ranzalaceniformes.

後者の場合ても、更新処理が為されていないため。Even in the latter case, the update process has not been performed.

に、資源群への更新処理の完了を確認し、同期処7,1
1・ 12・ 理の確証を得る第17エーズを省略できる。従っ・で、
各資源に対し、同期終了処理fclを行うのみで・ある
After confirming the completion of the update process to the resource group, synchronization process 7,1
1. 12. You can omit the 17th aes to confirm the theory. Follow me,
Only the synchronization termination process fcl is performed for each resource.

X2は当トランザクション処理において、資源・Aの処
理装置Aに対しては、検索処理が行われ、・他の資源の
処理装置に対しては、更新処理が行わ・れだ場合の例で
ある。当例においては、検索処理・しか行われなかった
資源の処理装置に対しては、・同期処理のフェーズ分け
は、行わず、更新処理が・行われた資源の処理装置に対
してのみ第1フエ−10ズの同期処理である更新保証処
理(Pr−C)を行。
X2 is an example of a case where, in this transaction processing, search processing is performed on processing device A of resource A, and update processing is performed on processing devices of other resources. In this example, synchronization processing is not divided into phases for the resource processing device for which only search processing has been performed, and the first phase is applied only to the resource processing device for which update processing has been performed. Perform update guarantee processing (Pr-C), which is synchronization processing of Phase 10.

い、確証が得られた後、トランザクシロン処理の。After confirmation is obtained, transaxilon processing is performed.

終了を通告する第2フエーズの同期終了処理と処。Synchronous termination processing of the second phase for notifying termination.

理装置Aに対する同期終了処理を行うものである。This is to perform synchronization termination processing for the physical device A.

本実施例によれば、トランザクシロンの終了時1−。According to this embodiment, 1- at the end of a transaxilon.

に、資源群処理状態管理テーブルを参照し、当該。Then, refer to the resource group processing status management table and check the relevant information.

テーブル内の資源群処理状態ビット列と資源群り。Resource group processing status bit string and resource group in the table.

ストにより、各データベースの資源の更新処理状。Update processing status of each database resource.

態と更新処理に係る資源名称をチェックし、更新。Check and update the resource name related to the status and update process.

処理がされなかったか、更新処理が−の資源群に、。For resource groups that were not processed or updated.

おいてのみ行われた場合に、同期の確証を得る第・1フ
エーズを省略して、各データベースの処理シ・ステム間
の交信回数を減少させて、トランザクシ・璽ン処理の終
了を確実に行うことができ、効率良・く資源の同期制御
が行える効果がある。
omit the first phase to ensure synchronization when the process is performed only at the time of transaction, reduce the number of communications between the processing systems of each database, and ensure completion of transaction/seal processing. This has the effect of allowing efficient resource synchronization control.

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

〔発明の効果〕〔Effect of the invention〕

本発明によれば、複数の資源にまたがって、ト・ランザ
クシ冒ンが処理される場合に、資源群処理15状態管理
テーブルにより、トランザクン肩ン処理。
According to the present invention, when a transaction transaction is processed across a plurality of resources, the transaction transaction processing is performed using the resource group processing 15 state management table.

を各資源で確実に終了させるだめの同期制御にお。Synchronous control to ensure that each resource terminates.

ける最適な同期処理を、各資源の処理システムに。Optimal synchronization processing for each resource processing system.

対し行うことにより、交信回数を減少させ、より。By doing so, the number of communications can be reduced and more.

効率の良いデータ処理方式を実現する効果がある一〇It has the effect of realizing an efficient data processing method.

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

第1図は本発明の一実施例の複数資源に対する・トラン
ザクシ■ン処理の概略図、第2図は、第1・図の資源へ
対する処理時の流れ図、第3図は、第・1図のトランザ
クシ目ン終了処理の流れ図、第43図は、資源への処理
とトランザクシーン終了処理・の対応表を示した図、第
5図は本発明のシステム・の−構成図である。 1〜9・・・データ処理、 10・・・トランザクシ目ン終了処理、IQ15〜22
・・・整合性制御における同期処理、X1〜Xn・・・
整合性制御における同期処理例のパヌーン。 r−−−−−−−−−− 第 3 図 トjン寸゛グショソ終3処理
FIG. 1 is a schematic diagram of transaction processing for multiple resources according to an embodiment of the present invention, FIG. 2 is a flowchart of processing for the resources in FIG. FIG. 43 is a diagram showing a correspondence table between resource processing and transaction scene end processing, and FIG. 5 is a block diagram of the system of the present invention. 1-9...Data processing, 10...Transaction end processing, IQ15-22
...Synchronization processing in consistency control, X1 to Xn...
Panoon of synchronization processing examples in consistency control. r----------- Figure 3 Ton size final 3 processing

Claims (1)

【特許請求の範囲】[Claims] (1)複数のデータ資源を有する分散型データベースシ
ステムにおけるトランザクション処理と、トランザクシ
ョン処理終了後の前記各資源に対して同期の確証を得る
更新保証処理と同期の完了を達成する同期終了処理から
成る同期処理方式において、前記システム内に各資源に
対する更新処理の状態を管理するテーブルを設け、トラ
ンザクション処理においてデータ資源の更新処理の依頼
が為されると、当該データ資源について更新処理が実行
中であることを前記テーブルに登録し、トランザクショ
ン処理終了時に、前記テーブルを参照し、更新処理が全
ての資源のいずれにおいても行われなかったならば、全
ての資源に対して同期の完了を達成する同期終了処理を
行い、1の資源についてのみ更新処理が行われたならば
、更新処理の為された資源についてまず同期終了処理を
行い、当該同期終了処理の成功後に他の全ての資源に対
して同期終了処理を行い、2以上の資源について更新処
理が行われたならば、更新処理の行われた資源に同期の
確証を得る更新保証処理を行い、同期の確証が得られれ
ば全ての資源へ同期終了処理を行うことを特徴とする資
源同期制御方式。
(1) Synchronization consisting of transaction processing in a distributed database system that has multiple data resources, update guarantee processing to ensure synchronization for each resource after transaction processing, and synchronization termination processing to complete synchronization. In the processing method, a table is provided in the system to manage the status of update processing for each resource, and when a request for update processing of a data resource is made in transaction processing, the update processing is being executed for the data resource. is registered in the table, and at the end of transaction processing, the table is referenced, and if update processing is not performed on any of the resources, synchronization completion processing is performed for all resources. If the update process is performed on only one resource, the synchronization end process is first performed on the updated resource, and after the synchronization end process is successful, the synchronization end process is performed on all other resources. If update processing is performed on two or more resources, update guarantee processing is performed to obtain synchronization confirmation for the updated resource, and if synchronization confirmation is obtained, synchronization end processing is performed on all resources. A resource synchronization control method characterized by performing the following.
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 true JPS63259742A (en) 1988-10-26
JP2650907B2 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
JP2650907B2 (en) 1997-09-10

Similar Documents

Publication Publication Date Title
CN110990182B (en) Transaction processing method, device, equipment and storage medium
US7814065B2 (en) Affinity-based recovery/failover in a cluster environment
EP0702295B1 (en) System for building optimal commit trees in a distributed transaction system
KR20020090520A (en) Parallel logging method of transaction processing system
US8499298B2 (en) Multiprocessing transaction recovery manager
WO2005124547A1 (en) Techniques for achieving higher availability of resources during reconfiguration of a cluster
CN108255994A (en) A kind of database version management method based on database snapshot
CN110599166A (en) Method and device for acquiring transaction dependency relationship in block chain
US10803028B2 (en) Multiphase approach to data availability
JPS63259742A (en) Resource synchronization control system
JPH0218635A (en) Decentralized process file control system
JP7416768B2 (en) Methods, apparatus and systems for non-destructively upgrading distributed coordination engines in distributed computing environments
JPH05307478A (en) Constituting method for data base management system
JPH05204816A (en) High-efficiency access method to storage data in connecting table
JPS59111564A (en) Cyclic two phase commitment controlling system
JPH02186452A (en) Data update commit processing system
JPH06119227A (en) Distributed data base control system
JPH01113831A (en) Load module replacement system in on-line mode
JPH047769A (en) Control system for system generation information
JPH0460850A (en) Transaction completion processing system
JP2926873B2 (en) Computer system
JP2920978B2 (en) Library update method
CN115994827A (en) Transaction processing method and device based on distributed transaction
JPS59180770A (en) Transaction processing system
JPS59177662A (en) Optimizing system of exclusive unit in exclusive control

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term