JPH04165436A - File control system - Google Patents

File control system

Info

Publication number
JPH04165436A
JPH04165436A JP2291626A JP29162690A JPH04165436A JP H04165436 A JPH04165436 A JP H04165436A JP 2291626 A JP2291626 A JP 2291626A JP 29162690 A JP29162690 A JP 29162690A JP H04165436 A JPH04165436 A JP H04165436A
Authority
JP
Japan
Prior art keywords
data
file
processed
data file
stored
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
JP2291626A
Other languages
Japanese (ja)
Inventor
Yasutomo Takahashi
高橋 保共
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.)
HOKKAIDO NIPPON DENKI SOFTWARE KK
NEC Solution Innovators Ltd
Original Assignee
HOKKAIDO NIPPON DENKI SOFTWARE KK
NEC Software Hokkaido 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 HOKKAIDO NIPPON DENKI SOFTWARE KK, NEC Software Hokkaido Ltd filed Critical HOKKAIDO NIPPON DENKI SOFTWARE KK
Priority to JP2291626A priority Critical patent/JPH04165436A/en
Publication of JPH04165436A publication Critical patent/JPH04165436A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To speed up a recovery process in the case of trouble occurrence by gathering only information, indicating whether which data file contains the latest data, in a journal file. CONSTITUTION:The process contents of a data processing means 3 includes an updating process, a write file control means 7 store data to be processed which is read out by a 1st data file input/output means 8 in a 2nd data file 13 by a 2nd data file input/output means 9 and stores data to be processed which is read out by the input/output mean 9 in the 1st data file 12 by the input/output means 8. Then the contents of a latest state storage area 5 for the data to be processed into a new storage state and a journal file output means 10 writes the contents of the latest state storage area 5 in the journal file 14. Consequently, an information processing system which performs a large- quantity updating process with the small-capacity journal file is speeded up and the recovery process in the case of its trouble occurrence is also speeded up.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はファイル制御システムに関し、特に情報処理シ
ステムのデータベースに対する制御を行うファイル制御
システムに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a file control system, and particularly to a file control system that controls a database of an information processing system.

〔従来の技術〕[Conventional technology]

第2図は従来のファイル制御システムの一例を  も示
すブロック図である。
FIG. 2 is a block diagram showing an example of a conventional file control system.

従来のファイル制御システムでは、第2図に示  5す
ように、業務プログラム201からの加工指示を受けた
データ加工手段203が、データファイル入出力手段2
07に処理対象のデータを通知するので、データファイ
ル入出力手段207が、処理対象のデータをデータファ
イル210から読出してデータバッファ206に記憶し
ている。
In the conventional file control system, as shown in FIG. 2, the data processing means 203 receives a processing instruction from the business program 201,
07 is notified of the data to be processed, the data file input/output means 207 reads out the data to be processed from the data file 210 and stores it in the data buffer 206.

そして、データ加工手段203が、データバッファ20
6に記憶した処理対象のデータを加工することにより、
その加工が更新処理を含む場合には、データ加工手段2
03から処理対象のデータの格納指示を受けたデータフ
ァイル入出力手段207が、加工した処理対象のデータ
をデータファイル210に格納させている。
Then, the data processing means 203 processes the data buffer 20
By processing the data to be processed stored in step 6,
If the processing includes update processing, the data processing means 2
The data file input/output means 207 receives the instruction to store the data to be processed from 03, and stores the processed data to be processed in the data file 210.

また、データ加工手段203が、ジャーナルファイル出
力手段205に処理対象のデータの出幻を指示するので
、ジャーナルファイル出力手段205は、ジャーナルフ
ァイル209に書込んで)る。
Furthermore, since the data processing means 203 instructs the journal file output means 205 to generate the data to be processed, the journal file output means 205 writes the data to the journal file 209.

一方、業務プログラム201が動作中に障害を看生じた
場合には、復旧指示プログラム202からジャーナルフ
ァイル制御手段204に復旧指示が通知されるので、ジ
ャーナルファイル制御手段204は、ジャーナルファイ
ル入力手段208を起動して、ジャーナルファイル21
0に記憶する情報を順次に読出して、データファイル2
10を正しい状態に復旧している。
On the other hand, if a failure occurs while the business program 201 is operating, the recovery instruction program 202 notifies the journal file control means 204 of the recovery instruction, so the journal file control means 204 inputs the journal file input means 208. Start and journal file 21
The information stored in data file 2 is sequentially read out and stored in data file 2.
10 has been restored to its correct state.

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

上述した従来のファイル制御システムは、処理対象のデ
ータを更新するごとに、処理対象のデータをジャーナル
ファイルに採取しているので、同一のデータを更新する
ごとに何度でも採取している。
In the conventional file control system described above, data to be processed is collected into a journal file every time the data to be processed is updated, so data is collected any number of times each time the same data is updated.

このため、ジャーナルファイルの容量が、更新処理回数
に比例して多くなり、大容量のジャーナルファイルを必
要きするとともに、障害が発生した場合には、大容量の
ジャーナルファイルを読込むので、復旧に長時間を要す
るという欠点を有している。
For this reason, the journal file capacity increases in proportion to the number of update processes, necessitating a large-capacity journal file, and in the event of a failure, the large-capacity journal file is read, making it difficult to recover. It has the disadvantage of requiring a long time.

本発明の目的は、更新後のデータを更新前のデータと異
なるデータファイルに格納して、更新前のデータと更新
後のデータとを保存し、最新のデータのそれぞれがどの
データファイルに格納されているかを示す情報だけをジ
ャーナルファイルに採取することにより、処理対象のデ
ータを更新するごとにジャーナルファイルに採取する必
要性をなくして、歩容量のジャーナルファイルで、大量
の更新を行う情報処理システムの高速化と、その障害発
生時の復旧処理の高速化とを実現できるファイル制御シ
ステムを提供することにある。
An object of the present invention is to store updated data in a data file different from the unupdated data, save the unupdated data and the updated data, and determine which data file each of the latest data is stored in. An information processing system that can perform large amounts of updates using a journal file with a walking capacity, eliminating the need to collect data in a journal file each time the data to be processed is updated. An object of the present invention is to provide a file control system that can realize high-speed processing and high-speed recovery processing when a failure occurs.

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

第1の発明のファイル制御システムは、(A、 )業務
プログラムからの加工指示を受けたデータ加工手段が、
書込みファイル制御手段に処理対象のデータを通知する
ので、書込みファイル制御手段は、最新状態のデータの
それぞれが、第1のデータファイルに記憶されているか
、それとも第2のデータファイルに記憶されているかを
示す情報を記憶する最新状態記憶領域の内容を検索して
、処理対象のデータが前記第1のデータファイルに記憶
しているか、前記第2のデータファイルに記憶している
かを判断し、 (B)処理対象のデータが前記第1のデータファイルに
記憶しているときには、第1のデータファイル入出力手
段が、処理対象のデータを前記第1のデータファイルか
ら読出してデータバッファに記憶するとともに、処理対
象のデータが前記第2のデータファイルに記憶している
ときには、第2のデータファイル入出力手段が、処理対
象のデータを前記第2のデータファイルから読出して前
記データバッファに記憶し、 (C)前記データ加工手段が、前記データバッファに記
憶した処理対象のデータを加工することにより、その加
工が更新処理を含む場合には、前記データ加工手段から
処理対象のデータの格納指示を受けた前記書込みファイ
ル制御手段が、処理対象のデータを前記第1のデータフ
ァイル入出力手段により読出したときには、前記第2の
データファイル入出力手段で前記第2のデータファイル
に格納させ、処理対象のデータを前記第2のデータファ
イル入出力手段により読出したときには、前記第1のデ
ータファイル入出力手段で前記第1のデータファイルに
格納させて、処理対象のデータに対する前記最新状態記
憶領域の情報を新たな格納状態に更新し、 (D)前記データ加工手段がジャーナルファイル出力手
段に処理対象のデータに対する前記最新状態記憶領域の
情報の出力を指示するので、前記ジャーナルファイル出
力手段は、前記最新状態記憶領域の情報をジャーナルフ
ァイルに書込み、 (E)前記業務プログラムが動作中に障害を発生した場
合には、復旧指示プログラムからジャーナルファイル制
御手段に復旧指示が通知されるので、前記ジャーナルフ
ァイル制御手段は、前記ジャーナルファイル入力手段を
起動して、前記ジャーナルファイルに記憶する情報を、
後に記憶した情報から順次に続出して、各データに対す
る最新情報を取出して、前記最新状態記憶領域に記憶さ
せることにより、前記最新状態記憶領域の情報を、障害
が発生する直前の状態に復旧して、前記業務プログラム
の動作を障害が発生する直前の状態から継続させる、 ことにより構成されている。
In the file control system of the first invention, (A.) the data processing means receives a processing instruction from the business program;
Since the write file control means is notified of the data to be processed, the write file control means determines whether each piece of data in the latest state is stored in the first data file or the second data file. searching the contents of the latest state storage area that stores information indicating the data, and determining whether the data to be processed is stored in the first data file or the second data file; B) When the data to be processed is stored in the first data file, the first data file input/output means reads the data to be processed from the first data file and stores it in the data buffer; , when the data to be processed is stored in the second data file, the second data file input/output means reads the data to be processed from the second data file and stores it in the data buffer; (C) When the data processing means processes the data to be processed stored in the data buffer and the processing includes update processing, the data processing means receives an instruction to store the data to be processed from the data processing means. When the write file control means reads out the data to be processed by the first data file input/output means, the write file control means causes the second data file input/output means to store the data in the second data file. When data is read by the second data file input/output means, the first data file input/output means stores the information in the latest state storage area for the data to be processed into the first data file. (D) The data processing means instructs the journal file output means to output information in the latest state storage area for the data to be processed, so the journal file output means updates the latest state to a new storage state. (E) If a failure occurs during operation of the business program, the recovery instruction program notifies the journal file control means of a recovery instruction, so that the journal file control means starts the journal file input means and inputs information to be stored in the journal file,
The information in the latest state storage area is restored to the state immediately before the failure by sequentially retrieving the latest information for each data from the information stored later and storing it in the latest state storage area. and continuing the operation of the business program from the state immediately before the failure occurred.

また、第2の発明のファイル制御システムは、(A)業
務プログラムで使用するデータを記憶する第1のデータ
ファイルへの書込みおよび読出しを行う第1のデータフ
ァイル入出力手段、 (B)前記第1のデータファイルのデータを更新したデ
ータを記憶する第2のデータファイルへの書込みおよび
読出しを行う第2のデータファイル入出力手段、 (C)最新状態のデータのそれぞれが、前記第1のデー
タファイルに記憶されているか、それとも前記第2のデ
ータファイルに記憶されているかを示す情報を記憶する
最新状態記憶領域、 (D)前記第1のデータファイル入出力手段および前記
第2のデータファイル入出力手段により、読出した処理
対象のデータを一時記憶するデータバッファ、 (E)前記業務プログラムからの加工指示を受けて、処
理対象のデータを通知することにより、前記データバッ
ファに読出した処理対象のデータを加工して、更新した
処理対象のデータに対する前記最新状態記憶領域の情報
を更新するとともにその情報の出力を指示するデータ加
工手段、 (F)前記データ加工手段から処理対象のデータの通知
を受けて、前記最新状態記憶領域の情報を検索して、処
理対象のデータが、前記第1のデータファイルに記憶し
ているか、前記第2のデータファイルに記憶しているか
を判断して、前記第1のデータファイル(または前記第
2のデータファイル)に記憶しているときには、前記第
1のデータファイル入出力手段(または前記第2のデー
タファイル入出力手段)に、処理対象のデータを前記第
1のデータファイル(または前記第2のデータファイル
)から読出して前記データバッファに記憶させるととも
に、前記データ加工手段による加工の処理内容が更新処
理を含む場合には、前記第1のデータファイル入出力手
段(または前記第2のデータファイル入出力手段)によ
り読出した処理対象のデータを前記第2のデータファイ
ル入出力手段(または前記第1のデータファイル入出力
手段)で前記第2のデータファイル(または前記第1の
データファイル)に格納させるとともに、処理対象のデ
ータの前記最新状態記憶領域の情報を新たな情報に更新
させる書込みファイル制御手段、 (G)前記データ加工手段から前記最新状態記憶領域の
情報の出力指示を受けて、処理対象のデータに対する前
記最新状態記憶領域の情報をジャーナルファイルに書込
むジャーナルファイル出力手段、 (H)前記ジャーナルファイルからの読出しを行うジャ
ーナルファイル入力手段、 (I)前記業務プログラムが動作中に障害を発生した場
合には、復旧指示プログラムから復旧指示が通知される
ので、前記ジャーナルファイル入力手段を用いて、前記
ジャーナルファイルに記憶する情報を、後に記憶した情
報から順次に読出して、各データに対する最新情報を取
出して、前記最新状態記憶領域に記憶させることにより
、前記最新状態記憶領域の内容を、障害が発生する直前
の状態に復旧して、前記業務プログラムの動作を障害が
発生する直前の状態から継続させるジャーナルファイル
制御手段、 を備えて構成されている。
Further, the file control system of the second invention includes: (A) a first data file input/output means for writing to and reading from a first data file storing data used in a business program; (B) the first data file; (C) a second data file input/output means for writing to and reading from a second data file that stores updated data of the first data file; a latest state storage area for storing information indicating whether the information is stored in a file or in the second data file; (D) the first data file input/output means and the second data file input/output means; a data buffer for temporarily storing read data to be processed by an output means; (E) receiving a processing instruction from the business program and notifying the data to be processed; (F) data processing means for processing data, updating information in the latest state storage area for the updated data to be processed, and instructing output of the information; (F) notifying the data to be processed from the data processing means; In response, the information in the latest state storage area is searched to determine whether the data to be processed is stored in the first data file or the second data file, and the When the data to be processed is stored in the first data file (or the second data file), the data to be processed is stored in the first data file input/output means (or the second data file input/output means). The data is read from the first data file (or the second data file) and stored in the data buffer, and if the processing content of the data processing means includes update processing, the data is read from the first data file (or the second data file). The data to be processed read by the output means (or the second data file input/output means) is transferred to the second data file by the second data file input/output means (or the first data file input/output means). (or the first data file) and update the information in the latest state storage area of the data to be processed with new information; (G) from the data processing means to the latest state storage; (H) journal file input means for reading information from the journal file; (H) journal file input means for reading from the journal file; I) If a failure occurs in the business program during operation, a recovery instruction is notified from the recovery instruction program, and the information to be stored in the journal file is later stored using the journal file input means. By sequentially reading out the information and extracting the latest information for each data and storing it in the latest state storage area, the contents of the latest state storage area are restored to the state immediately before the failure occurred, and the business Journal file control means for continuing program operation from the state immediately before the failure occurred.

さらに、第3の発明のファイル制御システムは、 (A)業務プログラムから処理対象のデータに対する加
工指示を受けて、最新状態のデータのそれぞれが、第1
のデータファイルに記憶されているか、それとも第2の
データファイルに記憶されているかを示す情報を記憶す
る最新状態記憶領域の内容を検索して、処理対象のデー
タが前記第1のデータファイルに記憶しているか、前記
第2のデータファイルに記憶しているかを判断し、 (B)処理対象のデータが前記第1のデータファイルに
記憶しているときには、処理対象のデータを前記第1の
データファイルから読出すとともに、処理対象のデータ
が前記第2のデータファイルに記憶しているときには、
処理対象のデータを前記第2のデータファイルから読出
し、 (C)続出した処理対象のデータを加工することにより
、その加工が更新処理を含む場合に加工を行った処理対
象のデータを、前記第1のデータファイルから読出した
ときには、前記第2のデータファイルに格納させ、前記
第2のデータファイルから読出したときには、前記第1
のデータファイルに格納させ、 (D)処理対象のデータに対する前記最新状態記憶領域
の情報を新たな格納状態に更新して、処理対象のデータ
に対する更新した前記最新状態記憶領域の情報をジャー
ナルファイルに書込み、 (E)前記業務プログラムが動作中に障害を発生した場
合には、復旧指示プログラムから復旧指示が通知される
ので、前記ジャーナルファイルに記憶する内容を、後に
記憶した内容から順次に読出して、各データに対する最
新情報を取出して、前記最新状態記憶領域に記憶させる
ことにより、前記最新状態記憶領域の情報を、障害が発
生する直前の状態に復旧して、前記業務プログラムの動
作を障害が発生する直前の状態から継続させる、 ことにより構成されている。
Furthermore, in the file control system of the third invention, (A) upon receiving a processing instruction for data to be processed from a business program, each piece of data in the latest state is
The data to be processed is stored in the first data file by searching the contents of the latest state storage area that stores information indicating whether the data to be processed is stored in the first data file or in the second data file. (B) If the data to be processed is stored in the first data file, the data to be processed is stored in the first data file; When reading data from a file and storing data to be processed in the second data file,
(C) By processing the successive data to be processed, if the processing includes update processing, the processed data to be processed is read from the second data file; When read from the first data file, the data is stored in the second data file, and when read from the second data file, the data is stored in the first data file.
(D) updating the information in the latest state storage area for the data to be processed to a new storage state, and storing the updated information in the latest state storage area for the data to be processed in a journal file; (E) If a failure occurs during operation of the business program, the recovery instruction program notifies the user of a recovery instruction, so the contents stored in the journal file are sequentially read from the previously stored contents. , by extracting the latest information for each piece of data and storing it in the latest state storage area, the information in the latest state storage area is restored to the state immediately before the failure occurred, and the operation of the business program is corrected when the failure occurs. It consists of continuing from the state immediately before it occurred.

〔実施例〕〔Example〕

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

第1図は本発明のファイル制御システムの一実施例を示
すブロック図である。
FIG. 1 is a block diagram showing an embodiment of the file control system of the present invention.

第1図に示すように、業務プログラム1からの加工指示
を受けたデータ加工手段3が、書込みファイル制御手段
7に処理対象のデータを通知すルノで、書込みファイル
制御手段7は、データのそれぞれを第1のデータファイ
ル12に記憶しているか、第2のデータファイル13に
記憶しているかを示す内容を記憶する最新状態記憶領域
5を検索して、処理対象のデータが第1のデータファイ
ル12に記憶しているか、第2のデータファイル13に
記憶しているかを判断している。
As shown in FIG. 1, the data processing means 3 that receives a processing instruction from the business program 1 notifies the write file control means 7 of the data to be processed. The latest state storage area 5 that stores contents indicating whether the data is stored in the first data file 12 or the second data file 13 is searched to determine whether the data to be processed is stored in the first data file 13. 12 or the second data file 13 is determined.

そして、処理対象のデータが第1のデータファイル12
に記憶しているときには、第1のデータファイル入出力
手段8は、処理対象のデータを第1のデータファイルエ
2から読出してデータバッファ4に記憶するとともに、
処理対象のデータが第2のデータファイル13に記憶し
ているときには、第2のデータファイル入出力手段9は
、処理対象のデータを第2のデータファイル13から読
出してデータバッファ4に記憶している。
Then, the data to be processed is stored in the first data file 12.
When the first data file input/output means 8 reads out the data to be processed from the first data file 2 and stores it in the data buffer 4,
When the data to be processed is stored in the second data file 13, the second data file input/output means 9 reads the data to be processed from the second data file 13 and stores it in the data buffer 4. There is.

そこで、データ加工手段3は、データバッファ4に記憶
した処理対象のデータを使用して加工を行うことにより
、その処理内容が更新処理を含む場合には、データ加工
手段3から処理対象のデータの格納指示を受けた書込み
ファイル制御手段7は、第1のデータファイル入出力手
段8により読出した処理対象のデータを第2のデータフ
ァイル入出力手段9で第2のデータファイル13に格納
させるとともに、第2のデータファイル入出力手段9に
より読出した処理対象のデータを第1のデータファイル
入出力手段8で第1のデータファイル12に格納させて
、処理対象のデータに対する最新状態記憶領域5の内容
を新たな格納状態に更新している。
Therefore, the data processing means 3 performs processing using the data to be processed stored in the data buffer 4. If the processing content includes update processing, the data processing means 3 processes the data to be processed from the data processing means 3. Upon receiving the storage instruction, the write file control means 7 causes the second data file input/output means 9 to store the data to be processed read by the first data file input/output means 8 in the second data file 13, and The data to be processed read by the second data file input/output means 9 is stored in the first data file 12 by the first data file input/output means 8, and the contents of the latest state storage area 5 for the data to be processed are stored. is updated to a new storage state.

また、データ加工手段3がジャーナルファイル出力手段
10に処理対象のデータに対する最新状態記憶領域5の
内容の出力を指示するので、ジャーナルファイル出力手
段10は、最新状態記憶領域5の内容をジャーナルファ
イル14に書込んでいる。
Further, since the data processing means 3 instructs the journal file output means 10 to output the contents of the latest state storage area 5 for the data to be processed, the journal file output means 10 outputs the contents of the latest state storage area 5 to the journal file 14. is written in.

一方、業務プログラム1が動作中に障害を発生した場合
には、復旧指示プログラム2からジャーナルファイル制
御手段6に復旧指示が通知されるので、ジャーナルファ
イル制御手段6は、ジャーナルファイル入力手段11を
起動して、ジャーナルファイル14に記憶する内容を、
後に記憶した内容から順次に読出して、各データに対す
る最新情報だけを取出して、最新状態記憶領域5に記憶
させることにより、最新状態記憶領域5の内容を、障害
が発生する直前の状態に復旧して、業務プログラム1の
動作を障害が発生する直前の状態から継続させている。
On the other hand, if a failure occurs while the business program 1 is operating, the recovery instruction program 2 notifies the journal file control means 6 of a recovery instruction, so the journal file control means 6 starts the journal file input means 11. and the contents to be stored in the journal file 14,
The contents of the latest state storage area 5 can be restored to the state immediately before the failure by sequentially reading out the contents stored later and extracting only the latest information for each data and storing it in the latest state storage area 5. Thus, the operation of the business program 1 is continued from the state immediately before the failure occurred.

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

以上説明したように、本発明のファイル制御システムは
、更新後のデータを更新前のデータと異なるデータファ
イルに格納して、更新前のデータと更新後のデータとを
保存し、最新のデータのそれぞれがどのデータファイル
に格納されているかを示す情報だけをジャーナルファイ
ルに採取することにより、処理対象のデータを更新する
ごとにジャーナルファイルに採取する必要性をなくして
、少容量のジャーナルファイルで、大量の更新を行う情
報処理システムの高速化と、その障害発生時の復旧処理
の高速化とを実現できるという効果を存している。
As explained above, the file control system of the present invention stores the updated data in a different data file from the pre-updated data, saves the pre-updated data and the updated data, and saves the updated data. By collecting only the information indicating which data file each item is stored in in the journal file, there is no need to collect the information in the journal file every time the data to be processed is updated. This has the effect of speeding up an information processing system that performs a large amount of updates, and speeding up recovery processing when a failure occurs.

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

第1図は本発明のファイル制御システムの一実施例を示
すブロック図、第2図は従来のファイル制御システムの
一例を示すブロック図である。 1・・・・・・業務プログラム、2・・・・・・復旧指
示プログラム、3・・・・・・データ加工手段、4・・
・・・・7’ −9バッファ、5・・・・・・最新状態
記憶領域、6・・・・・・ジャーナルファイル制御手段
、7・・・・・・書込みファイル制御手段、8・・・・
・・第1のデータファイル入出力手段、9・・・・・・
第2のデータファイル入出力手段、10・・・・・・ジ
ャーナルファイル出力手段、11・・・・・・ジャーナ
ルファイル入力手段、12・・・・・・第1のデータフ
ァイル、13・・・・・・第2のデータファイル、14
・・・・・・ジャーナルファイル、201・・・・・・
業務プログラム、202・・・・・・復旧指示プログラ
ム、203・・・・・・データ加工手段、204・・・
・・・ジャーナルファイル制御手段、205・・・・・
・ジャーナルファイル出力手段、206・・・・・・デ
ータバッファ、2o7・・・・・・データファイル入出
力手段、208・・・・・・ジャーナルファイル入力手
段、2o9・・・・・・ジャーナルファイル、2工O・
・・・・・データファイル。
FIG. 1 is a block diagram showing an embodiment of a file control system of the present invention, and FIG. 2 is a block diagram showing an example of a conventional file control system. 1...Business program, 2...Recovery instruction program, 3...Data processing means, 4...
7'-9 buffer, 5... Latest state storage area, 6... Journal file control means, 7... Write file control means, 8...・
...First data file input/output means, 9...
Second data file input/output means, 10... Journal file output means, 11... Journal file input means, 12... First data file, 13... ...Second data file, 14
...Journal file, 201...
Business program, 202... Recovery instruction program, 203... Data processing means, 204...
...Journal file control means, 205...
- Journal file output means, 206...Data buffer, 2o7...Data file input/output means, 208...Journal file input means, 2o9...Journal file , 2nd grade O.
·····data file.

Claims (1)

【特許請求の範囲】 1、(A)業務プログラムからの加工指示を受けたデー
タ加工手段が、書込みファイル制御手段に処理対象のデ
ータを通知するので、書込みファイル制御手段は、最新
状態のデータのそれぞれが、第1のデータファイルに記
憶されているか、それとも第2のデータファイルに記憶
されているかを示す情報を記憶する最新状態記憶領域の
内容を検索して、処理対象のデータが前記第1のデータ
ファイルに記憶しているか、前記第2のデータファイル
に記憶しているかを判断し、 (B)処理対象のデータが前記第1のデータファイルに
記憶しているときには、第1の データファイル入出力手段が、処理対象の データを前記第1のデータファイルから読出してデータ
バッファに記憶するとともに、処理対象のデータが前記
第2のデータファイルに記憶しているときには、第2の
データファイル入出力手段が、処理対象のデータを前記
第2のデータファイルから読出して前記データバッファ
に記憶し、 (C)前記データ加工手段が、前記データバッファに記
憶した処理対象のデータを加工することにより、その加
工が更新処理を含む場合には、前記データ加工手段から
処理対象のデータの格納指示を受けた前記書込みファイ
ル制御手段が、処理対象のデータを前記第1のデータフ
ァイル入出力手段により読出したときには、前記第2の
データファイル入出力手段で前記第2のデータファイル
に格納させ、処理対象のデータを前記第2のデータファ
イル入出力手段により読出したときには、前記第1のデ
ータファイル入出力手段で前記第1のデータファイルに
格納させて、処理対象のデータに対する前記最新状態記
憶領域の情報を新たな格納状態に更新し、 (D)前記データ加工手段がジャーナルファイル出力手
段に処理対象のデータに対する前記最新状態記憶領域の
情報の出力を指示するので、前記ジャーナルファイル出
力手段は、前記最新状態記憶領域の情報をジャーナルフ
ァイルに書込み、 (E)前記業務プログラムが動作中に障害を発生した場
合には、復旧指示プログラムからジャーナルファイル制
御手段に復旧指示が通知されるので、前記ジャーナルフ
ァイル制御手段は、前記ジャーナルファイル入力手段を
起動して、前記ジャーナルファイルに記憶する情報を、
後に記憶した情報から順次に読出して、各データに対す
る最新情報を取出し て、前記最新状態記憶領域に記憶させることにより、前
記最新状態記憶領域の情報を、障害が発生する直前の状
態に復旧して、前記業務プログラムの動作を障害が発生
する直前の状態から継続させる、 ことを特徴とするファイル制御システム。 2、(A)業務プログラムで使用するデータを記憶する
第1のデータファイルへの書込みおよび読出しを行う第
1のデータファイル入出力手段、 (B)前記第1のデータファイルのデータを更新したデ
ータを記憶する第2のデータファイルへの書込みおよび
読出しを行う第2のデータファイル入出力手段、 (C)最新状態のデータのそれぞれが、前記第1のデー
タファイルに記憶されているか、それとも前記第2のデ
ータファイルに記憶されているかを示す情報を記憶する
最新状態記憶領域、 (D)前記第1のデータファイル入出力手段および前記
第2のデータファイル入出力手段により、読出した処理
対象のデータを一時記憶するデータバッファ、 (E)前記業務プログラムからの加工指示を受けて、処
理対象のデータを通知することにより、前記データバッ
ファに読出した処理対象のデータを加工して、更新した
処理対象のデータに対する前記最新状態記憶領域の情報
を更新するとともにその情報の出力を指示するデータ加
工手段、 (F)前記データ加工手段から処理対象のデータの通知
を受けて、前記最新状態記憶領域の情報を検索して、処
理対象のデータが、前記第1のデータファイルに記憶し
ているか、前記第2のデータファイルに記憶しているか
を判断して、前記第1のデータファイル(または前記第
2のデータファイル)に記憶しているときには、前記第
1のデータファイル入出力手段(または前記第2のデー
タファイル入出力手段)に、処理対象のデータを前記第
1のデータファイル(または前記第2のデータファイル
)から読出して前記データバッファに記憶させるととも
に、前記データ加工手段による加工の処理内容が更新処
理を含む場合には、前記第1のデータファイル入出力手
段(または前記第2のデータファイル入出力手段)によ
り読出した処理対象のデータを前記第2のデータファイ
ル入出力手段(または前記第1のデータファイル入出力
手段)で前記第2のデータファイル(または前記第1の
データファイル)に格納させるとともに、処理対象のデ
ータの前記最新状態記憶領域の情報を新たな情報に更新
させる書込みファイル制御手段、 (G)前記データ加工手段から前記最新状態記憶領域の
情報の出力指示を受けて、処理対象のデータに対する前
記最新状態記憶領域の情報をジャーナルファイルに書込
むジャーナルファイル出力手段、 (H)前記ジャーナルファイルからの読出しを行うジャ
ーナルファイル入力手段、 (I)前記業務プログラムが動作中に障害を発生した場
合には、復旧指示プログラムから復旧指示が通知される
ので、前記ジャーナルファイル入力手段を用いて、前記
ジャーナルファイルに記憶する情報を、後に記憶した情
報から順次に読出して、各データに対する最新情報を取
出して、前記最新状態記憶領域に記憶させることにより
、前記最新状態記憶領域の内容を、障害が発生する直前
の状態に復旧して、前記業務プログラムの動作を障害が
発生する直前の状態から継続させるジャーナルファイル
制御手段、 を備えることを特徴とするファイル制御システム。 3、(A)業務プログラムから処理対象のデータに対す
る加工指示を受けて、最新状態のデータのそれぞれが、
第1のデータファイルに記憶されているか、それとも第
2のデータファイルに記憶されているかを示す情報を記
憶する最新状態記憶領域の内容を検索して、処理対象の
データが前記第1のデータファイルに記憶しているか、
前記第2のデータファイルに記憶しているかを判断し、 (B)処理対象のデータが前記第1のデータファイルに
記憶しているときには、処理対象のデータを前記第1の
データファイルから読出すとともに、処理対象のデータ
が前記第2のデータファイルに記憶しているときには、
処理対象のデータを前記第2のデータファイルから読出
し、 (C)読出した処理対象のデータを加工することにより
、その加工が更新処理を含む場合に加工を行った処理対
象のデータを、前記第1のデータファイルから読出した
ときには、前記第2のデータファイルに格納させ、前記
第2のデータファイルから読出したときには、前記第1
のデータファイルに格納させ、 (D)処理対象のデータに対する前記最新状態記憶領域
の情報を新たな格納状態に更新して、処理対象のデータ
に対する更新した前記最新状態記憶領域の情報をジャー
ナルファイルに書込み、 (E)前記業務プログラムが動作中に障害を発生した場
合には、復旧指示プログラムから復旧指示が通知される
ので、前記ジャーナルファイルに記憶する内容を、後に
記憶した内容から順次に読出して、各データに対する最
新情報を取出して、前記最新状態記憶領域に記憶させる
ことにより、前記最新状態記憶領域の情報を、障害が発
生する直前の状態に復旧して、前記業務プログラムの動
作を障害が発生する直前の状態から継続させる、 ことを特徴とするファイル制御システム。
[Claims] 1. (A) The data processing means that receives a processing instruction from the business program notifies the write file control means of the data to be processed, so the write file control means can update the data in the latest state. Each of them searches the contents of the latest state storage area that stores information indicating whether the data is stored in the first data file or the second data file, and determines whether the data to be processed is the first data file. (B) When the data to be processed is stored in the first data file, the data is stored in the first data file. The input/output means reads the data to be processed from the first data file and stores it in the data buffer, and when the data to be processed is stored in the second data file, reads the data to be processed from the second data file input. (C) the data processing means processes the data to be processed stored in the data buffer; If the processing includes update processing, the write file control means receives an instruction to store the data to be processed from the data processing means, and reads out the data to be processed by the first data file input/output means. Sometimes, when the second data file input/output means stores the data in the second data file, and the second data file input/output means reads out the data to be processed, the first data file input/output means (D) the data processing means stores the data to be processed in the first data file and updates the information in the latest state storage area for the data to be processed to a new storage state; (D) the data processing means stores the data to be processed in the journal file output means; (E) If a failure occurs during operation of the business program; Since the recovery instruction program notifies the journal file control means of the recovery instruction, the journal file control means activates the journal file input means to input the information to be stored in the journal file.
The information stored in the latest state storage area is restored to the state immediately before the failure by sequentially reading the information stored later, extracting the latest information for each data, and storing it in the latest state storage area. , a file control system characterized in that the operation of the business program is continued from the state immediately before the failure occurred. 2. (A) a first data file input/output means for writing to and reading from a first data file that stores data used in a business program; (B) data updated from the data in the first data file; (C) whether each of the latest data is stored in the first data file or (D) data to be processed read out by the first data file input/output means and the second data file input/output means; (E) A processing target that receives a processing instruction from the business program and notifies the data to be processed, processes the data to be processed that is read into the data buffer, and updates the data. (F) data processing means for updating the information in the latest state storage area for the data and instructing the output of the information; (F) receiving notification of the data to be processed from the data processing means; to determine whether the data to be processed is stored in the first data file or the second data file, and then search for the first data file (or the second data file). data file), the data to be processed is stored in the first data file input/output means (or the second data file input/output means). data file) and stored in the data buffer, and if the processing content of the data processing means includes update processing, the first data file input/output means (or the second data file The data to be processed read by the input/output means) is transferred to the second data file (or the first data file) by the second data file input/output means (or the first data file input/output means). (G) receiving an instruction from the data processing means to output the information in the latest state storage area; (H) Journal file input means for reading information from the journal file; (I) A failure occurs during operation of the business program. If this occurs, a recovery instruction is notified from the recovery instruction program, so the information stored in the journal file is sequentially read out from the information stored later using the journal file input means, and the information for each data is By extracting the latest information and storing it in the latest state storage area, the contents of the latest state storage area are restored to the state immediately before the failure occurred, and the operation of the business program is restored to the state immediately before the failure occurred. A file control system comprising: journal file control means for continuing from a state. 3. (A) Upon receiving processing instructions for the data to be processed from the business program, each piece of data in the latest state is
The content of the latest state storage area that stores information indicating whether the data is stored in the first data file or the second data file is searched, and the data to be processed is stored in the first data file. Do you remember it?
(B) If the data to be processed is stored in the first data file, read the data to be processed from the first data file; In addition, when the data to be processed is stored in the second data file,
(C) By processing the read data to be processed from the second data file, if the processing includes update processing, the processed data to be processed is transferred to the second data file. When reading from the first data file, the data is stored in the second data file, and when reading from the second data file, the data is stored in the first data file.
(D) updating the information in the latest state storage area for the data to be processed to a new storage state, and storing the updated information in the latest state storage area for the data to be processed in a journal file; (E) If a failure occurs during operation of the business program, the recovery instruction program notifies the user of a recovery instruction, so the contents stored in the journal file are sequentially read from the previously stored contents. , by extracting the latest information for each piece of data and storing it in the latest state storage area, the information in the latest state storage area is restored to the state immediately before the failure occurred, and the operation of the business program is corrected when the failure occurs. A file control system characterized by continuing from the state immediately before occurrence.
JP2291626A 1990-10-29 1990-10-29 File control system Pending JPH04165436A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2291626A JPH04165436A (en) 1990-10-29 1990-10-29 File control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2291626A JPH04165436A (en) 1990-10-29 1990-10-29 File control system

Publications (1)

Publication Number Publication Date
JPH04165436A true JPH04165436A (en) 1992-06-11

Family

ID=17771394

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2291626A Pending JPH04165436A (en) 1990-10-29 1990-10-29 File control system

Country Status (1)

Country Link
JP (1) JPH04165436A (en)

Similar Documents

Publication Publication Date Title
JPH0423144A (en) Journal system
JPH04165436A (en) File control system
JPH0594353A (en) Database management system
JP2925042B2 (en) Information link generation method
JPH03271841A (en) Recovery system for data base
JPS63132351A (en) Memory data base processor
JP2960417B2 (en) Data recovery method
JP2604787B2 (en) Two-dimensional data storage method
JPH0447344A (en) History journal recording system
JPH11327945A (en) Fault search system for computer system
JP3130870B2 (en) Memory dump file reconstruction method
JPH0456341B2 (en)
JPH0259837A (en) Data recovery processing system
JPS63307552A (en) Control system for simultaneous execution
JPH03246643A (en) Processing for editing dump summary
JPH02301841A (en) Forward restoring system for data base
JPH05265828A (en) Journal sampling device for batch processing program
JPS61251942A (en) Data file control system
JPH06175862A (en) Electronic computer
JPH03259357A (en) Data base recovery system
JPS6327927A (en) Index generation system in reserved information retrieval system
JPH0319046A (en) Data base restoring system
JPH04148250A (en) On-line transaction system
JPH03276238A (en) Record control system
JPH09190368A (en) Medium management device