JPH07104809B2 - Memory data recovery data acquisition method - Google Patents

Memory data recovery data acquisition method

Info

Publication number
JPH07104809B2
JPH07104809B2 JP63216360A JP21636088A JPH07104809B2 JP H07104809 B2 JPH07104809 B2 JP H07104809B2 JP 63216360 A JP63216360 A JP 63216360A JP 21636088 A JP21636088 A JP 21636088A JP H07104809 B2 JPH07104809 B2 JP H07104809B2
Authority
JP
Japan
Prior art keywords
recovery
information
seat
serial number
data
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 - Fee Related
Application number
JP63216360A
Other languages
Japanese (ja)
Other versions
JPH0266649A (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
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 JP63216360A priority Critical patent/JPH07104809B2/en
Publication of JPH0266649A publication Critical patent/JPH0266649A/en
Publication of JPH07104809B2 publication Critical patent/JPH07104809B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は,電子計算機システムのトランザクション処理
システムにおけるメモリ情報ファイルの復旧方式に関
し,特に復旧のための更新情報の取得方式に関する。
The present invention relates to a recovery method of a memory information file in a transaction processing system of an electronic computer system, and more particularly to a method of acquiring update information for recovery.

〔従来の技術〕[Conventional technology]

従来,トランザクション処理システムにおけるメモリ情
報の復旧に使用される復旧情報の取得方式は,予め決め
られたチェックポイントに従ってメモリ情報ファイル全
体を外部記憶部上の復旧情報ファイルに一括して取得す
る方式である。
Conventionally, the recovery information acquisition method used to recover memory information in a transaction processing system is a method in which the entire memory information file is collectively acquired in the recovery information file on the external storage unit according to a predetermined checkpoint. .

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

上述した従来の復旧データ取得方式は,予め決められた
チェックポイントに従ってメモリ情報ファイルの全体を
一括して外部記憶部上に1つの復旧情報ファイルに取得
するので,チェックポイント発生時に復旧情報ファイル
に復旧データを取得する処理時間がかかり,トランザク
ション処理の応答時間がチェックポイントの毎に長くな
るという欠点がある。
In the above-mentioned conventional recovery data acquisition method, the entire memory information file is collectively acquired in a single recovery information file on the external storage unit according to a predetermined checkpoint, so recovery to the recovery information file is performed when a checkpoint occurs. It has the drawback that it takes a long processing time to acquire data, and the response time of transaction processing becomes long at each checkpoint.

本発明の課題は,応答時間の短縮化とトランザクション
による応答時間のばらつきを少なくするメモリ情報の復
旧データ取得方式を提供することにある。
An object of the present invention is to provide a recovery data acquisition method of memory information that shortens response time and reduces variations in response time due to transactions.

〔課題は解決するための手段〕[Means for solving problems]

本発明は,トランザクション処理システムのメモリ情報
の復旧データ取得方式において,トランザクションにも
とづいて参照もしくは更新されるデータを含むメモリ情
報ファイルと,復旧のための復旧情報を格納する複数の
復旧情報ファイルと,トランザクションにもとづきメモ
リ情報ファイルの参照もしくは更新及び復旧情報を生成
し,復旧情報ファイルの1つを選択して登録する手段を
有するトランザクション処理部と,復旧情報に含まれる
通番を管理するための通番管理テーブルとを有してい
る。復旧情報は,復旧情報ファイル内の復旧情報を一意
に識別するための通番と,メモリ情報ファイル上の更新
されたデータ項目に対する変更情報と,データ項目を一
意に識別するためのデータ識別名とを有している。
The present invention relates to a memory data recovery data acquisition method for a transaction processing system, a memory information file including data that is referred to or updated based on a transaction, and a plurality of recovery information files that store recovery information for recovery. A transaction processing unit having means for referring or updating a memory information file based on a transaction and generating recovery information, selecting and registering one of the recovery information files, and serial number management for managing the serial number included in the recovery information And a table. The recovery information includes a serial number for uniquely identifying the recovery information in the recovery information file, change information for the updated data item in the memory information file, and a data identification name for uniquely identifying the data item. Have

〔実施例〕〔Example〕

次に,本発明の実施例について図面を参照して説明す
る。
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は,本発明の一実施例を示すブロック図であり,
オンラインシステムにおける列車の座席予約システムの
場合を示す。本実施例は,座席取り処理部が4つの場合
の実施例である。
FIG. 1 is a block diagram showing an embodiment of the present invention,
The case of a train seat reservation system in an online system is shown. This embodiment is an embodiment in which there are four seating processing units.

第1図において,1は座席要求情報(トランザクショ
ン),2はトランザクション処理部,3は主記憶部,4は外部
記憶部(復旧情報ファイル)である。座席要求情報1
は,列車識別名と座席数情報とから構成される。トラン
ザクション処理部2は,第1〜第4の座席取り処理部5
〜8から構成される。主記憶部3は,通番管理テーブル
9とメモリ情報ファイルとしての座席管理テーブル10と
から構成される。通番管理テーブル9は,列車識別名毎
に最新通番を有し,座席管理テーブル10は,列車識別名
毎に一列車分の座席ビットパターンを有している。トラ
ンザクション処理部2は,通番管理テーブル9と座席管
理テーブル10から入出力を行う。外部記憶部4は第1〜
第4の座席ファイル11〜14で構成される。トランザクシ
ョン処理部2は外部記憶部4とも入出力を行う。
In FIG. 1, 1 is seat request information (transaction), 2 is a transaction processing unit, 3 is a main storage unit, and 4 is an external storage unit (restoration information file). Seat request information 1
Is composed of a train identification name and seat number information. The transaction processing unit 2 includes the first to fourth seating processing units 5
-8. The main storage unit 3 includes a serial number management table 9 and a seat management table 10 as a memory information file. The serial number management table 9 has the latest serial number for each train identification name, and the seat management table 10 has a seat bit pattern for one train for each train identification name. The transaction processing unit 2 inputs and outputs from the serial number management table 9 and the seat management table 10. External storage unit 4 is
It is composed of the fourth seat files 11-14. The transaction processing unit 2 also inputs and outputs to and from the external storage unit 4.

第2図は,復旧情報のイメージ図である。復旧情報15
は,外部記憶部4上に復旧情報ファイルとして設定さ
れ,第1〜第4の座席ファイル11〜14に格納される。復
旧情報15は,列車識別名(データ識別名)16と,通番17
と,一列車分の座席ビットパターン18とで構成されてい
る。通番17は,列車識別名16毎に確保され,各通番は1
つずつ加算される。トランザクション処理部2は一定の
規則により,列車識別名毎に通番管理テーブル9内の通
番に1を加算することと,各座標要求情報に対する復旧
情報の通番を付与する。
FIG. 2 is an image diagram of restoration information. Recovery information 15
Is set as a recovery information file on the external storage unit 4 and stored in the first to fourth seat files 11 to 14. The restoration information 15 includes a train identification name (data identification name) 16 and a serial number 17
And a seat bit pattern 18 for one train. The serial number 17 is secured for each train identification name 16, and each serial number is 1
Are added one by one. The transaction processing unit 2 adds 1 to the serial number in the serial number management table 9 for each train identification name, and adds a serial number of recovery information to each coordinate request information according to a certain rule.

次に,座席要求情報1は一定の規則により第1〜第4の
座席取り処理部5〜8に振り分けられ,各座標取り処理
部は,同時並行的にそれぞれの座標要求情報にもとづき
処理を開始する。
Next, the seat request information 1 is distributed to the first to fourth seat removal processing units 5 to 8 according to a certain rule, and each coordinate acquisition processing unit simultaneously starts processing based on each coordinate request information. To do.

座席取り処理部は,第一に座席要求情報1の列車識別名
をキーにして,座席管理テーブル10の中から一列車分の
座席ビットパターンを参照し,この一列車分の座席ビッ
トパターンについては,他の座席取り処理部からの参照
・更新を一時的に不可とする。そして,座席要求情報1
の座席数情報が,座席管理テーブル10から参照した列車
の座席数以下である一定の条件を満たしたならば,座席
を取り,座席管理テーブル10の該当した一列車の座席ピ
ットパターンを更新し,かつ座席取り処理部内に更新後
の一列車の座席ビットパターンを保存し,該当の一列車
の座席ビットパターンについては他の座席取り処理部か
らの参照,更新を可能とする。
First, the seating processing unit refers to the seat bit pattern for one train from the seat management table 10 using the train identification name of the seat request information 1 as a key, and regarding the seat bit pattern for this one train, , Temporarily refraining from referencing / updating from other seating processor. And seat request information 1
If the number of seats information of the seat satisfies a certain condition that is equal to or less than the number of seats of the train referenced from the seat management table 10, the seat is taken, the seat pit pattern of the corresponding one train of the seat management table 10 is updated, In addition, the seat bit pattern of the updated one train is stored in the seat take processing unit, and the seat bit pattern of the corresponding one train can be referred to and updated by another seat take processing unit.

第二に,座席要求情報1の列車識別名をキーにして通番
管理テーブル9の中から通番を参照し,この通番につい
ては他の座席取り処理部からの参照・更新を一時的に不
可とする。そして,参照した列車識別名の通番に1を加
算し,通番管理テーブル9の該当通番を更新し,かつ座
席取り処理部内に加算後の通番を保存し,通番管理テー
ブル9の該当通番については,他の座席取り処理部から
の参照・更新を可能にする。
Secondly, the train identification name of the seat request information 1 is used as a key to refer to the serial number in the serial number management table 9, and it is temporarily impossible to refer to or update this seat number from other seating processing units. . Then, 1 is added to the serial number of the referenced train identification name, the corresponding serial number in the serial number management table 9 is updated, and the serial number after addition is saved in the seat picking processing unit. For the corresponding serial number in the serial number management table 9, Allows reference / update from other seating processing units.

第三に,復旧情報を更新すべき座席ファイルの割り当て
方式は,通番管理テーブル9から保存した通番を座席フ
ァイル数の4で割ったときの剰余が1のとき,第1の座
席ファイル11を割り合て,余剰が2のとき,第2の座席
ファイル12,剰余が3のとき,第3の座席ファイル13,剰
余が0のとき第4の座席ファイル14をそれぞれ割り合て
るようにする。更新する座席ファイルが割り合てられた
ら,座席要求情報1の列車識別名と,通番管理テーブル
9,座席管理テーブル10から保存した通番と,一列車分の
座席のビットパターンから復旧情報15を作り,割り合て
られた座席ファイルを更新する。
Thirdly, the seat file allocation method for updating the restoration information is such that when the remainder when dividing the serial number stored from the serial number management table 9 by 4 of the number of seat files is 1, the first seat file 11 is divided. Accordingly, when the surplus is 2, the second seat file 12, the surplus is 3, the third seat file 13, and when the surplus is 0, the fourth seat file 14 is allocated. If the seat file to be updated is allocated, the train identification name of seat request information 1 and the serial number management table
9. Restore information 15 is created from the serial number saved from the seat management table 10 and the bit pattern of seats for one train, and the assigned seat file is updated.

本方式において,座席管理テーブル10に障害が発生した
場合の復旧方法について説明する。まず,一列車に着目
すると,一列車に対しては座席ファイルが四つあるた
め,一列車につき,一列車分の復旧情報は四つ存在す
る。その中の最新通番(通番は1つの要求につき1ずつ
増加するため,通番の最大値が最大通番である)の座席
ビットパターンのみを座席管理テーブル10へ移すことに
より,一列車に対しては復旧が可能となる。同様に,全
ての列車識別名毎に,最新通番の復旧情報中の一列車分
の座席ビットパターンを座席管理テーブル10へ移すこと
により,座席管理テーブル10の復旧が可能となる。
In this method, a recovery method when a failure occurs in the seat management table 10 will be described. First, focusing on one train, since there are four seat files for one train, there are four pieces of restoration information for one train for each train. Restoring for one train by moving only the seat bit pattern of the latest serial number (the serial number increases by 1 for each request, so the maximum serial number is the maximum serial number) to the seat management table 10. Is possible. Similarly, the seat management table 10 can be restored by moving the seat bit pattern for one train in the recovery information of the latest serial number to the seat management table 10 for every train identification name.

また,座席管理テーブル10に障害が発生し,更に座席フ
ァイルの1つに障害が発生しても,本方式の場合は複数
の座席ファイルを持っているため,障害を起こしていな
い座席ファアルから,列車識別名毎に復旧情報の最大通
番の座席ビットパターンを使い,各列車毎に最新通番ま
たは最新通番の1つ前の座席ビットパターンに復旧でき
る。
In addition, even if a failure occurs in the seat management table 10 and one of the seat files also fails, in the case of this method, since there are multiple seat files, from the seat fal which does not cause the failure, By using the seat bit pattern with the largest serial number in the recovery information for each train identifier, it is possible to recover to the latest serial number or the seat bit pattern that is one seat before the latest serial number for each train.

以上,一実施例について説明したが,本発明は上述の座
席予約システムに限定されるものでないことは明らかで
ある。
Although one embodiment has been described above, it is obvious that the present invention is not limited to the seat reservation system described above.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明は,トランザクションにもと
づいて参照・更新されるデータを含むメモリ情報ファイ
ルと,復旧のための復旧情報を格納する複数の復旧情報
ファイルと,トランザクションにもとづきメモリ情報フ
ァイルの参照もしくは更新及び復旧情報を生成し,復旧
情報ファイルの1つを選択して登録する手順を有するト
ランザクション処理部と,復旧情報に含まれる復旧情報
を一意に識別するための通番を管理する通番管理テーブ
ルとを有し,メモリ情報ファイル上の更新されたデータ
項目に対する更新情報とデータ項目を一意に識別するた
めのデータ識別名を有することにより,メモリ情報ファ
イルに障害発生時の応答時間の短縮化と,ばらつきを少
なくできる。また,メモリ情報ファイルと復旧情報ファ
イルの1つに障害が発生しても,障害が発生した以外の
復旧情報ファイル,各列車毎に最新通番の情報もしくは
最新通番の一つ前の情報までは復旧できる効果がある。
As described above, the present invention refers to a memory information file containing data to be referred / updated based on a transaction, a plurality of recovery information files storing recovery information for recovery, and a reference to the memory information file based on a transaction. Alternatively, a transaction processing unit having a procedure for generating update and recovery information, selecting and registering one of the recovery information files, and a serial number management table for managing serial numbers for uniquely identifying the recovery information included in the recovery information By having the update information for the updated data item on the memory information file and the data identification name for uniquely identifying the data item, it is possible to shorten the response time when a failure occurs in the memory information file. , The variation can be reduced. In addition, even if a failure occurs in one of the memory information file and the recovery information file, the recovery information file other than the failure, the latest serial number information for each train, or the information immediately before the latest serial number is restored. There is an effect that can be done.

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

第1図は本発明のブロック図,第2図は第1図の座席フ
ァイルの変更情報のイメージ図である。 2:トランザクション処理部,3:主記録部,4:外部記憶部,5
〜8:座席取り処理部,9:通番管理テーブル,10:座席管理
テーブル,11〜14:座席ファイル。
FIG. 1 is a block diagram of the present invention, and FIG. 2 is an image diagram of change information of the seat file of FIG. 2: Transaction processing part, 3: Main recording part, 4: External storage part, 5
~ 8: Seating processing section, 9: Serial number management table, 10: Seat management table, 11 ~ 14: Seat file.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】トランザクション処理システムにおけるメ
モリ情報の復旧データ取得方式において、トランザクシ
ョンにもとづいて参照もしくは更新されるデータを含む
メモリ情報ファイルと、復旧のための復旧情報を格納す
る複数の復旧情報ファイルと、トランザクションにもと
づき前記メモリ情報ファイルの参照もしくは更新及び復
旧情報を生成し、前記復旧情報ファイルの1つを選択し
て登録する手段を有するトランザクション処理部と、前
記復旧情報に含まれる通番を管理するための通番管理テ
ーブルとを含み、前記復旧情報は、前記復旧情報ファイ
ル内の復旧情報を一意に識別するための通番と、前記メ
モリ情報ファイル上の更新されたデータ項目に対する変
更情報と、前記データ項目を一意に識別するためのデー
タ識別名とを含み、データ復旧に際しては最新通番のも
のだけを取得するようにしたことを特徴とするメモリ情
報の復旧データ取得方式。
1. A recovery data acquisition method for memory information in a transaction processing system, comprising: a memory information file containing data to be referred to or updated based on a transaction; and a plurality of recovery information files storing recovery information for recovery. Managing a serial number included in the recovery information, and a transaction processing unit having means for generating reference or update and recovery information of the memory information file based on a transaction and selecting and registering one of the recovery information files. A serial number management table for the recovery information, the recovery information includes a serial number for uniquely identifying the recovery information in the recovery information file, change information for an updated data item on the memory information file, and the data. Contains the data identifier to uniquely identify the item Memory information recovery data acquisition method is characterized in that so as to retrieve only the latest serial number. Before data recovery.
JP63216360A 1988-09-01 1988-09-01 Memory data recovery data acquisition method Expired - Fee Related JPH07104809B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63216360A JPH07104809B2 (en) 1988-09-01 1988-09-01 Memory data recovery data acquisition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63216360A JPH07104809B2 (en) 1988-09-01 1988-09-01 Memory data recovery data acquisition method

Publications (2)

Publication Number Publication Date
JPH0266649A JPH0266649A (en) 1990-03-06
JPH07104809B2 true JPH07104809B2 (en) 1995-11-13

Family

ID=16687345

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63216360A Expired - Fee Related JPH07104809B2 (en) 1988-09-01 1988-09-01 Memory data recovery data acquisition method

Country Status (1)

Country Link
JP (1) JPH07104809B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5842895B2 (en) * 1977-08-17 1983-09-22 富士通株式会社 History information high-speed processing method
JPS5921057B2 (en) * 1977-08-17 1984-05-17 富士通株式会社 Intersystem shared file recovery control method
JPS59225467A (en) * 1983-06-06 1984-12-18 Nec Corp File management device

Also Published As

Publication number Publication date
JPH0266649A (en) 1990-03-06

Similar Documents

Publication Publication Date Title
US6298425B1 (en) Computer disk management system using doublet A-B logging
US5535381A (en) Apparatus and method for copying and restoring disk files
US6732123B1 (en) Database recovery to any point in time in an online environment utilizing disaster recovery technology
EP0465019B1 (en) Method and apparatus for managing state identifiers for efficient recovery
US5559991A (en) Incremental computer file backup using check words
EP0465018A2 (en) Methods and apparatus for optimizing undo log usage
US5740434A (en) System for maintenance of database integrity
JPH1097451A (en) Method and device for optimizing log file of client/server computer system
JPS62297950A (en) Journaling of data system
JPH0423144A (en) Journal system
US6526417B1 (en) System and method for change accumulation unmerged update reduction
CN111638995A (en) Metadata backup method, device and equipment and storage medium
US7269589B2 (en) Database managing method and system having data backup function and associated programs
CN108984343B (en) Virtual machine backup and storage management method based on content analysis
EP0351109A2 (en) Reducing resources in a high reliability data storage subsystem
JPH07104809B2 (en) Memory data recovery data acquisition method
JPH0816881B2 (en) Database update method
JP2001229063A (en) Data managing system
JP2006040065A (en) Device and method for storing data
JP3290182B2 (en) Data set backup method and apparatus in shared environment
JP2704028B2 (en) File area management method
JPH0277950A (en) Data base processing system
JPH01140353A (en) System for maintaining data in data base
JPH0738203B2 (en) Seat reservation system
JPH07200378A (en) Library file management equipment

Legal Events

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