JPH0535566A - Journal collecting system in on-line information processing system - Google Patents

Journal collecting system in on-line information processing system

Info

Publication number
JPH0535566A
JPH0535566A JP3208518A JP20851891A JPH0535566A JP H0535566 A JPH0535566 A JP H0535566A JP 3208518 A JP3208518 A JP 3208518A JP 20851891 A JP20851891 A JP 20851891A JP H0535566 A JPH0535566 A JP H0535566A
Authority
JP
Japan
Prior art keywords
journal
transaction
output
database
online
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
JP3208518A
Other languages
Japanese (ja)
Other versions
JP2674374B2 (en
Inventor
Hideaki Otsuka
英明 大塚
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 JP3208518A priority Critical patent/JP2674374B2/en
Publication of JPH0535566A publication Critical patent/JPH0535566A/en
Application granted granted Critical
Publication of JP2674374B2 publication Critical patent/JP2674374B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate the collecting of an unnecessary journal. CONSTITUTION:During a transaction, a start journal, an end journal, etc., requested to be outputted from a transaction execution means 301 and an updated journal requested to be outputted from a data base access means 401 are stored temporarily in the journal buffer 508 of a journal control means 401. At the end of the transaction, a journal check means 505 checks the journal collecting mode of the transaction set in a collecting mode memory 509 and if a collecting mode is set when a data base is updated or when there is a forcible output request from a transaction processing program, a file output means 506 outputs the journal on the journal buffer 508 to a journal file 601 only on condition that the updated file is present in the journal buffer 508 or that there is the forcible output request.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はオンライン情報処理シス
テムにおけるジャーナル採取方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a journal collecting method in an online information processing system.

【0002】[0002]

【従来の技術】オンライン端末から送出されたメッセー
ジを受信してトランザクション処理を行う従来のオンラ
イン情報処理システムにおいては、各トランザクション
の実行履歴であるジャーナルを磁気ディスク装置等の外
部記憶装置上のジャーナルファイルに直接出力するか、
或いは一旦バッファに出力しトランザクション処理とは
非同期にそのバッファの内容をジャーナルファイルに出
力している。
2. Description of the Related Art In a conventional online information processing system which receives a message sent from an online terminal and performs transaction processing, a journal which is an execution history of each transaction is stored in a journal file on an external storage device such as a magnetic disk device. Output directly to
Alternatively, the contents of the buffer are once output to the buffer and the contents of the buffer are output to the journal file asynchronously with the transaction processing.

【0003】具体的には、ジャーナルの採取が指示され
ている場合、トランザクションの開始時に開始ジャーナ
ルという制御用ジャーナルを採取して出力し、その後の
データベースの更新時にどのような更新が行われたかを
示す更新ジャーナルを採取して出力し、トランザクショ
ンの終了時に終了ジャーナルという制御用ジャーナルを
採取して出力している。
Specifically, when a journal is instructed to be collected, a control journal called a start journal is collected and output at the start of a transaction, and what kind of update was performed when the database was updated thereafter. The indicated update journal is collected and output, and at the end of the transaction, a control journal called the end journal is collected and output.

【0004】そして、トランザクションの異常終了時に
ジャーナルを用いてデータベースの復元を行う場合、復
元情報として使用するジャーナルをジャーナルファイル
から入力して復元処理を行っている。
When a database is restored using a journal when a transaction ends abnormally, a journal used as restoration information is input from a journal file to perform restoration processing.

【0005】[0005]

【発明が解決しようとする課題】ところで、ジャーナル
の採取をデータベースの復元を目的として行う場合、デ
ータベースの参照のみを行うトランザクションに関する
ジャーナルは本来保存しておく必要はない。しかし、そ
のトランザクションがデータベースの参照のみを行うの
か、それとも更新も行うのかを事前に知ることができな
い為、従来は、トランザクションの開始時に必ず開始ジ
ャーナルを出力し、更新が行われれば更新ジャーナルを
出力し、またトランザクションの終了時には終了ジャー
ナルを出力していた。
By the way, when the journal is collected for the purpose of restoring the database, it is not necessary to store the journal related to the transaction that only refers to the database. However, since it is not possible to know in advance whether the transaction only refers to the database or updates the database, conventionally, the start journal is always output at the start of a transaction, and the update journal is output when the update is performed. In addition, the end journal was output at the end of the transaction.

【0006】このため、データベースの参照のみを行う
トランザクションについても制御ジャーナルの採取,出
力が行われることになる。この結果、採取されるジャー
ナル量が増大し、これがトランザクション処理速度の低
下を招く一因となっていた。
Therefore, the control journal is collected and output even for the transaction which only refers to the database. As a result, the amount of journals to be collected increases, which is one of the causes of lowering the transaction processing speed.

【0007】また、トランザクションの異常終了時にジ
ャーナルを用いてデータベースの復元を行う場合、復元
情報として使用するジャーナルをジャーナルファイルか
ら入力しているため、復元処理に時間がかかるという問
題点もあった。
Further, when the database is restored using the journal when the transaction ends abnormally, there is a problem that the restoration process takes time because the journal used as the restoration information is input from the journal file.

【0008】そこで本発明の第1の目的は、データベー
スの参照のみを行うトランザクションに関する制御ジャ
ーナルの採取,出力を無くすことにより、トランザクシ
ョン処理の速度を向上させることにある。
Therefore, a first object of the present invention is to improve the speed of transaction processing by eliminating the collection and output of the control journal relating to the transaction that only refers to the database.

【0009】また本発明の第2の目的は、トランザクシ
ョンの異常終了時にジャーナルを用いてデータベースの
復元を行う場合、復元情報として使用するジャーナルを
ジャーナルファイルより高速にアクセス可能な主記憶等
のメモリから入力することができるようにすることにあ
る。
A second object of the present invention is to restore a journal used as restoration information from a memory such as a main memory which can be accessed faster than a journal file when a database is restored using the journal when a transaction ends abnormally. To be able to enter.

【0010】[0010]

【課題を解決するための手段】本発明は上記の第1の目
的を達成するために、オンライン端末から送出されたメ
ッセージを受信してトランザクション処理を行うオンラ
イン情報処理システムにおいて、前記トランザクション
処理を実行すると共に制御用ジャーナルの出力を要求す
るトランザクション実行手段と、前記トランザクション
実行手段で実行されるトランザクション処理プログラム
からの要求によりデータベースのアクセスを行うと共に
データベース更新時には更新ジャーナルの出力を要求す
るデータベースアクセス手段と、ジャーナルファイル,
前記データベースアクセス手段および前記トランザクシ
ョン実行手段に接続されたジャーナル管理手段とを備
え、且つ、前記ジャーナル管理手段は、前記トランザク
ション実行手段および前記データベースアクセス手段か
ら出力要求されたジャーナルを記憶するジャーナルバッ
ファと、ジャーナル採取モードを保持する採取モードメ
モリと、トランザクションの終了時、前記採取モードメ
モリに、データベースの更新を行った場合またはトラン
ザクション処理プログラムから強制出力要求があった場
合にジャーナルの採取を行うモードが保持されていると
き、前記終了したトランザクションにかかる前記ジャー
ナルバッファ中のジャーナルに更新ジャーナルが含まれ
ている場合または前記トランザクション処理プログラム
から強制出力要求があった場合に、ジャーナルファイル
への出力が必要と判断するジャーナルチェック手段と、
このジャーナルチェック手段で出力要と判断されること
により前記ジャーナルバッファのジャーナルを前記ジャ
ーナルファイルへ出力するファイル出力手段とを含んで
いる。
In order to achieve the above first object, the present invention executes the transaction processing in an online information processing system that receives a message sent from an online terminal and performs transaction processing. Transaction execution means for requesting output of a control journal, and database access means for accessing the database in response to a request from a transaction processing program executed by the transaction execution means and requesting output of an update journal when updating the database. , Journal file,
A journal buffer that is connected to the database access unit and the transaction execution unit, and the journal management unit stores a journal buffer that is requested to be output from the transaction execution unit and the database access unit; The collection mode memory that holds the journal collection mode and the mode that collects the journal when the transaction is completed, when the database is updated in the collection mode memory, or when there is a forced output request from the transaction processing program If the update journal is included in the journal in the journal buffer related to the completed transaction, or a forced output request is issued from the transaction processing program. In the case of Tsu, and journal check means to determine that the required output to the journal file,
File output means for outputting the journal of the journal buffer to the journal file when the journal check means determines that output is necessary.

【0011】そして、上記第2の目的をも達成するため
に、トランザクション異常終了時に前記ジャーナルバッ
ファに記憶されたジャーナルを使用して前記データベー
スの状態を前記異常終了したトランザクションの実行前
の状態に戻すデータベース復元手段を、前記ジャーナル
管理手段に備えている。
In order to achieve the second object, when the transaction ends abnormally, the journal stored in the journal buffer is used to restore the state of the database to the state before the execution of the abnormally terminated transaction. Database restoring means is provided in the journal managing means.

【0012】また、各トランザクション毎のジャーナル
量の削減とジャーナル採取モードの一括登録を可能にす
る為、外部記憶装置で構成されたジャーナル出力情報記
憶手段と、各トランザクション毎のジャーナル採取モー
ドをオンライン開始前に前記ジャーナル出力情報記憶手
段に一括して登録するジャーナル情報登録手段とを備え
ると共に、前記トランザクション実行手段に、オンライ
ン開始時に前記ジャーナル出力情報記憶手段に記憶され
たジャーナル採取モードを前記ジャーナル管理手段に通
知して前記採取モードメモリに設定せしめるジャーナル
採取モード通知手段を備え、且つ前記ジャーナル管理手
段のジャーナルチェック手段は、前記採取モードメモリ
に設定された各トランザクション毎のジャーナル採取モ
ードのうち終了したトランザクションに対応するジャー
ナル採取モードを参照して判断を行うようにしている。
Further, in order to reduce the amount of journals for each transaction and enable batch registration of the journal collection mode, the journal output information storage means composed of an external storage device and the journal collection mode for each transaction are started online. And a journal information registration unit for collectively registering in the journal output information storage unit, and the transaction execution unit is configured to set the journal collection mode stored in the journal output information storage unit at the time of online start. A journal collection mode notifying means for notifying the collection mode memory to set the collection mode memory, and the journal check means of the journal management means ends the journal collection mode for each transaction set in the collection mode memory. So that a determination is made by referring to the journal collection mode corresponding to the transaction.

【0013】更に、オンライン実行中における各トラン
ザクションのジャーナル採取モードの変更を可能にする
為、前記ジャーナル出力情報記憶手段に記憶されたトラ
ンザクション毎のジャーナル採取モードをセンタ端末か
らの要求に従ってオンライン実行中に変更するジャーナ
ル情報変更手段を備え、前記トランザクション実行手段
のジャーナル採取モード通知手段は、前記ジャーナル情
報変更手段による変更があった場合、変更されたジャー
ナル採取モードを前記ジャーナル管理手段に通知して前
記採取モードメモリに設定せしめるようにしている。
Further, in order to make it possible to change the journal collection mode of each transaction during online execution, the journal collection mode for each transaction stored in the journal output information storage means is changed during online execution according to a request from the center terminal. The journal collecting mode notifying means of the transaction executing means notifies the journal managing mode of the changed journal collecting mode to the journal managing means when the journal information changing means makes a change. I am trying to set it in the mode memory.

【0014】[0014]

【作用】本発明のオンライン情報処理システムにおける
ジャーナル採取方式においては、データベースの参照の
みを行うトランザクションに関するジャーナルの採取を
無くしたいとき、ジャーナル採取モードとして、データ
ベースの更新を行った場合またはトランザクション処理
プログラムから強制出力要求があった場合にジャーナル
の採取を行うというモードを採取モードメモリに設定し
ておく。
According to the journal collecting method in the online information processing system of the present invention, when it is desired to stop collecting the journal relating to the transaction which only refers to the database, the journal collecting mode is used when the database is updated or from the transaction processing program. The mode for collecting journals when there is a forced output request is set in the collection mode memory.

【0015】なお、ジャーナル採取モードは全トランザ
クション共通に設定することも、或いは各トランザクシ
ョン毎に設定することもできる。また、強制出力要求が
あった場合にジャーナルの採取を行うようにしたのは、
データベースの参照のみを行うトランザクションであっ
ても管理用トランザクションの如く動作した証拠をジャ
ーナルとして残しておきたいトランザクションも存在す
るので、そのようなトランザクションについては強制出
力要求を出せばジャーナルが残るようにするためであ
る。
The journal collection mode can be set commonly for all transactions or can be set for each transaction. Also, when the forced output request is made, the journal is collected
Even for transactions that only reference the database, there are some transactions that want to keep the evidence that they operated like a management transaction as a journal. Therefore, if you issue a forced output request for such a transaction, make the journal remain. This is because.

【0016】トランザクションの開始時にトランザクシ
ョン実行手段から開始ジャーナルの出力が要求され、ま
た実行されたトランザクション処理プログラムからの要
求によりデータベースのアクセスを行うデータベースア
クセス手段からデータベース更新時に更新ジャーナルの
出力が要求され、更にトランザクションの終了時に終了
ジャーナルの出力が要求されると、これら出力要求され
たジャーナルは主記憶等のメモリで構成されたジャーナ
ルバッファに記憶される。
When the transaction is started, the transaction execution means requests the output of the start journal, and the database access means that accesses the database in response to the request from the executed transaction processing program requests the output of the update journal when the database is updated. Further, when the output of the end journal is requested at the end of the transaction, these output-requested journals are stored in a journal buffer composed of a memory such as a main memory.

【0017】そして、上述のようなジャーナル採取モー
ドが設定されている場合、ジャーナル管理手段のジャー
ナルチェック手段は、トランザクションの終了時、終了
したトランザクションにかかるジャーナルバッファ中の
ジャーナルに更新ジャーナルが含まれている場合または
前記トランザクション処理プログラムから強制出力要求
があった場合に、ジャーナルファイルへの出力が必要と
判断し、ファイル出力手段はこの判断を受けてジャーナ
ルバッファのジャーナルをジャーナルファイルへ出力す
る。
When the above-mentioned journal collection mode is set, the journal check means of the journal management means includes the update journal in the journal in the journal buffer of the completed transaction at the end of the transaction. If there is a forced output request from the transaction processing program, it is determined that output to the journal file is necessary, and the file output means receives this determination and outputs the journal of the journal buffer to the journal file.

【0018】また、トランザクション異常終了時にジャ
ーナルを用いてデータベースを復元する場合、データベ
ース復元手段は、ジャーナルバッファに記憶されたジャ
ーナルを使用してデータベースの状態を異常終了したト
ランザクションの実行前の状態に戻す。
Further, when the database is restored using the journal when the transaction ends abnormally, the database restoring means uses the journal stored in the journal buffer to restore the state of the database to the state before the execution of the transaction that ended abnormally. .

【0019】[0019]

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

【0020】図1を参照すると、本発明のジャーナル採
取方式を適用したオンライン情報処理システムの一例
は、センタ端末101,オンライン端末102,ジャー
ナル情報登録手段201,ジャーナル情報変更手段20
2,ジャーナル出力情報記憶手段203,トランザクシ
ョン実行手段301,データベースアクセス手段40
1,データベース402,ジャーナル管理手段501お
よびジャーナルファイル601を備えている。
Referring to FIG. 1, an example of an online information processing system to which the journal collecting method of the present invention is applied is a center terminal 101, an online terminal 102, a journal information registration means 201, a journal information changing means 20.
2, journal output information storage means 203, transaction execution means 301, database access means 40
1, a database 402, a journal management unit 501, and a journal file 601.

【0021】トランザクション実行手段301は、トラ
ンザクションの実行にかかる処理を司る手段であり、図
2に示すように、トランザクション制御手段302,ジ
ャーナル採取モード通知手段303,トランザクション
開始処理手段304,トランザクション処理プログラム
305およびトランザクション終了処理手段306を含
んでいる。
The transaction executing means 301 is a means for controlling the processing relating to the execution of the transaction, and as shown in FIG. 2, the transaction control means 302, the journal collection mode notifying means 303, the transaction start processing means 304, and the transaction processing program 305. And transaction end processing means 306.

【0022】ジャーナル管理手段501は、ジャーナル
の採取等のジャーナルの管理にかかる処理を司る手段で
あり、図3に示すように、ジャーナル制御手段502,
バッファ出力手段503,バッファ入力手段504,ジ
ャーナルチェック手段505,ファイル出力手段50
6,データベース復元手段507,ジャーナルバッファ
508および採取モードメモリ509を含んでいる。な
お、図1中にもジャーナル管理手段501の主要な手段
を描いてある。
The journal management means 501 is a means for controlling processing related to journal management such as journal collection, and as shown in FIG. 3, the journal control means 502,
Buffer output means 503, buffer input means 504, journal check means 505, file output means 50
6, database restoring means 507, journal buffer 508 and collection mode memory 509. Note that the main means of the journal management means 501 is also illustrated in FIG.

【0023】ジャーナル出力情報記憶手段203は、ト
ランザクション実行履歴であるジャーナルの採取方法を
記憶しておく手段である。本実施例では、トランザクシ
ョン毎にそのジャーナル採取モードの指定ができるよう
に、図4に示すような、トランザクション名801とジ
ャーナル採取モード802とその他の情報とから構成さ
れる情報を各トランザクション毎に記憶するようにして
いる。なお、全トランザクションに共通なジャーナル採
取モードを記憶させるようにしても良い。
The journal output information storage means 203 is means for storing a method of collecting a journal which is a transaction execution history. In this embodiment, the information including the transaction name 801, the journal collection mode 802, and other information as shown in FIG. 4 is stored for each transaction so that the journal collection mode can be designated for each transaction. I am trying to do it. The journal collection mode common to all transactions may be stored.

【0024】ここで、図4中のジャーナル採取モード8
02は本実施例の場合、以下のようなモードを採用して
いる。 モード0;無条件でジャーナルを採取。 モード1;データベースの更新を行った場合またはトラ
ンザクション処理プログラムからの強制出力要求時にジ
ャーナルを採取。 モード2;ジャーナルを採取しない。 なお、その他のモードを採用しても良いことは勿論のこ
とである。
Here, the journal collection mode 8 in FIG.
In the case of the present embodiment, 02 adopts the following modes. Mode 0: Unconditionally collect journals. Mode 1; Collect journals when updating the database or when a forced output request is issued from the transaction processing program. Mode 2: No journal is collected. It goes without saying that other modes may be adopted.

【0025】ジャーナル情報登録手段201は、オンラ
イン情報処理システムにおけるオンライン業務の開始前
にトランザクション毎のジャーナル採取モードをジャー
ナル出力情報記憶手段203にパス703を通じて一括
して登録するための手段である。
The journal information registration means 201 is means for collectively registering the journal collection mode for each transaction in the journal output information storage means 203 via the path 703 before the start of online work in the online information processing system.

【0026】ジャーナル情報変更手段202は、オンラ
イン情報処理システムのオンライン業務稼動中に、パス
704によるセンタ端末101からの表示要求に従っ
て、ジャーナル出力情報記憶手段203に記憶されたト
ランザクション毎のジャーナル採取モードをパス707
を通じて読み出してパス705を介してセンタ端末10
1に送って表示させ、その後、パス704によるセンタ
端末101からの変更要求に従って、ジャーナル出力情
報記憶手段203に記憶された該当するトランザクショ
ンのジャーナル採取モードをパス706を通じて変更す
るといった処理を行う手段である。なお、ジャーナル情
報変更手段202はジャーナル出力情報記憶手段203
の内容を変更した場合、パス709を通じてその旨をト
ランザクション実行手段301に通知する。
The journal information changing means 202 sets the journal collection mode for each transaction stored in the journal output information storage means 203 in accordance with a display request from the center terminal 101 via the path 704 during the online operation of the online information processing system. Path 707
Through the center terminal 10 via the path 705.
1 to display the data, and then, according to a change request from the center terminal 101 through the path 704, the journal collection mode of the corresponding transaction stored in the journal output information storage unit 203 is changed through the path 706. is there. The journal information changing unit 202 is the journal output information storage unit 203.
When the contents of the above are changed, the fact is notified to the transaction executing means 301 through the path 709.

【0027】トランザクション実行手段301における
トランザクション制御手段302は、パス701を通じ
てオンライン端末102から入力されたメッセージを受
け取ってトランザクション処理全体を制御し、結果等を
示すメッセージをパス702を通じてオンライン端末1
02に返す手段である。
The transaction control means 302 in the transaction execution means 301 receives a message input from the online terminal 102 through the path 701, controls the entire transaction processing, and sends a message indicating the result etc. through the path 702 to the online terminal 1.
It is a means to return to 02.

【0028】ジャーナル採取モード通知手段303は、
トランザクション制御手段302の制御の下に、オンラ
イン業務開始時またはジャーナル情報変更手段202に
よるジャーナル出力情報記憶手段203中のジャーナル
採取モードの変更時に、ジャーナル出力情報記憶手段2
03に記憶された各トランザクション毎のジャーナル採
取モードをパス708を通じて読み込んでパス710を
通じてジャーナル管理手段501へ通知する手段であ
る。なお、パス711は上記の通知に対する応答を伝え
るパスである。
The journal collection mode notifying means 303 is
Under the control of the transaction control means 302, the journal output information storage means 2 is used at the time of starting an online operation or when the journal information change means 202 changes the journal collection mode in the journal output information storage means 203.
This is a means for reading the journal collection mode for each transaction stored in 03 through the path 708 and notifying the journal management means 501 through the path 710. The path 711 is a path for transmitting a response to the above notification.

【0029】トランザクション開始処理手段304は、
トランザクション制御手段302の制御の下に、トラン
ザクションの実行時の初期処理を行う手段であり、初期
処理の一部として開始ジャーナルの出力要求をパス71
2を通じてジャーナル管理手段501に出し、その応答
をパス713を通じて受け取る。
The transaction start processing means 304
Under the control of the transaction control unit 302, it is a unit for performing an initial process at the time of executing a transaction. As a part of the initial process, an output request of a start journal is passed to
2 to the journal management means 501, and the response is received via the path 713.

【0030】トランザクション処理プログラム305
は、トランザクション制御手段302の制御の下に、オ
ンライン端末102から入力されたメッセージにかかる
トランザクション処理を実行するプログラムである。実
行中にデータベース402の参照や更新を行う場合、そ
の要求をパス714を通じてデータベースアクセス手段
401に出し、その応答をパス715を通じて受け取
る。
Transaction processing program 305
Is a program for executing transaction processing related to a message input from the online terminal 102 under the control of the transaction control unit 302. When referring to or updating the database 402 during execution, the request is sent to the database access means 401 through the path 714, and the response is received through the path 715.

【0031】トランザクション終了処理手段306は、
トランザクション制御手段302の制御の下に、トラン
ザクションの終了処理を行う手段であり、終了処理の一
部として終了ジャーナルの出力要求をパス720を通じ
てジャーナル管理手段501に出し、その応答をパス7
21を通じて受け取る等の処理を行う。また、トランザ
クション異常終了時にはデータベース402の復元要求
を出す等の処理も行う。
The transaction end processing means 306 is
Under the control of the transaction control unit 302, it is a unit for performing a transaction termination process. As a part of the termination process, an output request for an end journal is issued to the journal management unit 501 via the path 720, and the response is sent to the path 7.
21. Processes such as receiving through 21 are performed. In addition, when the transaction ends abnormally, processing such as issuing a restoration request for the database 402 is also performed.

【0032】データベースアクセス手段401は、パス
714によるトランザクション処理プログラム305か
らの要求により動作し、データベース402の入出力を
一括管理する手段である。データベース402の参照,
更新はパス718,719を通じて行う。また、データ
ベース402の更新時には、更新ジャーナルの出力要求
をパス716を通じてジャーナル管理手段501に出
し、パス717によりその応答を受け取る。
The database access unit 401 is a unit that operates according to a request from the transaction processing program 305 through the path 714 and collectively manages the input / output of the database 402. Reference to the database 402,
The update is performed via paths 718 and 719. Further, when updating the database 402, an output request for an update journal is issued to the journal management means 501 via the path 716, and the response is received via the path 717.

【0033】データベース402は、当該オンライン情
報処理システムのオンライン業務にかかる各種のデータ
を保持するデータベースである。
The database 402 is a database that holds various data related to online business of the online information processing system.

【0034】ジャーナル管理手段501におけるジャー
ナル制御手段502は、ジャーナルの出力等にかかる処
理全体を制御する手段である。
The journal control means 502 in the journal management means 501 is a means for controlling the entire processing relating to the output of the journal and the like.

【0035】ジャーナルバッファ508は、トランザク
ション実行手段301やデータベースアクセス手段40
1から出力要求があったジャーナルを記憶しておくバッ
ファであり、これはジャーナルファイル601と異なり
主記憶等の高速アクセス可能なメモリで構成されてい
る。
The journal buffer 508 is used for the transaction execution means 301 and the database access means 40.
1 is a buffer for storing the journal requested to be output from the first buffer, and unlike the journal file 601, this is composed of a high-speed accessible memory such as a main memory.

【0036】バッファ出力手段503は、ジャーナル制
御手段502の制御の下に、ジャーナルバッファ508
にジャーナルを書き込む手段である。
The buffer output means 503 is under the control of the journal control means 502.
Is a means to write a journal in.

【0037】バッファ入力手段504は、ジャーナル制
御手段502の制御の下に、ジャーナルバッファ508
からジャーナルを読み込む手段である。
The buffer input means 504, under the control of the journal control means 502, has a journal buffer 508.
Is a means to read journals from.

【0038】採取モードメモリ509は、トランザクシ
ョン実行手段301から通知された各トランザクション
毎のジャーナル採取モード等を記憶するメモリである。
The collection mode memory 509 is a memory for storing the journal collection mode for each transaction notified from the transaction executing means 301.

【0039】ジャーナルチェック手段505は、ジャー
ナル制御手段502の制御の下に、ジャーナルバッファ
508に書き込まれたジャーナルをジャーナルファイル
601に出力する必要があるか否かを、採取モードメモ
リ509に保持された各トランザクション毎のジャーナ
ル採取モードやジャーナルバッファ508に格納された
ジャーナルの内容に基づいてチェックする手段である。
また、出力要求されたジャーナルのジャーナルバッファ
508への出力の必要性もチェックしている。
Under the control of the journal control means 502, the journal check means 505 holds in the collection mode memory 509 whether or not it is necessary to output the journal written in the journal buffer 508 to the journal file 601. This is a means for checking based on the journal collection mode for each transaction and the contents of the journal stored in the journal buffer 508.
Further, the necessity of outputting the output-requested journal to the journal buffer 508 is also checked.

【0040】ファイル出力手段506は、ジャーナル制
御手段502の制御の下に、ジャーナルチェック手段5
05により出力が必要と判断されたジャーナルバッファ
508中のジャーナルをパス723を通じてジャーナル
ファイル601へ書き込む手段である。
The file output means 506 is under the control of the journal control means 502.
It is a means for writing the journal in the journal buffer 508, which is judged to be necessary to be output according to 05, to the journal file 601 through the path 723.

【0041】データベース復元手段507は、ジャーナ
ル制御手段502の制御の下に、トランザクションが異
常終了した場合にジャーナルバッファ508に記憶され
たジャーナルを使用してデータベース402の状態をそ
のトランザクションの実行前の状態に戻す手段である。
Under the control of the journal control unit 502, the database restoration unit 507 uses the journal stored in the journal buffer 508 to change the state of the database 402 to the state before the execution of the transaction when the transaction ends abnormally. It is a means to return to.

【0042】ジャーナルファイル601は、ジャーナル
が書き込まれる磁気ディスク装置等の外部記憶装置上の
ファイルである。
The journal file 601 is a file on an external storage device such as a magnetic disk device in which a journal is written.

【0043】次に、上述のように構成された本実施例の
動作を説明する。
Next, the operation of the present embodiment configured as described above will be described.

【0044】本実施例のオンライン情報処理システムに
おいては、オンライン業務の開始に先立ち、ジャーナル
情報登録手段201により図4に示した形式で各トラン
ザクション毎のジャーナル採取モードがパス703を通
じてジャーナル出力情報記憶手段203に一括登録され
る。
In the online information processing system of this embodiment, prior to the start of online work, the journal information registration means 201 sets the journal collection mode for each transaction in the format shown in FIG. It is collectively registered in 203.

【0045】その後、オンライン業務が開始されると、
その開始時にトランザクション実行手段301のトラン
ザクション制御手段302によりジャーナル採取モード
通知手段303が起動される。
After that, when the online business is started,
At the start, the transaction control means 302 of the transaction execution means 301 activates the journal collection mode notification means 303.

【0046】ジャーナル採取モード通知手段303は、
ジャーナル出力情報記憶手段203に記憶された各トラ
ンザクションのジャーナル採取モード等をパス708を
通じて読み込み、それをパス710を通じてジャーナル
管理手段501に通知する。
The journal collection mode notification means 303
The journal collection mode of each transaction stored in the journal output information storage unit 203 is read through the path 708, and the journal management unit 501 is notified of the read mode through the path 710.

【0047】ジャーナル管理手段501のジャーナル制
御手段502は、通知された各トランザクションのジャ
ーナル採取モード等を採取モードメモリ509に記憶
し、以降、新たなジャーナル採取モードの通知があるま
で同モードでジャーナルの採取を制御する。
The journal control means 502 of the journal management means 501 stores the journal collection mode and the like of each notified transaction in the collection mode memory 509, and thereafter, in the same mode until the new journal collection mode is notified. Control collection.

【0048】採取モードメモリ509へのジャーナル採
取モード等の記憶が終了すると、ジャーナル制御手段5
02はパス711を通じてその旨をジャーナル採取モー
ド通知手段303に通知し、ジャーナル採取モード通知
手段303はそれをトランザクション制御手段302に
通知する。
When the storage of the journal collection mode and the like in the collection mode memory 509 is completed, the journal control means 5
02 notifies the journal collection mode notifying means 303 of that fact through the path 711, and the journal collection mode notifying means 303 notifies the transaction control means 302 of this.

【0049】なお、ジャーナル出力情報記憶手段203
に登録された各トランザクション毎のジャーナル採取モ
ードはセンタ端末101からの変更要求によりジャーナ
ル情報変更手段202を用いてオンライン業務の稼動中
に変更可能である。
The journal output information storage means 203
The journal collection mode for each transaction registered in can be changed by the change request from the center terminal 101 using the journal information changing means 202 while the online business is operating.

【0050】そして、このような変更が行われた場合、
ジャーナル情報変更手段202からパス709を通じて
トランザクション制御手段302にその旨が通知され、
ジャーナル採取モード通知手段303が起動される。こ
れにより、変更後のジャーナル採取モードがジャーナル
採取モード通知手段303によってジャーナル制御手段
502に通知されて採取モードメモリ509に記憶さ
れ、ジャーナル制御手段502は新たに通知されたモー
ドでジャーナルの採取を制御する。
When such a change is made,
The journal information changing means 202 notifies the transaction control means 302 through the path 709,
The journal collection mode notification means 303 is activated. As a result, the changed journal collection mode is notified to the journal control means 502 by the journal collection mode notification means 303 and stored in the collection mode memory 509, and the journal control means 502 controls the journal collection in the newly notified mode. To do.

【0051】さて、オンライン業務の開始後、オンライ
ン端末102からパス701を通じてメッセージが入力
されると、そのメッセージを受け取ったトランザクショ
ン実行手段301のトランザクション制御手段302
は、トランザクション開始処理手段304を起動する。
Now, when a message is input from the online terminal 102 through the path 701 after the start of the online business, the transaction control means 302 of the transaction execution means 301 which has received the message.
Activates the transaction start processing means 304.

【0052】トランザクション開始処理手段304は、
当該メッセージにかかるトランザクションの初期処理を
行う。そして、その処理の一部としてジャーナル管理手
段501に対しパス712を通じてトランザクションの
開始ジャーナルの出力を要求する。
The transaction start processing means 304
Performs the initial processing of the transaction related to the message. Then, as a part of the processing, the journal management means 501 is requested to output the start journal of the transaction through the path 712.

【0053】ジャーナル管理手段501のジャーナル制
御手段502は、パス712を通じて開始ジャーナルの
出力要求を受けると、ジャーナルチェック手段505に
ジャーナルの出力が必要か否かを判断させる。
When the journal control means 502 of the journal management means 501 receives the output request of the start journal through the path 712, it causes the journal check means 505 to judge whether or not the journal output is necessary.

【0054】このときジャーナルチェック手段505
は、当該トランザクションに対応するジャーナル採取モ
ードを採取モードメモリ509から参照し、モード0,
1であれば出力要と判断し、モード2であれば出力不要
と判断する。
At this time, the journal check means 505
Refers to the journal collection mode corresponding to the transaction from the collection mode memory 509,
If it is 1, it is determined that output is necessary, and if it is mode 2, it is determined that output is unnecessary.

【0055】ジャーナル制御手段502は、ジャーナル
チェック手段505で出力要と判断されると、バッファ
出力手段503を使用して要求された開始ジャーナルを
ジャーナルバッファ508に記憶し、応答をパス713
を通じてトランザクション開始処理手段304に返す。
また、出力不要の場合は、開始ジャーナルのジャーナル
バッファ508への記憶は行わず、応答をトランザクシ
ョン開始処理手段304に返す。
When the journal check unit 505 determines that the output is necessary, the journal control unit 502 uses the buffer output unit 503 to store the requested start journal in the journal buffer 508, and sends the response to the path 713.
Through the transaction start processing means 304.
If output is not necessary, the start journal is not stored in the journal buffer 508 and a response is returned to the transaction start processing means 304.

【0056】トランザクションの開始処理が終わると、
トランザクション制御手段302はトランザクション処
理プログラム305の実行を行う。
When the transaction start processing ends,
The transaction control unit 302 executes the transaction processing program 305.

【0057】この実行中のトランザクション処理プログ
ラム305からデータベース402の参照要求がパス7
14に出された場合、データベースアクセス手段401
はデータベース402中の該当データをパス718,7
19を通じて読み込み、パス715によりトランザクシ
ョン処理プログラム305へ返却する。
A reference request for the database 402 is issued from the running transaction processing program 305 in the path 7
14, the database access means 401
Passes the relevant data in the database 402 to paths 718, 7
It is read through 19 and returned to the transaction processing program 305 by the path 715.

【0058】また、トランザクション処理プログラム3
05からパス714を通じてデータベース402の更新
要求が出された場合、データベースアクセス手段401
は、パス716を通じてジャーナル管理手段501に対
してデータベース402の更新ジャーナルの出力を要求
する。
The transaction processing program 3
When an update request for the database 402 is issued from 05 through the path 714, the database access means 401
Requests the journal management means 501 to output the update journal of the database 402 through the path 716.

【0059】なお、データベースアクセス手段401に
よるデータベース402の更新方法には、トランザクシ
ョン処理プログラム305から更新要求があった時点で
逐次行う方法と、そのトランザクション終了時点でまと
めて行う方法とがある。本実施例では前者の方法を採用
しており、それに合った内容の更新ジャーナルの採取を
行っている。なお、後者の更新方法を採ることも勿論可
能であり、その場合、それに合った更新ジャーナルの採
取が行われ、トランザクション終了時にジャーナルバッ
ファ508に保持されたジャーナルでデータベース40
2の更新が行われる。また、後者の場合トランザクショ
ン異常終了時にはデータベース402を更新しないこと
でトランザクション開始前の状態にデータベース402
を復元することが可能である。
There are two methods for updating the database 402 by the database access means 401: a method for sequentially performing an update request from the transaction processing program 305 and a method for performing a batch at the end of the transaction. In the present embodiment, the former method is adopted, and the update journal having the contents suitable for the former method is collected. Of course, the latter update method can be adopted. In that case, an update journal suitable for the latter update is collected, and the database 40 is stored in the journal buffer 508 at the end of the transaction.
2 updates are made. In the latter case, the database 402 is not updated when the transaction ends abnormally, so that
It is possible to restore.

【0060】ジャーナル管理手段501のジャーナル制
御手段502は、パス716を通じて更新ジャーナルの
出力要求を受けると、ジャーナルチェック手段505に
より開始ジャーナルの場合と同様の判断を行わせ、出力
要と判断された場合にはバッファ出力手段503を用い
てジャーナルバッファ508に要求された更新ジャーナ
ルを記憶する。なお、応答はパス717を通じてデータ
ベースアクセス手段401に返される。
When the journal control unit 502 of the journal management unit 501 receives the output request of the updated journal through the path 716, the journal check unit 505 makes the same judgment as in the case of the start journal, and when it is judged that the output is necessary. The buffer output means 503 is used to store the requested update journal in the journal buffer 508. The response is returned to the database access unit 401 via the path 717.

【0061】トランザクション処理プログラム305の
終了時、即ちトランザクションの終了時、トランザクシ
ョン制御手段302は、トランザクション終了処理手段
306を起動する。
At the end of the transaction processing program 305, that is, at the end of the transaction, the transaction control means 302 activates the transaction end processing means 306.

【0062】トランザクション終了処理手段306は、
当該トランザクションの後処理を行う。そして、その処
理の一部としてジャーナル管理手段501に対しトラン
ザクションの終了ジャーナルの出力をパス720を通じ
て要求する。
The transaction end processing means 306
Post-process the transaction. Then, as part of the processing, the journal management unit 501 is requested to output the end journal of the transaction through the path 720.

【0063】なお、トランザクション処理プログラム3
05の実行中に当該プログラム305からジャーナルの
強制出力要求が出された場合、トランザクション制御手
段302はそのことを内部に記憶しておき、トランザク
ション終了時にトランザクション終了処理手段306に
通知し、トランザクション終了処理手段306はそのこ
とを終了ジャーナルの出力要求時に同時にジャーナル管
理手段501に通知するものである。
The transaction processing program 3
When a forced output request of a journal is issued from the program 305 during execution of 05, the transaction control means 302 stores this internally and notifies the transaction end processing means 306 at the end of the transaction, and the transaction end processing The means 306 notifies the journal management means 501 at the same time when the end journal output request is made.

【0064】ジャーナル管理手段501のジャーナル制
御手段502は、パス720を通じて終了ジャーナルの
出力要求を受けると、この終了ジャーナルおよび当該ト
ランザクションにかかる他のジャーナルをジャーナルフ
ァイル601へ出力する必要があるか否かをジャーナル
チェック手段505に判断させる。
When the journal control means 502 of the journal management means 501 receives the output request of the end journal through the path 720, whether or not it is necessary to output this end journal and other journals related to the transaction to the journal file 601. Is checked by the journal check means 505.

【0065】ジャーナルチェック手段505は、採取モ
ードメモリ509を参照し、当該トランザクションのジ
ャーナル採取モードがモード0であれば無条件に出力要
と判断する。また、モード1であれば、トランザクショ
ン制御手段302にトランザクション処理プログラム3
05からの強制出力要求があったか否かを問い合わせ、
あれば出力要と判断し、無ければジャーナル制御手段5
02およびバッファ入力手段504を介してジャーナル
バッファ508の当該トランザクションにかかるジャー
ナルを入力して更新ジャーナルが含まれているか否かを
調べ、含まれている場合には出力要と判断し、それ以外
は出力不要と判断する。更に、モード2であれば出力不
要と判断する。
The journal check means 505 refers to the collection mode memory 509 and unconditionally determines that the output is necessary if the journal collection mode of the transaction is mode 0. Further, in the mode 1, the transaction processing program 3 is stored in the transaction control unit 302.
Inquire whether there is a forced output request from 05,
If there is, it is judged that the output is necessary, and if there is not, journal control means 5
02 and the buffer input means 504, the journal related to the transaction in the journal buffer 508 is input to check whether or not the update journal is included. If the update journal is included, it is determined that the output journal is required. Judge that output is not required. Further, in the case of mode 2, it is determined that output is unnecessary.

【0066】ジャーナル制御手段502は、ジャーナル
チェック手段505によりジャーナルファイル601へ
の出力が必要と判断された場合に限り、ファイル出力手
段506を使用して、ジャーナルバッファ508に記憶
されていた当該トランザクションにかかる全てのジャー
ナルをジャーナルファイル601へ出力する。
The journal control unit 502 uses the file output unit 506 only when the journal check unit 505 determines that the output to the journal file 601 is necessary, and the transaction is stored in the journal buffer 508. All such journals are output to the journal file 601.

【0067】ジャーナル制御手段502はジャーナルの
出力にかかる制御を終えると、応答をパス721を通じ
てトランザクション終了処理手段306に返し、トラン
ザクション終了処理手段306は終了処理を終えると、
その旨をトランザクション制御手段302に通知する。
When the journal control means 502 finishes controlling the output of the journal, it returns a response to the transaction termination processing means 306 through the path 721, and the transaction termination processing means 306 terminates the termination processing.
This is notified to the transaction control means 302.

【0068】トランザクション制御手段302は、トラ
ンザクションの後処理が終了すると、オンライン端末1
02に対しパス702を通じてメッセージを送信する。
これで、1トランザクションの処理が完了する。
When the transaction post-processing is completed, the transaction control means 302 determines that the online terminal 1
02, the message is transmitted via the path 702.
This completes the processing of one transaction.

【0069】以上はトランザクションが正常終了した場
合の動作であるが、トランザクション処理プログラム3
05の実行エラーやデータベースアクセス手段401で
のI/Oエラー等によりトランザクションが異常終了し
た場合には、以下のような動作が行われる。
The above is the operation when the transaction ends normally. The transaction processing program 3
When the transaction is abnormally terminated due to an execution error 05, an I / O error in the database access unit 401, or the like, the following operation is performed.

【0070】トランザクションが異常終了した場合、ト
ランザクション制御手段302は、トランザクション終
了処理手段306に対し異常終了にかかる後処理を要求
する。
When the transaction ends abnormally, the transaction control means 302 requests the transaction end processing means 306 for post-processing associated with the abnormal end.

【0071】トランザクション終了処理手段306は、
後処理の一部としてパス720を通じてジャーナル管理
手段501に対してデータベース402の復元を要求す
る。
The transaction end processing means 306
As part of the post-processing, the journal management means 501 is requested to restore the database 402 via the path 720.

【0072】ジャーナル管理手段501のジャーナル制
御手段502は、パス720を通じてデータベース40
2の復元が要求されると、バッファ入力手段504を用
いて当該異常終了したトランザクションにかかるジャー
ナルをジャーナルバッファ508から入力し、それを渡
してデータベース復元手段507を起動する。
The journal control means 502 of the journal management means 501 uses the path 720 for the database 40.
When the second restoration is requested, the journal relating to the abnormally terminated transaction is input from the journal buffer 508 by using the buffer input unit 504, and the database restoration unit 507 is activated by passing it.

【0073】データベース復元手段507は、渡された
ジャーナルを使用し、パス722を通じてデータベース
402をそのトランザクションの開始前の状態に戻す。
The database restoring means 507 uses the passed journal to restore the database 402 to the state before the start of the transaction through the path 722.

【0074】データベース復元手段507によるデータ
ベース402の復元が終わると、ジャーナル制御手段5
02はその旨をパス721を通じてトランザクション終
了処理手段306に通知する。
When the restoration of the database 402 by the database restoration means 507 is completed, the journal control means 5
02 notifies the transaction end processing means 306 of that fact through the path 721.

【0075】トランザクション終了処理手段306は、
次に、終了ジャーナルの出力をパス720を通じてジャ
ーナル管理手段501に要求する。この終了ジャーナル
の出力要求は前述と同様に処理される。
The transaction end processing means 306
Next, the output of the end journal is requested to the journal management unit 501 via the path 720. This end journal output request is processed in the same manner as described above.

【0076】そして、トランザクション終了処理手段3
06による終了処理が終わると、トランザクション制御
手段302は、オンライン端末102に対しパス702
を通じてトランザクションが異常終了したことを通知す
る。これで1トランザクション処理が完了する。
Then, the transaction end processing means 3
When the end processing according to 06 is completed, the transaction control unit 302 sends a path 702 to the online terminal 102.
To notify that the transaction ended abnormally. This completes one transaction process.

【0077】[0077]

【発明の効果】以上説明した本発明のオンライン情報処
理システムにおけるジャーナル採取方式によれば、以下
のような効果を得ることができる。
According to the journal collecting method in the online information processing system of the present invention described above, the following effects can be obtained.

【0078】(1)データベースの更新を行った場合ま
たはトランザクション処理プログラムから強制出力要求
があった場合に採取を行うというジャーナル採取モード
を設定すれば、データベースの参照のみを行うトランザ
クションにかかる一切のジャーナルの採取を無くすこと
ができる。また、強制出力要求があった場合には採取す
るようにしたので、データベースの参照のみを行うトラ
ンザクションであっても管理用トランザクションの如く
動作した証拠をジャーナルとして残しておきたいトラン
ザクションについては、トランザクション処理プログラ
ムから強制出力要求を出すことによりジャーナルの採取
が行える。
(1) If the journal collection mode is set so that collection is performed when the database is updated or when a forced output request is issued from the transaction processing program, all journals related to transactions that only refer to the database are set. Can be eliminated. In addition, when a forced output request is made, it is collected. Therefore, even if it is a transaction that only refers to the database, transaction processing is required for a transaction that wants to retain the evidence that it operated like a management transaction as a journal. The journal can be collected by issuing a forced output request from the program.

【0079】(2)トランザクションの異常終了時にジ
ャーナルを用いてデータベースの復元を行う場合、復元
情報として使用するジャーナルをジャーナルファイルよ
り高速にアクセス可能な主記憶等のメモリで構成された
ジャーナルバッファから入力できるので、復元処理の高
速化が可能になる。
(2) When a database is restored using a journal when a transaction ends abnormally, a journal used as restoration information is input from a journal buffer composed of a memory such as a main memory that can be accessed faster than a journal file. Therefore, the restoration process can be speeded up.

【0080】(3)ジャーナル採取モードを各トランザ
クション毎に設定可能にしたことにより、トランザクシ
ョン毎のジャーナル量の削減といった、きめ細かなジャ
ーナル採取制御が可能になる。
(3) Since the journal collection mode can be set for each transaction, fine journal collection control such as reduction of the journal amount for each transaction becomes possible.

【0081】(4)オンライン実行中にジャーナル採取
モードを変更できるので、ジャーナル採取モードの変更
のためにオンライン業務を停止させる必要がない。
(4) Since the journal collection mode can be changed during online execution, it is not necessary to stop the online work for changing the journal collection mode.

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

【図1】本発明のジャーナル採取方式を適用したオンラ
イン情報処理システムの一例を示すブロック図である。
FIG. 1 is a block diagram showing an example of an online information processing system to which a journal collecting method of the present invention is applied.

【図2】トランザクション実行手段の構成例を示すブロ
ック図である。
FIG. 2 is a block diagram showing a configuration example of a transaction executing means.

【図3】ジャーナル管理手段の構成例を示すブロック図
である。
FIG. 3 is a block diagram showing a configuration example of journal management means.

【図4】ジャーナル出力情報記憶手段に記憶された情報
の内容例を示す図である。
FIG. 4 is a diagram showing an example of contents of information stored in a journal output information storage means.

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

101…センタ端末 102…オンライン端末 201…ジャーナル情報登録手段 202…ジャーナル情報変更手段 203…ジャーナル出力情報記憶手段 301…トランザクション実行手段 302…トランザクション制御手段 303…ジャーナル採取モード通知手段 304…トランザクション開始処理手段 305…トランザクション処理プログラム 306…トランザクション終了処理手段 401…データベースアクセス手段 402…データベース 501…ジャーナル管理手段 502…ジャーナル制御手段 503…バッファ出力手段 504…バッファ入力手段 505…ジャーナルチェック手段 506…ファイル出力手段 507…データベース復元手段 508…ジャーナルバッファ 509…採取モードメモリ 601…ジャーナルファイル 101 ... Center terminal 102 ... Online terminal 201 ... Journal information registration means 202 ... Journal information changing means 203 ... Journal output information storage means 301 ... Transaction execution means 302 ... Transaction control means 303 ... Journal collection mode notification means 304 ... Transaction start processing means 305 ... Transaction processing program 306 ... Transaction end processing means 401 ... Database access means 402 ... Database 501 ... Journal management means 502 ... Journal control means 503 ... Buffer output means 504 ... Buffer input means 505 ... Journal checking means 506 ... File output means 507 ... Database restoring means 508 ... Journal buffer 509 ... Collection mode memory 601 ... Journal file

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 オンライン端末から送出されたメッセー
ジを受信してトランザクション処理を行うオンライン情
報処理システムにおいて、 前記トランザクション処理を実行すると共に制御用ジャ
ーナルの出力を要求するトランザクション実行手段と、 前記トランザクション実行手段で実行されるトランザク
ション処理プログラムからの要求によりデータベースの
アクセスを行うと共にデータベース更新時には更新ジャ
ーナルの出力を要求するデータベースアクセス手段と、 ジャーナルファイル,前記データベースアクセス手段お
よび前記トランザクション実行手段に接続されたジャー
ナル管理手段とを備え、且つ、 前記ジャーナル管理手段は、 前記トランザクション実行手段および前記データベース
アクセス手段から出力要求されたジャーナルを記憶する
ジャーナルバッファと、 ジャーナル採取モードを保持する採取モードメモリと、 トランザクションの終了時、前記採取モードメモリに、
データベースの更新を行った場合またはトランザクショ
ン処理プログラムから強制出力要求があった場合にジャ
ーナルの採取を行うモードが保持されているとき、前記
終了したトランザクションにかかる前記ジャーナルバッ
ファ中のジャーナルに更新ジャーナルが含まれている場
合または前記トランザクション処理プログラムから強制
出力要求があった場合に、ジャーナルファイルへの出力
が必要と判断するジャーナルチェック手段と、 該ジャーナルチェック手段で出力要と判断されることに
より前記ジャーナルバッファのジャーナルを前記ジャー
ナルファイルへ出力するファイル出力手段とを含むこと
を特徴とするオンライン情報処理システムにおけるジャ
ーナル採取方式。
1. An online information processing system for receiving a message sent from an online terminal and performing a transaction process, a transaction execution unit for executing the transaction process and requesting output of a control journal, and the transaction execution unit. Database access means for accessing the database in response to a request from the transaction processing program executed in the above, and for requesting output of an update journal when updating the database; journal file; journal management connected to the database access means and the transaction execution means Means, and the journal management means is a jar output requested by the transaction execution means and the database access means. And journal buffer for storing Le, and collecting mode memory for storing a journal collection mode, at the end of a transaction, the collection mode memory,
When the database is updated or the mode to collect the journal when a forced output request is issued from the transaction processing program is held, the journal in the journal buffer related to the terminated transaction includes the update journal. If there is a forced output request from the transaction processing program, the journal check means determines that output to the journal file is necessary, and the journal buffer is determined by the journal check means when output is required. And a file output means for outputting the journal to the journal file.
【請求項2】 トランザクション異常終了時に前記ジャ
ーナルバッファに記憶されたジャーナルを使用して前記
データベースの状態を前記異常終了したトランザクショ
ンの実行前の状態に戻すデータベース復元手段を、前記
ジャーナル管理手段に備えた請求項1記載のオンライン
情報処理システムにおけるジャーナル採取方式。
2. The journal management means is provided with database restoring means for restoring the state of the database to the state before the execution of the transaction that ended abnormally by using the journal stored in the journal buffer when the transaction ended abnormally. A journal collection method in the online information processing system according to claim 1.
【請求項3】 外部記憶装置で構成されたジャーナル出
力情報記憶手段と、 各トランザクション毎のジャーナル採取モードをオンラ
イン開始前に前記ジャーナル出力情報記憶手段に一括し
て登録するジャーナル情報登録手段とを備えると共に、 前記トランザクション実行手段に、オンライン開始時に
前記ジャーナル出力情報記憶手段に記憶されたジャーナ
ル採取モードを前記ジャーナル管理手段に通知して前記
採取モードメモリに設定せしめるジャーナル採取モード
通知手段を備え、且つ前記ジャーナル管理手段のジャー
ナルチェック手段は、前記採取モードメモリに設定され
た各トランザクション毎のジャーナル採取モードのうち
終了したトランザクションに対応するジャーナル採取モ
ードを参照して判断を行うことを特徴とする請求項1ま
たは2記載のオンライン情報処理システムにおけるジャ
ーナル採取方式。
3. A journal output information storage means composed of an external storage device, and journal information registration means for collectively registering a journal collection mode for each transaction in the journal output information storage means before starting online. At the same time, the transaction executing means is provided with a journal collecting mode notifying means for notifying the journal managing means of the journal collecting mode stored in the journal output information storing means at the time of online start and setting the journal collecting mode in the collecting mode memory. The journal check means of the journal management means makes a determination by referring to the journal collection mode corresponding to the completed transaction among the journal collection modes for each transaction set in the collection mode memory. Journal collection system in the online information processing system of the other two described.
【請求項4】 前記ジャーナル出力情報記憶手段に記憶
されたトランザクション毎のジャーナル採取モードをセ
ンタ端末からの要求に従ってオンライン実行中に変更す
るジャーナル情報変更手段を備え、 前記トランザクション実行手段のジャーナル採取モード
通知手段は、前記ジャーナル情報変更手段による変更が
あった場合、変更されたジャーナル採取モードを前記ジ
ャーナル管理手段に通知して前記採取モードメモリに設
定せしめることを特徴とする請求項3記載のオンライン
情報処理システムにおけるジャーナル採取方式。
4. A journal information changing means for changing the journal collecting mode for each transaction stored in the journal output information storing means during online execution according to a request from a center terminal, and notifying a journal collecting mode of the transaction executing means. 4. The online information processing according to claim 3, wherein the means, when there is a change by the journal information changing means, notifies the changed journal collecting mode to the journal managing means and sets the journal collecting mode in the collecting mode memory. Journal collection method in the system.
JP3208518A 1991-07-25 1991-07-25 Journal collection method for online information processing system Expired - Fee Related JP2674374B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3208518A JP2674374B2 (en) 1991-07-25 1991-07-25 Journal collection method for online information processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3208518A JP2674374B2 (en) 1991-07-25 1991-07-25 Journal collection method for online information processing system

Publications (2)

Publication Number Publication Date
JPH0535566A true JPH0535566A (en) 1993-02-12
JP2674374B2 JP2674374B2 (en) 1997-11-12

Family

ID=16557503

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3208518A Expired - Fee Related JP2674374B2 (en) 1991-07-25 1991-07-25 Journal collection method for online information processing system

Country Status (1)

Country Link
JP (1) JP2674374B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0836515A (en) * 1994-07-25 1996-02-06 Nec Corp File restoration system
JP2015043178A (en) * 2013-08-26 2015-03-05 キヤノン株式会社 Information processing device, information processing method, and program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58223856A (en) * 1982-06-21 1983-12-26 インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション Calculator
JPS62194558A (en) * 1986-02-21 1987-08-27 Nec Corp Write control system of journal record
JPS63140350A (en) * 1986-12-02 1988-06-11 Nec Corp System for reducing output quantity of recovery point log

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58223856A (en) * 1982-06-21 1983-12-26 インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション Calculator
JPS62194558A (en) * 1986-02-21 1987-08-27 Nec Corp Write control system of journal record
JPS63140350A (en) * 1986-12-02 1988-06-11 Nec Corp System for reducing output quantity of recovery point log

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0836515A (en) * 1994-07-25 1996-02-06 Nec Corp File restoration system
JP2015043178A (en) * 2013-08-26 2015-03-05 キヤノン株式会社 Information processing device, information processing method, and program

Also Published As

Publication number Publication date
JP2674374B2 (en) 1997-11-12

Similar Documents

Publication Publication Date Title
JP3503957B2 (en) Method and apparatus for controlling remote database
US6334139B1 (en) Agent system
US20060224639A1 (en) Backup system, program and backup method
JP2821345B2 (en) Asynchronous I / O control method
JP2674374B2 (en) Journal collection method for online information processing system
JPH0816881B2 (en) Database update method
JPH0844670A (en) File managing method, computer system using the same and operating method for computer system
JP3330006B2 (en) Network system including information storage system, input system of the system, and
JP2526728B2 (en) Disk cache automatic usage method
JP3490465B2 (en) Abnormal data processing device
JP3033736B2 (en) Remote disk unit access system
JP2000082005A (en) Data processing system for inter-system data base sharing system
JPH04213126A (en) Software test system
JPH10275107A (en) System and method for data registration
JP3534333B2 (en) Data exchange device
JP3240990B2 (en) Transaction record management device and transaction record management method
JPH02138646A (en) Processing system for addition of record
JP2912046B2 (en) File server control method
JPS63196958A (en) Fault recovery processing method
JP3368378B2 (en) Storage content management method and data processing device
JP2643843B2 (en) Online processing system
JPH03255547A (en) Memory dump output system
JPH0546641A (en) On-line data succeeding system
JPH04361338A (en) Transaction log data succeeding system
JPH0823840B2 (en) Method and apparatus for updating database

Legal Events

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