JP2856150B2 - Transaction history recording system - Google Patents

Transaction history recording system

Info

Publication number
JP2856150B2
JP2856150B2 JP8154879A JP15487996A JP2856150B2 JP 2856150 B2 JP2856150 B2 JP 2856150B2 JP 8154879 A JP8154879 A JP 8154879A JP 15487996 A JP15487996 A JP 15487996A JP 2856150 B2 JP2856150 B2 JP 2856150B2
Authority
JP
Japan
Prior art keywords
transaction
transaction history
history
data
recording
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP8154879A
Other languages
Japanese (ja)
Other versions
JPH09319638A (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.)
NEC Corp
Original Assignee
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP8154879A priority Critical patent/JP2856150B2/en
Publication of JPH09319638A publication Critical patent/JPH09319638A/en
Application granted granted Critical
Publication of JP2856150B2 publication Critical patent/JP2856150B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、オンライントラン
ザクション処理システムにおける障害回復用のトランザ
クション履歴データの記録技術に関し、特に高信頼性が
要求される大規模オンライントランザクション処理シス
テムにおけるトランザクション履歴データの記録を高速
化するための技術に関する。
The present invention relates to a technology for recording transaction history data for failure recovery in an online transaction processing system, and more particularly to a high-speed recording of transaction history data in a large-scale online transaction processing system requiring high reliability. Technology for making

【0002】[0002]

【従来の技術】従来、この種のオンライントランザクシ
ョン処理システムにおいては、障害回復用のトランザク
ション履歴データの記録時における外部記憶装置への物
理I/O動作が、トランザクション処理性能上の最大の
ボトルネックとなっている。このため、オンライントラ
ンザクション処理システムのスループット性能およびタ
ーンアラウンド性能の向上を図るためには、このトラン
ザクション履歴データの記録をいかに高速化するかが最
も重要な課題となる。
2. Description of the Related Art Conventionally, in this type of online transaction processing system, a physical I / O operation to an external storage device at the time of recording transaction history data for failure recovery is the largest bottleneck in transaction processing performance. Has become. Therefore, in order to improve the throughput performance and the turnaround performance of the online transaction processing system, how to speed up the recording of the transaction history data is the most important issue.

【0003】トランザクション履歴データの記録を高速
化するための従来の技術としては、外部記憶装置を複数
実装し、トランザクション履歴データの記録を並列に行
う手法が一般に知られている。
As a conventional technique for speeding up the recording of transaction history data, a method of mounting a plurality of external storage devices and recording transaction history data in parallel is generally known.

【0004】図7は、このような従来の技術を概念的に
説明するための図であり、トランザクション履歴ファイ
ルの物理装置数とトランザクション履歴データの記録時
間との関係が示されている。
FIG. 7 is a diagram for conceptually explaining such a conventional technique, and shows the relationship between the number of physical devices in a transaction history file and the recording time of transaction history data.

【0005】なお、図7においては、トランザクション
履歴ファイルへの1トランザクションの物理書き込みに
要する時間を100[ms]、秒あたりのトランザクシ
ョン到着件数を50[件/秒](トランザクション平均
到着間隔20[ms])と仮定している。
In FIG. 7, the time required for physically writing one transaction to the transaction history file is 100 [ms], and the number of transactions arriving per second is 50 [messages / second] (the average transaction arrival interval is 20 [ms] ]).

【0006】また、垂直方向は時間の経過を示し、矢印
711〜714および矢印741〜744はトランザク
ション履歴ファイルへの書き込み期間(100[m
s])を意味している。さらに、矢印721〜724お
よび矢印751〜754はトランザクション到着時刻を
示し、矢印731〜734および矢印761〜764は
各トランザクション処理の完了時刻を示している。
The vertical direction indicates the passage of time, and arrows 711 to 714 and arrows 741 to 744 indicate the writing period (100 [m
s]). Further, arrows 721 to 724 and arrows 751 to 754 indicate transaction arrival times, and arrows 731 to 734 and arrows 761 to 764 indicate completion times of the respective transaction processes.

【0007】図7(a)に示すように、トランザクショ
ン履歴ファイル数が“1”の場合には、4トランザクシ
ョンの記録に要する時間は、次式(1)で表されるもの
となる。
As shown in FIG. 7A, when the number of transaction history files is "1", the time required for recording four transactions is represented by the following equation (1).

【0008】100×4=400[ms] … (1)100 × 4 = 400 [ms] (1)

【0009】これに対し、図7(b)に示すように、ト
ランザクション履歴ファイル数が“2”の場合には、4
トランザクションの記録に要する時間は、次式(2)で
表されるものとなる。
On the other hand, as shown in FIG. 7B, when the number of transaction history files is "2", 4
The time required to record a transaction is represented by the following equation (2).

【0010】 100×2+20=220[ms] … (2)100 × 2 + 20 = 220 [ms] (2)

【0011】従って、1トランザクションあたりの記録
時間は、次式(3)で表されるものとなり、見かけ上の
トランザクション履歴データの記録時間が短縮されるこ
とになる。
Therefore, the recording time per transaction is represented by the following equation (3), and the recording time of apparent transaction history data is reduced.

【0012】220/4=55[ms] … (3)220/4 = 55 [ms] (3)

【0013】また、トランザクション履歴データの記録
を高速化するための別の従来の技術として、例えば特開
平2−176949号公報には、外部記憶装置よりも高
速アクセスが可能な半導体記憶装置上にジャーナルデー
タバッファを設ける手法が提案されている。
As another conventional technique for speeding up the recording of transaction history data, for example, Japanese Patent Application Laid-Open No. Hei 2-176949 discloses a journal on a semiconductor memory device which can be accessed faster than an external memory device. A method of providing a data buffer has been proposed.

【0014】図8は、前記特開平2−176949号公
報に記載された従来の手法の概要を説明するための図で
ある。
FIG. 8 is a diagram for explaining the outline of the conventional method described in the above-mentioned Japanese Patent Application Laid-Open No. 2-176949.

【0015】図8を参照すると、この従来の手法では、
磁気ディスク装置に代表される外部記憶装置上のジャー
ナルファイル(トランザクション履歴ファイル)84に
加えて、半導体記憶装置を用いたジャーナルデータバッ
ファ(トランザクション履歴バッファ)88を設けてい
る。
Referring to FIG. 8, in this conventional method,
In addition to a journal file (transaction history file) 84 on an external storage device represented by a magnetic disk device, a journal data buffer (transaction history buffer) 88 using a semiconductor storage device is provided.

【0016】CPU81内のオンライン処理部82にお
いてトランザクションを受信すると、逐次トランザクシ
ョン履歴データをトランザクション履歴バッファ88に
記録していく。そして、トランザクション履歴バッファ
88の残量が一定値を下回ったときに、制御部86内の
転送制御手段87により、トランザクション履歴バッフ
ァ88に記録されているトランザクション履歴データを
トランザクション履歴ファイル84に転送する。
When a transaction is received by the online processing unit 82 in the CPU 81, the transaction history data is sequentially recorded in a transaction history buffer 88. Then, when the remaining amount of the transaction history buffer 88 falls below a certain value, the transfer control means 87 in the control unit 86 transfers the transaction history data recorded in the transaction history buffer 88 to the transaction history file 84.

【0017】これにより、トランザクション履歴ファイ
ル84に対する物理I/O動作の回数を低減することが
でき、トランザクション履歴データの記録を高速に行う
ことが可能となる。
As a result, the number of physical I / O operations on the transaction history file 84 can be reduced, and transaction history data can be recorded at high speed.

【0018】[0018]

【発明が解決しようとする課題】しかしながら、前述し
た一般に知られているトランザクション履歴ファイルを
複数実装する従来の手法では、トランザクション処理性
能を向上させるために外部記憶装置の増設というハード
ウェア資源の拡張を要し、またシステム構成が大規模化
ないし複雑化してしまうため、高トランザクション処理
性能を実現するために非常にコストがかかるという問題
がある。
However, in the above-mentioned conventional method of mounting a plurality of generally-known transaction history files, the expansion of hardware resources such as the addition of an external storage device in order to improve the transaction processing performance is required. In addition, since the system configuration becomes large-scale or complicated, there is a problem that it is very costly to realize high transaction processing performance.

【0019】また、前記特開平2−176949号公報
に記載された従来の手法では、信頼性を犠牲にして高速
化を実現するため、高信頼性が要求されるオンライント
ランザクション処理システムには適用できないという問
題がある。
In the conventional method described in Japanese Patent Application Laid-Open No. 2-176949, high speed is realized at the expense of reliability, so that it cannot be applied to an online transaction processing system requiring high reliability. There is a problem.

【0020】すなわち、前記特開平2−176949号
公報に記載された従来の手法では、トランザクション履
歴データの記録を半導体記憶装置上のバッファに対して
行い、不揮発性が保証されたトランザクション履歴ファ
イルへの記録はバッファが一杯になるまで行われないた
め、システムダウン等の重度システム障害が発生した場
合に、トランザクション履歴ファイルに書き込まれてい
ないトランザクション履歴データが消失してしまうこと
になる。
That is, in the conventional method described in the above-mentioned Japanese Patent Application Laid-Open No. 2-176949, transaction history data is recorded in a buffer on a semiconductor storage device, and the transaction history data is recorded in a transaction history file in which non-volatility is guaranteed. Since recording is not performed until the buffer becomes full, transaction history data that has not been written to the transaction history file will be lost when a severe system failure such as a system down occurs.

【0021】従って、本発明は前述した問題点に鑑みて
なされたものであり、高性能および高信頼性が要求され
るオンライントランザクション処理システムにおいて、
信頼性を低下させることなく、トランザクション履歴デ
ータの記録を高速化し、さらにこれを低コストで実現す
ることができるトランザクション履歴記録システムを提
供することを目的とする。
Accordingly, the present invention has been made in view of the above-described problems, and has been developed in an online transaction processing system requiring high performance and high reliability.
An object of the present invention is to provide a transaction history recording system capable of speeding up the recording of transaction history data without lowering the reliability and realizing this at low cost.

【0022】[0022]

【課題を解決するための手段】前述した目的を達成する
ため、本発明のトランザクション履歴記録システムは、
一または複数のトランザクション履歴ファイル(図1の
15)を備え、障害発生時にトランザクション履歴ファ
イル(図1の15)に格納されているトランザクション
履歴データを用いてトランザクションデータの回復を行
うオンライントランザクション処理システムにおいて、
トランザクション履歴ファイル(図1の15)およびオ
ンライン処理部(図1の11)という従来の構成に加え
て、複数のプロセス間で共有可能な記憶領域(共有メモ
リ(図1の16))上にトランザクション格納用テーブ
ル(図1の17)を持ち、複数の端末から同時に受信し
たトランザクションデータを、トランザクション格納用
テーブル(図1の17)においてポインタチェーン連結
するトランザクション連結手段(図1の12)と、トラ
ンザクション格納用テーブル(図1の17)上のチェー
ン連結されたトランザクションデータを、一回の物理書
き込み動作によりトランザクション履歴ファイル(図1
の15)に書き込む履歴記録手段(図1の13)と、を
備える。
In order to achieve the above-mentioned object, a transaction history recording system according to the present invention comprises:
An online transaction processing system including one or a plurality of transaction history files (15 in FIG. 1) and recovering transaction data using transaction history data stored in the transaction history file (15 in FIG. 1) when a failure occurs. ,
In addition to the conventional configuration of the transaction history file (15 in FIG. 1) and the online processing unit (11 in FIG. 1), the transaction is stored in a storage area (shared memory (16 in FIG. 1)) that can be shared by a plurality of processes. A transaction concatenation means (12 in FIG. 1) having a storage table (17 in FIG. 1) for linking transaction data received simultaneously from a plurality of terminals with a pointer chain in the transaction storage table (17 in FIG. 1); The transaction data linked in a chain on the storage table (17 in FIG. 1) is stored in a transaction history file (FIG. 1) by one physical write operation.
(15) in FIG. 1).

【0023】また、本発明のトランザクション履歴記録
システムは、履歴記録手段(図1の13)の動作を監視
し、トランザクション履歴ファイル(図1の15)の全
てが書き込み中の場合に、トランザクション連結手段
(図1の12)によるトランザクションデータの連結動
作を停止させる連結抑制手段(図1の14)をさらに備
えたことを特徴とする。
Further, the transaction history recording system of the present invention monitors the operation of the history recording means (13 in FIG. 1), and if all the transaction history files (15 in FIG. 1) are being written, the transaction linking means. A connection suppressing means (14 in FIG. 1) for stopping the connection operation of transaction data by (12 in FIG. 1) is further provided.

【0024】前述した構成のもとで、本発明のトランザ
クション履歴記録システムによれば、オンライン処理部
(図1の11)は複数の端末からのトランザクションの
到着を監視している。トランザクションが到着すると、
到着した全てのトランザクションデータを共有メモリ
(図1の16)上のトランザクション格納用テーブル
(図1の17)に格納し、トランザクション連結手段
(図1の12)に新規トランザクションの発生を通知す
る。
With the above-described configuration, according to the transaction history recording system of the present invention, the online processing unit (11 in FIG. 1) monitors arrival of transactions from a plurality of terminals. When the transaction arrives,
All the transaction data that has arrived is stored in the transaction storage table (17 in FIG. 1) on the shared memory (16 in FIG. 1), and the transaction coupling means (12 in FIG. 1) is notified of the occurrence of a new transaction.

【0025】トランザクション連結手段(図1の12)
は、トランザクション格納用テーブル(図1の17)上
の新規到着トランザクションデータをポインタチェーン
により連結し、履歴記録手段(図1の13)に対してチ
ェーン連結されたトランザクションデータの書き込みを
要求する。
Transaction connection means (12 in FIG. 1)
Connects the newly arrived transaction data on the transaction storage table (17 in FIG. 1) by a pointer chain, and requests the history recording means (13 in FIG. 1) to write the chained transaction data.

【0026】履歴記録手段(図1の13)は、トランザ
クション連結手段(図1の12)からの書き込み要求を
受け、チェーン連結された全トランザクションデータを
一回の物理書き込み動作によってトランザクション履歴
ファイル(図1の15)に記録する。書き込みが完了す
ると、履歴記録手段(図1の13)はトランザクション
連結手段(図1の12)に対して書き込み結果を通知す
る。
The history recording means (13 in FIG. 1) receives a write request from the transaction concatenation means (12 in FIG. 1), and performs a physical write operation on all chained transaction data in one transaction history file (FIG. 1). Record in 1) 15). When the writing is completed, the history recording unit (13 in FIG. 1) notifies the transaction linking unit (12 in FIG. 1) of the writing result.

【0027】また、連結抑制手段(図1の14)は、履
歴記録手段(図1の13)の動作を監視し、実装された
全てのトランザクション履歴ファイル(図1の15)が
書き込み中の場合に、トランザクション連結手段(図1
の12)による連結動作を停止させる。実装されたトラ
ンザクション履歴ファイル(図1の15)のうち、1つ
以上のトランザクション履歴ファイルの書き込みが終了
すると、トランザクション連結手段(図1の12)によ
る連結動作を再開させる。
The connection suppressing means (14 in FIG. 1) monitors the operation of the history recording means (13 in FIG. 1). If all of the mounted transaction history files (15 in FIG. 1) are being written. The transaction linking means (Fig. 1)
The connecting operation according to 12) is stopped. When writing of one or more transaction history files among the mounted transaction history files (15 in FIG. 1) is completed, the connection operation by the transaction connection means (12 in FIG. 1) is restarted.

【0028】以上の動作により、トランザクション履歴
ファイル(図1の15)の書き込み動作中に到着した複
数のトランザクションについて、一回の物理書き込み動
作によりトランザクション履歴ファイル(図1の15)
への記録を完了させることが可能となる。これにより、
トランザクション負荷が増大した場合の外部記憶装置へ
の物理I/O動作の回数が大きく低減し、高トランザク
ション負荷時のスループット性能およびターンアラウン
ド性能を向上させることができる。
With the above operation, the transaction history file (15 in FIG. 1) can be obtained by one physical write operation for a plurality of transactions arriving during the writing operation of the transaction history file (15 in FIG. 1).
Can be completed. This allows
The number of physical I / O operations to the external storage device when the transaction load increases is greatly reduced, and the throughput performance and turnaround performance under a high transaction load can be improved.

【0029】また、実装された全てのトランザクション
履歴ファイル(図1の15)が書き込み中の場合に、ト
ランザクション連結手段(図1の12)による連結動作
を停止させることにより、新規到着トランザクションを
不必要に連結しないようにして、トランザクション履歴
ファイル(図1の15)の書き込み状態に応じてトラン
ザクション履歴ファイル(図1の15)への物理I/O
動作の回数を最適にすることができる。
Further, when all of the mounted transaction history files (15 in FIG. 1) are being written, the connection operation by the transaction connection means (12 in FIG. 1) is stopped, so that a newly arrived transaction is unnecessary. And the physical I / O to the transaction history file (15 in FIG. 1) according to the write state of the transaction history file (15 in FIG. 1).
The number of operations can be optimized.

【0030】[0030]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して詳細に説明する。
Next, embodiments of the present invention will be described in detail with reference to the drawings.

【0031】図1は、本発明の実施の形態の全体構成を
示すブロック図である。図2は、本発明の実施の形態の
動作を説明するための図である。
FIG. 1 is a block diagram showing the overall configuration of the embodiment of the present invention. FIG. 2 is a diagram for explaining the operation of the embodiment of the present invention.

【0032】図1および図2を参照すると、オンライン
処理部11は、端末と1対1に対応する複数の通信パス
21と、パス管理テーブル22と、を保持している。
Referring to FIG. 1 and FIG. 2, the online processing unit 11 holds a plurality of communication paths 21 one-to-one corresponding to terminals and a path management table 22.

【0033】パス管理テーブル22は、通信パス毎のイ
ベント監視をオペレーティングシステム(OS)に対し
て要求するためのものである。
The path management table 22 requests the operating system (OS) to monitor an event for each communication path.

【0034】トランザクション格納用テーブル17は、
複数のプロセス間で相互に参照可能な記憶領域(共有メ
モリ16)上に実装される。トランザクション格納用テ
ーブル17は、パス管理テーブル22に対応する端末レ
コードと、ポインタチェーンを管理するための制御情報
を保持している。
The transaction storage table 17 is
It is implemented on a storage area (shared memory 16) that can be referred to by a plurality of processes. The transaction storage table 17 holds a terminal record corresponding to the path management table 22 and control information for managing a pointer chain.

【0035】履歴記録手段13は、トランザクション履
歴ファイル15に物理書き込みを行うための書き込み用
バッファ23を備える。
The history recording means 13 includes a write buffer 23 for physically writing the transaction history file 15.

【0036】次に、本発明の実施の形態の動作を説明す
る。
Next, the operation of the embodiment of the present invention will be described.

【0037】図2を参照すると、オンライン処理部11
は、パス管理テーブル22を用いてトランザクションの
到着監視を行う。端末からトランザクションが到着した
通信パスについては、オペレーティングシステム(O
S)によってパス管理テーブル22のイベント領域にデ
ータ受信イベントが通知される。
Referring to FIG. 2, the online processing unit 11
Monitors the arrival of a transaction using the path management table 22. For the communication path where the transaction arrived from the terminal, the operating system (O
By S), a data reception event is notified to the event area of the path management table 22.

【0038】オンライン処理部11は、トランザクショ
ン連結手段12に対して新規トランザクションの到着を
通知するとともに、パス管理テーブル22においてデー
タ受信イベントがセットされた各通信パスを検索し、ト
ランザクション格納用テーブル17の通信パスに対応す
る端末レコードに受信データを格納する。
The online processing section 11 notifies the transaction concatenating means 12 of the arrival of a new transaction, searches the path management table 22 for each communication path in which the data reception event is set, and searches the transaction storage table 17 The received data is stored in the terminal record corresponding to the communication path.

【0039】トランザクション連結手段12は、データ
受信イベントの通知を受け、トランザクションデータの
連結を行う。
The transaction connection means 12 receives the notification of the data reception event and connects the transaction data.

【0040】図3は、トランザクション連結手段12に
よるトランザクションデータの連結動作を説明するため
のフローチャートである。
FIG. 3 is a flowchart for explaining the operation of connecting transaction data by the transaction connection means 12.

【0041】図2および図3を参照すると、まず、次端
末位置格納アドレスの初期値としてチェーン先頭情報格
納領域のアドレスを設定する(ステップ301)。
Referring to FIGS. 2 and 3, first, the address of the chain head information storage area is set as an initial value of the next terminal position storage address (step 301).

【0042】次に、パス管理テーブル22から受信イベ
ントが発生している通信パスを検索し(ステップ30
2)、検索された通信パスがあるか否かを確認する(ス
テップ303)。
Next, the communication path in which the reception event has occurred is searched from the path management table 22 (step 30).
2) It is confirmed whether or not there is a found communication path (step 303).

【0043】通信パスが検索された場合には(ステップ
303)、検索された通信パスに対応する端末レコード
を認識し、この端末レコードの開始アドレスを、次端末
位置格納アドレスが指す領域に設定する(ステップ30
4)。ここで、ステップ301において次端末位置格納
アドレスの初期値としてチェーン先頭情報格納領域のア
ドレスが設定されるため、チェーン先頭情報格納領域に
現在の端末レコードの開始アドレスが格納されることに
なる。
If the communication path is found (step 303), the terminal record corresponding to the found communication path is recognized, and the start address of this terminal record is set in the area indicated by the next terminal position storage address. (Step 30
4). Here, since the address of the chain head information storage area is set as the initial value of the next terminal position storage address in step 301, the start address of the current terminal record is stored in the chain head information storage area.

【0044】次に、次端末位置格納アドレスを、現在の
端末レコードのチェーン情報格納領域のアドレスに変更
し(ステップ305)、ステップ302から処理を繰り
返す。このようにすることにより、次回のステップ30
4の処理においては、現在の端末レコードのチェーン情
報格納領域に、次に検索された通信パスに対応する端末
レコードの開始アドレスが格納される。
Next, the next terminal location storage address is changed to the address of the chain information storage area of the current terminal record (step 305), and the processing is repeated from step 302. By doing so, the next step 30
In the process of No. 4, the start address of the terminal record corresponding to the communication path searched next is stored in the chain information storage area of the current terminal record.

【0045】受信イベントが発生している通信パスが検
索できる間、前述したステップ302ないしステップ3
05の処理を繰り返し、検索される通信パスがなくなっ
た場合には(ステップ303)、次端末位置格納アドレ
スが指す領域にチェーン終端記号を格納する(ステップ
306)。
While the communication path in which the reception event has occurred can be searched, the above-described steps 302 to 3 are executed.
When the process of step 05 is repeated and there are no more communication paths to be searched (step 303), the chain terminal symbol is stored in the area indicated by the next terminal position storage address (step 306).

【0046】以上の動作により、チェーン先頭情報格納
領域から始めて、トランザクションが到着した各端末レ
コードのチェーン情報格納領域を連結するポインタチェ
ーンが構成されることになる。
By the above operation, starting from the chain head information storage area, a pointer chain connecting the chain information storage areas of the terminal records at which the transaction has arrived is constructed.

【0047】図2を参照すると、以上のようにして連結
動作が完了した際には、トランザクション連結手段12
は、チェーン先頭情報格納領域のアドレスを履歴記録手
段13に通知し、トランザクション履歴データの書き込
みを要求する。
Referring to FIG. 2, when the connection operation is completed as described above, the transaction connection means 12
Notifies the history recording means 13 of the address of the chain head information storage area, and requests writing of transaction history data.

【0048】履歴記録手段13は、トランザクション履
歴データの書き込み要求を受けると、図4に示す手順に
よってチェーン連結されたトランザクションデータを書
き込み用バッファ23上に再構成する。
Upon receipt of the transaction history data write request, the history recording means 13 reconfigures the transaction data chained by the procedure shown in FIG.

【0049】図4は、履歴記録手段13によるチェーン
連結されたトランザクションデータの再構成動作を説明
するためのフローチャートである。
FIG. 4 is a flowchart for explaining the operation of reconstructing the chain-linked transaction data by the history recording means 13.

【0050】図2および図4を参照すると、まず、書き
込み用バッファ23を初期化する(ステップ401)。
次に、チェーン先頭情報格納領域に格納されているアド
レスが指す端末レコードを、処理中端末レコードの初期
値として設定する(ステップ402)。
Referring to FIGS. 2 and 4, first, the write buffer 23 is initialized (step 401).
Next, the terminal record pointed to by the address stored in the chain head information storage area is set as an initial value of the terminal record being processed (step 402).

【0051】そして、処理中端末レコードの受信データ
格納領域の内容を、書き込み用バッファ23の空きエリ
アに転送した後(ステップ403)、処理中端末レコー
ドのチェーン情報=チェーン終端記号であるか否かを判
断し(ステップ404)、チェーン終端記号でない場合
には、ステップ405の処理に進み、処理中端末レコー
ドのチェーン情報格納領域に格納されたアドレスが指す
端末レコードを、新しい処理中端末レコードとして認識
し、ステップ403からの処理を繰り返す。
Then, after transferring the contents of the received data storage area of the terminal record being processed to an empty area of the writing buffer 23 (step 403), it is determined whether or not the chain information of the terminal record being processed = chain end symbol. (Step 404), and if it is not a chain terminal symbol, the process proceeds to step 405 to recognize the terminal record indicated by the address stored in the chain information storage area of the terminal record being processed as a new terminal record being processed. Then, the processing from step 403 is repeated.

【0052】なお、ステップ404において、処理中端
末レコードのチェーン情報格納領域にチェーン終端記号
を検出した場合には、チェーン連結されたトランザクシ
ョンデータの再構成を終了する。
In step 404, if a chain terminator is detected in the chain information storage area of the terminal record being processed, the reconstruction of the chained transaction data is terminated.

【0053】図2を参照すると、履歴記録手段13は、
書き込み用バッファ23上に再構成された複数のトラン
ザクションデータを、トランザクション履歴ファイル1
5に対して一回の物理書き込み動作によって記録する。
トランザクション履歴データの記録が完了すると、履歴
記録手段13はトランザクション連結手段12に対して
書き込み結果を通知する。さらに、トランザクション連
結手段12は、通知された書き込み結果をオンライン処
理部11に返す。
Referring to FIG. 2, the history recording means 13
The plurality of transaction data reconstructed on the write buffer 23 is stored in the transaction history file 1.
5 is recorded by one physical write operation.
When the recording of the transaction history data is completed, the history recording unit 13 notifies the transaction connection unit 12 of the write result. Further, the transaction connection unit 12 returns the notified write result to the online processing unit 11.

【0054】また、連結抑制手段14は、履歴記録手段
13の動作状態を監視し、履歴記録手段13によってシ
ステムに実装された全てのトランザクション履歴ファイ
ル15に対して物理書き込み動作が行われている場合に
は、トランザクション連結手段12による連結動作を停
止させる。その後、1つ以上のトランザクション履歴フ
ァイル15について書き込み動作が終了すると、連結抑
制手段14はトランザクション連結手段12による連結
動作を再開させる。
Further, the connection suppressing means 14 monitors the operation state of the history recording means 13, and performs a physical write operation on all the transaction history files 15 implemented in the system by the history recording means 13. , The connection operation by the transaction connection means 12 is stopped. Thereafter, when the writing operation for one or more transaction history files 15 is completed, the connection suppressing unit 14 restarts the connecting operation by the transaction connecting unit 12.

【0055】[0055]

【実施例】次に、前述した本発明の実施の形態をより具
体的に説明するために、本発明の実施例について図面を
参照して詳細に説明する。
Next, in order to more specifically describe the above-described embodiment of the present invention, an embodiment of the present invention will be described in detail with reference to the drawings.

【0056】[0056]

【実施例1】まず、本発明の第1の実施例について説明
する。
Embodiment 1 First, a first embodiment of the present invention will be described.

【0057】図5は、本発明の第1の実施例を説明する
ための図である。なお、本実施例においては、UNIX
オペレーティングシステム(OS)を用いてトランザク
ション履歴記録システムを構築するものとする。
FIG. 5 is a diagram for explaining a first embodiment of the present invention. In this embodiment, UNIX
It is assumed that a transaction history recording system is constructed using an operating system (OS).

【0058】図5を参照すると、図1および図2に示し
たオンライン処理部11、トランザクション連結手段1
2と同一の機能を有するオンライン処理部11a、トラ
ンザクション連結手段12aの各機構を、1つのトラン
ザクション処理プロセス(#1)51a上に実装する。
Referring to FIG. 5, the online processing unit 11 and the transaction connection unit 1 shown in FIGS.
The respective mechanisms of the online processing unit 11a and the transaction connection unit 12a having the same functions as those of No. 2 are mounted on one transaction processing process (# 1) 51a.

【0059】また、UNIX等のオペレーティングシス
テム(OS)では、1プロセスあたりの最大通信パス数
がOSの諸元値により制限されるため、トランザクショ
ン処理プロセスを多重化することによって、端末数の多
い大規模オンライントランザクション処理システムへの
適用を可能にする。なお、図5の場合には、2プロセス
(トランザクション処理プロセス(#1)51aおよび
(#2)51b)を実装することにより、約500端末
との接続を可能にしている。
In the case of an operating system (OS) such as UNIX, the maximum number of communication paths per process is limited by the specifications of the OS. Enables application to large-scale online transaction processing systems. In the case of FIG. 5, by connecting two processes (transaction processing processes (# 1) 51a and (# 2) 51b), connection with about 500 terminals is enabled.

【0060】オンライン処理部11a、11bおよびト
ランザクション連結手段12a、12bの多重化に伴
い、共有メモリ上のトランザクション格納用テーブル1
7a、17bについても、プロセスの数だけ分散して実
装する。
With the multiplexing of the online processing units 11a and 11b and the transaction connection units 12a and 12b, the transaction storage table 1 on the shared memory
7a and 17b are also distributed and implemented by the number of processes.

【0061】図1および図2に示した履歴記録手段13
と同一の機能を有する履歴記録手段13aは独立したト
ランザクション履歴記録プロセス(#1)53a上に実
装し、磁気ディスク等を用いたトランザクション履歴フ
ァイル15aと1対1に対応づける。なお、図5の場合
には、履歴記録手段とトランザクション履歴ファイルと
を2組(履歴記録手段13aとトランザクション履歴フ
ァイル15a、履歴記録手段13bとトランザクション
履歴ファイル15b)実装し、トランザクション処理プ
ロセス(#1)51a、(#2)51bとトランザクシ
ョン履歴記録プロセス(#1)53a、(#2)53b
との間の通信方式としてメッセージキュー52を用いる
ことにより、前述した従来の技術の場合と同様にトラン
ザクション履歴データの平均記録時間を短縮する手法を
適用する。
The history recording means 13 shown in FIGS. 1 and 2
The history recording unit 13a having the same function as that described above is mounted on an independent transaction history recording process (# 1) 53a, and is associated one-to-one with the transaction history file 15a using a magnetic disk or the like. In the case of FIG. 5, two sets of the history recording unit and the transaction history file (the history recording unit 13a and the transaction history file 15a, the history recording unit 13b and the transaction history file 15b) are mounted, and the transaction processing process (# 1) is performed. ) 51a, (# 2) 51b and transaction history recording process (# 1) 53a, (# 2) 53b
By using the message queue 52 as a communication method between the transaction history data and the conventional technology, a method of reducing the average recording time of transaction history data is applied in the same manner as in the above-described conventional technique.

【0062】また、図1および図2に示した連結抑制手
段14に対応する構成要素として、本実施例では、トラ
ンザクション連結手段12a、12bと1対1に対応づ
けられた応答受信用メッセージキュー54a、54bを
備える。
As a component corresponding to the connection suppressing means 14 shown in FIGS. 1 and 2, in the present embodiment, the response receiving message queue 54a is one-to-one associated with the transaction connecting means 12a and 12b. , 54b.

【0063】次に、本発明の第1の実施例の動作を説明
する。
Next, the operation of the first embodiment of the present invention will be described.

【0064】図5を参照すると、トランザクション処理
プロセス(#1)51a、(#2)51bは、各々に接
続された端末からの到着トランザクションを監視し、受
信データをトランザクション格納用テーブル17a、1
7bに格納する。同時に、図3に示した手順に従ってそ
れぞれのトランザクション格納用テーブル17a、17
b上でポインタチェーンを構成し、要求送信用メッセー
ジキュー52に対してトランザクション履歴データの記
録要求を送信する。トランザクション処理プロセス(#
1)51a、(#2)51bは、トランザクション履歴
データの記録要求を送信すると、それぞれの応答受信用
メッセージキュー54a、54bに対して読み出し動作
を行う。これにより、トランザクション処理プロセス
(#1)51a、(#2)51bは、トランザクション
履歴記録プロセス(#1)53a、(#2)53bでの
トランザクション履歴データの記録動作が完了するまで
の間、トランザクションデータの連結動作がブロックさ
れることになる。
Referring to FIG. 5, the transaction processing processes (# 1) 51a and (# 2) 51b monitor the transactions arriving from the terminals connected thereto, and store the received data in the transaction storage tables 17a and 17a.
7b. At the same time, according to the procedure shown in FIG.
b, a pointer chain is formed, and a transaction history data recording request is transmitted to the request transmission message queue 52. Transaction processing process (#
1) When 51a and (# 2) 51b transmit a transaction history data recording request, they perform a read operation on the respective response receiving message queues 54a and 54b. As a result, the transaction processing processes (# 1) 51a and (# 2) 51b perform the transaction processing until the transaction history data recording operation in the transaction history recording processes (# 1) 53a and (# 2) 53b is completed. The data concatenation operation will be blocked.

【0065】一方、トランザクション処理プロセス(#
1)51a、(#2)51bによって送信されたトラン
ザクション履歴データの記録要求は、先入れ先出し(F
IFO)の原則に従い、要求送信用メッセージキュー5
2に蓄積される。
On the other hand, the transaction processing process (#
1) The transaction history data recording request transmitted by 51a and (# 2) 51b is a first-in first-out (F
Message queue 5 for request transmission in accordance with the principle of
2 is stored.

【0066】トランザクション履歴記録プロセス(#
1)53a、(#2)53bは、それぞれが同じ要求送
信用メッセージキュー52からの読み出し動作を行って
いる。要求送信用メッセージキュー52に到着したトラ
ンザクション履歴データの記録要求は、トランザクショ
ン履歴プロセス(#1)53a、(#2)53bのいず
れか一方により引き取られ、図4に示した手順に従って
一括してトランザクション履歴ファイル15aまたは1
5bに書き込まれる。
The transaction history recording process (#
1) 53a and (# 2) 53b are each performing a read operation from the same request transmission message queue 52. The recording request of the transaction history data arriving at the request transmission message queue 52 is received by one of the transaction history processes (# 1) 53a and (# 2) 53b, and the transactions are collectively processed according to the procedure shown in FIG. History file 15a or 1
5b.

【0067】トランザクション履歴データの書き込みが
完了すると、トランザクション履歴記録プロセス(#
1)53aまたは(#2)53bは、トランザクション
履歴データの記録要求の送信元のトランザクション処理
プロセス(#1)51aまたは(#2)51bに対応す
る応答受信用メッセージキュー54aまたは54bに対
して書き込み結果の応答を送信する。
When the writing of the transaction history data is completed, the transaction history recording process (#
1) 53a or (# 2) 53b writes to the response receiving message queue 54a or 54b corresponding to the transaction processing process (# 1) 51a or (# 2) 51b that is the source of the transaction history data recording request. Send the resulting response.

【0068】[0068]

【実施例2】次に、本発明の第2の実施例について説明
する。
Embodiment 2 Next, a second embodiment of the present invention will be described.

【0069】図6は、本発明の第2の実施例を説明する
ための図である。
FIG. 6 is a diagram for explaining a second embodiment of the present invention.

【0070】図6を参照すると、本実施例においては、
図1および図2に示したトランザクション連結手段12
をプロセス内連結手段12a′、12b′とプロセス間
連結手段61の2段階の連結ユニットから構成する。
Referring to FIG. 6, in the present embodiment,
Transaction connection means 12 shown in FIGS. 1 and 2
Are composed of a two-stage connecting unit of intra-process connecting means 12a 'and 12b' and inter-process connecting means 61.

【0071】また、前述した第1の実施例においてメー
セージキューを利用していたトランザクション処理プロ
セス(#1)51a、(#2)51bとトランザクショ
ン履歴記録プロセス(#1)53a、(#2)53bと
の間の通信方式を、コネクション型通信方式(ソケッ
ト)に変更し、さらに二次連結プロセス65を経由して
通信を行う形態とする。
Further, the transaction processing processes (# 1) 51a and (# 2) 51b and the transaction history recording processes (# 1) 53a and (# 2) 53b which used the message queue in the first embodiment described above. Is changed to a connection-type communication method (socket), and communication is performed via the secondary connection process 65.

【0072】さらに、図1および図2に示したトランザ
クション格納用テーブル17の変形例として、記録要求
連結テーブル62を共有メモリ上に備える。
Further, as a modification of the transaction storing table 17 shown in FIGS. 1 and 2, a recording request linking table 62 is provided on a shared memory.

【0073】これに加え、図1および図2に示した連結
抑制手段14として、書き込み可能装置カウンタ64
と、共有メモリ上のファイル状態テーブル63を実装す
る。なお、書き込み可能装置カウンタ64は、実装され
たトランザクション履歴ファイル数を初期値とする計数
セマフォである。
In addition, as the connection suppressing means 14 shown in FIGS.
Then, the file status table 63 on the shared memory is mounted. Note that the writable device counter 64 is a counting semaphore whose initial value is the number of mounted transaction history files.

【0074】トランザクション履歴記録プロセス(#
1)53a、(#2)53bは、磁気ディスクへの物理
書き込み動作を行うにあたり、書き込み可能装置カウン
タ64をロック(“1”を減算)し、ファイル状態テー
ブル63の当該ファイルステータスを“BUSY”に変
更する。また、磁気ディスクへの書き込みが終了する
と、ファイル状態テーブル63の当該ファイルステータ
スを“IDLE”に戻し、書き込み可能装置カウンタ6
4をアンロック(“1”を加算)する。この制御を行う
ことにより、実装された全てのトランザクション履歴フ
ァイルが書き込み中の間は書き込み可能装置カウンタ6
4のセマフォ値は“0”となる。
The transaction history recording process (#
1) When performing a physical write operation on the magnetic disk, the 53a and (# 2) 53b lock the writable device counter 64 (subtract "1") and change the file status in the file status table 63 to "BUSY". Change to When the writing to the magnetic disk is completed, the file status in the file status table 63 is returned to “IDLE”, and the writable device counter 6 is returned.
4 is unlocked ("1" is added). By performing this control, the writable device counter 6 is written while all the mounted transaction history files are being written.
The semaphore value of 4 is “0”.

【0075】トランザクション処理プロセス(#1)5
1a、(#2)51bのそれぞれは、受信したトランザ
クションデータをポインタチェーン連結した後、トラン
ザクション履歴データの記録要求を二次連結プロセス6
5に対して送信する。二次連結プロセス65は、トラン
ザクション処理プロセス(#1)51a、(#2)51
bからのトランザクション履歴データの記録要求の到着
監視に先立ち、書き込み可能装置カウンタ64のロック
操作を行う。
Transaction processing process (# 1) 5
1a and (# 2) 51b respectively link the received transaction data with a pointer chain, and then issue a transaction history data recording request in the secondary connection process 6.
5 is transmitted. The secondary connection process 65 includes a transaction processing process (# 1) 51a, (# 2) 51
Prior to monitoring the arrival of the transaction history data recording request from b, the lock operation of the writable device counter 64 is performed.

【0076】ここで、全てのトランザクション履歴ファ
イル15a、15bが書き込み中の場合には、二次連結
プロセス65は処理がブロックされるが、この間もトラ
ンザクション処理プロセス(#1)51a、(#2)5
1bのうちトランザクション履歴データの記録要求未送
信のプロセスは、受信したトランザクションデータをポ
インタチェーン連結し、トランザクション履歴データの
記録要求を二次連結プロセス65に送信することができ
る。
Here, when all the transaction history files 15a and 15b are being written, the processing of the secondary connection process 65 is blocked, but the transaction processing processes (# 1) 51a and (# 2) during this time as well. 5
1b, the process of not transmitting the transaction history data recording request can connect the received transaction data with the pointer chain, and transmit the transaction history data recording request to the secondary connection process 65.

【0077】1つ以上のトランザクション履歴ファイル
15a、15bについて書き込みが終了した時点で、二
次連結プロセス65は処理の続行が可能となるため、書
き込み可能装置カウンタ64をアンロック後、トランザ
クション処理プロセス(#1)51a、(#2)51b
からのトランザクション履歴データの記録要求の到着監
視を行う。二次連結プロセス65は、記録要求連結テー
ブル62を用いて、図3に示した手順に従ってトランザ
クション履歴データの記録要求のポインタチェーン連結
を行い、ファイル状態テーブル63においてファイルス
テータスが“IDLE”のトランザクション履歴記録プ
ロセス(#1)53aまたは(#2)53bに対し、チ
ェーン連結記録要求を送信する。
When the writing of one or more transaction history files 15a and 15b is completed, the secondary connection process 65 can continue the processing. Therefore, after unlocking the writable device counter 64, the transaction processing process ( (# 1) 51a, (# 2) 51b
It monitors the arrival of transaction history data recording requests from. The secondary linking process 65 uses the record request linking table 62 to link the pointers of the transaction history data recording requests according to the procedure shown in FIG. 3, and in the file status table 63, the transaction history with the file status “IDLE”. A chain connection recording request is transmitted to the recording process (# 1) 53a or (# 2) 53b.

【0078】トランザクション履歴記録プロセス(#
1)53a、(#2)53bは、図4に示した手順に従
って記録要求連結チェーン、さらにトランザクション連
結チェーンを辿っていくことで、連結トランザクション
を再構成し、一回の物理書き込み動作にてトランザクシ
ョン履歴ファイル15a、15bに記録を行うことがで
きる。
Transaction history recording process (#
1) 53a and (# 2) 53b reconstruct a connected transaction by following the recording request connection chain and the transaction connection chain in accordance with the procedure shown in FIG. 4, and perform the transaction by one physical write operation. Recording can be performed in the history files 15a and 15b.

【0079】書き込みが完了すると、トランザクション
履歴記録プロセス(#1)53a、(#2)53bは二
次連結プロセス65に書き込み結果を通知する。さらに
二次連結プロセス65は、記録要求連結チェーンに従っ
て送信元の各トランザクション処理プロセス(#1)5
1a、(#2)51bに書き込み結果の通知を行う。
When the writing is completed, the transaction history recording processes (# 1) 53a and (# 2) 53b notify the secondary connection process 65 of the writing result. Further, the secondary connection process 65 performs the respective transaction processing processes (# 1) 5 of the transmission source according to the recording request connection chain
1a and (# 2) 51b are notified of the write result.

【0080】[0080]

【発明の効果】以上説明したように、本発明によれば、
トランザクション履歴データの記録を不揮発性の保証さ
れた磁気ディスクに対して行うという原則は崩さずに、
最も時間のかかる物理書き込み動作の回数を低減させる
ことができるため、チェーン連結された複数のトランザ
クションデータを1回の物理書き込み動作でトランザク
ション履歴ファイルに記録することで、信頼性を低下さ
せることなくトランザクション履歴データの記録を高速
化することができる。
As described above, according to the present invention,
Without breaking the principle of recording transaction history data on a magnetic disk that is guaranteed to be non-volatile,
Since the number of the most time-consuming physical write operations can be reduced, a plurality of chained transaction data can be recorded in a transaction history file by one physical write operation, so that the transaction can be performed without lowering the reliability. It is possible to speed up the recording of the history data.

【0081】また、本発明によれば、トランザクション
履歴ファイルの装置を複数実装する従来の手法のように
外部記憶装置の増設を必要としないため、単純にトラン
ザクション履歴ファイルを複数実装する従来の手法に比
べて、より低いコストでトランザクション処理性能の向
上を実現することができる。
Further, according to the present invention, unlike the conventional method of mounting a plurality of transaction history files, it is not necessary to add an external storage device. Therefore, the conventional method of simply mounting a plurality of transaction history files is not required. In comparison, the transaction processing performance can be improved at a lower cost.

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

【図1】本発明の実施の形態の全体構成を示すブロック
図である。
FIG. 1 is a block diagram showing an overall configuration of an embodiment of the present invention.

【図2】本発明の実施の形態の動作を説明するための図
である。
FIG. 2 is a diagram for explaining an operation of the exemplary embodiment of the present invention.

【図3】本発明の実施の形態におけるトランザクション
連結手段によるトランザクションデータの連結動作を説
明するためのフローチャートである。
FIG. 3 is a flowchart for explaining a transaction data connection operation by a transaction connection unit according to the embodiment of the present invention.

【図4】本発明の実施の形態における履歴記録手段によ
るチェーン連結されたトランザクションデータの再構成
動作を説明するためのフローチャートである。
FIG. 4 is a flowchart for explaining a reconfiguration operation of chain-linked transaction data by the history recording unit according to the embodiment of the present invention.

【図5】本発明の第1の実施例を説明するための図であ
る。
FIG. 5 is a diagram for explaining a first embodiment of the present invention.

【図6】本発明の第2の実施例を説明するための図であ
る。
FIG. 6 is a diagram for explaining a second embodiment of the present invention.

【図7】従来の手法の一例を概念的に説明するための図
である(トランザクション履歴ファイルの物理装置数と
トランザクション履歴データの記録時間との関係を示
す)。
FIG. 7 is a diagram conceptually illustrating an example of a conventional technique (showing the relationship between the number of physical devices in a transaction history file and the recording time of transaction history data).

【図8】従来の手法(特開平2−176949号公報)
の概要を説明するための図である。
FIG. 8 shows a conventional method (Japanese Patent Laid-Open No. 2-176949).
It is a figure for explaining an outline of.

【符号の説明】[Explanation of symbols]

11、11a、11b オンライン処理部 12、12a、12b トランザクション連結手段 12a′、12b′ プロセス内連結手段 13、13a、13b 履歴記録手段 14 連結抑制手段 15、15a、15b トランザクション履歴ファイル 16 共有メモリ 17、17a、17b トランザクション格納用テーブ
ル 21 通信パス 22 パス管理テーブル 23 書き込み用バッファ 51a、51b トランザクション処理プロセス#1、
#2 52 要求送信用メッセージキュー 53a、53b トランザクション履歴記録プロセス#
1、#2 54a、54b 応答受信用メッセージキュー 61 プロセス間連結手段 62 記録要求連結テーブル 63 ファイル状態テーブル 64 書き込み可能装置カウンタ 65 二次連結プロセス 81 CPU 82 オンライン処理部 84 ジャーナルファイル(トランザクション履歴ファ
イル) 86 制御部 87 転送制御手段 88 ジャーナルデータバッファ(トランザクション履
歴バッファ)
11, 11a, 11b Online processing unit 12, 12a, 12b Transaction connection means 12a ', 12b' In-process connection means 13, 13a, 13b History recording means 14 Connection suppression means 15, 15a, 15b Transaction history file 16 Shared memory 17, 17a, 17b Transaction storage table 21 Communication path 22 Path management table 23 Write buffer 51a, 51b Transaction processing process # 1,
# 2 52 Request message queue 53a, 53b Transaction history recording process #
1, # 2 54a, 54b Message queue for response reception 61 Inter-process connection means 62 Recording request connection table 63 File status table 64 Writable device counter 65 Secondary connection process 81 CPU 82 Online processing unit 84 Journal file (transaction history file) 86 control unit 87 transfer control means 88 journal data buffer (transaction history buffer)

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭62−237540(JP,A) 特開 平5−127966(JP,A) 特開 平7−44440(JP,A) 特開 平2−176949(JP,A) 特開 平3−20839(JP,A) 特開 平4−205632(JP,A) 特開 平4−209044(JP,A) 特開 平4−260946(JP,A) 特開 平5−313977(JP,A) (58)調査した分野(Int.Cl.6,DB名) G06F 12/00──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-62-237540 (JP, A) JP-A-5-127966 (JP, A) JP-A-7-44440 (JP, A) JP-A-2- 176949 (JP, A) JP-A-3-20839 (JP, A) JP-A-4-205632 (JP, A) JP-A-4-209044 (JP, A) JP-A-4-260946 (JP, A) JP-A-5-313977 (JP, A) (58) Fields investigated (Int. Cl. 6 , DB name) G06F 12/00

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】一または複数のトランザクション履歴ファ
イルを備え、障害発生時に前記トランザクション履歴フ
ァイルに格納されているトランザクション履歴データを
用いてトランザクションデータの回復を行うオンライン
トランザクション処理システムにおいて、 所定の記憶領域上にトランザクション格納用テーブルを
持ち、 複数の端末から同時に受信したトランザクションデータ
を、前記トランザクション格納用テーブルにおいてポイ
ンタチェーン連結するトランザクション連結手段と、 前記トランザクション格納用テーブル上のチェーン連結
されたトランザクションデータを、一回の物理書き込み
動作により前記トランザクション履歴ファイルに書き込
む履歴記録手段と、を備え、前記所定の記憶領域を複数のプロセス間で共有可能と
前記トランザクション連結手段が、複数のトランザクシ
ョン処理プロセスについてのプロセス内連結手段および
プロセス間連結手段の2段階の連結ユニットにより構成
されてなる、 ことを特徴とするトランザクション履歴記
録システム。
1. An online transaction processing system comprising one or a plurality of transaction history files and recovering transaction data using transaction history data stored in the transaction history file when a failure occurs. A transaction linking means for linking transaction data received simultaneously from a plurality of terminals with a pointer chain in the transaction storage table; and includes a history recording unit configured by times of physical write operations write to the transaction history file, and allows sharing the predetermined storage area among a plurality of processes
And the transaction concatenation means comprises a plurality of transactions.
In-process connection means for the
Consists of a two-stage connecting unit of inter-process connecting means
Transaction history record systems that are composed, characterized in that the.
【請求項2】前記履歴記録手段の動作を監視し、前記一
または複数のトランザクション履歴ファイルの全てが書
き込み中の場合に、前記トランザクション連結手段によ
るトランザクションデータの連結動作を停止させる連結
抑制手段を備えたことを特徴とする請求項1記載のトラ
ンザクション履歴記録システム。
2. A system according to claim 1, further comprising a connection suppressing unit that monitors an operation of said history recording unit and stops a transaction data connecting operation by said transaction connecting unit when all of said one or a plurality of transaction history files are being written. The transaction history recording system according to claim 1, wherein
【請求項3】前記連結抑制手段が、計数セマフォを利用
して構成されてなる、ことを特徴とする請求項記載の
トランザクション履歴記録システム。
3. The method according to claim 1, wherein the connection suppressing means uses a counting semaphore.
3. The transaction history recording system according to claim 2 , wherein the transaction history recording system is configured as follows .
JP8154879A 1996-05-27 1996-05-27 Transaction history recording system Expired - Lifetime JP2856150B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8154879A JP2856150B2 (en) 1996-05-27 1996-05-27 Transaction history recording system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8154879A JP2856150B2 (en) 1996-05-27 1996-05-27 Transaction history recording system

Publications (2)

Publication Number Publication Date
JPH09319638A JPH09319638A (en) 1997-12-12
JP2856150B2 true JP2856150B2 (en) 1999-02-10

Family

ID=15593951

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8154879A Expired - Lifetime JP2856150B2 (en) 1996-05-27 1996-05-27 Transaction history recording system

Country Status (1)

Country Link
JP (1) JP2856150B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2419883A1 (en) 2003-02-26 2004-08-26 Ibm Canada Limited - Ibm Canada Limitee Discriminatory replay of log files during table space recovery in a database management system

Also Published As

Publication number Publication date
JPH09319638A (en) 1997-12-12

Similar Documents

Publication Publication Date Title
US5784617A (en) Resource-capability-based method and system for handling service processor requests
KR100194295B1 (en) How to update the status of data processing systems and queues
US5363503A (en) Fault tolerant computer system with provision for handling external events
US20060089975A1 (en) Online system recovery system, method and program
JPH11184744A (en) Message queuing system
JPS63234343A (en) Communication between station of system of a plurality of processors linked to communication medium and a plurality of stations
JPH04233653A (en) Message cueing between cooperating processors having large speed difference
EP1708076A1 (en) Storage system and storage control method
US5293487A (en) Network adapter with high throughput data transfer circuit to optimize network data transfers, with host receive ring resource monitoring and reporting
JPH09171441A (en) Storage matching method for duplex storage device and device therefor
US6674751B1 (en) Serialized bus communication and control architecture
US6216209B1 (en) Multi-volume, write-behind data storage in a distributed processing system
US6466993B1 (en) Method and apparatus for performing transactions rendering between host processors and I/O devices using concurrent non-blocking queuing techniques and I/O bus write operations
US7487269B2 (en) Apparatus, system, and method of connection grouping for multipath lock facility connection paths
US6718402B1 (en) Method and system for persistent unit attention in a fibre channel storage router
JP2856150B2 (en) Transaction history recording system
US20030005202A1 (en) Dual storage adapters utilizing clustered adapters supporting fast write caches
US6237068B1 (en) System for multi-volume, write-behind data storage in a distributed processing system
JP4280306B2 (en) Log-based data architecture for transaction message queuing systems
US6434592B1 (en) Method for accessing a network using programmed I/O in a paged, multi-tasking computer
JPH1153123A (en) Backup system
US6223262B1 (en) Method for multi-volume, write-behind data storage in a distributed processing system
CN113296899A (en) Transaction master machine, transaction slave machine and transaction processing method based on distributed system
US20030033440A1 (en) Method of logging message activity
JP2661090B2 (en) Message relay method in online system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19981027

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071127

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081127

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081127

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091127

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091127

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101127

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111127

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111127

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121127

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121127

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131127

Year of fee payment: 15

EXPY Cancellation because of completion of term