JPH08161211A - Method and device for restoring file by logging - Google Patents

Method and device for restoring file by logging

Info

Publication number
JPH08161211A
JPH08161211A JP6306268A JP30626894A JPH08161211A JP H08161211 A JPH08161211 A JP H08161211A JP 6306268 A JP6306268 A JP 6306268A JP 30626894 A JP30626894 A JP 30626894A JP H08161211 A JPH08161211 A JP H08161211A
Authority
JP
Japan
Prior art keywords
data
file
logging
failure
data file
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
JP6306268A
Other languages
Japanese (ja)
Inventor
Noriyuki Watari
憲之 亘理
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 JP6306268A priority Critical patent/JPH08161211A/en
Publication of JPH08161211A publication Critical patent/JPH08161211A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To improve the maintainability, reliability and efficiency of the partial fault restoration of the hard disk of a terminal for which the capacity of the hard disk is limited and measures at the time of a file fault can not be duplexed in the terminal used standing alone such as a POS terminal. CONSTITUTION: When a job means 1 is activated, a job management means 7 uses a logging means 5 and a data saving means 8. The data saving means 8 reads the data of a data file 11 to be saved from a data file group 4 and stores them in a saving device 9. Then, they are entirely stored in a logging device 6 while a job is activated by the logging means 5. When a fault is generated in the data file 11 while the job means 1 is activated, after the hard disk is restored, the data before updating saved in the saving device 9 are transferred to the data file 11 by a file restoration means 10, the job means 1 updates the data file 11 after transfer is completed and thus, the data file group 4 is restored to a state immediately before the fault is generated.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は,POS端末のようにス
タンドアロンで使用する端末で,ハードディスクの容量
に制限があり,ファイル障害時対策の2重化が不可能で
ある端末においてハードディスクの部分障害のため,端
末が使用不可となった場合におけるファイル復旧方法及
び装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is a terminal that is used stand-alone, such as a POS terminal, and has a limited hard disk capacity. Therefore, the present invention relates to a file recovery method and device when the terminal becomes unusable.

【0002】[0002]

【従来の技術】従来のファイル復旧方法としては,ハー
ドディスクに障害が発生した場合,特に,一部のセクタ
に障害に発生して,端末が使用不可となった場合,ハー
ドディスクが完全に使用不能となった場合と同様に以下
の乃至に示される手順によりデータを復旧してい
た。ファイル障害のおきていないファイル,即ち,更
新されるファイルを他媒体へバックアップする。ハー
ドディスクの交換を行う。端末のインストール作業を
行う。バックアップを行なったデータファイルのイン
ストールを行う。障害の発生したデータファイルの復
旧作業を行う。
2. Description of the Related Art As a conventional file recovery method, when a hard disk fails, particularly when a terminal becomes unusable due to a failure in some sectors, the hard disk is completely unusable. In the same way as when it became, the data was recovered by the procedure shown below. Back up the file that has no file error, that is, the file to be updated, to another medium. Replace the hard disk. Install the terminal. Install the backed up data files. Perform recovery work for the failed data file.

【0003】[0003]

【発明が解決しようとする課題】しかし,従来の方法に
よってハードディスクの復旧を行なう場合,バックアッ
プを行なったファイルに関してはディスク交換後も,障
害発生直前まで復旧可能であるが,障害の発生したファ
イルに関しては全く復旧できない。そのため障害の発生
したデータファイルを復旧する場合,以下(ア)又は
(イ)に説明する方法が採用されていた。(ア)入力ジ
ャーナルをもとに,あるべきデータファイルに加工す
る。あるいは,他データファイルを元にして作成する。
あるいは,(イ)データファイルの復旧は行なわず,初
期状態より端末を使用する。障害直前まで入力した情報
に関しては,入力ジャーナルを元にして,保守部門で後
日作成する。
However, when the hard disk is restored by the conventional method, the backed up file can be restored until just before the failure even after the disk replacement. Cannot be recovered at all. Therefore, when recovering a failed data file, the method described in (a) or (a) below has been adopted. (A) Process the data file based on the input journal. Alternatively, create it based on another data file.
Alternatively, (a) the terminal is used from the initial state without restoring the data file. The information entered up to immediately before the failure will be created later by the maintenance department based on the input journal.

【0004】前述した(ア)の方法による場合には,デ
ータファイルの加工を人為的に行うため,入力情報の調
査,及びデータ整合性の調査に長時間を要するという問
題がある。また,作業者がデータファイルの仕様に関し
て詳しいことが条件となるため作業者が限られるという
問題がある。
In the case of the above-mentioned method (A), since the data file is artificially processed, there is a problem that it takes a long time to check the input information and the data consistency. In addition, there is a problem that the number of workers is limited because it is necessary for the workers to be familiar with the specifications of the data file.

【0005】前述した(イ)の方法による場合には,障
害直前までのデータを,一旦無効にするため,在庫デー
タのような継続されるデータが復旧不可能であった場
合,業務処理へ影響するという問題がある。また,PO
S端末のように当日のデータを,直ちに把握したい場
合,データの抜けが発生し,正当データが得られないと
いう問題がある。また,入力ジャーナルを元に再入力し
てデータを作成するため,長時間を要するという問題が
ある。
In the case of the above-mentioned method (a), the data up to the time immediately before the failure is once invalidated, so that if continuous data such as inventory data cannot be recovered, business processing is affected. There is a problem of doing. Also, PO
When it is desired to immediately grasp the current day's data as with the S terminal, there is a problem that data omission occurs and legitimate data cannot be obtained. Further, since data is created by re-inputting based on the input journal, there is a problem that it takes a long time.

【0006】そこで,本発明の第1の技術的課題は,ハ
ードディスクの障害復旧用の退避装置が縮小可能となる
ロギングによるファイル復旧方法及び装置を提供するこ
とにある。
Therefore, a first technical object of the present invention is to provide a file recovery method and device by logging, which makes it possible to reduce an evacuation device for failure recovery of a hard disk.

【0007】また,本発明の第2の技術的課題は,保守
工数を縮小でき,そのため他業務への影響が縮小可能と
なるファイル復旧方法及び装置を提供することにある。
A second technical object of the present invention is to provide a file restoration method and apparatus which can reduce the maintenance man-hours and hence the influence on other work.

【0008】さらに,本発明の第3の技術的課題は,復
旧の際のデータの整合性がとれ,データの信頼性が向上
したファイル復旧方法及び装置を提供することにある。
Further, a third technical object of the present invention is to provide a file restoration method and apparatus in which data consistency at the time of restoration is ensured and data reliability is improved.

【0009】[0009]

【課題を解決するための手段】本発明のロギングによる
ファイル復旧方法では,スタンドアロンで使用され,容
量に制限がある記憶部を備え,ファイル障害時対策の2
重化が不可能である端末のファイル復旧方法において,
入力情報を記録するロギングを行うロギング段階と,前
記ロギングの開始及び終了を管理するジョブ管理段階
と,更新先データファイルの更新前のデータを格納する
データ退避段階と,ファイル障害時に前記ロギング段階
と前記ジョブ管理段階とを行うことによってデータファ
イルを復旧させるファイル復旧段階とを含むことを特徴
としている。
According to the file recovery method by logging of the present invention, a storage unit which is used standalone and has a limited capacity is provided.
In the file recovery method for terminals that cannot be duplicated,
A logging step of performing logging for recording input information, a job management step of managing the start and end of the logging, a data saving step of storing data before update of an update destination data file, and a logging step when a file failure occurs. And a file restoration step of restoring the data file by performing the job management step.

【0010】また,本発明のファイル復旧装置では,ス
タンドアロンで使用され,容量に制限がある記憶手段を
備え,ファイル障害時対策の2重化が不可能である端末
において,入力情報を記録するロギングを行うロギング
手段と,前記ロギングの開始及び終了を管理するジョブ
管理手段と,更新先データファイルの更新前のデータを
格納するデータ退避手段と,ファイル障害時に前記ロギ
ング手段及び前記ジョブ管理手段によって,データファ
イルを復旧させるファイル復旧手段とを備え,前記記憶
手段の部分障害の際,障害復旧を行えることを特徴とし
ている。
Further, in the file restoration apparatus of the present invention, the logging which records the input information in the terminal which is used as a stand-alone, has the storage means with a limited capacity, and cannot duplicate the measures against the file failure. By means of the logging means for performing the above, the job management means for managing the start and end of the logging, the data saving means for storing the data before update of the update destination data file, and the logging means and the job management means at the time of a file failure, File recovery means for recovering a data file is provided, and failure recovery can be performed in the event of a partial failure of the storage means.

【0011】ここで,本発明のロギングによるファイル
復旧装置において,前記入力情報より,前記データファ
イル群の中のデータファイルは更新されるとともに,前
記ジョブ管理手段は,前記入力情報を前記ロギング手段
に渡して,前記内部ロギング装置へ格納させるととも
に,退避するデータファイルのファイル名を含む使用情
報を前記データ退避手段へ通知し,退避するデータファ
イルのデータを前記データファイル群より読み出し,前
記退避装置へ格納し,前記データファイルに障害が発生
した場合は,前記ジョブ管理手段は,前記ロギング手段
を終了させ,前記ファイル復旧手段を介して,障害発生
前のデータが格納されている前記退避装置よりデーター
を読み出し,前記データファイル群のデータファイルへ
退避データを移送し,前記退避データの移送後,前記ロ
ギング手段を介して前記内部ロギング装置からの前記入
力情報を受取り,前記データファイルの更新を行なうこ
とが好ましい。
Here, in the file restoration device by logging of the present invention, the data files in the data file group are updated from the input information, and the job management means transfers the input information to the logging means. The data is transferred to the internal logging device, the usage information including the file name of the data file to be saved is notified to the data saving means, the data of the data file to be saved is read from the data file group, and the data is saved to the saving device. When the data file is stored and a failure occurs in the data file, the job management means terminates the logging means, and, via the file restoration means, the data from the save device storing the data before the failure is stored. And transfer the saved data to the data files in the data file group. After the transfer of the saved data, receives the input information from the internal logging device via the logging means, it is preferable to carry out the updating of the data file.

【0012】[0012]

【実施例】以下,本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0013】図1は本発明の実施例に係るロギングによ
るファイル復旧装置の全体構成を示す図である。図1に
示すように,ファイル復旧装置20は,画面入出力部3
に接続された入出力制御部2と,入出力制御部2に接続
されたジョブ管理手段7と,ジョブ管理手段7に接続さ
れたロギング手段5と,ジョブ管理手段7に接続された
ジョブ手段1と,同様にジョブ管理手段7に接続された
ファイル復旧手段10と,同様にジョブ管理手段7に接
続されたデータ退避手段8と,ジョブ手段1に接続され
たデータファイル群4と,内部ロギング装置6と,退避
装置9とを備えている。これらの内,ジョブ手段1,ジ
ョブ管理手段7,ロギング手段5,データ退避手段8,
及びファイル復旧手段10は,実際には,ソフトウエア
プログラムにより実行されるステップと考えられて良
い。
FIG. 1 is a diagram showing the overall configuration of a file restoration device using logging according to an embodiment of the present invention. As shown in FIG. 1, the file restoration device 20 includes a screen input / output unit 3
An input / output control unit 2, a job management unit 7 connected to the I / O control unit 2, a logging unit 5 connected to the job management unit 7, and a job unit 1 connected to the job management unit 7. A file recovery means 10 similarly connected to the job management means 7, a data saving means 8 similarly connected to the job management means 7, a data file group 4 connected to the job means 1, and an internal logging device. 6 and a retractor 9. Among these, job means 1, job management means 7, logging means 5, data saving means 8,
And the file recovery means 10 may actually be considered as a step executed by a software program.

【0014】次に,データファイルを更新するジョブ手
段1が起動する例で説明する。
Next, an example in which the job means 1 for updating the data file is activated will be described.

【0015】まず,図1を参照するとジョブ手段1が起
動する場合,起動開始時にジョブ管理手段7は,ロギン
グ手段5とデータ退避手段8との使用開始及び使用情報
を通知する。使用情報としては,データ退避手段8へ退
避するデータファイル11のファイル名を通知する。デ
ータ退避手段8は,ジョブ管理手段7より使用情報を受
取り,退避するデータファイル11のデータをデータフ
ァイル群4より読み出し,退避装置9へ格納する。デー
タファイル11の退避は複数可能である。データ退避手
段8の処理が終了後,ジョブ管理手段7はロギング手段
5へ使用開始を通知し,入出力制御部2を通して画面入
出力部3によるオペレーターへの入力要求を行なう。
First, referring to FIG. 1, when the job means 1 is started, the job management means 7 notifies the start of use of the logging means 5 and the data saving means 8 and the use information at the start of starting. As the usage information, the file name of the data file 11 to be saved is notified to the data saving means 8. The data saving means 8 receives the usage information from the job management means 7, reads the data of the data file 11 to be saved from the data file group 4, and stores it in the saving device 9. A plurality of data files 11 can be saved. After the processing of the data saving means 8 is completed, the job management means 7 notifies the logging means 5 of the start of use, and requests the operator by the screen input / output unit 3 through the input / output control unit 2.

【0016】画面入出力部3においてキー入力を行なう
と,入力キー情報は,ジョブ管理手段7によりロギング
手段5へ渡され,内部ロギング装置6へ格納される。画
面入出力部3より入力された情報より,ジョブ手段1
は,データファイル群4の中のデータファイル11を更
新する。ジョブ手段1が起動している間,画面入出力部
3より入力されたキーは全て,ロギング手段5により内
部ロギング装置6へ格納される。ジョブ手段1の終了が
なされた場合,ジョブ手段1は,ジョブ管理手段7へ,
ロギング手段5の動作終了通知を行なう。
When a key input is made in the screen input / output section 3, the input key information is passed to the logging means 5 by the job management means 7 and stored in the internal logging device 6. From the information input from the screen input / output unit 3, the job unit 1
Updates the data file 11 in the data file group 4. While the job unit 1 is activated, all the keys input from the screen input / output unit 3 are stored in the internal logging device 6 by the logging unit 5. When the job means 1 is terminated, the job means 1 sends to the job management means 7,
The operation completion notification of the logging means 5 is given.

【0017】ジョブ手段1起動中にデータファイル11
に障害が発生した場合は,ジョブ手段1はジョブ管理手
段7へ障害の発生を通知する。ジョブ管理手段7は障害
発生の通知によりロギング手段5を終了させ,画面入出
力部3へ障害発生の旨メッセージを表示しオペレーター
へ障害発生を知らせる。この後,保守部門により,次の
(い)〜(ほ)の順でハードディスクの復旧が行なわれ
る。(い)ファイル障害の起きていないファイルの他媒
体へのバックアップが行われる。この際ロギング装置6
又は退避装置がハードディスクに存在している場合はバ
ックアップを行う。(ろ)ハードディスクを交換する。
(は)端末のインストール作業を行う。(に)バックア
ップを行なったデータファイルのインストールを行う。
この際,ロギング装置6又は退避装置がハードディスク
に存在している場合はインストールを行う。(ほ)障害
の発生したデータファイルの復旧作業を行う。ここで,
障害の発生したデータファイルの復旧は以下の手順で行
なう。
Data file 11 during job means 1 startup
If there is a failure, the job means 1 notifies the job management means 7 of the failure. The job management means 7 terminates the logging means 5 upon the notification of the occurrence of the failure, displays a message indicating the occurrence of the failure on the screen input / output section 3, and notifies the operator of the occurrence of the failure. After that, the maintenance department restores the hard disk in the following order (i) to (ho). (Ii) Backup of the file in which no file error has occurred to another medium is performed. At this time, logging device 6
Or, if the backup device exists in the hard disk, back up. (B) Replace the hard disk.
(Ha) Install the terminal. Install the backed up data files.
At this time, if the logging device 6 or the saving device exists in the hard disk, the installation is performed. (Ho) Perform restoration work for the failed data file. here,
Follow the procedure below to restore the failed data file.

【0018】画面入出力部3より障害復旧開始のキーを
操作し,障害復旧開始を通知する。ジョブ管理手段7は
障害復旧開始の通知により,ファイル復旧手段10へ復
旧開始を通知する。ファイル復旧手段10は障害発生前
のデータが格納されている退避装置9よりデータを読み
出し,データファイル群4のデータファイル11へ退避
データを移送する。移送が終了すると,ファイル移送手
段10は,ジョブ管理手段7へ移送終了通知をする。次
に,ジョブ管理手段7は,ロギング手段5へ内部ロギン
グ装置6の読み出しの通知を行ない,ジョブ手段1を起
動する。ジョブ管理手段7はロギング手段5より入力情
報を受取りジョブ手段1へ引渡す。ジョブ手段1は,あ
たかも画面入出力部3よりオペレーターが入力したよう
に入力情報を受取り,データファイル11の更新を行な
う。ロギング装置6に格納された入力キー情報が全て実
行されるまでジョブ管理手段7はロギング手段5とジョ
ブ手段1を制御し,入力キー情報が全て実行終了後は,
入出力制御部2を通した画面入出力部3とジョブ手段1
の制御を行なう通常の処理に戻る。入力キー情報が全て
実行終了時点で障害直前の環境になるため,オペレータ
ーは業務の継続が可能となる。
The failure recovery start key is operated from the screen input / output unit 3 to notify the failure recovery start. The job management means 7 notifies the file restoration means 10 of the restoration start by notifying the failure restoration start. The file restoration means 10 reads the data from the save device 9 in which the data before the failure occurs is stored, and transfers the saved data to the data file 11 of the data file group 4. When the transfer is completed, the file transfer unit 10 notifies the job management unit 7 of the transfer end. Next, the job management means 7 notifies the logging means 5 of the reading of the internal logging device 6 and activates the job means 1. The job management means 7 receives the input information from the logging means 5 and delivers it to the job means 1. The job means 1 receives the input information from the screen input / output section 3 as if the operator had input it, and updates the data file 11. The job management unit 7 controls the logging unit 5 and the job unit 1 until all the input key information stored in the logging device 6 is executed, and after all the input key information has been executed,
Screen input / output unit 3 and job unit 1 through the input / output control unit 2
The process returns to the normal process for controlling. Since all the input key information becomes the environment just before the failure at the end of execution, the operator can continue the work.

【0019】図2は図1の内部ロギング装置6の内容を
示す図である。入力キーテーブルであるロギング情報2
1はK1〜Knのキーデーター22で構成される。入力
キーデータが連続して格納される。格納数nは必要に応
じて決定する。ロギング手段5の動作開始時,K1より
順に格納され,データ復旧開始時にK1より順次読み出
される。なお,内部ロギング装置6は,ハードディスク
又はフロッピィディスクや不揮発性メモリに用意されて
いる。
FIG. 2 is a diagram showing the contents of the internal logging device 6 of FIG. Logging information 2 which is an input key table
1 is composed of key data 22 of K1 to Kn. Input key data is continuously stored. The storage number n is determined as needed. When the operation of the logging means 5 starts, the data is stored in order from K1 and is sequentially read from K1 when data recovery starts. The internal logging device 6 is prepared in a hard disk, a floppy disk, or a non-volatile memory.

【0020】図3及び図4は退避装置9の構成を示す図
である。退避装置9は,図3に示された管理部31と退
避情報部32と,図9に示された退避データ部33とよ
り構成される。管理部31は退避データファイル数を格
納する情報数領域34と退避ファイル内の格納開始可能
位置(アドレス)を示す格納位置領域35とにより構成
される。退避情報部32にはファイル毎の情報を格納す
るファイル情報部36があり,退避するファイル数に応
じてF1〜Fmを含んでいる。各ファイル情報部(F1
〜Fm )36は,ファイル名を示す部分37(F11〜F
m1)と退避装置の格納位置を示す格納部38(F12〜F
m2)とにより構成される。格納部38は開始位置(アド
レス)を示す開始部38a(F121 〜Fm21 )と終了位
置(アドレス)を示す終了部38b(F122 〜Fm221)
とにより構成されている。
3 and 4 are views showing the construction of the retracting device 9. The save device 9 includes a management unit 31 and a save information unit 32 shown in FIG. 3, and a save data unit 33 shown in FIG. The management unit 31 includes an information number area 34 for storing the number of saved data files and a storage position area 35 for indicating a storage startable position (address) in the saved file. The save information section 32 has a file information section 36 that stores information for each file, and includes F1 to Fm according to the number of files to be saved. Each file information section (F1
To Fm) 36 is a portion 37 (F11 to F) showing the file name.
m1) and the storage unit 38 (F12 to F) indicating the storage position of the evacuation device
m2) and. The storage section 38 has a start section 38a (F121 to Fm21) indicating a start position (address) and an end section 38b (F122 to Fm221) indicating an end position (address).
It is composed of

【0021】図4に示された退避データ部33(S1)
は退避したデータファイルのデータ長(l1)の領域を
格納するデータ長51,退避したデータ件数(b1)を
格納する領域数52及びデータ(d11, d12)を格納す
る領域53とにより構成されている。退避するデータフ
ァイルが複数の場合,退避データ部33は複数のデータ
ファイルが格納される。
The save data section 33 (S1) shown in FIG.
Is composed of a data length 51 for storing a data length (l1) area of the saved data file, a number of areas 52 for storing the number of saved data cases (b1), and an area 53 for storing data (d11, d12). There is. When there are a plurality of data files to be saved, the save data unit 33 stores a plurality of data files.

【0022】なお,退避装置9は,ハードディスク又は
フロッピィディスクや不揮発性メモリに用意されてい
る。
The save device 9 is provided in a hard disk, a floppy disk, or a non-volatile memory.

【0023】図2乃至図4を用いて,データ退避動作に
ついて説明する。
The data saving operation will be described with reference to FIGS.

【0024】データ退避手段8は,ジョブ管理手段7よ
り通知された,退避ファイル情報により退避装置9のフ
ァイル情報部(F1)36のファイル名F111にファ
イル名を格納すると共に,格納位置を領域35に格納す
る。また,格納位置の開始位置を開始部F121に格納
しデーターファイルを読み込みデータ長をデータ長(l
1)を領域51へ,読み込みデータ(d11,d12,
・・・)を順次領域53の中に格納する。全データ格納
後,格納データ件数をデータ件数(b1)を領域52へ
格納し,また,格納終了位置(アドレス)を格納位置3
5へ格納する。退避データファイルが複数存在する場合
は,F2〜Fmのファイル情報部及び,S2〜Smの退
避データ部へ順次格納する。最後に退避ファイル数が情
報数34へ格納される。
The data saving means 8 stores the file name in the file name F111 of the file information section (F1) 36 of the saving device 9 according to the saved file information notified from the job management means 7, and stores the storage position in the area 35. To store. In addition, the start position of the storage position is stored in the start portion F121, the data file is read, and the data length is set to the data length (l
1) to area 51, read data (d11, d12,
...) are sequentially stored in the area 53. After storing all the data, the number of stored data items, the number of data items (b1) are stored in the area 52, and the storage end position (address) is the storage position 3
Store in 5. When there are a plurality of saved data files, they are sequentially stored in the file information part of F2 to Fm and the saved data part of S2 to Sm. Finally, the number of saved files is stored in the information number 34.

【0025】ファイル復旧手段10は,ジョブ管理手段
7により復旧開始が通知されると,退避装置9の退避情
報部32より,ファイル情報部36のデータを読み込
む。この場合,ファイル名の領域37及び格納位置領域
38から夫々ファイル名及び格納位置に取り込むと共
に,退避データ部33よりデータを取り込みデータファ
イル群4へ出力する。更に,領域34の情報数より退避
ファイル数を取得し,F1〜Fmのファイル情報部によ
り対応する退避データ部33のデータを読み込み,デー
タ長領域51によりデータ長を取得し,取得したデータ
長で領域52に格納されたデータ数52に応じたデータ
件数分のデータを領域54からデータファイル群4へ順
次出力する。全データファイルへ出力後は格納位置領域
35を初期設定する。
When the job management means 7 notifies the file restoration means 10 of the restoration start, the file restoration means 10 reads the data of the file information portion 36 from the saved information portion 32 of the saving device 9. In this case, the file name area 37 and the storage location area 38 are loaded into the file name and storage location, respectively, and the saved data section 33 outputs the data to the loaded data file group 4. Furthermore, the number of saved files is acquired from the number of information items in the area 34, the data of the corresponding saved data section 33 is read by the file information sections F1 to Fm, the data length is acquired by the data length area 51, and the acquired data length is used. Data corresponding to the number of data items 52 stored in the area 52 are sequentially output from the area 54 to the data file group 4. After outputting to all data files, the storage position area 35 is initialized.

【0026】尚,本発明の実施例においては,入力情報
の一例として,入力キー情報のみを示したが,入力キー
情報以外の入力情報,例えば,外部回線を介して入力さ
れる入力情報についても使用することができることは,
明らかである。
In the embodiment of the present invention, only the input key information is shown as an example of the input information, but the input information other than the input key information, for example, the input information input via the external line is also applicable. What can be used is
it is obvious.

【0027】[0027]

【発明の効果】以上説明したように,本発明では,ジョ
ブで使用するファイル関するファイル情報を格納してお
く方式のため,ハードディスク障害復旧用の退避装置の
容量が縮小可能となる。
As described above, according to the present invention, since the file information about the file used in the job is stored, the capacity of the evacuation device for recovering from a hard disk failure can be reduced.

【0028】また,本発明では,入力キーを格納してい
るため,障害発生時のデータ復旧作業において,入力情
報が再実行されるため保守員は復旧手段の動作を実行さ
せればよく,保守工数を縮小できる。そのため,他業務
への影響が縮小可能となる。
Further, according to the present invention, since the input key is stored, the input information is re-executed in the data recovery work in the event of a failure, so that the maintenance personnel may execute the operation of the recovery means. The man-hours can be reduced. Therefore, the influence on other work can be reduced.

【0029】また,本発明では,復旧データは再実行後
のデータであるため整合性がとれデータの信頼性が向上
する。
Further, in the present invention, since the restored data is the data after the re-execution, the consistency is maintained and the reliability of the data is improved.

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

【図1】本発明の実施例に係るロギングによるファイル
復旧装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a file restoration device by logging according to an embodiment of the present invention.

【図2】図1のロギング装置を示す図である。2 is a diagram showing the logging device of FIG. 1. FIG.

【図3】図1の退避装置を示す図である。FIG. 3 is a diagram showing the retractor of FIG.

【図4】図1の退避装置を示す図である。FIG. 4 is a diagram showing the evacuation device of FIG.

【符号の説明】[Explanation of symbols]

1 ジョブ手段 2 入出力制御部 3 画面入出力部 4 データファイル群 5 ロギング手段 6 内部ロギング装置 7 ジョブ管理手段 8 データ退避手段 9 退避装置 10 ファイル復旧手段 11 データファイル 21 ロギング情報(入力キーテーブル) 22 入力キー(K1〜Kn) 31 管理部 32 退避情報部 33 退避データ部(S1〜Sm) 34 情報数領域 35 格納位置領域 36 ファイル情報部(F1〜Fm) 37 ファイル名(F11〜Fm1)を示す部分 38 格納位置(F11〜Fm2)の領域 38a 開始部(F121〜Fm21) 38b 終了部(F121〜Fm21) 51 データ長(l1〜lm)の領域 52 データ件数(b1〜bm)の領域 53 データ(d1〜dm)領域 54 データ(d11〜dma)の領域 1 job means 2 input / output control section 3 screen input / output section 4 data file group 5 logging means 6 internal logging device 7 job management means 8 data saving means 9 saving apparatus 10 file restoring means 11 data file 21 logging information (input key table) 22 input keys (K1 to Kn) 31 management section 32 save information section 33 save data section (S1 to Sm) 34 information number area 35 storage position area 36 file information section (F1 to Fm) 37 file name (F11 to Fm1) Part indicated 38 38 Storage position (F11 to Fm2) area 38a Start part (F121 to Fm21) 38b End part (F121 to Fm21) 51 Data length (l1 to lm) area 52 Data count (b1 to bm) area 53 data (D1 to dm) area 54 data (d11 to dma) area

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 スタンドアロンで使用され,容量に制限
がある記憶部を備え,ファイル障害時対策の2重化が不
可能である端末のファイル復旧方法において, 入力情
報を記録するロギングを行うロギング段階と,前記ロギ
ングの開始及び終了を管理するジョブ管理段階と,更新
先データファイルの更新前のデータを格納するデータ退
避段階と,ファイル障害時に前記ロギング段階と前記ジ
ョブ管理段階とを行うことによってデータファイルを復
旧させるファイル復旧段階とを含むことを特徴とするロ
ギングによるファイル復旧方法。
1. A logging stage for logging input information in a file restoration method of a terminal which is used standalone and has a storage unit with a limited capacity, and which cannot duplicate a countermeasure against a file failure. Data by performing a job management step of managing the start and end of the logging, a data saving step of storing the pre-update data of the update destination data file, and the logging step and the job management step at the time of a file failure. A file recovery method by logging, comprising a file recovery stage for recovering a file.
【請求項2】 請求項1記載のロギングによるファイル
復旧方法において,前記記憶部は,退避するデータを格
納する退避装置と,入力情報を格納する内部ロギング装
置を備えたメモリによって構成されていることを特徴と
するロギングによるファイル復旧方法。
2. The file recovery method by logging according to claim 1, wherein the storage unit is composed of a memory having an evacuation device for storing data to be evacuated and an internal logging device for storing input information. A file recovery method using logging.
【請求項3】 請求項2記載のロギングによるファイル
復旧方法において,前記入力情報より,更新されるデー
タファイルを含むデータファイル群の中のデータファイ
ルを備え,前記ロギング段階において,前記入力情報
を,前記内部ロギング装置へ格納するとともに,前記デ
ータ退避段階において,退避するデータファイルのファ
イル名を含む使用情報及び退避するデータファイルのデ
ータをデータファイル群より読み出し,前記退避装置へ
格納し,前記データファイルに障害が発生した場合は,
前記ジョブ管理段階において,前記ロギング段階を終了
させ,前記ファイル復旧段階を起動して障害発生前のデ
ータが格納されている前記退避装置よりデーターを読み
出し,前記データファイル群のデータファイルへ退避デ
ータを移送し,前記退避データの移送後,前記内部ロギ
ング装置からの前記入力情報を受取り,前記データファ
イルの更新を行なうことを特徴とするロギングによるフ
ァイル復旧方法。
3. The file recovery method by logging according to claim 2, further comprising a data file in a data file group including a data file updated from the input information, wherein the input information is stored in the logging step. In addition to storing in the internal logging device, in the data saving step, the usage information including the file name of the data file to be saved and the data of the data file to be saved are read from the data file group and stored in the saving device. If a failure occurs in
In the job management step, the logging step is ended, the file recovery step is started, data is read from the save device in which the data before the failure is stored, and the save data is saved in the data file of the data file group. A method for recovering a file by logging, which comprises transferring the saved data, receiving the input information from the internal logging device, and updating the data file.
【請求項4】 スタンドアロンで使用され,容量に制限
がある記憶手段を備え,ファイル障害時対策の2重化が
不可能である端末において,入力情報を記録するロギン
グを行うロギング手段と,前記ロギングの開始及び終了
を管理するジョブ管理手段と,更新先データファイルの
更新前のデータを格納するデータ退避手段と,ファイル
障害時に前記ロギング手段及び前記ジョブ管理手段によ
って,データファイルを復旧させるファイル復旧手段と
を備え,前記記憶手段の部分障害の際,障害復旧を行え
ることを特徴とするロギングによるファイル復旧装置。
4. A logging unit which is used as a stand-alone unit, has a storage unit with a limited capacity, and which performs logging for recording input information in a terminal in which duplication of measures against a file failure is impossible, and the logging unit. Management means for managing the start and end of data, a data saving means for storing the data before update of the update destination data file, and a file recovery means for recovering the data file by the logging means and the job management means in the event of a file failure And a file recovery device by logging, which is capable of performing failure recovery in the event of a partial failure of the storage means.
【請求項5】 請求項4記載のロギングによるファイル
復旧装置において,前記記憶手段は,前記データ退避手
段からの退避データを格納する退避装置と,前記ロギン
グ手段からの入力情報を格納する内部ロギング装置とを
備えているメモリとを有していることを特徴とするロギ
ングによるファイル復旧装置。
5. The file recovery device by logging according to claim 4, wherein the storage means stores a save data from the data save means, and an internal logging device stores input information from the logging means. A file recovery device by logging having a memory provided with.
JP6306268A 1994-12-09 1994-12-09 Method and device for restoring file by logging Pending JPH08161211A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6306268A JPH08161211A (en) 1994-12-09 1994-12-09 Method and device for restoring file by logging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6306268A JPH08161211A (en) 1994-12-09 1994-12-09 Method and device for restoring file by logging

Publications (1)

Publication Number Publication Date
JPH08161211A true JPH08161211A (en) 1996-06-21

Family

ID=17955043

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6306268A Pending JPH08161211A (en) 1994-12-09 1994-12-09 Method and device for restoring file by logging

Country Status (1)

Country Link
JP (1) JPH08161211A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02257229A (en) * 1989-03-29 1990-10-18 Nec Corp File recovery system for computer system
JPH04184641A (en) * 1990-11-20 1992-07-01 Nec Kansai Ltd Data base restoring system
JPH0594353A (en) * 1991-10-02 1993-04-16 Hokkaido Nippon Denki Software Kk Database management system
JPH05100935A (en) * 1991-10-03 1993-04-23 Hokkaido Nippon Denki Software Kk Data base managing system
JPH05143422A (en) * 1991-11-21 1993-06-11 Nec Corp Updated journal managing system
JPH05324439A (en) * 1992-05-26 1993-12-07 Hokkaido Nippon Denki Software Kk Data base control journal output system
JPH06250905A (en) * 1993-02-26 1994-09-09 Fujitsu Ltd Collective recovery system of plural volumes

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02257229A (en) * 1989-03-29 1990-10-18 Nec Corp File recovery system for computer system
JPH04184641A (en) * 1990-11-20 1992-07-01 Nec Kansai Ltd Data base restoring system
JPH0594353A (en) * 1991-10-02 1993-04-16 Hokkaido Nippon Denki Software Kk Database management system
JPH05100935A (en) * 1991-10-03 1993-04-23 Hokkaido Nippon Denki Software Kk Data base managing system
JPH05143422A (en) * 1991-11-21 1993-06-11 Nec Corp Updated journal managing system
JPH05324439A (en) * 1992-05-26 1993-12-07 Hokkaido Nippon Denki Software Kk Data base control journal output system
JPH06250905A (en) * 1993-02-26 1994-09-09 Fujitsu Ltd Collective recovery system of plural volumes

Similar Documents

Publication Publication Date Title
JPH09101912A (en) Difference backup system
JP3136258B2 (en) Disk update log recording method
JP3551079B2 (en) Recovery method and device after replacement of modified load module
JPH08212142A (en) Data backup system for data base
JP4428887B2 (en) Database system
JPH08161211A (en) Method and device for restoring file by logging
JP3499775B2 (en) Backup information management method
JP2001188690A (en) Computer system and checkpoint information preserving method
JP3056038B2 (en) Volume management table failure recovery method
JPH04184641A (en) Data base restoring system
JPH05173864A (en) File recovery system
JPH01140353A (en) System for maintaining data in data base
JPH04307643A (en) Highly reliable file system
JP4878113B2 (en) Link library recovery method and program for DASD failure
JPH0259837A (en) Data recovery processing system
JPH0438537A (en) Backup/restoring system for data on dasd
JP2959467B2 (en) Fault recovery system, fault recovery method, and medium for storing fault recovery program in loosely coupled multi-computer system
JP2594761B2 (en) Journal file management device
CN116860521A (en) Data recovery method and device for fault node, electronic equipment and medium
JPH04207554A (en) Exchange
JP2972439B2 (en) Portable terminal backup method
JP2005242747A (en) Data backup system
JPH04209044A (en) Data base control system
JP2004171529A (en) Data backup system and data backup method
JPH06266598A (en) Information processor

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19970513