JPH0383148A - Transaction recovery system - Google Patents

Transaction recovery system

Info

Publication number
JPH0383148A
JPH0383148A JP1221015A JP22101589A JPH0383148A JP H0383148 A JPH0383148 A JP H0383148A JP 1221015 A JP1221015 A JP 1221015A JP 22101589 A JP22101589 A JP 22101589A JP H0383148 A JPH0383148 A JP H0383148A
Authority
JP
Japan
Prior art keywords
transaction
database
failure
management table
data base
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1221015A
Other languages
Japanese (ja)
Inventor
Koichi Kumazawa
熊沢 浩市
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 JP1221015A priority Critical patent/JPH0383148A/en
Publication of JPH0383148A publication Critical patent/JPH0383148A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To automatically relieve a transaction at the time of the occurrence of trouble in a data base and to restore and execute it by providing a transaction managing means, a transaction saving means, and a transaction restoring means. CONSTITUTION:A transaction managing means 11 uses a transaction management table to manage relations between transactions and data bases used by them and trouble information of each data base. If trouble occurs in a data base 3, a transaction saving means 12 refers to the transaction management table updated by the transaction managing means 11 to save a transaction to a relief file 4; and when trouble of the data base 3 used by the saved transaction is recovered, a transaction restoring means 13 restores the transaction from the relief file 4 to execute it. Thus, the transaction is automatically relieved and is restored and executed at the time of the occurrence of trouble in the data base 3.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はトランザクションリカバリ方式に関し、特にト
ランザクション処理システムにおいてデータベースに障
害が発生した場合にそのデータベースをアクセスするト
ランザクションを自動的に救済するトランザクションリ
カバリ方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a transaction recovery method, and more particularly to a transaction recovery method that automatically rescues transactions accessing a database when a database failure occurs in a transaction processing system. Regarding.

〔従来の技術〕[Conventional technology]

従来、トランザクション処理システムでは、データベー
スに障害が発生した場合にそのデータベースをアクセス
するトランザクションに対しコマンドで投入を禁止する
か、トランザクションに対応するプログラム自身で救済
処理を行っていた。
Conventionally, in transaction processing systems, when a failure occurs in a database, a command is used to prohibit the submission of transactions that access the database, or the program corresponding to the transaction performs rescue processing itself.

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

上述した従来のトランザクション処理システムでは、デ
ータベースに障害が発生した場合にそのデータベースを
アクセスするトランザクションに対しコマンドで投入を
禁止するか、トランザクションに対応するプログラム自
身で救済処理を行っていたので、データベースの障害が
復旧するまでの間そのトランプクシ8ンを投入すること
ができないか、救済処理をプログラム自身で行わなけれ
ばならないという欠点がある。
In the conventional transaction processing system described above, when a database failure occurs, the submission of transactions accessing the database is prohibited using a command, or the program corresponding to the transaction performs rescue processing itself. The problem is that the card cannot be input until the fault is recovered, or the program must perform the rescue process itself.

本発明の目的は、上述の点に鑑み、データベースに障害
が発生した場合にトランザクションを自動的に救済し、
データベースの障害の復旧後にトランザクションを復元
して実行させることができるようにしたトランザクショ
ンリカバリ方式を提供することにある。
In view of the above points, it is an object of the present invention to automatically rescue transactions when a database failure occurs, and to
An object of the present invention is to provide a transaction recovery method that enables transactions to be restored and executed after recovery from a database failure.

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

本発明のトランザクシリンリカバリ方式は、オンライン
トランザクション処理システムにおいて、トランザクシ
ョンとトランザクションが使用するデータベースとの関
係およびデータベース毎の障害情報をトランザクション
管理テーブルを用いて管理するトランザクション管理手
段と、データベースに障害が発生した場合に前記トラン
ザクション管理手段によって更新された前記トラアザク
シ5ン管理テーブルを参照してトランザクションの実行
を抑制する必要があると判断されたときにトランザクシ
ョンを救済ファイルに退避させるトランザクション退避
手段と、このトランザクション退避手段によって退避さ
れたトランザクションで使用するデータベースの障害が
復旧したときに前記救済ファイルからトランザクション
を復元して実行させるトランザクション復元手段とを有
する。
In an online transaction processing system, the transaction recovery method of the present invention includes a transaction management means that uses a transaction management table to manage the relationship between transactions and databases used by transactions and failure information for each database, and transaction saving means for saving the transaction to a relief file when it is determined that execution of the transaction needs to be suppressed by referring to the transaction management table updated by the transaction management means; and transaction restoring means for restoring and executing the transaction from the relief file when a fault in the database used in the transaction saved by the saving means is recovered.

〔作用〕[Effect]

本発明のトランザクションリカバリ方式では、トランザ
クション管理手段がトランザクションとトランザクショ
ンが使用するデータベースとの関係およびデータベース
毎の障害情報をトランザクション管理テーブルを用いて
管理し、トランザクション退避手段がデータベースに障
害が発生した場合にトランザクション管理手段によって
更新されたトランザクション管理テーブルを参照してト
ランザクションの実行を抑制する必要があると判断され
たときにトランザクションを救済ファイルに退避させ、
トランザクション復元手段がトランザクション退避手段
によって退避されたトランザクションで使用するデータ
ベースの障害が復旧したときに救済ファイルからトラン
ザクションを復元して実行させる。
In the transaction recovery method of the present invention, the transaction management means uses a transaction management table to manage the relationship between a transaction and the database used by the transaction and failure information for each database, and the transaction saving means manages the relationship between a transaction and the database used by the transaction and failure information for each database. Refers to the transaction management table updated by the transaction management means and saves the transaction to a relief file when it is determined that it is necessary to suppress the execution of the transaction.
A transaction restoring means restores and executes a transaction from a relief file when a fault in a database used in a transaction saved by a transaction saving means is recovered.

〔実施例〕〔Example〕

次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.

第1図は、本発明の一実施例に係るトランザクションリ
カバリ方式の構成を示すブロック図である0本実施例の
トランザクションリカバリ方式は、トランザクシ5ン処
理システム1と、トランザクシリン。コマンド等が投入
される端末2と、トランザクションの実行に伴って参照
、更新等が行われる複数(図示は2つ)のデータベース
3と、トランザクションを保存して救済する救済ファイ
ル4とから、その主要部が構成されている。
FIG. 1 is a block diagram showing the configuration of a transaction recovery system according to an embodiment of the present invention. The transaction recovery system of this embodiment includes a transaction processing system 1 and a transaction recovery system. A terminal 2 into which commands etc. are input, a plurality of databases 3 (two shown) which are referenced and updated as transactions are executed, and a rescue file 4 which saves and rescues transactions. The department is made up of:

トランザクシッン処理システム1内には、トランザクシ
ョン処理管理部5と、データベース管理システム6と、
トランザクションを実行する複数(図示は2つ)のタス
ク#1および#2とが含まれている。
The transaction processing system 1 includes a transaction processing management section 5, a database management system 6,
It includes a plurality of (two shown in the figure) tasks #1 and #2 that execute transactions.

トランザクション処理管理部5は、トランザクションと
トランザクションが使用(アクセス)するデータベース
との関係およびデータベース毎の障害情報をトランザク
ション管理テーブル7(第5図参照)を用いて管理する
トランザクション管理手段11と、データベース3に障
害が発生した場合にトランザクション管理手段11によ
って更新されたトランザクション管理テーブル7を参照
してトランザクションの実行を抑制する必要があると判
断されたときにトランザクションを救済ファイル4に退
避させるトランザクション退避手段12と、トランザク
ション退避手段12によって退避されたトランザクショ
ンで使用するデータベース3の障害が復旧したときに救
済ファイル4からトランザクションを復元して実行させ
るトランザクション復元手段13とを含んで構成されて
いる。
The transaction processing management unit 5 includes a transaction management means 11 that manages the relationship between a transaction and a database used (accessed) by the transaction and failure information for each database using a transaction management table 7 (see FIG. 5), and a database 3. transaction saving means 12 which refers to the transaction management table 7 updated by the transaction management means 11 and saves the transaction to the relief file 4 when it is determined that execution of the transaction needs to be suppressed when a failure occurs; and a transaction restoring means 13 for restoring the transaction from the relief file 4 and executing it when the fault in the database 3 used in the transaction saved by the transaction saving means 12 is recovered.

第2図を参照すると、トランザクション管理手段11に
おける処理は、データベース障害/復旧判定ステップ2
1と、障害情報セットステップ22と、トランザクショ
ン復旧要求ステップ23と、障害情報クリアステップ2
4とからなる。
Referring to FIG. 2, the processing in the transaction management means 11 includes database failure/recovery determination step 2.
1, failure information setting step 22, transaction recovery request step 23, failure information clearing step 2
It consists of 4.

第3図を参照すると、トランザクション退避手段12に
おける処理は、データベース障害発生判定ステップ31
と、トランザクション障害発生データベース使用判定ス
テップ32と、トランザクション退避処理ステ、ツブ3
3と、通常トランザクション処理ステップ34とからな
る。
Referring to FIG. 3, the processing in the transaction saving means 12 includes the database failure occurrence determination step 31.
, transaction failure occurrence database use determination step 32 , transaction save processing step 3
3 and a normal transaction processing step 34.

第4図を参照すると、トランザクション復元手段13に
おける処理は、トランザクション退避有無判定ステップ
41と、トランザクション復元処理ステップ42とから
なる。
Referring to FIG. 4, the processing in the transaction restoring means 13 consists of a step 41 of determining whether or not to save a transaction, and a step 42 of transaction restoring processing.

第5図を参照すると、トランザクション処理管理部5内
に設けられているトランザクション管理テーブル7は、
トランザクション処理システムlのシステム生成で静的
に作成され、複数のトランザクションの種別(■〜■)
毎にデータベース3(■および■)の使用または不使用
を示す情報が格納されている。また、トランザクション
管理テーブル7には、データベース3毎の障害情報が格
納される。
Referring to FIG. 5, the transaction management table 7 provided in the transaction processing management section 5 is as follows:
It is created statically by the system generation of the transaction processing system l, and has multiple transaction types (■~■).
Information indicating whether the database 3 (■ and ■) is used or not is stored for each. Furthermore, the transaction management table 7 stores failure information for each database 3.

次に、このように構成された本実施例のトランザクショ
ンリカバリ方式の動作について説明する。
Next, the operation of the transaction recovery system of this embodiment configured as described above will be explained.

トランザクション管理手段11は、タスク#1および#
2上で動作するトランザクション対応のプログラムから
データベース3に対してアクセス要求が出されデータベ
ース管理システム6がデータベース3の障害を検出した
場合と、データベース3の障害が復旧されて端末2から
コマンドによる復旧通知(以下、このコマンドをトラン
ザクション救済コマンドという)を受けた場合に制御が
渡される。
Transaction management means 11 handles tasks #1 and #
When an access request is issued to the database 3 from a transaction-compatible program running on the Terminal 2, and the database management system 6 detects a failure in the database 3, and when the failure in the database 3 is recovered, a recovery notification is sent from the terminal 2 using a command. (Hereinafter, this command will be referred to as a transaction rescue command), control is transferred.

制御を渡されたトランザクション管理手段11は、デー
タベース3に障害が発生したのかデータベース3の障害
が復旧されてトランプクシ3ン救済コマンドが投入され
たのかを判定しくステップ21)、データベース3に障
害が発生した場合には、トランザクション管理テーブル
7の対応するデータベース3の欄に障害情報をセントす
る(ステップ22)、一方、データベース3の障害が復
旧されてトランザクション救済コマンドが投入された場
合には、トランザクション管理手段11は、トランザク
ション復元手段13にトランザクション復元要求を行い
(ステップ23)、)ランザクジョン管理テーブル7の
対応するデータベース3の欄の障害情報をクリアする(
ステップ24〉。
The transaction management means 11, which has been given control, determines whether a fault has occurred in the database 3 or whether the fault in the database 3 has been recovered and a Trump 3 recovery command has been input (step 21). If the error occurs, the error information is entered in the corresponding database 3 column of the transaction management table 7 (step 22). On the other hand, if the error in the database 3 is recovered and a transaction rescue command is input, the transaction The management means 11 issues a transaction restoration request to the transaction restoration means 13 (step 23), and clears the failure information in the corresponding database 3 column of the transaction management table 7 (
Step 24>.

トランザクション退避手段12は、トランザクションが
投入された場合には、トランザクション管理テーブル7
を参照して、データベース3に障害が発生しているか否
か(障害情報がセットされているか否か)を判定しくス
テップ31)、データベース3に障害が発生していれば
、トランザクションは障害が発生したデータベース3を
使用するかどうかを判定しくステップ32)、データベ
ース3を使用する場合にはトランザクションを実行させ
ずに救済ファイル4に退避させる(ステップ33)、一
方、データベース3に障害が発生していないか、障害が
発生していてもトランザクションが障害が発生したデー
タベース3を使用しなければ、トランザクションを対応
するプログラムが動作するタスク#1または#2上でそ
のまま実行させる(ステップ34)。
The transaction saving means 12 saves the transaction management table 7 when a transaction is input.
Step 31) to determine whether a failure has occurred in database 3 (whether or not failure information has been set) by referring to If database 3 is used, the transaction is saved to relief file 4 without being executed (step 33). On the other hand, if database 3 has failed, If there is no failure, or if the transaction does not use the database 3 where the failure has occurred, the transaction is executed as is on task #1 or #2 where the corresponding program is running (step 34).

データベース3の障害が復旧したときに、救済ファイル
4からトランザクションを復元して実行させるために、
操作員が端末2からトランザクション救済コマンドを投
入すると、既述したようにトランザクション管理手段1
1でトランザクション復元要求が発生する。このトラン
ザクション復元要求を受けて、トランザクション復元手
段13は、トランザクションが救済ファイル4に退避さ
れているか否かをチェフクしくステップ41)、救済フ
ァイル4にトランザクションが退避されていれば、退避
されているトランザクションを救済ファイル4からトラ
ンザクション処理システムlに復元してトランザクショ
ンを対応するプログラムが動作するタスク#1または#
2上で実行させる(ステップ42)。
In order to restore and execute transactions from the relief file 4 when the failure of the database 3 is recovered,
When the operator inputs a transaction rescue command from the terminal 2, the transaction management means 1
1, a transaction restoration request occurs. In response to this transaction restoration request, the transaction restoration means 13 checks whether the transaction has been saved in the relief file 4 (step 41), and if the transaction has been saved in the relief file 4, the is restored from the rescue file 4 to the transaction processing system l and the transaction is executed by task #1 or # where the corresponding program runs.
2 (step 42).

以上の処理を行うことにより、データベース3に障害が
発生した場合に、そのデータベース3にアクセスするト
ランザクションを救済ファイル4に自動的に救済し、デ
ータベース3の障害が復旧した時点で救済されたトラン
ザクションを救済ファイル4からトランザクシラン処理
システム1に復元させて実行させることができる。
By performing the above processing, when a failure occurs in the database 3, transactions that access the database 3 are automatically saved in the relief file 4, and when the failure in the database 3 is recovered, the saved transactions are saved. The transaction processing system 1 can be restored from the rescue file 4 and executed.

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

以上説明したように本発明は、トランザクション処理シ
ステムにトランザクシラン管理手段、トランザクション
退避手段およびトランプクシ3ン復元手段を設けたこと
により、トランザクションの救済処理をプログラム自身
で行うことなしに、データベースに障害が発生した場合
にトランザクションを自動的に救済することができ、デ
ータベースの障害の復旧後にトランザクションを復元し
て実行させることができるという効果がある。
As explained above, the present invention provides a transaction processing system with a transaction management means, a transaction save means, and a transaction restore means, so that the database can be recovered from failures without having to perform transaction relief processing by the program itself. This has the advantage that the transaction can be automatically rescued when a database failure occurs, and the transaction can be restored and executed after the database failure has been recovered.

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

第1図は本発明の一実施例に係るトランザクシランリカ
バリ方式の構成を示すブロック図、第2図は第1図中の
トランザクシラン管理手段の処理を示す流れ図、 第3図は第1図中のトランザクション退避手段の処理を
示す流れ図、 第4図は第1図中のトランザクション退避手段の処理を
示す流れ図、 第5図は第1図中のトランザクション処理管理部が用い
るトランザクション管理テーブルの一例を示す図である
。 図において、 l・・・トランザクション処理システム、2・・・端末
、 3・・・データベース、 4・・・救済ファイル、 5・・・トランザクション処理管理部、6・・・データ
ベース管理システム、 7・・・トランザクション管理テーブル、11・・トラ
ンザクシラン管理手段、 12・・トランプクシクン1JAj1!手段、13・・
トラアザクシ5ン復元手段、 #1.#2・タスクである。 第2図 トラノサクンヨン管理手段11 第3図 トラノザクンヨン退避手段12
FIG. 1 is a block diagram showing the configuration of a transaction recovery system according to an embodiment of the present invention, FIG. 2 is a flow chart showing the processing of the transaction run management means in FIG. 1, and FIG. FIG. 4 is a flowchart showing the processing of the transaction saving means in FIG. 1; FIG. 5 is an example of a transaction management table used by the transaction processing management section in FIG. 1. It is a diagram. In the figure, l...Transaction processing system, 2...Terminal, 3...Database, 4...Relief file, 5...Transaction processing management section, 6...Database management system, 7... -Transaction management table, 11...Transaction management means, 12...Trump Kushikun 1JAj1! Means, 13...
Tiger azalea 5 restoration means, #1. #2 - Task. Figure 2: Management means 11 Figure 3: Evacuation means 12

Claims (1)

【特許請求の範囲】 オンライントランザクション処理システムにおいて、 トランザクションとトランザクションが使用するデータ
ベースとの関係およびデータベース毎の障害情報をトラ
ンザクション管理テーブルを用いて管理するトランザク
ション管理手段と、 データベースに障害が発生した場合に前記トランザクシ
ョン管理手段によって更新された前記トランザクション
管理テーブルを参照してトランザクションの実行を抑制
する必要があると判断されたときにトランザクションを
救済ファイルに退避させるトランザクション退避手段と
、 このトランザクション退避手段によって退避されたトラ
ンザクションで使用するデータベースの障害が復旧した
ときに前記救済ファイルからトランザクションを復元し
て実行させるトランザクション復元手段と を有することを特徴とするトランザクションリカバリ方
式。
[Claims] In an online transaction processing system, there is provided a transaction management means for managing the relationship between a transaction and a database used by the transaction and failure information for each database using a transaction management table; transaction saving means for saving a transaction to a relief file when it is determined that execution of a transaction needs to be suppressed by referring to the transaction management table updated by the transaction management means; 1. A transaction recovery method comprising: transaction recovery means for restoring and executing a transaction from the relief file when a failure in a database used in a transaction is recovered.
JP1221015A 1989-08-28 1989-08-28 Transaction recovery system Pending JPH0383148A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1221015A JPH0383148A (en) 1989-08-28 1989-08-28 Transaction recovery system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1221015A JPH0383148A (en) 1989-08-28 1989-08-28 Transaction recovery system

Publications (1)

Publication Number Publication Date
JPH0383148A true JPH0383148A (en) 1991-04-09

Family

ID=16760144

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1221015A Pending JPH0383148A (en) 1989-08-28 1989-08-28 Transaction recovery system

Country Status (1)

Country Link
JP (1) JPH0383148A (en)

Similar Documents

Publication Publication Date Title
US6092085A (en) Method and system for improved database disaster recovery
US7895474B2 (en) Recovery and restart of a batch application
US5748882A (en) Apparatus and method for fault-tolerant computing
US7992148B2 (en) Issuing syncpoints during execution of a batch application to minimize or eliminate periods of record unavailability due to batch related record locking
JPH04139544A (en) Data restoring method
JPS6375963A (en) System recovery system
US5576945A (en) Transaction monitor process with pre-arranged modules for a multiprocessor system
JP3447347B2 (en) Failure detection method
JPH0383148A (en) Transaction recovery system
JP2004046658A (en) Data transfer method
JPH05314075A (en) On-line computer system
JP2003006018A (en) System, method for restoring processing request, client device and server device
JPS6386035A (en) Stack pool managing system
JPH1040123A (en) System and method for job management
JPS6385939A (en) Information processing system
JPH08278911A (en) Multiple-system processing system
JPS6089254A (en) Software logic troubleshooting system
JPH03278238A (en) Mutual hot stand-by system
JPH02128247A (en) Back-up system for discrete data base system
JPH0668034A (en) Online system monitor system
JPH07160637A (en) Operation command issuing method for on-line system
JPH06214848A (en) Data base managing system
JPH04105159A (en) Work substitute system
JPH05189392A (en) Multiplex computer system and program replacing method for multiplex computer system
JPH0784846A (en) Guarantee system for consistency of multiple database access business processing