JP2629330B2 - Data update commit processing method - Google Patents

Data update commit processing method

Info

Publication number
JP2629330B2
JP2629330B2 JP1007012A JP701289A JP2629330B2 JP 2629330 B2 JP2629330 B2 JP 2629330B2 JP 1007012 A JP1007012 A JP 1007012A JP 701289 A JP701289 A JP 701289A JP 2629330 B2 JP2629330 B2 JP 2629330B2
Authority
JP
Japan
Prior art keywords
data
update
commit
processing
resource
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 - Fee Related
Application number
JP1007012A
Other languages
Japanese (ja)
Other versions
JPH02186452A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1007012A priority Critical patent/JP2629330B2/en
Publication of JPH02186452A publication Critical patent/JPH02186452A/en
Application granted granted Critical
Publication of JP2629330B2 publication Critical patent/JP2629330B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔概要〕 計算機における、同時に行われないと矛盾を生ずるよ
うな複数のデータ更新の場合のデータ保全のためのコミ
ット処理に関し、 連係してコミット処理を行う資源管理部とコーディネ
ータとの通信オーバヘッド等を削減できるデータ更新コ
ミット処理方式を目的とし、 データベース及びファイル等のデータ資源ごとの管理
を行う資源管理部と、アプリケーションプログラムによ
って実行されるトランザクションを管理するコーディネ
ータとを有し、各該トランザクション終了時に該コーデ
ィネータが該資源管理部に要求して実行されるコミット
処理によって、該トランザクションによる該データ資源
の複数のデータ更新を一括して有効化するようにした計
算機システムにおいて、該資源管理部は、該アプリケー
ションプログラムにより該トランザクション開始前に実
行される該データ資源のオープン処理要求を処理すると
共に、該オープンした該データ資源の該コミット処理に
関する所要の制御情報を該コーディネータに通知し、該
トランザクションによって該データ資源についてのデー
タ更新要求を処理するごとに、該処理実行を示す更新通
知を、該資源管理部から該コーディネータに通知し、該
コーディネータは、受け取った該更新通知に対応する該
データ資源について、該制御情報に従って前記コミット
処理を該資源管理部に要求するように構成する。
DETAILED DESCRIPTION OF THE INVENTION [Summary] Regarding commit processing for data preservation in the case of a plurality of data updates that would otherwise cause inconsistency if not performed simultaneously, a resource management unit that performs commit processing in cooperation with a computer Aiming at a data update commit processing method capable of reducing communication overhead with a coordinator, the method includes a resource management unit for managing each data resource such as a database and a file, and a coordinator for managing a transaction executed by an application program. A computer system in which a plurality of data updates of the data resource by the transaction are collectively validated by a commit process executed by the coordinator requesting the resource management unit at the end of each transaction. The resource management unit The transaction program processes an open processing request of the data resource executed before the start of the transaction, and notifies the coordinator of necessary control information on the commit processing of the opened data resource. Each time a data update request for a resource is processed, the resource management unit notifies the coordinator of an update notification indicating the execution of the processing, and the coordinator determines, for the data resource corresponding to the received update notification, The resource management unit is requested to perform the commit process according to control information.

〔産業上の利用分野〕[Industrial applications]

本発明は計算機において、同時に行われないと矛盾を
生ずるような複数のデータ更新の場合のデータ保全のた
めの、データ更新コミット処理方式に関する。
The present invention relates to a data update commit processing method for maintaining data in a case of a plurality of data updates that would cause inconsistency if not performed simultaneously in a computer.

〔従来の技術〕[Conventional technology]

第2図は計算機システムの構成例を示すブロック図で
ある。アプリケーションプログラム1は、図に例示する
ようにopen FILE、open DB等の命令によって、必要なフ
ァイルやデータベース等のデータ資源にアクセスするた
めの制御情報を初期化するための、いわゆるオープン処
理を要求した後、それらにアクセスする処理を行うトラ
ンザクションを例えばbegin TRN命令で開始する。
FIG. 2 is a block diagram showing a configuration example of a computer system. The application program 1 requests so-called open processing for initializing control information for accessing necessary files and data resources such as a database by instructions such as open FILE and open DB as illustrated in the figure. Thereafter, a transaction for performing processing for accessing them is started by, for example, a begin TRN instruction.

こゝでトランザクションとは、データ更新が同時に行
われないと矛盾を生ずるような複数のデータ資源の処理
を、矛盾を生じないように制御することを一目的として
設けられる処理の単位であって、複数のデータ間の無矛
盾性を保証するために一括して更新する必要のある複数
のデータ更新がある場合に、それらのデータ更新を1ト
ランザクションにまとめて、前記のopen命令で準備した
データ資源のうち、必要なものについて図示のようにwr
ite FILE、write DB等で更新を要求した後、COMMIT命令
を発行するように構成する。
Here, a transaction is a unit of processing provided for the purpose of controlling the processing of a plurality of data resources that would cause inconsistency unless data is updated at the same time so that inconsistency does not occur. When there are a plurality of data updates that need to be updated collectively in order to guarantee consistency between a plurality of data, those data updates are combined into one transaction, and the data resources prepared by the above-mentioned open instruction are collected. Of the necessary items, wr as shown
It is configured to issue a COMMIT instruction after requesting an update with ite FILE, write DB, etc.

アプリケーションプログラム1が発行するデータ資源
の処理を要求する命令は、それぞれの資源管理部2a、2b
等が受け付けて処理するものとし、open FILE及、びope
n DB命令は資源管理部2a、2bの初期化部10が処理して、
バッファの獲得その他、ファイル等へのアクセス処理の
ための初期化処理を実行し、又write FILE、write DB等
を後述のように処理する。
The command issued by the application program 1 for requesting the processing of the data resources includes the resource management units 2a and 2b.
Open FILE and ope
The n DB instruction is processed by the initialization unit 10 of the resource management units 2a and 2b,
It performs initialization processing for acquiring a buffer and accessing a file or the like, and processes write FILE, write DB, and the like as described later.

又、トランザクションを管理し、そのトランザクショ
ンのコミット要求をサポートするためにコーディネータ
3が設けられ、アプリケーションプログラム1が発行す
るbegin TRN命令をトランザクション開始部16が受け付
けると、そのトランザクションのための管理表領域を初
期化して、後述の管理表テェイン19の準備をする。
Further, a coordinator 3 is provided to manage a transaction and support a commit request of the transaction. When the transaction start unit 16 receives a begin TRN instruction issued by the application program 1, a management table area for the transaction is created. Initialize and prepare the management table chain 19 described later.

次にwrite FILE、write DB命令は、それらが各データ
資源について、そのトランザクションで最初の更新要求
であれば、資源管理部2a、2b等の初回更新処理部11が受
け付ける。
Next, the write FILE and write DB instructions are received by the initial update processing unit 11 such as the resource management units 2a and 2b if they are the first update requests in the transaction for each data resource.

初回更新処理部11は、先ずコーディネータ3の管理表
処理部17に対して、後のコミット処理に関係して必要な
制御情報として、仮更新処理部13、コミット処理部14及
び回復処理部15へ処理を要求する場合の各アドレスと更
新対象のファイル名等のデータ資源名を通知し、次にバ
ッファをクリアし、バッファに更新データを格納して更
新処理を終わる。このように各write命令においては、
データ資源の実際の更新を行わず、更新データをバッフ
ァするのみである。
The first update processing unit 11 first sends the management table processing unit 17 of the coordinator 3 to the temporary update processing unit 13, the commit processing unit 14, and the recovery processing unit 15 as control information necessary for the subsequent commit processing. Each address when processing is requested and a data resource name such as a file name to be updated are notified, then the buffer is cleared, the updated data is stored in the buffer, and the update processing is completed. Thus, in each write instruction,
It does not actually update the data resources, but only buffers the updated data.

なお、そのトランザクションで2回目以降の更新要求
では、更新処理部12が要求を受け付けて、制御情報の通
知は行わず、前記のような更新処理のみを行う。
For the second or subsequent update request in the transaction, the update processing unit 12 accepts the request and does not notify the control information, but performs only the update processing as described above.

コーディネータ3の管理表処理部17は、コミット処理
の制御情報として受け取った前記のアドレス及びデータ
資源名からなる、第3図(a)に例示するような管理表
を作成し、管理表チェイン19につないで保持する。
The management table processing unit 17 of the coordinator 3 creates a management table including the address and the data resource name received as the control information of the commit processing as illustrated in FIG. Connect and hold.

アプリケーションプログラム1では、以上のようにし
てトランザクションの一連の処理を終わると、COMMIT命
令をコーディネータ3に発行して、コミット処理を要求
するので、コミット要求処理部18はそのトランザクショ
ンの管理表チェイン19の各管理表で示される各データ資
源についての仮更新処理を、資源管理部2a、2bの仮更新
処理部13に要求する。
When a series of transaction processing is completed as described above, the application program 1 issues a COMMIT instruction to the coordinator 3 to request a commit processing. Therefore, the commit request processing unit 18 stores the transaction in the management table chain 19 of the transaction. The temporary update processing unit 13 of the resource management units 2a and 2b is requested to perform a temporary update process for each data resource indicated in each management table.

仮更新処理部13はバッファに保持する更新内容に従っ
て、例えばファイルやデータベース等の各データ資源4
a、4bの中に元のデータを保存したまゝ、その更新後の
データブロックを重複して設けるような方法で、それら
の仮更新を行ない、各データの仮更新の終了状態をコミ
ット要求処理部18に回答する。
The provisional update processing unit 13 is configured to update each data resource 4 such as a file or a database in accordance with the update content held in the buffer.
While the original data is stored in a and 4b, these data blocks are provisionally updated in such a way that duplicated data blocks are provided, and the end state of the provisional update of each data is committed. Answer to Part 18.

コミット要求処理部18は仮更新の終了状態の回答を待
ち、管理表チェイン19の全管理表に対応する仮更新につ
いて、正常に完了した旨の回答をすべて受信すると、資
源管理部2a、2bのコミット処理部14にコミット処理を要
求する。
The commit request processing unit 18 waits for a response of the end state of the provisional update, and upon receiving all the responses to the effect that the provisional update corresponding to all the management tables of the management table chain 19 has been completed normally, when the resources management units 2a and 2b It requests the commit processing unit 14 to perform commit processing.

そこでコミット処理部14は、前記ののように仮更新し
たデータ資源4a、4b等について、例えば更新前の元のデ
ータブロックを削除して、更新データのデータブロック
を有効にすることによって、データ更新を完了する。
Thus, the commit processing unit 14 updates the data resources 4a, 4b and the like provisionally updated as described above, for example, by deleting the original data block before the update and making the data block of the updated data valid. Complete.

又、コーディネータ3のコミット要求処理部18では、
前記のように仮更新処理要求を出した後、一部の仮更新
についてでも正常に完了しないことを検出した場合に
は、仮更新処理を要求したすべての各データ資源につい
て、資源管理部2a、2bの回復処理部15に回復処理を要求
し、アプリケーションプログラム1に対して、更新不成
功による処理中止を通知するので、回復処理部15はデー
タ資源4a、4bの仮更新をすべて取り消すことによって、
更新をしない元の状態に復元する。
In the commit request processing unit 18 of the coordinator 3,
After issuing the provisional update processing request as described above, if it is detected that the provisional update processing is not completed normally even for some of the provisional updates, the resource management unit 2a, Since the recovery processing unit 15 requests the recovery processing unit 15 to perform recovery processing and notifies the application program 1 that the processing has been stopped due to the update failure, the recovery processing unit 15 cancels all temporary updates of the data resources 4a and 4b.
Restore the original state without updating.

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

以上の説明から明らかなように、コーディネータ3は
コミック要求の処理のために、必要な資源管理部2a、2b
から仮更新処理部13、コミット処理部14及び回復処理部
15へ処理を要求する場合の各アドレスと更新対象のデー
タ資源名等の制御情報の通知を受ける必要があり、更新
するデータはアプリケーションプログラム1で更新要求
の命令が発行されて確定するために、アプリケーション
プログラム1における各トランザクション内の初回デー
タ更新要求ごとに、資源管理部2a、2bからコーディネー
タ3へ、必要な更新データに係る制御情報の運転が行わ
れる。
As is clear from the above description, the coordinator 3 has the necessary resource management units 2a and 2b to process the comic request.
From the temporary update processing unit 13, the commit processing unit 14, and the recovery processing unit
It is necessary to receive notification of control information such as each address and the name of the data resource to be updated when requesting the processing to 15. The data to be updated is determined by the application program 1 in which an update request instruction is issued and determined. Each time the first data update request in each transaction in the application program 1 is performed, the control information related to the required update data is operated from the resource management units 2a and 2b to the coordinator 3.

しかし、1アプリケーションプログラム内の処理は多
数のトランザクションに分けられている場合が多く、前
記のようにデータ更新処理のあるトランザクションごと
に前記制御情報の授受を行うことにより、コミットのた
めの制御情報の通信が比較的大きなオーバヘッドの要因
になっているという問題がある。
However, the processing in one application program is often divided into a large number of transactions, and by transmitting and receiving the control information for each transaction having data update processing as described above, the control information for commit is transmitted. There is a problem that communication causes a relatively large overhead.

本発明は、前記のように連係してコミット処理を行う
資源管理部とコーディネータとの、通信オーバヘッド等
を削減できるデータ更新コミット処理方式を目的とす
る。
An object of the present invention is to provide a data update commit processing method that can reduce communication overhead and the like between a resource management unit and a coordinator that perform commit processing in cooperation as described above.

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

第1図は、本発明の構成を示すブロック図である。 FIG. 1 is a block diagram showing the configuration of the present invention.

図は計算機システムの構成を示し、22a、22bはアプリ
ケーションプログラム1及びコーディネータ23の要求に
よって各データ資源4a、4bをか管理する初期化部30、初
回更新処理部31、更新処理部12、仮更新処理部13、コミ
ット処理部14、回復処理部15を有する資源管理部であ
り、コーディネータ23はトランザクション開始部32、管
理表生成部33、管理表設定部34、コミット処理部35及び
管理表チェイン36によって、アプリケーションプログラ
ム1のトランザクションの管理を行い、資源管理部22
a、22bに要求してコミット要求を処理する。
The figure shows the configuration of the computer system. Reference numerals 22a and 22b denote an initialization unit 30, an initial update processing unit 31, an update processing unit 12, and a temporary update unit that manage the data resources 4a and 4b in response to a request from the application program 1 and the coordinator 23. A resource management unit including a processing unit 13, a commit processing unit 14, and a recovery processing unit 15. The coordinator 23 includes a transaction start unit 32, a management table generation unit 33, a management table setting unit 34, a commit processing unit 35, and a management table chain 36. Manages the transaction of the application program 1 by the resource management unit 22
a, 22b to process the commit request.

〔作用〕[Action]

計算機システムにおいて、データベース及びファイル
等のデータ資源4a、4bごとの管理を行う資源管理部22
a、22bと、アプリケーションプログラム1によって実行
されるトランザクションを管理するコーディネータ23と
は、各該トランザクション終了時に該コーディネータ23
が該資源管理部22a、22bに要求して実行されるコミット
処理によって、該トランザクションによるデータ資源4
a、4bの複数のデータ更新を一括して有効化する。
In the computer system, a resource management unit 22 that manages data resources 4a and 4b such as databases and files.
a, 22b, and the coordinator 23 that manages the transactions executed by the application program 1, the coordinator 23 at the end of each transaction.
Is requested by the resource management units 22a and 22b to be executed, and
Activate multiple data updates a and 4b collectively.

資源管理部22a、22bは、アプリケーションプログラム
1によりトランザクション開始前に実行されるデータ資
源4a、4bのオープン処理要求を処理すると共に、オープ
ンしたデータ資源4a、4bのコミット処理に関する所要の
制御情報をコーディネータ23に通知し、又トランザクシ
ョンによってデータ資源4a、4bについてのデータ更新要
求を処理するごとに、その処理実行を示す更新通知を、
当資源管理部22a、22bからコーディネータ23に通知する
ので、コーディネータ23は、コミット要求を処理すると
き、前記の受け取った更新通知に対応するデータ資源4
a、4bについてのみ、該当制御情報に従って前記のコミ
ット処理を資源管理部22a、22bに要求する。
The resource management units 22a and 22b process open processing requests of the data resources 4a and 4b executed by the application program 1 before the start of a transaction, and provide necessary coordinator control information on commit processing of the opened data resources 4a and 4b. 23, and each time a data update request for the data resources 4a, 4b is processed by a transaction,
Since the resource management units 22a and 22b notify the coordinator 23, when the coordinator 23 processes the commit request, the data resource 4 corresponding to the received update notification
Only for a and 4b, the above-mentioned commit processing is requested to the resource management units 22a and 22b according to the corresponding control information.

以上の処理方式により、コミット処理に関する完全な
制御情報はアプリケーションプログラムの最初の、デー
タ資源のオープン時に1回通知されるのみで、各トラン
ザクションでは例えば更新要求のあるデータ資源名に対
応する管理表のアドレス等のみの通知に縮小できるの
で、コミット処理のための通信オーバヘッドが減少す
る。
According to the above processing method, complete control information on commit processing is notified only once at the time of opening a data resource at the beginning of an application program. Since the notification can be reduced to only the address or the like, the communication overhead for the commit process is reduced.

〔実施例〕〔Example〕

第1図において、第2図と同一符号を付して示す部分
は前記従来と同様の機能を有し、又初期化部30、初回更
新処理部31、トランザクション開始部32及びコミット要
求処理部35は、以下に特に述べる他は、それぞれ前記従
来の初期化部10、初回更新処理部11、トランザクション
開始部16及びコミット要求処理部18と同様とする。
In FIG. 1, portions denoted by the same reference numerals as those in FIG. 2 have the same functions as those of the related art, and include an initialization unit 30, an initial update processing unit 31, a transaction start unit 32, and a commit request processing unit 35. Are the same as the conventional initialization unit 10, initial update processing unit 11, transaction start unit 16 and commit request processing unit 18, respectively, except as described below.

第1図の計算機システムにおいて、アプリケーション
プログラム1は、従来と同様にopen FILE命令、open DB
命令等によって、必要なファイルやデータベース等のデ
ータ資源にアクセスするための制御情報を初期化する、
いわゆるオープン処理を要求した後、それらにアクセス
する処理を行うトランザクションを例えばbegin TRN命
令で開始し、前記のopen命令で準備したデータ資源のう
ち、必要なものについて図示のようにwrite FILE命令、
write DB命令等で更新を要求した後、一連の処理の最後
にCOMMIT命令を発行する。
In the computer system shown in FIG. 1, the application program 1 includes an open FILE instruction and an open DB
Initialize control information for accessing necessary data resources such as files and databases by instructions, etc.
After requesting so-called open processing, a transaction for performing processing for accessing them is started by, for example, a begin TRN instruction, and, among the data resources prepared by the open instruction, a necessary one of a write FILE instruction as shown in FIG.
After requesting an update with a write DB instruction or the like, a COMMIT instruction is issued at the end of a series of processing.

open FILE及びopen DB命令は資源管理部22a、22bの初
期化部30が処理して、従来と同様にデータ資源へのアク
セス処理のための初期化処理を実行すると共に、本発明
によりコーディネータ23に対して、オープンするデータ
資源のコミット処理のための制御情報として、仮更新処
理部13、コミット処理部14及び回復処理部15の各アドレ
スとオープンしたデータ資源名を通知する。
The open FILE and open DB instructions are processed by the initialization unit 30 of the resource management units 22a and 22b to execute initialization processing for accessing data resources as in the related art, and to the coordinator 23 according to the present invention. On the other hand, as the control information for the commit processing of the data resource to be opened, the addresses of the temporary update processing unit 13, the commit processing unit 14, and the recovery processing unit 15 and the name of the opened data resource are notified.

コーディネータ23の管理表生成部33がこの制御情報を
受け取り、オープンされた各データ資源の制御情報等を
保持するための、第3図(b)に例示するような管理表
を生成して管理表チェイン36につなぎ、例えばその管理
表アドレスを資源管理部22a、22bに渡す。
The management table generation unit 33 of the coordinator 23 receives the control information, generates a management table as illustrated in FIG. 3B for holding the control information of each opened data resource, and the like. The connection is made to the chain 36, and the management table address is passed to the resource management units 22a and 22b, for example.

次にアプリケーションプログラム1が発行するbegin
TRN命令をコーディネータ23のトランザクション開始部3
2が受け付けると、そのトランザクションのための管理
表チェイン36の各管理表の更新表示の項(第3図(b参
照)を、「未更新」の表示に初期化する。
Next, begin issued by application program 1
Transaction start part 3 of coordinator 23 with TRN instruction
When 2 is accepted, the item of the update display of each management table of the management table chain 36 for the transaction (see FIG. 3B) is initialized to the display of "not updated".

開始されたトランザクションで、write FILE、write
DB命令等のデータ更新要求を発行すると、それが各デー
タ資源について、当トランザクションで最初の更新要求
の場合には、資源管理部22a、22b等の初回更新処理部31
が受け付けて、コーディネータ23の管理表設定部34に対
して、更新要求を処理することを通知する更新通知とし
て、そのデータ資源名に対応する管理表アドレスを通知
した後、従来のようにバッファ上のみで更新処理を行
う。
In the started transaction, write FILE, write
When a data update request such as a DB instruction is issued, if it is the first update request in this transaction for each data resource, the first update processing unit 31 such as the resource management units 22a and 22b
Received, and notifies the management table setting unit 34 of the coordinator 23 of the management table address corresponding to the data resource name as an update notification for notifying that the update request is to be processed. Perform the update process only with

管理表設定部34は、前記の更新通知で受け取った管理
表アドレスによって、その管理表の更新表示の項に「更
新」の表示を設定する。
The management table setting unit 34 sets the display of “update” in the update display section of the management table based on the management table address received in the update notification.

各データ資源について、そのトランザクションで2回
目以降の更新要求では、更新処理部12が受け付けて、前
記のような更新処理のみを行う。
For each data resource, for the second or subsequent update request in the transaction, the update processing unit 12 accepts the update request and performs only the update processing as described above.

アプリケーションプログラム1で、トランザクション
の一連の処理を終わり、COMMIT命令をコーディネータ23
に発行して、コミット処理を要求すると、コミット要求
処理冷35は管理表チェイン36の管理表で更新表示の項が
「更新」の表示になっている管理表のみ、すべての管理
表の内容に従って仮更新処理を、資源管理部22a、22bの
仮更新処理部13に要求する。
The application program 1 completes a series of transaction processing, and issues a COMMIT instruction to the coordinator 23.
Issue a request for commit processing, the commit request processing module 35 will update the management table of the management table chain 36 according to the contents of all the management tables only in the management table where the item of update display is displayed as "update". The temporary update processing is requested to the temporary update processing unit 13 of the resource management units 22a and 22b.

仮更新処理部13は従来と同様にデータ資源の仮更新を
行い、終了状態を回答する。コミット要求処理部35は管
理表チェイン36の「更新」表示のある全管理表に対応す
る仮更新について、正常完了の回答をすべて受信する
と、資源管理部22a、22bのコミット処理部14にコミット
処理を要求し、従来と同様にデータの本更新を完了す
る。
The provisional update processing unit 13 performs the provisional update of the data resource in the same manner as in the related art, and returns an end state. When the commit request processing unit 35 receives all the responses of the normal completion of the temporary update corresponding to all the management tables in the management table chain 36 corresponding to “update”, the commit request processing unit 35 performs the commit processing to the commit processing unit 14 of the resource management units 22a and 22b. And complete the main update of the data as in the prior art.

又、コミット要求処理部35で、一部の仮更新について
でも正常に完了しないことを検出した場合には、仮更新
処理を要求したすべての各データ資源について、資源管
理部22a、22bの回復処理部15に回復処理を要求して、仮
更新をすべて取り消し更新をしない元の状態に復元す
る。
If the commit request processing unit 35 detects that even a partial update is not completed normally, the recovery processing of the resource management units 22a and 22b is performed for all the data resources that have requested the temporary update process. A request is made to the unit 15 for recovery processing, and all the provisional updates are canceled to restore the original state where no updates are made.

以上の処理方式により、コミット処理に必要な制御情
報について、各トランザクションでは単に管理表の更新
表示の初期化及び設定を行うのみでよいのでコミット処
理に係るコーディネータと資源管理部との通信オーバヘ
ッドを減少することができる。
According to the above-described processing method, for each piece of control information required for the commit process, each transaction simply needs to initialize and set the update display of the management table, so that the communication overhead between the coordinator and the resource management unit related to the commit process is reduced. can do.

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

以上の説明から明らかなように本発明によれば、計算
機で同時に行われないと矛盾を生ずるような複数のデー
タ更新を行う場合のデータ保全のためのコミット処理に
おいて、連係してコミット処理を行う資源管理部とコー
ディネータとの通信オーバヘッド等を削減して、システ
ムの処理効率を向上できるという著しい工業的効果があ
る。
As is apparent from the above description, according to the present invention, in a commit process for data preservation in the case of performing a plurality of data updates that would cause inconsistency if not performed simultaneously by the computer, the commit process is performed in a coordinated manner. There is a remarkable industrial effect that the processing overhead of the system can be improved by reducing the communication overhead and the like between the resource management unit and the coordinator.

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

第1図は本発明の構成を示すブロック図、 第2図は従来の構成例を示すブロック図、 第3図は管理表の説明図である。 図において、 1はアプリケーションプログラム、 2a、2b、22a、22bは資源管理部、 3、23はコーディネータ、4a、4bはデータ資源、 10、30は初期化部、11、31は初回更新処理部、 12は更新処理部、13は仮更新処理部、 14はコミット処理部、15は回復処理部、 16、32はトランザクション開始部、 17は管理表処理部、 18、35はコミット要求処理部、 19、36は管理表チェイン、 33は管理表生成部、34は管理表設定部を示す。 FIG. 1 is a block diagram showing a configuration of the present invention, FIG. 2 is a block diagram showing a conventional configuration example, and FIG. 3 is an explanatory diagram of a management table. In the figure, 1 is an application program, 2a, 2b, 22a and 22b are resource management units, 3 and 23 are coordinators, 4a and 4b are data resources, 10, 30 are initialization units, 11, 31 are initial update processing units, 12 is an update processing unit, 13 is a temporary update processing unit, 14 is a commit processing unit, 15 is a recovery processing unit, 16 and 32 are transaction start units, 17 is a management table processing unit, 18, and 35 are commit request processing units, 19 , 36 is a management table chain, 33 is a management table generation unit, and 34 is a management table setting unit.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】データベース及びファイル等のデータ資源
(4a、4b)ごとの管理を行う資源管理部(22a、22b)
と、アプリケーションプログラム(1)によって実行さ
れるトランザクションを管理するコーディネータ(23)
とを有し、各該トランザクション終了時に該コーディネ
ータが該資源管理部に要求して実行されるコミット処理
によって、該トランザクションによる該データ資源の複
数のデータ更新を一括して有効化するようにした計算機
システムにおいて、 該資源管理部(22a、22b)は、該アプリケーションプロ
グラム(1)により該トランザクション開始前に実行さ
れる該データ資源のオープン処理要求を処理すると共
に、該オープンした該データ資源の該コミット処理に関
する所要の制御情報を該コーディネータ(23)に通知
し、 該トランザクションによって該データ資源についてのデ
ータ更新要求を処理するごとに、該処理実行を示す更新
通知を、該資源管理部(22a、22b)から該コーディネー
タ(23)に通知し、 該コーディネータ(23)は、受け取った該更新通知に対
応する該データ資源について、該制御情報(36)に従っ
て前記コミット処理を該資源管理部(22a、22b)に要求
するように構成されていることを特徴とするデータ更新
コミット処理方式。
A resource management unit (22a, 22b) for managing each data resource (4a, 4b) such as a database and a file.
And a coordinator (23) for managing transactions executed by the application program (1)
And a commit process executed by the coordinator requesting the resource management unit at the end of each transaction to collectively validate a plurality of data updates of the data resource by the transaction. In the system, the resource management unit (22a, 22b) processes an open processing request of the data resource executed by the application program (1) before the start of the transaction, and executes the commit of the opened data resource. The coordinator (23) is notified of necessary control information on processing, and each time a transaction updates a data update request for the data resource, an update notification indicating the execution of the processing is sent to the resource management unit (22a, 22b). ) Notifies the coordinator (23), and the coordinator (23) A data update commit processing method configured to request the resource management unit (22a, 22b) to perform the commit processing according to the control information (36) for the data resource corresponding to the update notification. .
JP1007012A 1989-01-12 1989-01-12 Data update commit processing method Expired - Fee Related JP2629330B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1007012A JP2629330B2 (en) 1989-01-12 1989-01-12 Data update commit processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1007012A JP2629330B2 (en) 1989-01-12 1989-01-12 Data update commit processing method

Publications (2)

Publication Number Publication Date
JPH02186452A JPH02186452A (en) 1990-07-20
JP2629330B2 true JP2629330B2 (en) 1997-07-09

Family

ID=11654136

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1007012A Expired - Fee Related JP2629330B2 (en) 1989-01-12 1989-01-12 Data update commit processing method

Country Status (1)

Country Link
JP (1) JP2629330B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101336258B1 (en) 2007-05-29 2013-12-03 삼성전자 주식회사 Apparatus and method of processing data of non-volatile memory

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5165031A (en) * 1990-05-16 1992-11-17 International Business Machines Corporation Coordinated handling of error codes and information describing errors in a commit procedure

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
塚本克治、外1名著「分散処理」(昭61−6−26)昭晃堂 P.122−123

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101336258B1 (en) 2007-05-29 2013-12-03 삼성전자 주식회사 Apparatus and method of processing data of non-volatile memory

Also Published As

Publication number Publication date
JPH02186452A (en) 1990-07-20

Similar Documents

Publication Publication Date Title
US5586312A (en) Method and apparatus for using an independent transaction processing application as a service routine
CA2436517C (en) Method and apparatus for data processing
US6029177A (en) Method and system for maintaining the integrity of a database providing persistent storage for objects
US6374243B1 (en) Database access system having time-out mechanism
JPH035846A (en) Remote-application execution system
JPH0552973B2 (en)
JPH04229355A (en) Data access method and data processing system
KR20040074627A (en) System and method of distributing replication commands
JPH07104810B2 (en) Shared file access control method
CN112104504B (en) Transaction management framework for large-scale resource access, design method and cloud platform
JP2629330B2 (en) Data update commit processing method
AU653044B2 (en) Data processing system
JPH04284548A (en) Data base exclusive controlling system
JP2545436B2 (en) Distributed database commitment processor
JPH06119227A (en) Distributed data base control system
JPH0844670A (en) File managing method, computer system using the same and operating method for computer system
JPS6316774B2 (en)
JP3006527B2 (en) Client / server type database system
JPH05342180A (en) Shared data display control system
JPH02190961A (en) Transaction control system
JPH08147203A (en) Transaction processing system
JP2000047986A (en) Transaction processing system
JPH05204677A (en) Associative locking system
JPH03196341A (en) Data synchronization managing system in on-line system
JPH05257792A (en) Method and device for accessing common data

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees