JPH03137741A - Transaction phase control device - Google Patents

Transaction phase control device

Info

Publication number
JPH03137741A
JPH03137741A JP1278192A JP27819289A JPH03137741A JP H03137741 A JPH03137741 A JP H03137741A JP 1278192 A JP1278192 A JP 1278192A JP 27819289 A JP27819289 A JP 27819289A JP H03137741 A JPH03137741 A JP H03137741A
Authority
JP
Japan
Prior art keywords
phase information
phase
transaction
storage area
generation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1278192A
Other languages
Japanese (ja)
Inventor
Takeshi Ohata
大畑 毅
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP1278192A priority Critical patent/JPH03137741A/en
Publication of JPH03137741A publication Critical patent/JPH03137741A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To effectively use system resources by providing a phase control table showing the control state of phase information in respective transaction processes and controlling a generation in a phase information storage area. CONSTITUTION:A phase control means 20 checks whether a transaction process 102 is writing second generation phase information in a transaction process 101 by using the phase control table 30. When the writing of second generation phase information is not completed in the process 101, the process 102 waits for the completion of the writing of second generation phase information. When the writing of phase information completes in the process 101, the process 102 declares that second generation phase information in being written to the table 30 and writes second generation phase information in the process 102 into the phase information storage area 41. The flag of the table 30 which is raised in a previous step is eliminated here, and a processing terminates. Thus, the system resources can effectively be used.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、オンライントランザクションシステムのトラ
ンザクションフェーズ管理装置に利用する。特に、フェ
ーズ情報格納領域の有効的活用に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention is utilized in a transaction phase management device of an online transaction system. In particular, it relates to the effective use of phase information storage areas.

〔概要〕〔overview〕

本発明はトランザクションフェーズ管理装置において、 フェーズ情報の管理状態を示すフェーズ管理テーブルを
設け、このテーブルの内容に基づき一世代前のフェーズ
情報の格納領域を再利用することにより、 システムリソースの有効利用ができるようにしたもので
ある。
The present invention provides a transaction phase management device that provides a phase management table that indicates the management status of phase information, and reuses the storage area for phase information from one generation ago based on the contents of this table, thereby making effective use of system resources. It has been made possible.

〔従来の技術〕[Conventional technology]

従来、オンライントランザクションシステムのフェーズ
管理装置は、フェーズ情報書込み中にシステムがダウン
したときのことを考慮して世代管理を行いながらフェー
ズ管理を行っていたが、フェーズ情報格納領域の利用に
関して無駄があった。
Conventionally, phase management devices for online transaction systems have performed phase management while performing generation management in case the system goes down while writing phase information, but this has resulted in wasteful use of the phase information storage area. Ta.

第4図は従来例のトランザクションフェーズ管理装置の
世代管理の動作原理を示すフローチャートである。第5
図は従来例のトランザクションフェーズ管理装置のフェ
ーズ情報格納領域の内容を示す図である。
FIG. 4 is a flowchart showing the operating principle of generation management of a conventional transaction phase management device. Fifth
The figure shows the contents of a phase information storage area of a conventional transaction phase management device.

第5図において、一対のフェーズ情報41A、42Aお
よび一対のフェーズ情報43A、44Aが示すように二
つの世代のフェーズ情報を格納する必要がある。
In FIG. 5, it is necessary to store two generations of phase information, as shown by a pair of phase information 41A, 42A and a pair of phase information 43A, 44A.

第4図を参照して世代管理の必要性から説明する。トラ
ンザクションのフェーズ制御はステップS41のように
フェーズ情報書込み開始から完了までを−まとまりとし
、ステップS42で実際のフェーズ情報をフェーズ情報
格納領域に書込む(これを第一世代のフェーズ情報とす
る)。トランザクションが先に進んだあとステップ34
3で再びフェーズ制御を行うとき、フェーズ情報書込み
開始宣言があってから完了宣言を発する前に(たとえば
ステップS44の時点で)障害やシステムダウン(S4
5)が発生した場合に、今回のフェーズ情報書込みはま
だ完了していないので、ステップ342で書込んだ領域
にステップS44で上書きしていると、確定したフェー
ズ情報がどこにもないのでダウン後のトランザクション
リスタートが不可能である。
The necessity of generation management will be explained with reference to FIG. The phase control of the transaction is carried out as a group from the start to the completion of phase information writing as in step S41, and in step S42 the actual phase information is written in the phase information storage area (this is assumed to be the first generation phase information). Step 34 after the transaction has proceeded
When performing phase control again in Step 3, a failure or system down (S4
If 5) occurs, the current phase information writing has not yet been completed, so if the area written in step 342 is overwritten in step S44, the final phase information will not be found anywhere, so Transaction restart is not possible.

そこでステップS44で書込んだフェーズ情報はステッ
プS42で行ったフェーズ情報格納領域とは別の領域に
第二世代のフェーズ情報として書込むこととする。これ
によってステップS45でシステムダウン発生した場合
でもステップ346で第一世代のフェーズ情報を読込む
ことでトランザクションリスタートが可能になる。
Therefore, the phase information written in step S44 is written as second generation phase information in an area different from the phase information storage area written in step S42. As a result, even if the system goes down in step S45, the transaction can be restarted by reading the first generation phase information in step 346.

第4図に示した方法によってフェーズ情報格納領域は第
5図に示すようになる。第5図はフェーズ情報を書込む
トランザクションプロセス1.2の二つある場合である
By the method shown in FIG. 4, the phase information storage area becomes as shown in FIG. FIG. 5 shows a case where there are two transaction processes 1 and 2 that write phase information.

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

しかし、このような従来例のフェーズ管理装置では、フ
ェーズ情報書込み中にシステムがダウンしたときのこと
を考慮して世代管理を行いながらフェーズ管理を行って
いるが、−世代前のフェーズ情報領域が無駄に残され、
システムリソースの有効管理上問題点があった。
However, in such conventional phase management devices, phase management is performed while performing generation management in consideration of the possibility that the system goes down while writing phase information. left in vain,
There were problems in effective management of system resources.

本発明は上記の問題点を解決するもので、システムリソ
ースの有効利用ができるトランザクションフェーズ管理
装置を提供することを目的とする。
The present invention solves the above problems, and aims to provide a transaction phase management device that can effectively utilize system resources.

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

本発明は、複数のトランザクションプロセスと、この各
トランザクションプロセスのフェーズ情報を格納するフ
ェーズ情報格納領域と、上記各トランザクションプロセ
スからのフェーズ情報を世代管理を行って上記フェーズ
情報格納領域に格納するフェーズ管理手段とを備えたト
ランザクションフェーズ管理装置において、上記各トラ
ンザクションプロセスのフェーズ情報の管理状態を示す
フェーズ管理テーブルを備え、上記フェーズ管理手段は
、上記フェーズ管理テーブルの内容に基づき上記フェー
ズ情報格納領域内の世代管理を行うとともに一世代前の
フェーズ情報の格納領域を再利用する手段を含むことを
特徴とする。
The present invention provides a plurality of transaction processes, a phase information storage area for storing phase information of each transaction process, and phase management for performing generation management on phase information from each transaction process and storing it in the phase information storage area. The transaction phase management device includes a phase management table that indicates the management state of phase information of each transaction process, and the phase management means controls the phase information storage area in the phase information storage area based on the contents of the phase management table. It is characterized by including means for performing generation management and reusing a storage area for phase information of one generation before.

〔作用〕[Effect]

各トランザクションプロセスのフェーズ情報の管理状態
を示すフェーズ管理テーブルを設ける。
A phase management table is provided that indicates the management status of phase information of each transaction process.

フェーズ管理手段はこのフェーズ管理テーブルの内容に
基づきフェーズ情報格納領域内の世代管理を行うととも
に一世代前のフェーズ情報の格納領域を再利用してフェ
ーズ情報を格納する。以上の動作によりシステムリソー
スの有効利用ができる。
The phase management means performs generation management in the phase information storage area based on the contents of this phase management table, and also reuses the phase information storage area of one generation before to store the phase information. The above operations enable effective use of system resources.

〔実施例〕〔Example〕

本発明の実施例について図面を参照して説明する。第1
図は本発明一実施例トランザクジョンフェーズ管理装置
のブロック構成図である。第1図において、トランザク
ションフェーズ管理装置は、複数のトランザクションプ
ロセス10..10□と、各トランザクションプロセス
10のフェーズ情報を格納するフェーズ情報格納領域4
0と、各トランザクションプロセス10からのフェーズ
情報を世代管理を行ってフェーズ情報格納領域40に格
納するフニーズ管理手段20とを備える。
Embodiments of the present invention will be described with reference to the drawings. 1st
The figure is a block diagram of a transaction phase management device according to an embodiment of the present invention. In FIG. 1, the transaction phase management device includes a plurality of transaction processes 10. .. 10□, and a phase information storage area 4 that stores phase information of each transaction process 10.
0, and a Funnies management means 20 that performs generation management on phase information from each transaction process 10 and stores it in a phase information storage area 40.

ここで本発明の特徴とするところは、各トランザクショ
ンプロセス10のフェーズ情報の管理状態を示すフェー
ズ管理テーブル30を備え、フェーズ管理手段30は、
フェーズ管理テーブル30の内容に基づきフェーズ情報
格納領域40内の世代管理に支障のない一世代前のフェ
ーズ情報の格納領域を再利用する手段を含むことにある
Here, the present invention is characterized by comprising a phase management table 30 indicating the management status of phase information of each transaction process 10, and the phase management means 30:
The purpose of the present invention is to include means for reusing the phase information storage area of the previous generation, which does not interfere with generation management in the phase information storage area 40, based on the contents of the phase management table 30.

このような構成のトランザクションフェーズ管理装置の
動作について説明する。第2図は本発明のトランザクシ
ョンフェーズ管理装置のフェーズ情報格納領域の内容を
示す図である。第3図は本発明のトランザクションフェ
ーズ管理装置のフェーズ管理手段の動作を示すフローチ
ャートである。
The operation of the transaction phase management device having such a configuration will be explained. FIG. 2 is a diagram showing the contents of the phase information storage area of the transaction phase management device of the present invention. FIG. 3 is a flowchart showing the operation of the phase management means of the transaction phase management device of the present invention.

本実施例によって第3図のフェーズ情報格納領域がどの
ようになるかを中心に詳細に説明する。
A detailed explanation will be given focusing on how the phase information storage area shown in FIG. 3 becomes according to this embodiment.

本実施例は第4図に示すステップS44のフェーズ情報
書込みが完了すればステップS42で書込んだフェーズ
情報格納領域は再利用可能であることに着目している。
This embodiment focuses on the fact that once the phase information writing in step S44 shown in FIG. 4 is completed, the phase information storage area written in step S42 can be reused.

第2図に示すフェーズ情報格納領域41.42.43は
それぞれ第5図に示すフェーズ情報格納領域41A、4
2A、43Aに対応している。
The phase information storage areas 41, 42, and 43 shown in FIG. 2 are the phase information storage areas 41A and 4 shown in FIG. 5, respectively.
Compatible with 2A and 43A.

トランザクションプロセス2が第二世代のフェーズ情報
を書込む場合に、従来ならば第5図に示すフェーズ情報
格納領域44Aに書込むところを本実施例では第2図に
示すフェーズ情報格納領域41Aに上書きする。このよ
うすを第3図を用いて詳細に説明する。
When the transaction process 2 writes second generation phase information, conventionally it would write to the phase information storage area 44A shown in FIG. 5, but in this embodiment it overwrites it to the phase information storage area 41A shown in FIG. 2. do. This situation will be explained in detail using FIG.

第3図において、フェーズ管理手段20は、トランザク
ションプロセス2がまずトランザクションプロセスlで
第二世代フェーズ情報を書込み中かどうかをフェーズ情
報管理テーブル30を用いてチエツクする(S31)。
In FIG. 3, the phase management means 20 first uses the phase information management table 30 to check whether the transaction process 2 is writing second generation phase information in the transaction process 1 (S31).

もしトランザクションプロセス1で第二世代フェーズ情
報書込みが未完であった場合にそのトランザクションプ
ロセス2はトランザクションプロセス1のフェーズ情報
書込み完了を待合わせる。トランザクションプロセス1
でフェーズ情報の書込みが完了している場合に、まずト
ランザクションプロセス2は第二世代のフェーズ情報を
書込み中であることをフェーズ管理テーブル30に宣言
しく532) 、第2図に示すフェーズ情報格納領域4
1にトランザクションプロセス2の第二世代フェーズ情
報を書込む(S 33)。ステップ332で立てたフェ
ーズ管理情報テーブル3゜のフラグはステップS34で
消し、処理を終える。
If writing of the second generation phase information has not been completed in transaction process 1, transaction process 2 waits for transaction process 1 to complete writing of phase information. Transaction process 1
If writing of the phase information has been completed in , the transaction process 2 first declares to the phase management table 30 that it is writing the second generation phase information (532), and stores the phase information storage area shown in FIG. 4
The second generation phase information of transaction process 2 is written to 1 (S33). The flag in the phase management information table 3° set in step S332 is cleared in step S34, and the process ends.

上述のように本実施例は、フェーズ情報格納領域を約3
/4に減らすことができるために、システムリソースの
有効活用ができる。
As mentioned above, in this embodiment, the phase information storage area is approximately 3
Since it can be reduced to /4, system resources can be used effectively.

フェーズ情報格納領域を同じとするトランザクションフ
ェーズ情報の書込みが同時に発生し、片方のトランザク
ションプロセスが待たされる事態が頻発することは考え
にくいので性能面での低下はおき得ない。
It is unlikely that a situation will occur frequently where transaction phase information is written to the same phase information storage area and one transaction process is forced to wait, so there will be no reduction in performance.

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

本発明は、以上説明したように、システムリソースの有
効活用ができる優れた効果がある。
As explained above, the present invention has the excellent effect of effectively utilizing system resources.

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

第1図は本発明一実施例トランザクジョンフェーズ管理
装置のブロック構成図。 第2図は本発明のトランザクションフェーズ管理装置の
フェーズ情報格納領域の内容を示す図。 第3図は本発明のトランザクションフェーズ管理装置の
フェーズ管理手段の動作を示すフローチャート。 第4図は従来例のトランザクションフェーズ管理装置の
世代管理の動作原理を示すフローチャート。 第5図は従来例のトランザクションフェーズ管理装置の
フェーズ情報格納領域の内容を示す図。 10、.10□・・・トランザクションプロセス、2o
・・・フェース管理手段、30・・・フェーズ管理テー
ブル、40・・・フェーズ情報格納領域、41.41A
・・・トランザクションプロセス1のフェーズ情報格納
領域(第一世代)、42.42A・・・トランザクショ
ンプロセス1のフェーズ情報格納領域(第二世代)、4
3.43A・・・トランザクションプロセス2のフェー
ズ情報格納領域(第一世代)、44A・・・トランザク
ションプロセス2のフェーズ情報格納領域(第二世代)
FIG. 1 is a block diagram of a transaction phase management device according to an embodiment of the present invention. FIG. 2 is a diagram showing the contents of the phase information storage area of the transaction phase management device of the present invention. FIG. 3 is a flowchart showing the operation of the phase management means of the transaction phase management device of the present invention. FIG. 4 is a flowchart showing the operating principle of generation management of a conventional transaction phase management device. FIG. 5 is a diagram showing the contents of a phase information storage area of a conventional transaction phase management device. 10,. 10□・・・Transaction process, 2o
...Face management means, 30... Phase management table, 40... Phase information storage area, 41.41A
... Phase information storage area of transaction process 1 (first generation), 42.42A... Phase information storage area of transaction process 1 (second generation), 4
3.43A... Phase information storage area for transaction process 2 (first generation), 44A... Phase information storage area for transaction process 2 (second generation)
.

Claims (1)

【特許請求の範囲】 1、複数のトランザクションプロセスと、この各トラン
ザクションプロセスのフェーズ情報を格納するフェーズ
情報格納領域と、上記各トランザクションプロセスから
のフェーズ情報を世代管理を行って上記フェーズ情報格
納領域に格納するフェーズ管理手段とを備えたトランザ
クションフェーズ管理装置において、 上記各トランザクションプロセスのフェーズ情報の管理
状態を示すフェーズ管理テーブルを備え、上記フェーズ
管理手段は、上記フェーズ管理テーブルの内容に基づき
上記フェーズ情報格納領域内の世代管理を行うとともに
一世代前のフェーズ情報の格納領域を再利用する手段を
含む ことを特徴とするトランザクションフェーズ管理装置。
[Claims] 1. A plurality of transaction processes, a phase information storage area for storing phase information of each transaction process, and generation management of the phase information from each transaction process to the phase information storage area. A transaction phase management device comprising: a phase management table that indicates a management state of phase information of each transaction process, and the phase management device stores the phase information based on the contents of the phase management table. A transaction phase management device characterized by comprising means for managing generations within a storage area and reusing a storage area for phase information of one generation before.
JP1278192A 1989-10-24 1989-10-24 Transaction phase control device Pending JPH03137741A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1278192A JPH03137741A (en) 1989-10-24 1989-10-24 Transaction phase control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1278192A JPH03137741A (en) 1989-10-24 1989-10-24 Transaction phase control device

Publications (1)

Publication Number Publication Date
JPH03137741A true JPH03137741A (en) 1991-06-12

Family

ID=17593876

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1278192A Pending JPH03137741A (en) 1989-10-24 1989-10-24 Transaction phase control device

Country Status (1)

Country Link
JP (1) JPH03137741A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004017205A1 (en) * 2002-08-14 2004-02-26 Access Co., Ltd. Log recording method, file management program, and information device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004017205A1 (en) * 2002-08-14 2004-02-26 Access Co., Ltd. Log recording method, file management program, and information device

Similar Documents

Publication Publication Date Title
JPH03137741A (en) Transaction phase control device
JPH01303529A (en) Invalidation system for retrial point
JPS62125452A (en) Data back-up system for storage device
JPS61296461A (en) Message guarantee system between on-line jobs
JPH0259837A (en) Data recovery processing system
JPH039449A (en) Electronic disk subsystem
JP2906739B2 (en) Storage device
JPH0330033A (en) File copying processor
JPH03105625A (en) Reserving/restoring system for intermediate language
JPH0563824B2 (en)
JPS61221856A (en) Message recovery processing system
JPS63228245A (en) Automatic restoration system for data base
JPH0470937A (en) File updating system
JPH0415832A (en) Fault processing system
JPS61206047A (en) Back-up system for computer
JPH03255547A (en) Memory dump output system
JPS6370362A (en) Command intermission restart system in time sharing system
JPH0427570B2 (en)
JPH01216434A (en) Multitask control system for transaction processing
JPS6362030A (en) Crt display method
JPH02307146A (en) Communication processor
JPS592151A (en) Check point recovering system
JPH03230237A (en) Fault countermeasure system for standard sequential file processing
JPH0247748A (en) Data processing system
JPH01163848A (en) Double updating preventing system for disk file