JPS6138498B2 - - Google Patents

Info

Publication number
JPS6138498B2
JPS6138498B2 JP56098556A JP9855681A JPS6138498B2 JP S6138498 B2 JPS6138498 B2 JP S6138498B2 JP 56098556 A JP56098556 A JP 56098556A JP 9855681 A JP9855681 A JP 9855681A JP S6138498 B2 JPS6138498 B2 JP S6138498B2
Authority
JP
Japan
Prior art keywords
data
management number
logging
saved
recovery
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
Application number
JP56098556A
Other languages
Japanese (ja)
Other versions
JPS57212553A (en
Inventor
Tatsuaki Yamagishi
Hiroshi Tanaka
Akira Oomya
Susumu Masumoto
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP56098556A priority Critical patent/JPS57212553A/en
Publication of JPS57212553A publication Critical patent/JPS57212553A/en
Publication of JPS6138498B2 publication Critical patent/JPS6138498B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Retry When Errors Occur (AREA)

Description

【発明の詳細な説明】 本発明は主記憶上の集計テーブル等のリカバリ
処理制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a recovery processing control method for a summary table, etc. on main memory.

一般に、例えばPOSシステム等においては、
POS端末の売上げデータを、端末制御装置等で、
POS端末毎に集計を行うことが行われている。
Generally, for example, in POS systems, etc.
The sales data of the POS terminal is transferred to the terminal control device, etc.
Aggregation is performed for each POS terminal.

またこうしたシステムでは集計テーブルを備
え、障害発生時にテーブルの内容が消滅しない
様、一定時間間隔毎に、集計テーブルのデータを
退避フアイル等の外部記憶装置に退避することが
行われている。
Furthermore, such systems are equipped with a tally table, and the data in the tally table is saved to an external storage device such as a save file at regular time intervals so that the contents of the table will not be lost in the event of a failure.

しかしながら、百貨店、デパート等においては
POS端末数が多く、退避処理に長時間を必要とす
るばかりでなく、退避中にあるデータのリカバリ
ができない欠点を有している。
However, in department stores, etc.
There are many POS terminals, and not only does it take a long time to save the data, but it also has the drawback that data that is being saved cannot be recovered.

本発明の目的は、上記従来の欠点を取除くべ
く、退避途中のデータについてのリカバリが可能
な、しかも退避処理中に、集中処理等の処理も可
能なリカバリ処理制御方式を提供するにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a recovery processing control system that is capable of recovering data that is in the middle of being saved and that also allows processing such as intensive processing to be performed during the saving process, in order to eliminate the above-mentioned conventional drawbacks.

上記目的を達成するために本発明では、データ
を退避した際該当データの格納されていた領域に
更新された管理番号を記憶してゆくようにし、且
つ、入力データには集計処理後、集計処理対象の
データに付加されている管理番号を付加して、ロ
ギングしてゆくようにし、障害復旧時にはこのロ
ギングデータの管理番号が、主記憶に退避フアイ
ルより展開された管理番号と異る場合にロギング
データを用いて集計処理等更新処理を行うように
したものである。
In order to achieve the above object, the present invention stores the updated management number in the area where the data was stored when the data is saved, and the input data is processed after the aggregation process. Add a management number to the target data and log it, and at the time of failure recovery, if the management number of this logging data is different from the management number extracted from the backup file in main memory, logging will be performed. The data is used to perform update processing such as aggregation processing.

以下実施例により説明する。 This will be explained below using examples.

図面は本発明の一実施例のブロツク図である。 The drawing is a block diagram of one embodiment of the invention.

図中、REGは入力レジスタであつて例えば、
POS端末から転送されて来たPOS端末アドレスデ
ータ、集計されるべき入力データを格納するも
の、CRは集計部であつて、集計テーブルTBL
を、POS端末アドレスデータによつてアドレツシ
ングしてリードアクセスし、読出された既集計デ
ータに対し、入力データを累計加算し、更に、当
一アドレスに当該加算されたデータを格納するも
の、テーブルTBLは、集計データをPOS端末に
対応したアドレスに格納するとともに、各アドレ
スには管理番号が格納されるもの、LCはロギン
グ制御部であり、レジスタREGの格納データ
と、テーブルTBLの領域aに格納される、レジ
スタREGに格納されるPOS端末のデータと対応
する集計データの管理番号とをロギングフアイル
F2に、集計終了毎に格納するもの、TIMはタ
イマであり、所定時間毎にパルスを発生するも
の、CTはカウンタであり、当該パルスを計数
し、管理番号を発生するもの、SCは退避制御部
であり、タイマTIMのパルスにより起動され、
集計テーブルTBLの各集計データを読出し、退
避フアイルF1に退避するとともに、退避した集
計データに対応する管理番号を、書込制御部WC
を起動して書込むもの、RCC1はリカバリコン
トローラであり、退避フアイルF1に退避されて
いる管理番号を含む集計データを障害復旧時にテ
ーブルTBLに展開するもの、RCC2はリカバリ
コントローラであり、ロギングフアイルF2のロ
ギングデータの最初のロギングデータを読出すも
の、RCはリードコントローラであり、リカバリ
コントローラRCC2で読出されたロギングデー
タの内、POS端末アドレスデータを抽出し、この
アドレスデータを用いてテーブルTBLから管理
番号を読出すもの、CMは比較部でありテーブル
TBLから読出された管理番号と、ロギングフア
イルF2から読出された管理番号とを比較するも
の、Aはアンドゲートである。
In the figure, REG is an input register, for example,
CR is the aggregation unit that stores the POS terminal address data transferred from the POS terminal and the input data to be aggregated, and the aggregation table TBL
is read accessed by addressing with the POS terminal address data, the input data is cumulatively added to the already read total data, and the added data is stored in the target address, table TBL. stores the aggregated data in the address corresponding to the POS terminal, and a management number is stored in each address.LC is the logging control unit, and stores the data stored in the register REG and in area a of the table TBL. The data of the POS terminal stored in the register REG and the management number of the corresponding tally data are stored in the logging file F2 every time the tally is completed.TIM is a timer that generates a pulse at every predetermined time. CT is a counter that counts the pulses and generates a management number. SC is a save control unit that is activated by the pulse of timer TIM.
Each piece of tally data in the tally table TBL is read out and saved to the save file F1, and the management number corresponding to the saved tally data is written to the write control unit WC.
, RCC1 is a recovery controller that expands the aggregated data including the management number saved in save file F1 to table TBL at the time of failure recovery, RCC2 is a recovery controller and writes to logging file F2. RC is the read controller that reads the first logging data of the recovery controller RCC2, extracts the POS terminal address data from the logging data read by the recovery controller RCC2, and uses this address data to manage from the table TBL. The one that reads the number, CM is the comparison part and table
A is an AND gate that compares the management number read from TBL and the management number read from logging file F2.

動作を説明する。 Explain the operation.

(i) 集計動作 図示されない制御装置から、レジスタREG
に集計データ、POS端末アドレスが格納され
る。
(i) Aggregation operation From the control device (not shown), register REG
The aggregated data and POS terminal address are stored in .

集計制御部CRは、POS端末アドレスに基
き、テーブルTBLをアクセスし、読出された
既集計データに、入力データを累計し、集計デ
ータを再度テーブルTBLに書込む。集計処理
が終了すると、ロギング制御部LCはレジスタ
RECに格納された入力データに対し、集計制
御部CRの前記アクセスにより読出された管理
番号を付加し、ロギングフアイルF2に格納す
る。以下同様にして、入力データがレジスタに
格納される毎にテーブルを更新処理する。
The aggregation control unit CR accesses the table TBL based on the POS terminal address, adds up the input data to the already read out aggregation data, and writes the aggregation data to the table TBL again. When the aggregation process is completed, the logging control unit LC registers
The management number read out by the access from the aggregation control unit CR is added to the input data stored in the REC, and the data is stored in the logging file F2. Thereafter, the table is updated in the same manner every time input data is stored in the register.

(ii) 退避動作 タイマTIMは、所定時間毎に出力を発す
る。これにより退避制御部SCが起動される。
退避制御部SCは、図示されない線路を介し、
テーブルTBLのアクセスの空期間を検出し
て、例えば小さいアドレスを持つテーブル
TBL上のデータから順に、集計データ及び管
理番号を読出し退避フアイルF1に格納する。
退避フアイルに1つのPOS端末のデータを格納
終了する毎に、書込制御部WCを起動し、当該
データの格納されているアドレスに、カウンタ
CTの出力値である管理番号を更新する。
(ii) Saving operation Timer TIM issues an output at predetermined intervals. As a result, the evacuation control unit SC is activated.
The evacuation control unit SC is connected to the
Detect empty period of access of table TBL, for example, table with small address
The total data and management number are read out and stored in the save file F1 in order from the data on the TBL.
Every time data of one POS terminal is stored in the save file, the write control unit WC is activated and a counter is written to the address where the data is stored.
Update the management number that is the output value of CT.

更新終了すると、次の集計データ、管理番号
について退避し、その管理番号を更新する。以
下同様にして全ての集計データ及び管理番号に
ついて退避処理及び更新処理を行う。
When the update is completed, the next total data and management number are saved and the management number is updated. Thereafter, save processing and update processing are performed for all the aggregated data and management numbers in the same manner.

尚、この退避処理及び更新処理がタイマ
TIMの出力の発生周期内に終了するようタイ
マTIMの周期は広く設定される。また以上(ii)
項の退避処理は、テーブルTBL上には例え集
計データを退避してもその集計データはテーブ
ルTBL上に残つているように処理する事を言
う。
Note that this save process and update process are performed using a timer.
The period of timer TIM is set widely so that the timer TIM ends within the generation period of the output of TIM. And more (ii)
The term saving process refers to processing such that even if the aggregated data is saved on the table TBL, the aggregated data remains on the table TBL.

(iii) 障害復旧動作 図示されない障害復旧検知部により、障害復
旧が検出されると、リカバリコントローラ
RCC1が起動される。リカバリコントローラ
RCC1は退避フアイルF1上に前述の如くし
て退避されている各POS端末の既集計データ及
び各管理番号をテーブルTBL上に書込む。
(iii) Failure recovery operation When failure recovery is detected by the failure recovery detection unit (not shown), the recovery controller
RCC1 is activated. recovery controller
The RCC1 writes the aggregated data of each POS terminal saved in the save file F1 as described above and each management number onto the table TBL.

全ての既集計データ及び管理番号がテーブル
TBL上に書込まれて、テーブルTBLが復元す
ると、リカバリコントローラRCC2が起動さ
れる。リカバリコントローラRCC2は、前述
の如くロギングフアイルF2より最後にロギン
グされた入力データ、管理番号、POS端末アド
レスを含むデータを読出す。読出されたデータ
の内、POS端末アドレスデータは読出し制御部
RC及びアンドゲートAに、管理番号は比較部
CMに供給される。また、入力データ(集計さ
れるべきデータ)はアンドゲートAに供給され
る。読出し制御部RCは展開されたテーブル
TBLから該当POS端末のデータに対する管理
番号を読出し比較部CMへ読出された管理番号
を供給する。
All aggregated data and management numbers are in a table
After being written to TBL and restoring table TBL, recovery controller RCC2 is activated. The recovery controller RCC2 reads data including the last logged input data, management number, and POS terminal address from the logging file F2 as described above. Among the read data, POS terminal address data is stored in the read control section.
The management number for RC and AND gate A is the comparison section.
Supplied to CM. Input data (data to be aggregated) is also supplied to AND gate A. Read control unit RC is expanded table
The control number for the data of the corresponding POS terminal is read from the TBL and the read control number is supplied to the comparison unit CM.

比較部CMは、供給されている両管理番号を
比較する。比較の結果、テーブルTBLの管理
番号より、ロギングデータの管理番号の方が大
きい場合は、末だ退避されたデータには入力デ
ータが集計されていない事を示すので、比較部
CMはアンドゲートAを開き、ロギングデータ
の内、POS端末アドレスデータ及び、入力デー
タをレジスタREGにセツトせしめ且つ、集計
処理部CRを起動して該当既集計データに累計
加算する。累計加算が終了すると、リカバリコ
ントローラRCC2は最終ロギングデータより
一つの前にロギングされたロギングデータをロ
ギングフアイルF2より読出し、同様にして検
査する。
The comparison unit CM compares both supplied management numbers. As a result of the comparison, if the management number of the logging data is larger than the management number of the table TBL, this indicates that the input data has not been aggregated in the saved data.
The CM opens AND gate A, sets the POS terminal address data and input data among the logging data in the register REG, and activates the aggregation processing unit CR to cumulatively add them to the corresponding already aggregated data. When the cumulative addition is completed, the recovery controller RCC2 reads out the logging data logged immediately before the last logging data from the logging file F2, and similarly checks it.

また、テーブルTBLから読出された管理番
号が、ロギングデータの管理番号と等しいか又
は、ロギングデータの管理番号の方が小さい場
合比較部CMは、リカバリ終了信号を図示され
ない制御装置に通知する。
Further, if the management number read from the table TBL is equal to the management number of the logging data, or if the management number of the logging data is smaller, the comparison unit CM notifies a control device (not shown) of a recovery end signal.

尚、この時リカバリコントローラRCC2に
読出したロギングデータはリセツトされる。
Note that the logging data read to the recovery controller RCC2 at this time is reset.

またリカバリ時に、ロギングフアイルF2の
最後にロギングされたデータのアドレスを検出
する手法としては、例えば障害時に、ロギング
コントローラLCの示すロギングフアイルF2
のアドレスを、不揮発性記憶手段に退避してお
き、障害復旧時にロギングコントローラLCの
みでなく、リカバリコントローラRCC2に退
避アドレスを通知するという手法が採用でき
る。
Also, at the time of recovery, as a method for detecting the address of the last logged data in logging file F2, for example, in the event of a failure, logging file F2 indicated by logging controller LC is detected.
A method can be adopted in which the address is saved in a non-volatile storage means, and the save address is notified not only to the logging controller LC but also to the recovery controller RCC2 at the time of failure recovery.

以上説明した様に本発明によれば、退避するデ
ータ毎に、管理番号を付加し、且つ、入力データ
に対しては最新の該当処理データの管理番号を付
加しているので、管理番号が相違する部分の補修
で済み、リカバリ処理が迅速にできるばかりでな
く、退避を行う際、テーブルの空時間を見て行う
ので、集計処理等に影響を及ぼすこともないとい
う効果をも奏し得る。
As explained above, according to the present invention, a management number is added to each data to be saved, and the management number of the latest corresponding processed data is added to the input data, so there is no difference in the management number. Not only can the recovery process be performed quickly, but also the table empty time is checked when evacuation is performed, so it has the effect that it does not affect the tabulation process or the like.

尚、上記実施例においては、集計処理及びテー
ブルについてのみ着目して説明したが、集計処
理、更にはテーブルに限られることなく、集計処
理の代わりに更新処理、その他の演算処理であつ
ても良く、テーブルの代わりに、主メモリ上に配
置される種々のデータであれば良い事は明らかで
ある。
In addition, although the above embodiment has been explained focusing only on the aggregation process and the table, it is not limited to the aggregation process or even the table, and instead of the aggregation process, update processing or other arithmetic processing may be used. , it is clear that instead of a table, various types of data placed in main memory may be used.

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

図面は本発明の一実施例のブロツク図である。 図中、CRは集計処理部、TBLはテーブル、CT
はカウンタ、F1は退避フアイル、F2はロギン
グフアイル、CMは比較部、RCC1,RCC2はリ
カバリコントローラである。
The drawing is a block diagram of one embodiment of the invention. In the figure, CR is the aggregation processing unit, TBL is the table, and CT
is a counter, F1 is a save file, F2 is a logging file, CM is a comparison section, and RCC1 and RCC2 are recovery controllers.

Claims (1)

【特許請求の範囲】[Claims] 1 所定の時間毎に処理終了したデータを外部記
憶装置に退避し、退避されたデータを障害復旧時
に、復元して、処理を再開するリカバリ処理制御
方式において、データを退避する毎に退避したデ
ータに対応するデータに対し管理番号を順次更新
する番号更新手段と処理されるべく入力されたデ
ータに、該入力データを処理する毎に、該管理番
号を付加してロギングする第1の記憶手段と、該
処理終了したデータに該管理番号を付加して記憶
する第2の記憶手段とを設け、障害復旧時に、該
外部記憶装置から復元したデータの管理番号とロ
ギングされた入力データの管理番号とを比較し、
処理終了しないデータのみ再処理することを特徴
とするリカバリ処理制御方式。
1 In a recovery processing control method that saves data that has been processed at predetermined intervals to an external storage device, restores the saved data, and restarts the process when recovering from a failure, the data that is saved every time data is saved. a number updating means for sequentially updating a management number for data corresponding to the data; and a first storage means for logging and adding a management number to data input to be processed each time the input data is processed. , a second storage means for adding and storing the management number to the processed data, and at the time of failure recovery, the management number of the data restored from the external storage device and the management number of the logged input data are provided. Compare the
A recovery processing control method characterized by reprocessing only data that has not been processed.
JP56098556A 1981-06-25 1981-06-25 Recovery processing controlling system Granted JPS57212553A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56098556A JPS57212553A (en) 1981-06-25 1981-06-25 Recovery processing controlling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56098556A JPS57212553A (en) 1981-06-25 1981-06-25 Recovery processing controlling system

Publications (2)

Publication Number Publication Date
JPS57212553A JPS57212553A (en) 1982-12-27
JPS6138498B2 true JPS6138498B2 (en) 1986-08-29

Family

ID=14222958

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56098556A Granted JPS57212553A (en) 1981-06-25 1981-06-25 Recovery processing controlling system

Country Status (1)

Country Link
JP (1) JPS57212553A (en)

Also Published As

Publication number Publication date
JPS57212553A (en) 1982-12-27

Similar Documents

Publication Publication Date Title
JP2791697B2 (en) Digital operation system
JPS6138498B2 (en)
JP6907976B2 (en) Controller and data storage method
JPS63140352A (en) Memory device for data base of on-line system
JP3012737B2 (en) Method of writing data to E2ROM
JPH03108044A (en) Storage device
JP2602731B2 (en) A device that tracks certain data to update a secondary database
JP2870202B2 (en) Method and apparatus for mutual monitoring between processors
JPH0690683B2 (en) Fault handling method for multiprocessor system
JPH0644238B2 (en) Instruction re-execution control method
KR100204576B1 (en) Structure of common block register built-in memory and shadow recovery structure & method
JPH09330303A (en) Computer system and its fault recovering method
JPS6074052A (en) History memory control system
JPH04354040A (en) Circuit for preventing storage of single event upset error
JPS6161419B2 (en)
JPH0433138A (en) Cpu runaway monitoring system
JPH04125753A (en) On-lined diagnostic system for memory
JP2778344B2 (en) Multiple processor system
SU1383371A1 (en) Device for checking computer program execution
JPH0395634A (en) Restart control system for computer system
JP2806779B2 (en) Journal block recovery method and journal block recovery method
JP3008428B2 (en) Memory runaway / multiple soft error resistant circuit
JPH01266639A (en) Data maintenance processing system
JPS5827538B2 (en) Mutual monitoring method
JPH039433A (en) Information processor