JPH02186452A - Data update commit processing system - Google Patents

Data update commit processing system

Info

Publication number
JPH02186452A
JPH02186452A JP1007012A JP701289A JPH02186452A JP H02186452 A JPH02186452 A JP H02186452A JP 1007012 A JP1007012 A JP 1007012A JP 701289 A JP701289 A JP 701289A JP H02186452 A JPH02186452 A JP H02186452A
Authority
JP
Japan
Prior art keywords
update
data
processing
commit
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.)
Granted
Application number
JP1007012A
Other languages
Japanese (ja)
Other versions
JP2629330B2 (en
Inventor
Hiroshi Yoshida
浩 吉田
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

Landscapes

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

Abstract

PURPOSE:To reduce communication overhead and to improve processing efficiency by requesting commit processing to a resource control part by a coordinator according to control information concerning data resources corresponding to update information. CONSTITUTION:When a transaction start part 32 receives a begin-TRN instruction issued by an application program 1, the index of update display in the respective control tables of a control table chain 36 is initialized to the display of non-update. When the data update request is issued by started transaction, a first time update processing part 31 receives the request and a correspondent control table address is informed of a control table set part 34 of a coordinator 23. After that, update processing is executed. The control table set part 34 sets the display of the update to the index of the update display and executes the update processing. When a COMMIT instruction is issued by the application program 1, a commit request processing part 34 executes temporary update processing only to the control table where the update is being displayed.

Description

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

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

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

〔従来の技術〕[Conventional technology]

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

ご−でトランザクションとは、データ更新が同時に行わ
れないと矛盾を生ずるような複数のデータ資源の処理を
、矛盾を生じないように制御することを一目的として設
けられる処理の単位であって、複数のデータ間の無矛盾
性を保証するために一括して更新する必要のある複数の
データ更新がある場合に、それらのデータ更新を1トラ
ンザクシヨンにまとめて、前記のopen命令で準備し
たデータ資源のうち、必要なものについて図示のように
−riLe FILE、 write DB等で更新を
要求した後、C0rl旧T命令を発行するように構成す
る。
A transaction is a unit of processing that is established for the purpose of controlling the processing of multiple data resources to avoid inconsistencies, which would otherwise occur if data updates were not performed at the same time. If there are multiple data updates that need to be updated at once to ensure consistency between multiple data, these data updates are combined into one transaction and the data resource prepared with the above open command is created. As shown in the figure, after requesting updates using -riLe FILE, write DB, etc., the C0rl old T command is configured to be issued.

アプリケーションプログラム1が発行するデータ資源の
処理を要求する命令は、それぞれの資源管理部2a、 
2b等が受け付けて処理するものとし、open FI
LE及びopen DB命令は資源管理部2a、 2b
の初期化部10が処理して、バッファの獲得その他、フ
ァイル等へのアクセス処理のための初期化処理を実行し
、又−rite FILE、 write DB等を後
述のように処理する。
Instructions issued by the application program 1 that request processing of data resources are issued by the respective resource management units 2a,
2b, etc. shall receive and process it, and open FI
LE and open DB commands are sent to the resource management units 2a and 2b.
The initialization unit 10 executes initialization processing for obtaining buffers and accessing files, etc., and processes -write FILE, write DB, etc. as described later.

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

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

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

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

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

アプリケーションプログラムlでは、以上のようにして
トランザクションの一連の処理を終わると、COM旧T
命令をコーディネータ3に発行して、コミット処理を要
求するので、コミット要求処理部18はそのトランザク
ションの管理表チエイン19の各管理表で示される各デ
ータ資源についての仮更新処理を、資源管理部2a、2
bの仮更新処理部13に要求する。
In the application program l, after completing the series of transaction processing as described above, the COM old T
Since a command is issued to the coordinator 3 to request commit processing, the commit request processing unit 18 performs provisional update processing for each data resource indicated in each management table of the management table chain 19 of the transaction by the resource management unit 2a. ,2
A request is made to the temporary update processing unit 13 of b.

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

コミット要求処理部18は仮更新の終了状態の回答を待
ち、管理表チエイン19の全管理表に対応する仮更新に
ついて、正常に完了した旨の回答をすべて受信すると、
資源管理部2a、2bのコミット処理部14にコミット
処理を要求する。
The commit request processing unit 18 waits for a reply regarding the completion status of the temporary update, and when it receives all the replies indicating that the temporary update corresponding to all the management tables in the management table chain 19 has been successfully completed,
The commit processing unit 14 of the resource management unit 2a, 2b is requested to perform a commit process.

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

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

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

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

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

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

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

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

図は計算機システムの構成を示し、22a 、 22b
はアプリケーションプログラム1及びコーディネータ2
3の要求によって各データ資源4a、4bを管理する初
期化部30、初回更新処理部31、更新処理部12、仮
更新処理部13、コミット処理部14、回復処理部15
を有する資源管理部であり、コーディネータ23はトラ
ンザクション開始部32、管理表生成部33、管理表設
定部34、コミット処理部35及び管理表チエイン36
によって、アプリケーションプログラム1のトランザク
ションの管理を行い、資源管理部22a 、22hに要
求してコミット要求を処理する。
The figure shows the configuration of a computer system, 22a, 22b
is application program 1 and coordinator 2
An initialization unit 30, an initial update processing unit 31, an update processing unit 12, a temporary update processing unit 13, a commit processing unit 14, and a recovery processing unit 15, which manage each data resource 4a, 4b according to the request of No. 3.
The coordinator 23 is a resource management unit having 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 transactions of the application program 1, and requests the resource management units 22a and 22h to process commit requests.

〔作 用〕[For production]

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

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

以上の処理方式により、コミット処理に関する完全な制
御情報はアプリケージジンプログラムの最初の、データ
資源のオープン時に1回通知されるのみで、各トランザ
クションでは例えば更新要求のあるデータ資源名に対応
する管理表のアドレス等のみの通知に縮小できるので、
コミット処理のための通信オーバヘッドが減少する。
With the above processing method, complete control information regarding commit processing is only notified once when the data resource is first opened by the application engine program, and in each transaction, for example, the management table corresponding to the data resource name that is requested to be updated is Since the notification can be reduced to only the address etc. of
Communication overhead for commit processing is reduced.

〔実施例〕〔Example〕

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

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

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

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

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

開始されたトランザクションで、write FILE
In the initiated transaction, write FILE
.

write DB命令等のデータ更新要求を発行すると
、それが各データ資源について、当トランザクションで
最初の更新要求の場合には、資源管理部22a、22b
等の初回更新処理部31が受け付けて、コーディネータ
23の管理表設定部34に対して、更新要求を処理する
ことを通知する更新通知として、そのデータ資源名に対
応する管理表アドレスを通知した後、従来のようにバン
ファ上のみで更新処理を行う。
When a data update request such as a write DB command is issued, if it is the first update request in this transaction for each data resource, the resource management units 22a and 22b
etc., 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 to notify that the update request will be processed. , update processing is performed only on the buffer as in the past.

管理表設定部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, the update processing unit 12 accepts the second and subsequent update requests in the transaction and only performs the update processing as described above.

アプリケーションプログラムlで、トランザクションの
一連の処理を終わり、coFI旧T命令をコーディネー
タ23に発行して、コミット処理を要求すると、コミッ
ト要求処理部35は管理表チエイン36の管理表で更新
表示の項が「更新」の表示になっている管理表のみ、す
べての管理表の内容に従って仮更新処理を、資源管理部
22a、 22bの仮更新処理部13に要求する。
When the application program l finishes a series of transactions and issues a coFI old T command to the coordinator 23 to request commit processing, the commit request processing unit 35 updates the update display section in the management table of the management table chain 36. For only the management table that is displayed as "update", a request is made to the temporary update processing unit 13 of the resource management units 22a and 22b to perform temporary update processing according to the contents of all management tables.

仮更新処理部I3は従来と同様にデータ資源の仮更新を
行い、終了状態を回答する。コミット要求処理部35は
管理表チエイン36の「更新」表示のある全管理表に対
応する仮更新について、正常完了の回答をすべて受信す
ると、資源管理部22a、 22bのコミット処理部1
4にコミット処理を要求し、従来と同様にデータの本更
新を完了する。
The temporary update processing unit I3 performs temporary update of the data resource as in the past, and returns the completion status. When the commit request processing unit 35 receives all normal completion responses for the temporary updates corresponding to all the management tables with the “update” indication in the management table chain 36, the commit processing unit 1 of the resource management units 22a and 22b
4, and completes the main update of the data as in the past.

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

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

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

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

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

第1図は本発明の構成を示すブロック図、第2図は従来
の構成例を示すブロック図、第3図は管理表の説明図で
ある。 図において、 lはアプリケーションプログラム、 2a、2b 、22a、22bは資源管理部、3.23
はコーディネータ、4a、4bはデータ資源、10.3
0は初期化部、  I!、3工は初回更新処理部、12
は更新処理部、   13は仮更新処理部、14はコミ
ット処理部、 15は回復処理部、16.32はトラン
ザクション開始部、17は管理表処理部、 18.35はコミット要求処理部、 19.36は管理表チエイン、 33は管理表生成部、  34は管理表設定部を示す。 代理人 弁理士  井桁 貞コ、G% 本発明の構成を示すブロック図 第1図 従来の構成例を示すブロック図 第 図 管理表の説明図 第 図
FIG. 1 is a block diagram showing the configuration of the present invention, FIG. 2 is a block diagram showing an example of a conventional configuration, and FIG. 3 is an explanatory diagram of a management table. In the figure, l is an application program, 2a, 2b, 22a, 22b are resource management units, 3.23
is the coordinator, 4a and 4b are data resources, 10.3
0 is the initialization part, I! , 3 is the initial update processing department, 12
13 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.32 is a transaction start unit, 17 is a management table processing unit, 18.35 is a commit request processing unit, 19. 36 is a management table chain, 33 is a management table generation section, and 34 is a management table setting section. Agent Patent Attorney Sadako Igeta, G% Block diagram showing the configuration of the present invention Figure 1 Block diagram showing an example of the conventional configuration Figure 1 Explanatory diagram of the management table Figure 1

Claims (1)

【特許請求の範囲】 データベース及びファイル等のデータ資源(4a、4b
)ごとの管理を行う資源管理部(22a、22b)と、
アプリケーションプログラム(1)によって実行される
トランザクションを管理するコーディネータ(23)と
を有し、各該トランザクション終了時に該コーディネー
タが該資源管理部に要求して実行されるコミット処理に
よって、該トランザクションによる該データ資源の複数
のデータ更新を一括して有効化するようにした計算機シ
ステムにおいて、該資源管理部(22a、22b)は、
該アプリケーションプログラム(1)により該トランザ
クション開始前に実行される該データ資源のオープン処
理要求を処理すると共に、該オープンした該データ資源
の該コミット処理に関する所要の制御情報を該コーディ
ネータ(23)に通知し、 該トランザクションによって該データ資源についてのデ
ータ更新要求を処理するごとに、該処理実行を示す更新
通知を、該資源管理部(22a、22b)から該コーデ
ィネータ(23)に通知し、 該コーディネータ(23)は、受け取った該更新通知に
対応する該データ資源について、該制御情報(36)に
従って前記コミット処理を該資源管理部(22a、22
b)に要求するように構成されていることを特徴とする
データ更新コミット処理方式。
[Claims] Data resources such as databases and files (4a, 4b)
), a resource management section (22a, 22b) that manages each
and a coordinator (23) that manages transactions executed by the application program (1), and when each transaction ends, the coordinator requests the resource management unit to perform a commit process, which causes the data generated by the transaction to be processed. In a computer system that enables multiple data updates of resources at once, the resource management unit (22a, 22b):
Processes an open processing request for the data resource executed by the application program (1) before starting the transaction, and notifies the coordinator (23) of necessary control information regarding the commit processing of the opened data resource. Each time a data update request for the data resource is processed by the transaction, the resource management unit (22a, 22b) notifies the coordinator (23) of an update notification indicating the execution of the process; 23) performs the commit processing according to the control information (36) with respect to the data resource corresponding to the received update notification.
A data update commit processing method characterized in that it is configured to request b).
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 true JPH02186452A (en) 1990-07-20
JP2629330B2 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
JPH04229332A (en) * 1990-05-16 1992-08-18 Internatl Business Mach Corp <Ibm> Error code in comitting procedure and apparatus and method for processing error describing information

Families Citing this family (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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04229332A (en) * 1990-05-16 1992-08-18 Internatl Business Mach Corp <Ibm> Error code in comitting procedure and apparatus and method for processing error describing information

Also Published As

Publication number Publication date
JP2629330B2 (en) 1997-07-09

Similar Documents

Publication Publication Date Title
US5768587A (en) Operating a transaction manager with a non-compliant resource manager
KR20020090520A (en) Parallel logging method of transaction processing system
EP0525946B1 (en) Data processing system with transaction processing application
JPH02186452A (en) Data update commit processing system
JPH06119227A (en) Distributed data base control system
JPH034339A (en) System for updating data base in distributed processing system
JPH0370253B2 (en)
JPH0218635A (en) Decentralized process file control system
JPS6316774B2 (en)
JPS61145660A (en) Decentralized data base control processing system
JPS63113644A (en) Exclusive control system for data base
JPH02101551A (en) On-line contract updating/referring processing system
JPH01120621A (en) Retrieving/updating system for data base
JPH01113831A (en) Load module replacement system in on-line mode
JPH07262073A (en) Transaction continuing method and its server and resource manager
JPH04102134A (en) Delay update processing system
JPH11338834A (en) Synchronous parallel processing system and synchronous parallel processing method
JPH0243642A (en) Multi-host system data control system
CN115455113A (en) Synchronization method, device and equipment of NoSQL database and storage medium
JPH03196341A (en) Data synchronization managing system in on-line system
JPH07210436A (en) Distributed transaction processing system
JPH02190961A (en) Transaction control system
JP2001175522A (en) Method and system for exclusive control
JPH10320218A (en) Automatic starting method for cooperative job in data transfer processing
JPS5924467B2 (en) Transaction data update method

Legal Events

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