JPH02201552A - Transaction trace information picking system - Google Patents
- ️Thu Aug 09 1990
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、オンライントランザクションデータシステム
におけるトランザクション実行トレース情報を採取する
方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for collecting transaction execution trace information in an online transaction data system.
従来のオンライントランザクションデータシステムにお
いては、トランザクション実行トレース情報としてトラ
ンザクション処理におけるすべてのデータファイルの入
出力情報を採取しており、特定のデータファイルの入出
力情報のみを採取する方式はなかった。In conventional online transaction data systems, input/output information of all data files in transaction processing is collected as transaction execution trace information, and there is no method for collecting only input/output information of a specific data file.
上述した従来のオンライトランザクジョンデータシステ
ムでは、すべてのデータファイルの入出力のトレース情
報か採取されることから、不必要なデータファイル入出
力のトレー・ス情報が採取されるという欠点がある。In the above-described conventional on-write transaction data system, since trace information of input/output of all data files is collected, there is a drawback that unnecessary trace information of input/output of data files is collected.
本発明の目的は、上記欠点を除去したトランザクション
実行トレース情報を採取する方式を提案することにある
。An object of the present invention is to propose a method for collecting transaction execution trace information that eliminates the above drawbacks.
本発明の1−ランザクジョントレース情報採取方式の構
成は、オンライントランザクションデータ処理システム
のトランザクション処理を行なうプログラムの実行を制
御するトランザクション実行制御手段と、トランザクシ
ョンの開始処理を行なうトランザクション開始手段と、
そのトランザクションの終了処理を行なうトランザクシ
ョン終了手段と、前記トランザクション開始時に初期化
され、前記トランザクション処理におけるデータファイ
ル入出力等のトランザクション実行トレース情報を格納
するトレース情報記憶領域と、前記トランザクションプ
ログラムからのデータ検索/更新要求に従い、そのデー
タファイルからのデータの読み込み及びそのデータファ
イルへのデータ書き込みを制御するデータ入出力制御手
段と、トランザクション実行トレース情報を採取するデ
ータファイルの情報を格納するトレース採取データファ
イル情報格納領域と、このトレース採取データファイル
情報格納領域に、前記トランザクション処理におけるデ
ータファイル入出力時にトレース情報を採取するデータ
ファイル情報を採取するデータファイルか否かの情報を
格納するトレース採取データファイル指定手段と、前記
トランザクション開始処理要求、および前記データ入出
力手段からの要求により、そのトランザクション処理の
開始情報、および前記トレース採取データファイル情報
格納領域に指定されたデータファイルの入出力のトラン
ザクション実行トレース情報を前記トレース情報記憶領
域に格納するトレース情報格納手段と、前記トランザク
ション終了手段からの要求により、トランザクション終
了時、前記トレース情報記憶領域のトランザクショント
レース情報、およびトランザクション処理の終了情報を
5YSO[JTファイルに出力するトレース情報出力手
段とを含で構成されることを特徴とする。The configuration of 1-ranzaktion trace information collection method of the present invention includes: a transaction execution control means for controlling the execution of a program that performs transaction processing in an online transaction data processing system; a transaction start means for performing transaction start processing;
a transaction termination means for performing termination processing of the transaction; a trace information storage area that is initialized at the start of the transaction and stores transaction execution trace information such as data file input/output in the transaction processing; and data retrieval from the transaction program. /A data input/output control means that controls reading of data from and writing of data to the data file in accordance with an update request, and trace collection data file information that stores information of the data file from which transaction execution trace information is collected. a storage area, and a trace collection data file specifying means for storing in the trace collection data file information storage area information as to whether or not the data file is to collect trace information at the time of data file input/output in the transaction process. Then, in response to the transaction start processing request and the request from the data input/output means, the transaction processing start information and transaction execution trace information of the input/output of the data file specified in the trace collection data file information storage area are transmitted. Upon request from the trace information storage means stored in the trace information storage area and the transaction termination means, the transaction trace information in the trace information storage area and transaction processing end information are output to a 5YSO[JT file] at the end of the transaction. and a trace information output means.
次に、本発明について図面を参照して説明する。 第1
図は、本発明の一実施例の構成を表わす図であり、トラ
ンザクション実行制御手段1、トレース採取データファ
イル指定手段2、トレース採取データファイル情報格納
領域3、トランザクション開始手段4、トレース情報格
納手段5、トレース情報記憶領域6、トランザクション
処理プログラム7、データ入出力手段8、データファイ
ル9、トランザクション終了手段10、トレース情報出
力手段11.SYSOUTファイル】2から構成されて
いる。Next, the present invention will be explained with reference to the drawings. 1st
The figure shows the configuration of an embodiment of the present invention, in which transaction execution control means 1, trace collection data file designation means 2, trace collection data file information storage area 3, transaction initiation means 4, trace information storage means 5 , trace information storage area 6, transaction processing program 7, data input/output means 8, data file 9, transaction termination means 10, trace information output means 11. SYSOUT file】2.
第2図は、第1図のトランザクション実行制御手段1の
実行フローチャート、第3図は第1図のトランザクショ
ン開始手段4の実行フローチャート、第4図は第1図の
トランザクション終了手段10の実行フローチャート、
第5図は第1図のトレース情報格納手段5の実行フロー
チャート、第6図は第1図のデータ入出力手段8の実行
フローチャート、第7図は第1図のトレース情報出力手
段】1の実行フローチャート、第8図はトレース情報記
憶領域6の構成の一例を示す図、第9図は第1図のトレ
ース採取データファイル情報格納領W)、 3の構成の
一例を示す図である。2 is an execution flowchart of the transaction execution control means 1 of FIG. 1, FIG. 3 is an execution flowchart of the transaction initiation means 4 of FIG. 1, and FIG. 4 is an execution flowchart of the transaction termination means 10 of FIG. 1.
5 is an execution flowchart of the trace information storage means 5 of FIG. 1, FIG. 6 is an execution flowchart of the data input/output means 8 of FIG. 1, and FIG. 7 is an execution flowchart of the trace information output means 1 of FIG. 8 is a diagram showing an example of the configuration of the trace information storage area 6, and FIG. 9 is a diagram showing an example of the configuration of the trace collection data file information storage area W), 3 in FIG. 1.
次に、本発明の実施例の動作について図面を参照して詳
細に説明する。Next, the operation of the embodiment of the present invention will be described in detail with reference to the drawings.
第1図において、ユーザはオンライントランザクション
処理実行前に、トレース採取データファイル指定手段2
により、トランザクション実行トレースにアクセス情報
を採取するデータファイルの情報を、トレース採取デー
タファイル情報格納領域3に格納する。In FIG. 1, the user selects the trace collection data file specifying means 2 before executing online transaction processing.
As a result, the information of the data file whose access information is to be collected in the transaction execution trace is stored in the trace collection data file information storage area 3.
1〜レース採取データフアイル情報格納領域3は、第9
図に示すように、トレース採取データファイル指定フラ
グ91、トレース採取データファイル指定数92、デー
タファイル識別子93から構成されており、データファ
イル識別子93はトレース採取データファイル指定数分
繰り返されている。トランザクション処理においてアク
セスしたすべてのデータファイルのアクセス情報を、ト
ランザクション実行トレースに採取する場合は、トレー
ス採取データファイル指定フラグ91は初期化され、ま
たトレース採取データファイルが指定された場合は、ト
レース採取データファイル指定フラグ9】、はセットさ
れる。1 to race collection data file information storage area 3 is the ninth
As shown in the figure, it is composed of a trace collection data file designation flag 91, a specified number of trace collection data files 92, and a data file identifier 93, and the data file identifier 93 is repeated as many times as the number of trace collection data files specified. If the access information of all data files accessed during transaction processing is to be collected in the transaction execution trace, the trace collection data file specification flag 91 is initialized, and if the trace collection data file is specified, the trace collection data File specification flag 9] is set.
端末装置等からのトランザクションメツセージをトラン
ザクション実行制御手段1が受は取ると、トランザクシ
ョン実行制御手段1は、第2図のステップ21で示すト
ランザクション開始手段4を起動する。When the transaction execution control means 1 receives a transaction message from a terminal device or the like, the transaction execution control means 1 activates the transaction initiation means 4 shown in step 21 in FIG.
トランザクション開始手段4は、第3図のステップ31
で示すトランザクション開始処理を行った後、トランザ
クション処理開始情報採取のために、ステップ32で示
すトレース情報格納手段5を起動する。The transaction initiation means 4 performs step 31 in FIG.
After performing the transaction start process shown in step 32, the trace information storage means 5 shown in step 32 is activated in order to collect transaction process start information.
トレース情報格納手段5は、第5図ステップ51で示す
トランザクシコン開始情報採取要求が否かを判断し、ト
ランザクション開始情報採取要求の場合は、ステップ5
2でトレース情報記憶領域6を初期化した後、ステップ
53でトレース情報記憶領域6にトランザクション開始
情報を格納する。The trace information storage means 5 determines whether or not there is a transaction start information collection request shown in step 51 in FIG.
After the trace information storage area 6 is initialized in step 2, transaction start information is stored in the trace information storage area 6 in step 53.
トレース情報記憶領域6は第8図に示すように、格納デ
ータ数81、使用領域長82、データ種別83、データ
長84、データ85から構成されており、データ種別8
3からデータ85は格納データ数分繰り返される。トラ
ンザクション開始+f#i格納の際には、トレース情報
記憶領域4のデータ押別83には、トランザクション開
始情報であることを示す識別子が格納され、データ85
には、トランザクション名やトランザクション開始時刻
等の情報が格納され、データ長84にはデータ85に格
納したデータ長が格納される。また、格納データ数81
には、トレース情報記憶領域初期化後の初めてのデータ
格納であるため1が格納され、使用領域長82には、ト
ランザクション開始情報として格納した種別83からデ
ータ85までの長さが格納される。As shown in FIG. 8, the trace information storage area 6 is composed of a number of stored data 81, a used area length 82, a data type 83, a data length 84, and a data 85.
Data 3 to 85 are repeated for the number of stored data. When storing transaction start+f#i, an identifier indicating that it is transaction start information is stored in the data pusher 83 of the trace information storage area 4, and the data 85
Information such as the transaction name and transaction start time is stored in , and the data length stored in data 85 is stored in data length 84 . Also, the number of stored data is 81
Since this is the first data storage after initializing the trace information storage area, 1 is stored in , and the used area length 82 stores the length from type 83 to data 85 stored as transaction start information.
トランザクション実行制御手段1は、第2図ステップ2
1で示すトランザクション開始手段4を起動した後、ス
テップ22で)・ランザクジョン処理プログラム7を起
動する。The transaction execution control means 1 performs step 2 in FIG.
After starting the transaction starting means 4 indicated by 1, in step 22) the transaction processing program 7 is started.
トランザクション処理プログラム7において、データフ
ァイル7の参照または、更新要求を行なうと、データ入
出力手段8が起動される。When the transaction processing program 7 references or updates the data file 7, the data input/output means 8 is activated.
データ入出力手段8は、第6図ステップ61で示すデー
タファイルの参照または更新処理を行なった後、ステッ
プ62でデータファイルアクセス情報採取のために、ト
レース情報格納手段らを起動する。After the data input/output means 8 performs the data file reference or update processing shown in step 61 in FIG. 6, in step 62 it activates the trace information storage means etc. in order to collect data file access information.
トレース情報格納手段5は、第5図ステップ51で示す
トランザクション開始情報採取要求が否かを判断し、ト
ランザクション開始情報採取要求でない場合は、ステッ
プ54でデータファイルアクセス情報採取要求が否がを
判断し、データファイルアクセス情報採取要求の場合は
、ステップ55でトレース採取データファイル情報格納
領域3を参照し、アクセスしたデータファイルの識別子
がトレース採取データファイル情報格納領域3のデータ
ファイル識別子に格納されているが、またはトレース採
取データファイル情報格納領域3のトレース採取データ
ファイル指定フラグが初期化されている場合は、ステッ
プ57でトレース情報記憶領域6の未使用領域の先頭か
らデータファイルアクセス情報を格納する。The trace information storage means 5 determines whether or not there is a request to collect transaction start information as shown in step 51 in FIG. , in the case of a data file access information collection request, the trace collection data file information storage area 3 is referred to in step 55, and the identifier of the accessed data file is stored in the data file identifier of the trace collection data file information storage area 3. However, if the trace collection data file designation flag of the trace collection data file information storage area 3 has been initialized, data file access information is stored from the beginning of the unused area of the trace information storage area 6 in step 57.
データファイルアクセス情報格納の際には、トレース情
報記憶領域6のデータ種別83には、データファイルア
クセス情報であることを示す識別子が格納され、まな、
データ85にはデータファイルのアクセス命令種別、参
照または更新データ等の情報が格納され、データ長84
にはデータ85に格納されたデータ長が格納される。丈
な、データ数81は1加算され、使用料成長82には新
たに格納したデータ種別83からデータ85までの長さ
を加算する。When data file access information is stored, an identifier indicating that it is data file access information is stored in the data type 83 of the trace information storage area 6.
Data 85 stores information such as data file access command type, reference or update data, and data length 84.
The data length stored in data 85 is stored in . The length of the data 81 is added by 1, and the length of the newly stored data type 83 to data 85 is added to the usage fee growth 82.
トランザクション実行制御手段lは、第2図のステップ
22で示すトランザクション処理プログラム7が終了し
た後、ステップ23でトランザクション終了手段10を
起動し、トランザクション終了手段10の処理終了後、
トランザクション実行制御手段1の処理は終了する。After the transaction processing program 7 shown in step 22 in FIG.
The processing of the transaction execution control means 1 ends.
トランザクション終了手段10は、第4図のステップ4
1で示すトランザクション終了処理を行った後、ステッ
プ42でトレース情報出力手段11を起動する。The transaction termination means 10 performs step 4 in FIG.
After the transaction termination process indicated by 1 is performed, the trace information output means 11 is activated in step 42.
トレース情報出力手段11は、第7図のステップ71で
示すトレース情報記憶領域6の使用料成長を参照し、ト
レース情報記憶領域6に格納されているトランザクショ
ン実行トレース情報をすべてSYSOUTファイル12
に出力した後、ステップ72でトランザクション名、ト
ランザクション終了時刻等のトランザクション終了情報
をSYSOUTファイル12に出力する。The trace information output means 11 refers to the usage fee growth of the trace information storage area 6 shown in step 71 in FIG.
Then, in step 72, transaction end information such as the transaction name and transaction end time is output to the SYSOUT file 12.
上述の実施例により、オンライントランザクションデー
タ処理システムにおいて、特定のデータファイルのアク
セスのみのトランザクショ実行トレース情報を採取する
方式を実現している。The above-described embodiment realizes a method of collecting transaction execution trace information only for accesses to specific data files in an online transaction data processing system.
以上説明したように本発明は、オンライントランザクシ
ョンデータ処理システムにおいて、指定した特定のデー
タファイルの入出力情報のみをトランザクション実行ト
レース情報としてSYSOUTファイルに出力すること
により、特定のデータファイルの入出力処理をデパック
する場合、不用なデータのSYSOUTファイル出力が
抑止され、SYSOUTファイルの有効利用が図れると
いう効果がある。As explained above, the present invention enables input/output processing of a specific data file in an online transaction data processing system by outputting only input/output information of a specified specific data file to the SYSOUT file as transaction execution trace information. When depacking, the output of unnecessary data to the SYSOUT file is suppressed and the SYSOUT file can be used effectively.
第1図は本発明のトランザクショントレース情報採取情
報の一実施例をす示す構成図であり、第2図は第1図の
トランザクション実行制御手段の流れ図1、第3図は第
1図のトランザクション開始手段6の流れ図、第4図は
第1図のトランザクション終了手段の流れ図、第5図は
第1図のトレース情報格納手段の流れ図、第6図は第1
図のデータ入出力手段の流れ図、第7図は第1図のトレ
ース情報出力手段の流れ図、第8図は第1図のトレース
情報記憶領域の構成例の図であり、第9図は第1図のト
レース採取データファイル情報格納領域の構成例の図で
ある。
1・・・・・・トランザクション実行制御手段、2・・
・・・・トレース採取データファイル指定手段、3・・
・・・・トレース採取データファイル情報格納領域、4
・・・・・・トランザクション開始手段、5・・・・・
・トレース格納手段、6・・・・・・トレース情報記憶
領域、7・・・・・・トラザクジョン処理プログラム、
8・・・・・・データ入出力手段、9・・・・・・デー
タファイル、10・・・・・・トランザクション終了手
段、11・・・・・・トレース情報出力手段、12・・
・・・・SYSOUTファイル。FIG. 1 is a configuration diagram showing an embodiment of transaction trace information collection information of the present invention, FIG. 2 is a flowchart 1 of the transaction execution control means of FIG. 1, and FIG. 3 is a flowchart of the transaction execution control means of FIG. 4 is a flowchart of the transaction termination means of FIG. 1, FIG. 5 is a flowchart of the trace information storage means of FIG. 1, and FIG. 6 is a flowchart of the transaction termination means of FIG.
7 is a flowchart of the trace information output means of FIG. 1, FIG. 8 is a diagram of a configuration example of the trace information storage area of FIG. FIG. 3 is a diagram illustrating a configuration example of a trace collection data file information storage area in the figure. 1...Transaction execution control means, 2...
...Trace collection data file specification means, 3...
...Trace collection data file information storage area, 4
...Transaction initiation means, 5...
・Trace storage means, 6... Trace information storage area, 7... Transaction processing program,
8... Data input/output means, 9... Data file, 10... Transaction termination means, 11... Trace information output means, 12...
...SYSOUT file.