JPH0363845A - Automatic data recovery system - Google Patents

Automatic data recovery system

Info

Publication number
JPH0363845A
JPH0363845A JP1201716A JP20171689A JPH0363845A JP H0363845 A JPH0363845 A JP H0363845A JP 1201716 A JP1201716 A JP 1201716A JP 20171689 A JP20171689 A JP 20171689A JP H0363845 A JPH0363845 A JP H0363845A
Authority
JP
Japan
Prior art keywords
file
program
transaction
user
unique key
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
JP1201716A
Other languages
Japanese (ja)
Inventor
Koji Mihashi
三橋 浩二
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 Solution Innovators Ltd
Original Assignee
NEC Solution Innovators 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 NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP1201716A priority Critical patent/JPH0363845A/en
Publication of JPH0363845A publication Critical patent/JPH0363845A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To perform automatic recovery with a program by providing a managing file to manage the execution state of an application program, and starting up a monitoring program for the file. CONSTITUTION:The monitoring program judges the execution state of an individual application program from the execution state B of the managing file 11, and when the execution state B shows 0, a processing is migrated to the application program, and when either the tables of the execution state B shows a program execution state, it is migrated to a recovery program. A transaction file 12 is read from the transaction file effective address C of the managing file 11, and when the content of the proper key E of the transaction file 12 matches with that of the proper key I of a user file 13, no update of the user file 11 is performed, and when the former unmatches with the latter, the update of the user file is performed, and the execution state B of the managing file 11 is cleared to zero. Thereby, the automatic recovery of the program is performed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、アプリケーションプログラムによるユーザフ
ァイル更新時の電源断におけるデータの自動復旧方式に
関し、特に汎用端末機にアプリケーションプログラムを
有する、全国展開システムあるいは、個々の情報システ
ムにおいて、エンドユーザが、データの整合性を意識す
ることなく迅速にデータの復旧ができる、ユーザファイ
ル更新時の電源断におけるデータの自動復旧方式に関す
るものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to an automatic data recovery method in the event of a power outage when user files are updated by an application program, and particularly relates to a nationwide system or , relates to an automatic data recovery method in the event of a power outage when updating a user file, in which an end user can quickly recover data in an individual information system without being concerned about data consistency.

〔従来の技術〕[Conventional technology]

従来技術に関して図面を参照して説明する。 The prior art will be explained with reference to the drawings.

第3図は、従来例のファイルレイアウトである。FIG. 3 shows a conventional file layout.

トランザクションファイル31は、順編成ファイルで、
得意先コードK、売上数量L、単価Mは端末から入力さ
れた値である。ユーザファイル32は、得意先コードO
を索引キーとする索引順編成ファイルで総売上金額Pは
前記トランザクションファイルの売上数iLと単価Mを
乗じた値が加算される。アプリケーションプログラムで
、前記トランザクションを追加更新後、前記ユーザファ
イルを更新するような場合、前記トランザクションファ
イルの追加更新後に電源断したとすると、ユーザファイ
ルの総売上金額に加算されない事になり、データの整合
性が取れなくなってしまう。
The transaction file 31 is a sequential file,
The customer code K, sales quantity L, and unit price M are values input from the terminal. The user file 32 has customer code O
In the index sequential organization file with . . . In the case where the application program updates the user file after adding and updating the transaction, if the power is cut off after adding and updating the transaction file, it will not be added to the total sales amount of the user file, and the data will not be consistent. I can't control my sexuality.

従来、この種のデータの復旧方式は、前記ユーザファイ
ルの総売上金額の集計期間のデータをトランザクション
ファイルから拾いだし、前記ユーザファイルの総売上金
額を直接修正していた。
Conventionally, this type of data recovery method has extracted data for the period in which the total sales amount of the user file was collected from the transaction file, and directly corrected the total sales amount of the user file.

〔発明が解決しようとする課題〕 上述した従来のデータ復旧方式は、アプリケーションプ
ログラムを開発した人が、ユーザファイルの内容を、個
別に調査し、ユーザがデータの復旧をしたり、固有の復
旧用プログラムでのデータ復旧を行っている為、次の問
題がある。
[Problem to be solved by the invention] In the conventional data recovery method described above, the person who developed the application program individually investigates the contents of user files, and the user recovers the data or uses a unique recovery method. Since data recovery is performed using a program, there are the following problems.

a、 データの復旧が難しく、ユーザで出来ない。a. Data recovery is difficult and cannot be done by the user.

b、 データの復旧が、どのアプリケーションプログラ
ムで発生したのか不明な場合が有り、調査・復旧に時間
がかかる。
b. In some cases, it is unclear which application program caused the data recovery, and it takes time to investigate and recover the data.

C1データの再入力を行なうと、データの整合性がとれ
なくなる場合が有る。
If the C1 data is re-inputted, the data may become inconsistent.

d、電源断の状況に応じた復旧用プログラム製造が必要
となる。
d. It is necessary to create a recovery program depending on the power outage situation.

e、ユーザで電源断の把握ができず、データの整合性が
とれない場合が有る。
e. The user may not be able to grasp the power outage and may not be able to maintain data consistency.

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

本発明のデータの自動復旧方式は、個々のアプリケーシ
ョンプログラムの実行状態、更新毎の固有キー、更新す
るトランザクションファイルの有効アドレスを有する管
理ファイルと、前記固有キーを持つトランザクションフ
ァイルとユーザファイルを有し、モニタのロード後、前
記管理ファイルの実行状態が、アプリケーションプログ
ラムの実行中である時に復旧プログラムを起動する監視
プログラムと、アプリケーションプログラムのロード時
、終了時に前記管理ファイルの実行状態を更新し、前記
ユーザファイルの更新時には、前記管理ファイルの固有
キーを前記トランザクションファイルと前記ユーザファ
イルに更新した後に、前記管理ファイルの固有キーとト
ランザクションファイルの有効アドレスを更新するアプ
リケーションプログラムと、前記管理ファイルのトラン
ザクションファイル有効アドレスから前記トランザクシ
ョンファイルを読み取り、前記トランザクションファイ
ルの固有キーと前記ユーザファイルの固有キーとを比較
し、異なっていた場合にトランザクションファイルの情
報を基に、ユーザファイルを復旧する前記復旧プログラ
ムを備えている。
The automatic data recovery method of the present invention includes a management file that includes the execution status of each application program, a unique key for each update, and a valid address of a transaction file to be updated, and a transaction file and a user file that have the unique key. , a monitoring program that starts a recovery program when the execution state of the management file is that the application program is being executed after loading the monitor; and a monitoring program that updates the execution state of the management file when the application program is loaded and terminated; When updating a user file, an application program updates the unique key of the management file to the transaction file and the user file, and then updates the unique key of the management file and the effective address of the transaction file; and the transaction file of the management file. The recovery program reads the transaction file from a valid address, compares the unique key of the transaction file with the unique key of the user file, and if they are different, restores the user file based on the information in the transaction file. ing.

〔実施例〕〔Example〕

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

第1図は、本発明の一実施例のファイルレイアウトであ
る。管理ファイル11は順編成ファイルで、固有キーA
は、システムの稼働年月日、伝票風である。伝票気はユ
ーザファイル更新毎に1づつ加えられる。実行状態Bは
、個々のアプリケーションプログラムの実行状態を区別
するテーブルとなっており、Oは終了、1は実行中であ
る事を示し、トランザクションファイル有効アドレスは
、トランザクションファイルの有効アドレスを示す。
FIG. 1 is a file layout of one embodiment of the present invention. The management file 11 is a sequential file with a unique key A.
are the date of operation of the system and the form of the document. One slip is added each time the user file is updated. Execution status B is a table that distinguishes the execution status of each application program; O indicates completion, 1 indicates execution, and transaction file effective address indicates the effective address of the transaction file.

トランザクションファイル12は、相対編成ファイルで
、得意先コードD、売上数量F1単価Gは端末から入力
された値で、固有キー′Eは前記管理ファイルの固有キ
ーAと同じである。ユーザファイル13は、得意先コー
ドHを索引キーとする索引順編成ファイルで、総売上金
額Jは、前記トランザクションファイルの売上数量Fと
単価Gを乗じた値を加算し、固有キーエは、前記管理フ
ァイルの固有キーAと同じである。
The transaction file 12 is a relative organization file, and the customer code D, sales quantity F1, and unit price G are values input from the terminal, and the unique key 'E is the same as the unique key A of the management file. The user file 13 is an index sequential file with the customer code H as an index key, the total sales amount J is the product of the sales quantity F of the transaction file and the unit price G, and the unique key is the This is the same as the file's unique key A.

第2図は、本発明の一実施例のフローチャートである。FIG. 2 is a flow chart of one embodiment of the present invention.

ステップ21においてモニタロードし、ステップ22に
おいて監視プログラムが、管理ファイルの実行状態Bか
ら個々のアプリケーションプログラムの実行状態を判断
し管理ファイルの実行状態Bがゼロの時、ステップ23
のアプリケーションプログラムに移行し、管理ファイル
の実行状態Bのテーブルのいずれかがプログラム実行状
態の時にステップ24の復旧プログラムに移行する。ま
た、ステップ21終了後あるいは、ステップ23、ステ
ップ24終了後にステップ22に移行する。ステップ2
3において、アプリケーションプ□グラムロード時、管
理ファイルの実行状態Bの該当テーブルにlをセットし
、端末からのデータ入力後、管理ファイルのトランザク
ションファイル有効アドレスCを基に、トランザクショ
ンファイルの得意先コードD、固有キーE1売上数量F
、単価Gを更新する。固有キーEは、固有キーAと同じ
内容である。つづいて、ユーザファイルの固有キーエ、
総売上金額Jを更新し、管理ファイルの固有キーAの伝
票風とトランザクションファイル有効アドレスCのカウ
ントアツプを行い、ステップ23を終了する時に管理フ
ァイルの実行状態Bの該当テーブルに0をセットする。
In step 21, the monitor program is loaded, and in step 22, the monitoring program determines the execution status of each application program from the execution status B of the management file, and when the execution status B of the management file is zero, step 23
When one of the tables in the execution status B of the management file is in the program execution state, the process transitions to the recovery program in step 24. Further, after step 21 or after step 23 or step 24, the process moves to step 22. Step 2
3, when loading the application program, set l in the corresponding table of execution status B of the management file, and after inputting data from the terminal, set the customer code D of the transaction file based on the transaction file effective address C of the management file. , unique key E1 sales quantity F
, updates the unit price G. Unique key E has the same content as unique key A. Next, the unique key of the user file,
The total sales amount J is updated, the slip style of the unique key A of the management file and the effective address C of the transaction file are counted up, and when step 23 is completed, 0 is set in the corresponding table of the execution status B of the management file.

ステップ24において、管理ファイルのトランザクショ
ンファイル有効アドレスCからトランザクションファイ
ルを読み取り、トランザクションファイルの固有キーE
とユーザファイルの固有キーエの内容がマツチした時、
ユーザファイルの更新は行わずトランザクションファイ
ルの固有キーEとユーザファイルの固有キーエがアンマ
ツチの時ユーザファイルの更新を行い、ステップ24を
終了する時に管理ファイルの実行状態Bをゼロクリアす
る。
In step 24, the transaction file is read from the transaction file effective address C of the management file, and the unique key E of the transaction file is read.
When the contents of the unique key of the user file match,
The user file is not updated, but when the unique key E of the transaction file and the unique key of the user file do not match, the user file is updated, and when step 24 is completed, the execution status B of the management file is cleared to zero.

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

以上説明したように本発明は、アプリケーションプログ
ラムの実行状態を管理する管理ファイルを所有し、その
監視プログラムを起動する事により、端末の電源断時に
おけるデータの復旧に、次の効果がある。
As explained above, the present invention has the following effects on data recovery when the terminal is powered off by owning a management file that manages the execution state of an application program and activating its monitoring program.

a、 プログラムで自動的に復旧する事が出来る。a. It can be automatically restored using a program.

b、短時間に、その場で出来る。b. Can be done on the spot in a short time.

C1データの整合性がとれる。Consistency of C1 data can be maintained.

d、 ユーザで再入力の必要がない。d. There is no need for the user to re-enter the information.

e、 ユーザで電源断の把握が出来る。e. The user can understand when the power is turned off.

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

第1図、第2図は本発明の一実施例のファイルレイアウ
ト図、フローチャート、第3図は従来例のファイルリレ
4フ991図である。 11・・・・・・管理ファイル、12・・・・・・トラ
アザクシ3ンフアイル、13・・・・・・ユーザファイ
ル、A・・・・・・固有キー、B・・・・・・実行状態
、C・・・・・・トランザクションファイル有効アドレ
ス、D・・・・・・得意先コード、E・・・・・・固有
キー F・・・・・・売上数量、G・・・・・・単価、
H・・・・・・得意先コード、■・・・・・・固有キー
、J・・・・・・総売上金額。 第7図
1 and 2 are file layout diagrams and flowcharts of one embodiment of the present invention, and FIG. 3 is a file relay 4 diagram 991 of a conventional example. 11...Management file, 12...Toraazakushi 3 file, 13...User file, A...Unique key, B...Execution status , C... Transaction file valid address, D... Customer code, E... Unique key F... Sales quantity, G... unit price,
H: Customer code, ■: Unique key, J: Total sales amount. Figure 7

Claims (1)

【特許請求の範囲】[Claims] 個々のアプリケーションプログラムの実行状態、更新毎
の固有キー、更新するトランザクションファイルの有効
アドレスを有する管理ファイルと、前記固有キーを持つ
トランザクションファイルとユーザーファイルを有し、
モニタのロード後、前記管理ファイルの実行状態が、ア
プリケーションプログラムの実行中である時に復旧プロ
グラムを起動する監視プログラムと、アプリケーション
プログラムのロード時、終了時に前記管理ファイルの実
行状態を更新し、前記ユーザファイルの更新時には、前
記管理ファイルの固有キーを前記トランザクションファ
イルと前記ユーザファイルに更新した後に、前記管理フ
ァイルの固有キーとトランザクションファイルの有効ア
ドレスを更新するアプリケーションプログラムと、前記
管理ファイルのトランザクションファイル有効アドレス
から前記トランザクションファイルを読み取り、前記ト
ランザクションファイルの固有キーと前記ユーザファイ
ルの固有キーとを比較し、異なっていた場合にトランザ
クションファイルの情報を基に、ユーザファイルを復旧
する前記復旧プログラムを備えたデータの自動復旧方式
A management file having the execution status of each application program, a unique key for each update, and a valid address of the transaction file to be updated, and a transaction file and a user file having the unique key,
After loading the monitor, the execution status of the management file is a monitoring program that starts a recovery program when the application program is being executed, and a monitoring program that updates the execution status of the management file when the application program is loaded and terminated, and updates the execution status of the management file when the application program is being executed. When updating a file, an application program that updates the unique key of the management file and the valid address of the transaction file after updating the unique key of the management file to the transaction file and the user file; The recovery program reads the transaction file from an address, compares the unique key of the transaction file with the unique key of the user file, and if they are different, restores the user file based on the information in the transaction file. Automatic data recovery method.
JP1201716A 1989-08-02 1989-08-02 Automatic data recovery system Pending JPH0363845A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1201716A JPH0363845A (en) 1989-08-02 1989-08-02 Automatic data recovery system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1201716A JPH0363845A (en) 1989-08-02 1989-08-02 Automatic data recovery system

Publications (1)

Publication Number Publication Date
JPH0363845A true JPH0363845A (en) 1991-03-19

Family

ID=16445748

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1201716A Pending JPH0363845A (en) 1989-08-02 1989-08-02 Automatic data recovery system

Country Status (1)

Country Link
JP (1) JPH0363845A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09146813A (en) * 1995-11-21 1997-06-06 Nec Software Ltd Data recovery method
US7742004B2 (en) 2005-04-04 2010-06-22 Panasonic Corporation On-vehicle antenna system and electronic apparatus having the same

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5852740A (en) * 1981-09-24 1983-03-29 Fujitsu Ltd System for restoration processing control of partitioned file
JPS6037503A (en) * 1983-08-10 1985-02-26 Ricoh Co Ltd light guide element

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5852740A (en) * 1981-09-24 1983-03-29 Fujitsu Ltd System for restoration processing control of partitioned file
JPS6037503A (en) * 1983-08-10 1985-02-26 Ricoh Co Ltd light guide element

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09146813A (en) * 1995-11-21 1997-06-06 Nec Software Ltd Data recovery method
US7742004B2 (en) 2005-04-04 2010-06-22 Panasonic Corporation On-vehicle antenna system and electronic apparatus having the same

Similar Documents

Publication Publication Date Title
WO2002073432A1 (en) Automatic data update
DE69709918T2 (en) RELATED DATABASE COMPILED AND STORED IN A MEMORY STRUCTURE
JPH0363845A (en) Automatic data recovery system
JPH0314046A (en) File difference management system
JPH05265828A (en) Journal sampling device for batch processing program
JP3228219B2 (en) Data transition screen transition management method
JPH076073A (en) Automatic delivery system among host terminal devices
JP3141391B2 (en) Online slip processing method
JP2623968B2 (en) Commit synchronization control method for journalless files
JPH04118736A (en) On-line partial service device
JPS6388674A (en) Transaction processing device
JP2634908B2 (en) Information processing device
JPS63318659A (en) Work processing operation supporting system
JPH0359733A (en) Automatic control system for updated journal
JPH0480817A (en) Source program generation managing system
JPH02196349A (en) File generation management system
JPH08272669A (en) Data updating method in client-server system
JPS6256535B2 (en)
JPH05210557A (en) Restoration system for file
JPS62263549A (en) Journal file management method in online processing system
JPH0353340A (en) On-line delayed processing system
JPH0355630A (en) Generation control system for source program
JPH0476638A (en) Job execution history acquisition system
JPH02190961A (en) Transaction control system
JPH02285438A (en) Roll-back system for non-journal order processing file