JPH08314784A - File management device - Google Patents

File management device

Info

Publication number
JPH08314784A
JPH08314784A JP7121715A JP12171595A JPH08314784A JP H08314784 A JPH08314784 A JP H08314784A JP 7121715 A JP7121715 A JP 7121715A JP 12171595 A JP12171595 A JP 12171595A JP H08314784 A JPH08314784 A JP H08314784A
Authority
JP
Japan
Prior art keywords
file
online
update log
log
information
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
JP7121715A
Other languages
Japanese (ja)
Inventor
Shunichi Ide
俊一 井手
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP7121715A priority Critical patent/JPH08314784A/en
Publication of JPH08314784A publication Critical patent/JPH08314784A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】 【目的】 ファイルと、このファイルに対応するファイ
ル更新ログとの間に不整合が生じることを防止し、ファ
イル内容の信頼性を向上させる。 【構成】 オンライン処理された情報を一定の処理単位
毎にファイル更新ログとして取得し、当該ログでオンラ
イン化されたファイルを更新し、また、障害発生時には
ファイル更新ログを用いてファイルを復旧するファイル
管理装置において、ファイルがオンライン化されると
き、オンライン化された他のファイル及び以前にオンラ
イン化されたファイル自身と区別可能なファイルIDを
発行するファイルID管理手段3と、ファイルIDをフ
ァイルに付与し、このファイルをオンライン化するファ
イルオンライン化手段2と、情報をファイル更新ログと
して取得するとき、このファイル更新ログにオンライン
化されたファイルのファイルIDを付与するファイル更
新ログ取得手段5とを備えたファイル管理装置。
(57) [Summary] [Purpose] To prevent the occurrence of inconsistency between the file and the file update log corresponding to this file, and improve the reliability of the file contents. [Structure] A file that acquires information on online processing as a file update log for each fixed processing unit, updates the file online with the log, and restores the file using the file update log when a failure occurs. In the management device, when a file is brought online, a file ID management means 3 for issuing a file ID that can be distinguished from other files brought online and the file that was previously made online, and a file ID is given to the file. Then, it is provided with a file online means 2 for bringing this file online, and a file update log acquisition means 5 for giving the file ID of the file brought online to this file update log when information is acquired as a file update log. File management device.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、オンラインファイルを
扱うトランザクションシステムにおけるファイル管理装
置に係り、特に、障害発生、ファイル修正等によるファ
イル不整合の発生を防止するファイル管理装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file management device in a transaction system that handles online files, and more particularly to a file management device that prevents occurrence of file inconsistency due to a failure occurrence, file modification, and the like.

【0002】[0002]

【従来の技術】銀行預金引き出しシステム、チケットの
発券システム、工場ラインの制御システム、倉庫の在庫
管理装置等のシステムでは管理対象のデータがオンライ
ンで処理されるようになっている。
2. Description of the Related Art In systems such as a bank deposit withdrawal system, a ticket issuing system, a factory line control system, and a warehouse inventory management device, data to be managed is processed online.

【0003】このようにオンライン処理が行われ、実行
された処理が逐次保存されるシステムでは、各処理はト
ランザクションあるいは処理単位と呼ばれる単位で進行
し、ファイルに保存される。
In a system in which online processing is performed in this manner and executed processing is sequentially saved, each processing proceeds in units called transactions or processing units and is saved in a file.

【0004】このトランザクションによるファイルアク
セスが可能になっているファイルをオンラインファイル
といい、その逆の状態のファイルをオフラインファイル
という。
A file that can be accessed by this transaction is called an online file, and a file in the opposite state is called an offline file.

【0005】上記した各システムにおける情報、例えば
銀行預金引き出しシステムにおける預金者の預金情報を
管理するファイル情報等は、非常に重要なものが多い。
このような重要でかつオンライン処理で刻々と変更され
ていく情報を確実に保存しておくために、システムには
データベースに保存される上記各ファイルの他、ジャー
ナルファイルと呼ばれる記憶部分に一種の更新用ファイ
ルであるファイル更新ログが設けられている。前述した
オンラインファイルはファイル更新ログによって復旧可
能なファイルでもある。
The information in each system described above, for example, the file information for managing the deposit information of the depositor in the bank deposit withdrawal system, is very important in many cases.
In order to ensure that such important and information that is constantly changing during online processing is stored, the system stores each of the above files stored in the database as well as a kind of update in the storage part called journal file. A file update log that is a file for use is provided. The online file described above is also a file that can be recovered by the file update log.

【0006】例えば預金者がATMを使用して預金引き
出し等を行うと、トランザクションが実行され、その情
報がまずファイル更新ログに保存される。そして、ファ
イル更新ログの内容を用いて正式な情報保存部であるオ
ンラインファイルを更新して一連の処理が終了する。
[0006] For example, when a depositor uses ATM to withdraw a deposit or the like, a transaction is executed, and the information is first stored in the file update log. Then, the online file, which is a formal information storage unit, is updated using the contents of the file update log, and a series of processing is completed.

【0007】そして、例えばデータベースに障害が生じ
るなどして、万一、ファイル内容が失われた場合には、
ファイル更新ログの情報を用いて当該ファイルを復旧さ
せる。
If the file contents are lost due to a failure of the database, for example,
Restore the file using the information in the file update log.

【0008】ここで、トランザクションは、処理一元性
を有し、システムにどのようなことが起こっても当該処
理が終了しているか、していないかの何れか一方の状態
しかとらないので、トランザクションの単位でファイル
更新ログを保存し、ファイルを復旧することが可能とな
る。
[0008] Here, the transaction has processing unity, and no matter what happens to the system, the transaction can be in either one of the state where the processing is completed and the state where it is not processed. It is possible to save the file update log in units of and restore the file.

【0009】このような業務プロセスのトランザクショ
ン、ファイル管理等を含めたオンライン処理を確実に実
施し、ファイルを復旧させるための全体的なシステムを
トランザクションシステムと呼んでいる。
An overall system for surely executing online processing including transaction of such a business process and file management and for recovering a file is called a transaction system.

【0010】図2は従来のトランザクションシステムに
おけるファイル管理装置の構成を示すブロック図であ
る。図2において、ファイル管理装置30は、データベ
ース31とジャーナルファイル32とファイル書込部3
3と、ファイル更新ログ取得部34と図示しないファイ
ル検索復旧部,その他の周辺要素とから構成されてい
る。
FIG. 2 is a block diagram showing the configuration of a file management device in a conventional transaction system. In FIG. 2, the file management device 30 includes a database 31, a journal file 32, and a file writing unit 3.
3, a file update log acquisition unit 34, a file search restoration unit (not shown), and other peripheral elements.

【0011】データベース31には、オンライン化され
たファイル、オフライン化されたファイル等のファイル
が格納されており、ジャーナルファイル32には、ファ
イル更新ログが保存されるようになっている。
The database 31 stores files such as online files and offline files, and the journal file 32 stores a file update log.

【0012】いま、データベース31内のファイルAと
ファイルBがオンライン化され、これらのファイルにか
かわる業務処理が業務プロセス35において実施される
場合を考える。
Now, let us consider a case where the files A and B in the database 31 are brought online and the business process related to these files is carried out in the business process 35.

【0013】まず、業務プロセス35では、ファイルA
もしくはファイルBに関する処理が実行される。この実
行時の一時的な情報はタスクローカルジャーナル36と
呼ばれるログとして仮記憶されつつ、処理が進行する。
また、必要によってオンラインファイルAもしくはオン
ラインファイルBに関する情報が用いられている。
First, in the business process 35, the file A
Alternatively, the processing regarding the file B is executed. The temporary information at the time of execution is temporarily stored as a log called a task local journal 36, and the process proceeds.
Also, information regarding the online file A or online file B is used as necessary.

【0014】なお、図2においては、タスクローカルジ
ャーナル36を業務プロセス35内に図示したが、実際
には業務プロセス35からの入出力先としての記憶手段
が設けられて、この中にタスクローカルジャーナル36
が構成される。
Although the task local journal 36 is shown in the business process 35 in FIG. 2, a storage means is actually provided as an input / output destination from the business process 35, in which the task local journal is provided. 36
Is configured.

【0015】業務プロセス35内における一連の処理が
終了すると、コミットが実行されて、タスクローカルジ
ャーナル36の内容がファイル更新ログとして保存され
ることになる。
When a series of processes in the business process 35 is completed, a commit is executed and the contents of the task local journal 36 are saved as a file update log.

【0016】このとき、ファイル更新ログ取得部34
は、業務プロセス35からのログ取得指令に基づき、タ
スクローカルジャーナル36内の情報をジャーナルファ
イル32内にファイル更新ログとして保存する。
At this time, the file update log acquisition unit 34
Saves the information in the task local journal 36 in the journal file 32 as a file update log based on the log acquisition command from the business process 35.

【0017】ファイル更新ログ取得部34は、ジャーナ
ルファイル32にファイル更新ログを保存すると、その
ログ保存通知s1をファイル書込部33に送出する。フ
ァイル書込部33では、ログ保存通知s1を受け取る
と、該当するファイル更新ログを元に、データベース3
1中の対応するオンラインファイルに保存する。
When the file update log acquisition unit 34 saves the file update log in the journal file 32, the file update log acquisition unit 34 sends a log saving notification s1 to the file writing unit 33. Upon receiving the log storage notification s1, the file writing unit 33 uses the corresponding file update log as the basis for the database 3
Save to the corresponding online file in 1.

【0018】ファイル書込部33は、このオンラインフ
ァイルへ保存すると、ファイルへの保存終了通知として
クリーンポイントclと呼ばれる信号をファイル更新ロ
グ取得部34に送出する。
When the file writing unit 33 saves in the online file, the file writing unit 33 sends a signal called a clean point cl to the file update log acquisition unit 34 as a notification of the end of saving in the file.

【0019】ファイル更新ログ取得部34は、クリーン
ポイントclを受け取ると、そのファイル更新ログ内容
に基づいて対応するファイルが更新されたものとし、ロ
グ管理ファイル37にファイル更新確認情報を記憶す
る。ここで、例えば「ファイルA2、ログA2により更
新済み」のような内容の情報が記録される。
Upon receiving the clean point cl, the file update log acquisition unit 34 determines that the corresponding file has been updated based on the contents of the file update log, and stores the file update confirmation information in the log management file 37. Here, information having contents such as “file A2, updated by log A2” is recorded.

【0020】例えば図2に示す場合、データベース31
において、ファイルAとファイルBとがオンライン化し
ており、ジャーナルファイル32にファイル更新ログが
ログA1、ログB1、ログB2、ログA2、ログB3、
ログA3、...と順次取得されている。
For example, in the case shown in FIG. 2, the database 31
In, the file A and the file B are online, and the file update logs in the journal file 32 are log A1, log B1, log B2, log A2, log B3,
Logs A3 ,. . . And sequentially acquired.

【0021】そして、これらの各ファイル更新ログは、
オンラインファイルA1、オンラインファイルB1、B
2、A2、B3、A3、...を順次更新している。つ
まり、これらファイル及びファイル更新ログのファイル
名は、上記ファイル更新あるいは障害処理でのファイル
復旧時におけるファイルとファイル更新ログとの対応付
けを決めるものである。
Then, each of these file update logs is
Online file A1, Online file B1, B
2, A2, B3, A3 ,. . . Are being updated sequentially. That is, the file names of these files and the file update log determine the correspondence between the file and the file update log at the time of file restoration in the above file update or failure processing.

【0022】これらのファイル名は、トランザクション
システムのシステム定義時又はファイル作成時にオンラ
インファイル、つまりファイル更新ログによる復旧可能
なファイルとして定義される。
These file names are defined as online files at the time of system definition of the transaction system or file creation, that is, files that can be recovered by the file update log.

【0023】そして、このファイル名の対応とログ管理
ファイル37のファイル更新確認情報とにより、ファイ
ル・ログ間の対応関係が確認できるようになっている。
このようなトランザクションシステムにおいて、システ
ム障害が発生すると、システム停止リカバリーや媒体か
らのリカバリーなどの、リカバリーによるファイルの復
旧が行われる。
The correspondence between the file name and the file update confirmation information of the log management file 37 makes it possible to confirm the correspondence between the files and logs.
In such a transaction system, when a system failure occurs, file recovery by recovery such as system stop recovery or recovery from a medium is performed.

【0024】つまり、このとき、図示しないファイル検
索復旧部によって、ジャーナルファイル32から復旧対
象のファイルと同名のファイル名を持つファイル更新ロ
グが検索され、さらにログ管理ファイル37に基づい
て、すでにファイルに更新されているログを用いて、当
該ファイルが復旧される。例えば図2において、ファイ
ルAのA2及びA3を復旧対象とするときは、ファイル
更新ログのログA2及びA3を用いて復旧処理が行われ
る。
That is, at this time, the file search recovery unit (not shown) searches the journal file 32 for a file update log having the same file name as the file to be recovered, and based on the log management file 37, the file update log is already created. The file is restored using the updated log. For example, in FIG. 2, when A2 and A3 of the file A are to be restored, the restoration process is performed using the logs A2 and A3 of the file update log.

【0025】[0025]

【発明が解決しようとする課題】上述したファイル管理
装置30に対してはトランザクションシステムに管理さ
れる業務プロセス35からのアクセスの他に、トランザ
クションシステムの管理外にある一般プロセス38から
のデータベース31に対するアクセスが可能である。こ
のとき、一般プロセスは、オンラインファイル,オフラ
インファイルにかかわらずファイルにアクセスできる。
In addition to the access from the business process 35 managed by the transaction system, the above-mentioned file management device 30 can access the database 31 from the general process 38 outside the management of the transaction system. It is accessible. At this time, the general process can access the file regardless of whether it is an online file or an offline file.

【0026】この一般プロセスからのファイルアクセス
により、以下の問題が生じる。まず、ファイルがオンラ
イン中に何れかのオンラインファイルが更新されると、
ジャーナルファイル32内の対応するファイル更新ログ
が取得されず、障害発生時のファイル復旧をすることが
できない。また、オペレータのミスによるファイル破壊
の可能性もある。
File access from this general process causes the following problems. First, if any online file is updated while the file is online,
The corresponding file update log in the journal file 32 is not acquired, and the file cannot be recovered when a failure occurs. There is also a possibility of file destruction due to operator error.

【0027】一方、システムの保守その他の理由でファ
イルをオフライン化したときも、同様にファイル更新が
可能であるが、この場合もファイルの制御情報(有効レ
コード数、空きレコード領域情報など)やレコードの状
態(レコードの物理的位置)などがそれまでのファイル
更新ログと食い違うので、ファイル更新ログによるファ
イル復旧ができなくなる。
On the other hand, when a file is taken offline for system maintenance or other reasons, the file can be updated in the same manner. In this case as well, the file control information (the number of valid records, free record area information, etc.) and record Since the state (physical position of record) and so on are inconsistent with the previous file update log, file recovery by the file update log cannot be performed.

【0028】また、ファイルをオフライン化したとき
は、トランザクションシステムがファイルアクセスを認
識せず、例えばファイルを削除し同じファイル名でファ
イルを再作成することも可能である。
When the file is taken offline, the transaction system does not recognize the file access. For example, it is possible to delete the file and recreate the file with the same file name.

【0029】しかし、このときファイル更新ログに変更
はないので、データベース31側のファイル情報とジャ
ーナルファイル32のファイル更新ログ情報とが異なっ
たものとなる。
However, since there is no change in the file update log at this time, the file information on the database 31 side and the file update log information on the journal file 32 are different.

【0030】したがって、このままファイルをオンライ
ン化し、例えばリカバリーがあると、ファイル名でファ
イル管理をしているトランザクションシステムには古い
ファイルと新しいファイルの区別がつかず、古いファイ
ル更新ログにより作り直したファイルが破壊される。し
たがって、ジャーナルファイル内の対応するファイルの
古いファイル更新ログを無効化する必要があるが、これ
は、かなりの労力と時間を要する作業である。
Therefore, if a file is brought online as it is and recovery is performed, for example, the transaction system that manages the file by the file name cannot distinguish between the old file and the new file, and the file recreated by the old file update log will be deleted. Destroyed. Therefore, it is necessary to invalidate the old file update log of the corresponding file in the journal file, which is a laborious and time consuming task.

【0031】特に、ファイルをファイル名でしか識別で
きないOSを用いたとき、上記のような場合に誤ってフ
ァイルの再オンライン化を行うと、データベース内のフ
ァイルとジャーナルファイル内のファイル更新ログとの
対応関係が取れなくなる。
In particular, when an OS which can identify a file only by a file name is used and the file is mistakenly brought online again in the above case, the file in the database and the file update log in the journal file are separated. Correspondence cannot be taken.

【0032】また、このようなOSを用いたシステムの
場合、上記システムではオペレータによるファイル名の
取扱いミスから生じる不都合を回避することができな
い。さらに、ファイルの復旧についても、同名ファイル
の再作成の可能性から、確実な復旧処理を完全に自動化
することは困難である。
Further, in the case of a system using such an OS, the above system cannot avoid the inconvenience caused by the operator's mishandling of the file name. Further, regarding file recovery, it is difficult to completely automate reliable recovery processing because of the possibility of recreating a file with the same name.

【0033】一方、ファイルをファイル名のみでしか識
別できないシステムではなく、対応する部位にファイル
転送可能なOSを用いたシステムであっても、一旦オフ
ライン化されたファイルにおいてファイル名変更、ファ
イル内容変更がされると、次の問題が生じる。
On the other hand, even if the file is not identified only by the file name but the system using the OS capable of transferring the file to the corresponding portion is used, the file name and the file content are changed in the file which is once offline. If this happens, the following problems will occur.

【0034】まず、図2に示すファイル管理装置では、
1つのデータベース31が設けられているが、大規模な
システムにおいては、複数のデータベースが設けられ、
データベース間でのファイル更新ログの取得を介して、
データベース間のファイル複写が行われている。
First, in the file management device shown in FIG.
Although one database 31 is provided, in a large-scale system, a plurality of databases are provided,
Through acquisition of file update log between databases,
Files are being copied between databases.

【0035】さらに、このデータベース間のファイル複
写においては、一定の関係式でファイルの実体を変更す
ることなくファイル名を変更し、ファイル複写が行われ
ることが多い。
Further, in the file copying between the databases, the file name is often changed by changing the file name without changing the substance of the file by a certain relational expression.

【0036】このような場合で、一旦オフライン化した
あるデータベースのファイルのファイル名を変更し、再
びオンライン化すると、そのデータベースに対するファ
イル更新ログのファイル名とファイル名を変更したファ
イルとのファイル名が食い違ったまま、データベース間
のファイル複写が開始される。
In such a case, if the file name of a file of a certain database that has been offline once is changed and then brought back online, the file name of the file update log for that database and the file name of the file whose file name has been changed become the same. The file copy between the databases is started without any conflict.

【0037】さらに、この状態でシステムに障害が発生
してファイルの復旧がされると、最初のジャーナルファ
イルのファイル更新ログは当初のままで、ファイル複写
にかかわるジャーナルファイルのファイル更新ログは変
更されているので、復旧されたデータベース間のファイ
ル(ファイル名)に不整合を生じることとなる。
Furthermore, when a system failure occurs in this state and file restoration is performed, the file update log of the first journal file remains unchanged and the file update log of the journal file involved in file copying is changed. Therefore, inconsistency will occur in the file (file name) between the restored databases.

【0038】本発明は、このような実情を考慮してなさ
れたもので、ファイルと、このファイルに対応するファ
イル更新ログとの間に不整合が生じることを防止し、フ
ァイル内容の信頼性を向上させることを可能としたファ
イル管理装置を提供することを目的とする。
The present invention has been made in consideration of such a situation, prevents inconsistency between a file and a file update log corresponding to the file, and improves reliability of file contents. An object is to provide a file management device that can be improved.

【0039】[0039]

【課題を解決するための手段】上記課題を解決するため
に、請求項1に対応する発明は、情報処理単位によって
オンライン処理された情報を、一定の処理単位毎にファ
イル更新ログとして取得し、このファイル更新ログを用
いてオンライン化されたファイルの更新を行い、また、
障害発生時にはファイル更新ログによってファイルを復
旧するファイル管理装置において、ファイルがオンライ
ン化されるとき、オンライン化された他のファイル及び
以前にオンライン化されたファイル自身と区別可能なフ
ァイルIDを発行するファイルID管理手段と、ファイ
ルのオンライン化要求があると、ファイルIDをファイ
ルに付与し、ファイルをオンライン化するファイルオン
ライン化手段と、オンライン処理された情報をファイル
更新ログとして取得するとき、このファイル更新ログ
に、これと対応するオンライン化されたファイルのファ
イルIDを付与するファイル更新ログ取得手段とを備え
たファイル管理装置である。
In order to solve the above-mentioned problems, the invention according to claim 1 acquires information processed online by an information processing unit as a file update log for every fixed processing unit, Use this file update log to update online files, and
In a file management device that recovers a file by a file update log when a failure occurs, when a file is brought online, a file that issues a file ID that can be distinguished from other files that have been brought online and the file that was previously made online ID management means, when a file online request is made, a file ID is given to the file and the file is brought online, and when online processed information is acquired as a file update log, this file update The file management apparatus is provided with a file update log acquisition unit that gives the log the file ID of the file that has been brought online.

【0040】また、請求項2に対応する発明は、請求項
1に対応する発明において、オンライン処理を行う情報
処理単位以外の処理手段が、オンライン化されたファイ
ルにアクセスすることを禁止するファイルアクセス管理
手段を備えたことを特徴とするファイル管理装置であ
る。
The invention according to claim 2 is the file access according to the invention according to claim 1, wherein processing means other than an information processing unit for performing online processing is prohibited from accessing the file brought online. The file management apparatus is characterized by comprising management means.

【0041】さらに、請求項3に対応する発明は、請求
項1又は2に対応する発明において、障害発生時にオン
ライン化されたファイルに付与されたファイルIDを用
い、これと同じファイルIDを有するファイル更新ログ
をファイルの復旧に用いるためのファイル更新ログとし
て検索するファイル更新ログ検索手段とを備えたファイ
ル管理装置である。
Further, the invention according to claim 3 is the same as the invention according to claim 1 or 2, wherein the file ID assigned to the file brought online at the time of occurrence of a failure is used, and the file having the same file ID as this file ID is used. The file management apparatus includes a file update log search unit that searches the update log as a file update log for use in file recovery.

【0042】[0042]

【作用】したがって、まず、請求項1に対応する発明の
ファイル管理装置においては、いわゆるトランザクショ
ンなどの情報処理単位によってオンライン処理された情
報が一定の処理単位毎にファイル更新ログとして取得さ
れている。この一定の処理単位とは、例えば一つのトラ
ンザクションごとでもよいし、複数のトランザクション
ごとでもよい。
Therefore, first, in the file management apparatus of the invention according to claim 1, the information processed online by an information processing unit such as a so-called transaction is acquired as a file update log for each fixed processing unit. The fixed processing unit may be, for example, one transaction or a plurality of transactions.

【0043】そして、このファイル更新ログを用いてオ
ンライン化されたファイルの更新が行われており、ま
た、障害発生時にはファイル更新ログによってファイル
が復旧されるようになっている。
Then, the online file is updated using this file update log, and when a failure occurs, the file is restored by the file update log.

【0044】また、ファイルがオンライン化されると
き、ファイルID管理手段によって、オンライン化され
た他のファイル及び以前にオンライン化されたファイル
自身と区別可能なファイルIDが発行される。
Further, when a file is brought online, the file ID management means issues a file ID that can be distinguished from other files that have been brought online and the file itself that was previously made online.

【0045】このファイルのオンライン化を実施するの
は、ファイルオンライン化手段であり、ファイルオンラ
イン化手段は、オンライン化要求に応じて、ファイルI
D管理手段に発行されたファイルIDをファイルに付与
し、ファイルをオンライン化する。
This file is brought online by the file online means, and the file online means makes the file I in response to the online request.
The file ID issued to the D management means is added to the file to bring the file online.

【0046】そして、情報処理単位による処理が進行
し、ファイル更新ログ取得手段によって、オンライン処
理された情報がファイル更新ログとして取得される。ま
た、このファイル更新ログ取得時に、ファイル更新ログ
取得手段によって、対応するオンライン化されたファイ
ルのファイルIDが付与される。
Then, the processing by the information processing unit proceeds, and the file update log acquisition means acquires the information processed online as the file update log. Further, at the time of acquiring this file update log, the file update log acquisition means gives the file ID of the corresponding file that has been brought online.

【0047】したがって、たとえファイル名でファイル
を識別し管理するOS(オペレーティングシステム)を
用いた場合であっても、あるファイルのある時点のオン
ライン状態におけるファイル更新ログのみを確実に識別
することができ、ファイル修正等による不整合発生を防
止することができる。
Therefore, even if an OS (operating system) for identifying and managing files by file name is used, it is possible to reliably identify only the file update log in the online state of a certain file at a certain time. It is possible to prevent inconsistency due to file modification, etc.

【0048】次に、請求項2に対応する発明のファイル
管理装置においては、請求項1に対応する発明と同様に
作用する他、ファイルアクセス管理手段によって、オン
ライン処理対象となっている情報処理単位以外の処理手
段がオンライン化されたファイルにアクセスすることが
禁止される。
Next, in the file management device of the invention according to claim 2, in addition to the same operation as the invention according to claim 1, the information processing unit that is the target of online processing by the file access management means. It is prohibited to access files online by any other processing means.

【0049】したがって、例えばオペレータ操作により
ファイル削除、書き替え等を可能とする処理手段がオン
ラインファイルに対してアクセスを実行することがない
ので、あるファイルと、そのファイルのある時点のオン
ライン状態におけるファイル更新ログとの整合性をより
一層確実に取ることができる。
Therefore, for example, since the processing means that enables file deletion, rewriting, etc. by an operator operation does not access an online file, a certain file and a file in the online state at a certain time point of the file. Consistency with the update log can be more reliably ensured.

【0050】さらに、請求項3に対応する発明のファイ
ル管理装置においては、請求項1又は2に対応する発明
と同様に作用する他、ファイル更新ログ検索手段によっ
て、障害発生時にオンライン化されたファイルに付与さ
れていたファイルIDが用いられて、これと同じファイ
ルIDを有するファイル更新ログがファイルの復旧に用
いるためのファイル更新ログとして検索される。
Further, in the file management apparatus of the invention according to claim 3, the file update device, which operates in the same manner as the invention according to claim 1 or 2, is brought online by the file update log search means. The file ID assigned to the file update log is used, and a file update log having the same file ID as this is searched as a file update log to be used for file recovery.

【0051】したがって、このファイル管理装置におけ
るファイル更新ログによるファイル復旧動作において、
不整合が生じているファイル更新ログによるファイル復
旧がされることがなく、確実なファイル管理をすること
ができる。
Therefore, in the file restoration operation by the file update log in this file management device,
It is possible to perform reliable file management without the file being restored by the file update log in which the inconsistency has occurred.

【0052】[0052]

【実施例】以下、本発明の実施例について説明する。図
1は本発明に係るファイル管理装置の一実施例を示す構
成図である。図2に示す従来装置と同一部分には同一符
号を付して詳細説明を省略する。
Embodiments of the present invention will be described below. FIG. 1 is a block diagram showing an embodiment of a file management device according to the present invention. The same parts as those of the conventional device shown in FIG.

【0053】このファイル管理装置1は、トランザクシ
ョンを実行する業務プロセスからのファイルアクセスを
管理するためのトランザクションシステムのファイル管
理部分である。
The file management device 1 is a file management part of a transaction system for managing file access from a business process executing a transaction.

【0054】トランザクションシステムとは、処理一元
性条件を満たすトランザクションからなる業務プロセス
等とこれらのトランザクションから生成される情報を保
存し、管理するためのシステムであり、オンライン処理
状態で業務プロセス、データベース、ジャーナルファイ
ル等を結合し、障害発生時にはファイル復旧などの処理
を行うようになっている。
The transaction system is a system for storing and managing business processes and the like consisting of transactions satisfying the processing unity condition and information generated from these transactions. The journal files are combined, and when a failure occurs, processing such as file restoration is performed.

【0055】なお、一般プロセス38は、トランザクシ
ョンシステムの一部には含まれていない。図1におい
て、ファイル管理装置1は、ファイルオンライン化部2
と、ファイルID管理部3と、オンラインファイル及び
オフラインファイルを格納するデータベース4と、ファ
イル更新ログ取得部5と、ジャーナルファイル6と、フ
ァイル書込部7と、ファイルアクセス管理部8と、ファ
イル更新ログ検索部9と、ファイル復旧部10と、その
他の図示しない周辺要素とによって構成されている。
The general process 38 is not included in a part of the transaction system. In FIG. 1, the file management device 1 includes a file online unit 2
A file ID management unit 3, a database 4 for storing online files and offline files, a file update log acquisition unit 5, a journal file 6, a file writing unit 7, a file access management unit 8, and a file update It is composed of a log search unit 9, a file restoration unit 10, and other peripheral elements (not shown).

【0056】ファイルオンライン化部2は、ファイルの
オンライン化要求を受けると、オンライン化するファイ
ルについてのファイルIDをファイルID管理部3に要
求し、返信されたファイルIDをファイル制御情報とし
てファイルへ記録すると同時に当該ファイルをトランザ
クションシステムへ組み込んでオンライン化する。
Upon receiving the file online request, the file online unit 2 requests the file ID of the file to be brought online to the file ID management unit 3, and records the returned file ID in the file as file control information. At the same time, the file is incorporated into the transaction system and brought online.

【0057】ただし、ファイル復旧の際のシステム再起
動時にはファイルIDをそのままにして、ファイルをオ
ンライン化する。ファイルID管理部3は、ファイルI
Dを管理しており、ファイルオンライン化部2の要求を
受けると、トランザクションシステム内で一意となるよ
うなID番号を発行する。
However, when the system is restarted at the time of file recovery, the file ID is left unchanged and the file is brought online. The file ID management unit 3 uses the file I
D is managed, and when a request from the file online unit 2 is received, an ID number that is unique within the transaction system is issued.

【0058】データベース4には、業務プロセスにおい
て処理された情報の正式な保存情報としてのファイルが
設けられている。このファイルは、ファイルオンライン
化部2によりオンラインファイルとされてトランザクシ
ョンシステムに組み込まれる。 また、各ファイルに
は、ファイルID記憶部11が設けられており、オンラ
イン化された時のファイルIDが記憶される。
The database 4 is provided with a file as formal storage information of information processed in the business process. This file is made into an online file by the file online unit 2 and incorporated in the transaction system. In addition, each file is provided with a file ID storage unit 11, which stores the file ID when online.

【0059】ファイル更新ログ取得部5は、従来装置に
おけるファイル更新ログ取得部34と同様に構成され動
作する他、業務プロセス12のタスクローカルジャーナ
ル13から読み出した情報のうち、ジャーナルファイル
6内に保存されるファイル更新ログ内のファイルID記
憶部14にファイルIDを記憶する。
The file update log acquisition unit 5 is constructed and operates in the same manner as the file update log acquisition unit 34 in the conventional apparatus, and in addition, the information read from the task local journal 13 of the business process 12 is stored in the journal file 6. The file ID is stored in the file ID storage unit 14 in the file update log.

【0060】ここで、業務プロセス12及びタスクロー
カルジャーナル13は、従来装置における業務プロセス
35及びタスクローカルジャーナル36と同様に構成さ
れる他、トランザクションシステムに組み込まれた処理
対象ファイルからファイルIDを取り出して、ファイル
更新ログへの保存情報の一部とする。
Here, the business process 12 and the task local journal 13 are configured in the same manner as the business process 35 and the task local journal 36 in the conventional apparatus, and also extract the file ID from the file to be processed incorporated in the transaction system. , Part of the information saved in the file update log.

【0061】ジャーナルファイル6には、ファイル更新
ログとログ管理ファイル37とが設けられている。ここ
で、ログ管理ファイル37と同様なものである。ファイ
ル更新ログは、従来装置におけるファイル更新ログと同
様に構成される他、各々ファイルID記憶部14を備え
ている。このファイルID記憶部14には、対応するオ
ンラインファイルのファイルID記憶部11内のファイ
ルIDと同じファイルIDが記憶される。
The journal file 6 is provided with a file update log and a log management file 37. Here, it is the same as the log management file 37. The file update log is configured in the same manner as the file update log in the conventional device, and also has a file ID storage unit 14. The file ID storage unit 14 stores the same file ID as the file ID in the file ID storage unit 11 of the corresponding online file.

【0062】ファイル書込部7は、従来装置におけるフ
ァイル書込部33と同様に構成され動作する。ただし、
一般プロセス38からのアクセスは、ファイルアクセス
管理部8に許可されたもののみを実行する。
The file writing section 7 is constructed and operates similarly to the file writing section 33 in the conventional apparatus. However,
Only the access permitted by the file access management unit 8 is executed by the general process 38.

【0063】ファイルアクセス管理部8は、オンライン
中にはトランザクションシステム外からのアクセスを禁
止する。ここで、業務プロセスは、業務処理中にはトラ
ンザクションシステムに組み込まれているので、アクセ
ス可能である。一方、例えばデータベース4の内容を変
更するなどの処理を行う,一般プロセス38からのアク
セスは禁止される。
The file access management unit 8 prohibits access from outside the transaction system while online. Here, the business process is accessible because it is incorporated in the transaction system during business processing. On the other hand, access from the general process 38 that performs processing such as changing the contents of the database 4 is prohibited.

【0064】ファイル更新ログ検索部9は、ファイル内
のファイルID記憶部11に記憶されているファイルI
Dに基づいて、ファイルIDが一致するファイル更新ロ
グをジャーナルファイル6から検索し、その結果をファ
イル復旧部10に通知するようになっている。
The file update log search unit 9 uses the file I stored in the file ID storage unit 11 in the file.
Based on D, the file update log with the matching file ID is searched from the journal file 6, and the result is notified to the file restoration unit 10.

【0065】ファイル復旧部10は、ファイル更新ログ
検索部9により検索されたファイル更新ログを復旧対象
のファイルへ適用してファイルを復旧する。次に、以上
のように構成された本実施例のファイル管理装置の動作
について説明する。
The file recovery unit 10 applies the file update log searched by the file update log search unit 9 to the file to be recovered to recover the file. Next, the operation of the file management device of this embodiment configured as described above will be described.

【0066】まず、オンライン処理において業務プロセ
ス12による処理情報をデータベース4に保存する動作
について説明する。まず、処理対象となるファイルが作
成される。図2においては、ファイルAとファイルBと
が設けられている。また、作成直後のファイルはオフラ
イン状態である。
First, the operation of storing the processing information by the business process 12 in the database 4 in the online processing will be described. First, a file to be processed is created. In FIG. 2, a file A and a file B are provided. Also, the file immediately after creation is offline.

【0067】次に、ファイルのオンライン化要求がある
と、ファイルオンライン化部2は、オンラインする対象
のファイルについてのファイルIDをファイルID管理
部3に要求する。
Next, when a file online request is made, the file online unit 2 requests the file ID management unit 3 for the file ID of the file to be brought online.

【0068】ここで、ファイルBは、以前にオンライン
化され、そのときファイルIDとしてID1が付与され
て、B1及びB2の情報が保存されているとし、今回は
ファイルAとファイルBとがオンライン化されるものと
する。
Here, it is assumed that the file B has been previously brought online, and at that time, ID1 is given as the file ID and the information of B1 and B2 is stored, and this time, the files A and B are brought online. Shall be done.

【0069】このとき、ファイルID管理部3によっ
て、ファイルAのファイルIDとしてID2が発行さ
れ、ファイルBのファイルIDとしてID3が発行され
る。なお、ファイルIDとしてのID1,ID2,ID
3は、単なる例示であり、実際にはトランザクションシ
ステム内で一意となるファイルIDが発行されている。
At this time, the file ID management section 3 issues ID2 as the file ID of the file A and ID3 as the file ID of the file B. Note that ID1, ID2, and ID as file IDs
3 is merely an example, and a file ID that is unique within the transaction system is actually issued.

【0070】ファイルIDを受け取ると、ファイルオン
ライン化部2は、ファイルAのファイルID記憶部11
にファイル制御情報としてのID2を記憶して、ファイ
ルAをトランザクションシステムに組み込む、すなわち
オンライン化する。
Upon receiving the file ID, the file online unit 2 makes the file ID storage unit 11 for the file A.
ID2 as file control information is stored in and the file A is incorporated into the transaction system, that is, brought online.

【0071】一方、ファイルBについても同様に、ファ
イル制御情報としてID3が付与され、ファイルBがオ
ンライン化される。次に、業務プロセス12では、ファ
イルAもしくはファイルBに関する処理が実行される。
このとき、実行時の情報とともに、処理対象ファイルの
ファイルIDがタスクローカルジャーナル13に記憶さ
れる。
On the other hand, similarly, for file B, ID3 is added as file control information, and file B is brought online. Next, in the business process 12, processing regarding the file A or the file B is executed.
At this time, the file ID of the processing target file is stored in the task local journal 13 together with the information at the time of execution.

【0072】なお、図1においては、タスクローカルジ
ャーナル13と業務プロセス12内に図示したが、実際
にはタスクローカルジャーナル13が別途の記憶手段内
に設けられていてもよい。
Although the task local journal 13 and the business process 12 are shown in FIG. 1, the task local journal 13 may actually be provided in a separate storage means.

【0073】業務プロセス12内における一連の処理が
終了すると、タスクローカルジャーナル13の内容がフ
ァイル更新ログ取得部5を介して保存される。ここで、
ファイル更新ログ取得部5によって、ファイル更新ログ
にはファイル更新用のログ情報が保存されるとともに、
対応するファイルのファイルIDがフファイルID記憶
部14に記憶されることとなる。
When a series of processes in the business process 12 is completed, the contents of the task local journal 13 are saved via the file update log acquisition unit 5. here,
The file update log acquisition unit 5 saves log information for file update in the file update log, and
The file ID of the corresponding file is stored in the file ID storage unit 14.

【0074】図1においては、以前のファイルBオンラ
イン化で保存されたファイル更新ログB1,B2と、今
回のファイルA,Bのオンライン化で保存されたファイ
ル更新ログA1,B3,A2,A3,B4とが格納され
ている。
In FIG. 1, the file update logs B1 and B2 saved by the previous online operation of the file B and the file update logs A1, B3, A2, A3 saved by the online operation of the files A and B this time. B4 and are stored.

【0075】ここで、ファイル更新ログB1,B2に
は、ファイルIDとしてID1が付与されている。ま
た、ファイル更新ログA1,A2,A3にはID2が、
ファイル更新ログB3,B4にはID3が、夫々ファイ
ルIDとして記憶されることとなる。
Here, ID1 is given to the file update logs B1 and B2 as a file ID. Also, ID2 is assigned to the file update logs A1, A2, A3,
ID3 is stored as the file ID in the file update logs B3 and B4, respectively.

【0076】ファイル更新ログ取得部5は、ジャーナル
ファイル6にファイル更新ログを保存すると、そのログ
保存通知s1をファイル書込部7に送出する。ファイル
書込部7では、ログ保存通知s1を受け取ると、該当す
るファイル更新ログをジャーナルファイル6から読み出
し、データベース4中の対応するオンラインファイルに
保存する。
When the file update log acquisition unit 5 stores the file update log in the journal file 6, the file update log acquisition unit 5 sends the log storage notification s1 to the file writing unit 7. Upon receiving the log saving notification s1, the file writing unit 7 reads the corresponding file update log from the journal file 6 and saves it in the corresponding online file in the database 4.

【0077】そして、ファイル書込部7によって、この
オンラインファイルへの保存がされると、ファイルへの
保存終了通知信号としてクリーンポイントclが出力さ
れ、ログ管理ファイル37にファイル更新確認情報が記
憶される。
When the file writing unit 7 saves the file in the online file, the clean point cl is output as a file save completion notification signal, and the file update confirmation information is stored in the log management file 37. It

【0078】このファイル更新確認情報が記憶されてと
ころまでが、いわゆるチェックポイントであり、ここま
でのファイル更新が保証されている。オンライン処理
中、業務プロセス12による処理情報のデータベース4
への保存は、以上のように行われている。一方で、一般
プロセス38からデータベース4内のオンラインファイ
ルを開いて内容を書き替える要求があったときは、ファ
イルアクセス管理部8によりアクセスが禁止される。
The point up to the point where the file update confirmation information is stored is a so-called check point, and the file update up to this point is guaranteed. Database 4 of processing information by business process 12 during online processing
The saving to is performed as described above. On the other hand, when there is a request from the general process 38 to open an online file in the database 4 and rewrite the contents, the file access management unit 8 prohibits access.

【0079】したがって、ファイルがオンライン化され
ているときは、当該ファイルをトランザクションシステ
ム外から削除、作成、修正等をすることができない。次
に、システム障害発生により、ファイルを復旧させると
きの動作について説明する。
Therefore, when the file is online, the file cannot be deleted, created or modified from outside the transaction system. Next, the operation of restoring a file due to the occurrence of a system failure will be described.

【0080】このとき、ファイルはシステムダウンする
直前のチェックポイント、すなわちクリーンポイントc
lが発行されたところまで更新されたことになってお
り、ジャーナルファイル6内のファイル更新ログには更
新情報,ログ管理ファイル37にはチェックポイントが
記憶されている。
At this time, the file is a checkpoint immediately before the system goes down, that is, a clean point c.
It has been updated up to the point at which 1 was issued, and the file update log in the journal file 6 stores update information and the log management file 37 stores checkpoints.

【0081】ファイル復旧時には、システム起動時にフ
ァイルIDをそのままにして、ファイルがオンライン化
される。そこで、ファイル更新ログ検索部9は、復旧対
象のファイルの上記ファイルIDを基に、同ファイル名
で同ファイルIDを有するファイル更新ログをジャーナ
ルファイル6から検索し、その結果をファイル復旧部1
0に通知する。
At the time of file restoration, the file is made online while keeping the file ID as it is when the system is started. Therefore, the file update log search unit 9 searches the file update log having the same file ID and the same file ID from the journal file 6 based on the above file ID of the file to be recovered, and the result is the file recovery unit 1
Notify 0.

【0082】そして、ファイル復旧部10によって、検
索されたファイル更新ログを基にデータベース4内のフ
ァイルが復旧されることになる。このとき、当該ファイ
ルが障害発生時にオンラインであったときに取得された
ファイル更新ログのみが検索されることになるので、そ
れ以前の、つまり障害発生前にファイルオフライン状態
を経た後のファイル更新ログは用いられることがなく、
ファイル更新ログと障害発生前のファイルとは完全に整
合性が取られることになる。
Then, the file restoration unit 10 restores the files in the database 4 based on the retrieved file update log. At this time, only the file update log acquired when the file was online at the time of the failure occurred is searched, so the file update log before that, that is, after the file offline state before the failure occurred Is never used,
The file update log and the file before the failure will be completely consistent.

【0083】これを図1の場合を例にとって説明する。
例えばファイルBのB1,B2のうち、B2は、ファイ
ルオフライン後に一般プロセス38によりデータ修正が
されたとする。ファイルBのB2に対応するファイル更
新ログは、ログB2である。また、ログB2には、ファ
イルIDとしてID1が記憶されており、ログB2取得
時のファイルBのファイルIDは、ID1である。
This will be described by taking the case of FIG. 1 as an example.
For example, of the files B1 and B2 of the file B, it is assumed that the data of B2 is modified by the general process 38 after the file is offline. The file update log corresponding to B2 of the file B is the log B2. Further, ID1 is stored as the file ID in the log B2, and the file ID of the file B at the time of acquisition of the log B2 is ID1.

【0084】次に、ファイルBがオンライン化されると
ファイル更新ログB2のファイルIDは、ID1のまま
であるが、ファイルBのファイルIDはID3となるの
で、ここで、システム障害が発生し、リカバリーすなわ
ちファイル復旧がされると上述したように、ファイル更
新ログB3,B4の部分のみが復旧され、オフライン時
に修正されたファイルB2部分はそのままである。
Next, when the file B is brought online, the file ID of the file update log B2 remains ID1, but the file ID of the file B becomes ID3, so a system failure occurs at this point. When the recovery, that is, the file restoration is performed, as described above, only the file update logs B3 and B4 are restored, and the file B2 portion corrected at the time of offline remains unchanged.

【0085】なお、ファイルは、通常一定時間ごと、特
にオフライン化されると必ず磁気テープ等の他の記憶媒
体にダウンロードされるので、ファイル更新ログB3,
B4以前のファイルの情報が失われることはない。
The file is usually downloaded to another storage medium such as a magnetic tape at regular intervals, especially when it is taken offline. Therefore, the file update log B3.
Information of the file before B4 is not lost.

【0086】次に、ファイルのオフライン時の処理があ
ったときの動作について説明する。ファイルオフライン
時には、一般プロセス38により、ファイルの作成、削
除、修正が可能である。
Next, the operation when the file is processed offline will be described. When the file is offline, the general process 38 can create, delete, and modify the file.

【0087】ここでファイルの一部を修正した場合で、
その後、ファイルのオンライン化をした場合は、ファイ
ルに新たなファイルIDが発行されるので、システム障
害が起こりファイル復旧があった場合でも、上述したよ
うに古いファイル更新ログにより、修正部分が上書きさ
れることはない。
If a part of the file is modified here,
After that, when the file is brought online, a new file ID will be issued to the file, so even if a system failure occurs and there is file recovery, the old file update log will overwrite the modified part as described above. There is no such thing.

【0088】一方、ファイルを削除し、同じファイル名
でファイルが再作成された場合でも、そのファイルをオ
ンライン化するときには、新たなファイルIDが発行さ
れるので、上記場合と同様にして、古いファイル更新ロ
グにより再作成されたファイルの更新が行われることは
ない。
On the other hand, even if a file is deleted and a file with the same file name is recreated, a new file ID is issued when the file is brought online. The files recreated by the update log will not be updated.

【0089】したがって、ファイルオフライン時にファ
イルの修正、再作成などの情報変更がなされたときは、
次のオンライン化時に必ず新たなファイルIDが発行さ
れ、それ以前のものとは区別されるので、例えばファイ
ル復旧を行うときに、ファイルの不整合を生じることな
くファイル復旧をすることが可能となる。
Therefore, when information changes such as correction and re-creation of a file are made while the file is offline,
A new file ID is always issued at the time of the next online operation, and is distinguished from the previous one, so that it is possible to perform file recovery without causing file inconsistency, for example, when performing file recovery. .

【0090】つまり、障害発生時のファイル復旧時を除
くと、ファイルオンライン化部2による新たなファイル
ID付与によって、ファイルオンライン化の際にそれ以
前のファイル更新ログを簡単確実に無効化させることを
実現している。
That is, except when the file is restored when a failure occurs, it is possible to easily and surely invalidate the file update log before the file online by adding a new file ID by the file online unit 2. Has been realized.

【0091】上述したように、本実施例によるファイル
管理装置は、ファイルID管理部3から発行された一意
のファイルIDを、ファイルオンライン化部2がファイ
ルに付与してからオンライン化し、さらに、ファイル更
新ログ取得時には、このファイルIDをファイル更新ロ
グに付与するようにしたので、その回のオンライン状態
におけるファイル更新ログのみを確実に識別することが
でき、ファイルとファイル更新ログとの間に不整合が生
じることを防止することができる。
As described above, in the file management apparatus according to the present embodiment, the file online management unit 2 adds the unique file ID issued from the file ID management unit 3 to the file and then makes the file online. Since this file ID is added to the file update log when the update log is acquired, only the file update log in the online state at that time can be reliably identified, and the file and the file update log are inconsistent. Can be prevented.

【0092】つまり、ファイルとファイル更新ログの食
い違いによるファイル情報やデータベース破壊を防止
し、情報の信頼性の向上を実現する。このように、ファ
イルIDでファイルとファイル更新ログとを対応付けて
いるので、たとえファイル名のみでファイルを識別する
OSを用いたシステムであっても、例えばファイル削除
後に同名ファイルを作成したとき、旧ファイルと新ファ
イルとファイル更新ログとの間の対応関係に混乱が生じ
ることを防ぐことができる。
That is, it is possible to prevent the file information and the database from being destroyed due to the discrepancy between the file and the file update log, and to improve the reliability of the information. In this way, since the file and the file update log are associated with each other by the file ID, even if the system uses an OS that identifies the file only by the file name, for example, when a file with the same name is created after file deletion, It is possible to prevent confusion in the correspondence relationship between the old file, the new file, and the file update log.

【0093】また、上述したように、本実施例によるフ
ァイル管理装置は、ファイル更新ログ検索部9によっ
て、障害発生時にオンライン化されたファイルに付与さ
れていたファイルIDと同じファイルIDを持つファイ
ル更新ログを検索し、ファイル復旧部10により検索さ
れたファイル更新ログを用いてファイルを復旧するよう
にしたので、不整合を生じているファイル更新ログによ
ってファイル復旧がされることがなく、簡単かつ確実な
ファイル管理をすることができる。
Further, as described above, in the file management apparatus according to the present embodiment, the file update log search unit 9 updates the file having the same file ID as the file ID given to the file brought online at the time of the occurrence of the failure. Since the file is recovered by searching the log and using the file update log searched by the file recovery unit 10, the file is not recovered by the file update log having the inconsistency, and is simple and reliable. You can manage various files.

【0094】したがって、例えばオンラインファイルへ
のオフラインアクセス後に障害が発生し、ファイル更新
ログを適用してファイル復旧をする場合には、オンライ
ン操作のファイル更新ログの欠落により生じるファイル
制御データの不整合やオフラインで更新したデータがフ
ァイル更新ログにないことによるファイルデータ破壊を
防止することができる。
Therefore, for example, when a failure occurs after an offline access to an online file and the file update log is applied to restore the file, inconsistency of the file control data caused by the missing file update log of the online operation or It is possible to prevent the file data from being destroyed because the data updated offline is not in the file update log.

【0095】また、ファイルがシステム内一意のIDに
より管理されるため、オペレータはファイルの区別を意
識する必要がなく、オペレータの誤操作によるファイル
破壊を防ぐことができる。
Further, since the file is managed by the unique ID in the system, the operator does not need to be aware of the distinction of the file, and the file destruction due to the operator's erroneous operation can be prevented.

【0096】さらに、上述したように、本実施例による
ファイル管理装置は、ファイルアクセス管理部8を設け
てオンライン中の一般プロセス38のアクセスを禁止し
たので、ファイル削除・作成等はファイルをオフライン
にしなければ行うことができず、オフライン化すると次
回のオンライン化により新しいファイルIDが割り当て
られファイルIDが変わるので、それまでのファイル更
新ログはファイルIDが異なることにより無効化され
て、ファイル名の一致によるファイル更新ログの混乱を
防止することができる。
Further, as described above, the file management apparatus according to the present embodiment is provided with the file access management unit 8 to prohibit the access of the general process 38 which is online. If you go offline, a new file ID will be assigned and the file ID will change when you go online, so the file update log up to that point will be invalidated because the file ID is different, and the file names will match. It is possible to prevent the file update log from being confused by.

【0097】なお、ファイルオンライン化時にファイル
IDを用いて不整合なファイル更新ログを破棄するよう
にしてもよい。このようにすれば、ファイルの復旧時に
は必要なファイル更新ログのみを残すことができ、通常
のファイルオンライン化時には不要なファイル更新ログ
をすべて破棄することができるので、ファイルとファイ
ル更新ログのより確実な整合性を取ることができる。ま
た、本発明は、上記各実施例に限定されるものでなく、
その要旨を逸脱しない範囲で種々に変形することが可能
である。
Incidentally, when the file is brought online, the file ID may be used to discard the inconsistent file update log. By doing this, you can leave only the necessary file update log when recovering the file, and discard all unnecessary file update logs when normal files are brought online. It is possible to achieve good consistency. Further, the present invention is not limited to the above-mentioned embodiments,
Various modifications can be made without departing from the spirit of the invention.

【0098】[0098]

【発明の効果】以上詳記したように本発明によれば、フ
ァイルのオンライン化ごとにファイルIDを発行し、フ
ァイル更新ログにそのファイルIDを付与するようにし
たので、ファイルと、このファイルに対応するファイル
更新ログとの間に不整合が生じることを防止し、ファイ
ル内容の信頼性を向上させるファイル管理装置を提供す
ることができる。
As described above in detail, according to the present invention, a file ID is issued every time a file is brought online, and the file ID is given to the file update log. It is possible to provide a file management device that prevents inconsistency with the corresponding file update log and improves the reliability of file contents.

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

【図1】本発明に係るファイル管理装置の一実施例を示
す構成図。
FIG. 1 is a configuration diagram showing an embodiment of a file management device according to the present invention.

【図2】従来のファイル管理装置を示す構成図。FIG. 2 is a configuration diagram showing a conventional file management device.

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

1…ファイル管理装置、2…ファイルオンライン化部、
3…ファイルID管理部、4…データベース、5…ファ
イル更新ログ取得部、6…ジャーナルファイル、7…フ
ァイル書込部、8…ファイルアクセス管理部、9…ファ
イル更新ログ検索部、10…ファイル復旧部。
1 ... File management device, 2 ... File online unit,
3 ... File ID management unit, 4 ... Database, 5 ... File update log acquisition unit, 6 ... Journal file, 7 ... File writing unit, 8 ... File access management unit, 9 ... File update log search unit, 10 ... File recovery Department.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 情報処理単位によってオンライン処理さ
れた情報を、一定の処理単位毎にファイル更新ログとし
て取得し、このファイル更新ログを用いてオンライン化
されたファイルの更新を行い、また、障害発生時には前
記ファイル更新ログによって前記ファイルを復旧するフ
ァイル管理装置において、 前記ファイルがオンライン化されるとき、オンライン化
された他のファイル及び以前にオンライン化された前記
ファイル自身と区別可能なファイルIDを発行するファ
イルID管理手段と、 前記ファイルのオンライン化要求があると、前記ファイ
ルIDを前記ファイルに付与し、前記ファイルをオンラ
イン化するファイルオンライン化手段と、 前記オンライン処理された情報をファイル更新ログとし
て取得するとき、このファイル更新ログに、これと対応
するオンライン化されたファイルのファイルIDを付与
するファイル更新ログ取得手段とを備えたことを特徴と
するファイル管理装置。
1. Information obtained by online processing by an information processing unit is acquired as a file update log for each fixed processing unit, an online file is updated using this file update log, and a failure occurs. Sometimes, in a file management device that recovers the file by the file update log, when the file is brought online, a file ID that is distinguishable from other files that have been brought online and the file that was previously made online is issued. File ID management means for performing an online request of the file, a file online means for adding the file ID to the file and bringing the file online, and the online processed information as a file update log When retrieving this file update log And a file update log acquisition means for assigning a file ID of a corresponding file that is brought online to the file management apparatus.
【請求項2】 請求項1記載のファイル管理装置におい
て、 前記オンライン処理を行う前記情報処理単位以外の処理
手段が、前記オンライン化されたファイルにアクセスす
ることを禁止するファイルアクセス管理手段を備えたこ
とを特徴とするファイル管理装置。
2. The file management device according to claim 1, further comprising a file access management unit that prohibits a processing unit other than the information processing unit that performs the online processing from accessing the online file. A file management device characterized by the above.
【請求項3】 請求項1又は2記載のファイル管理装置
において、 前記障害発生時に前記オンライン化されたファイルに付
与されたファイルIDを用い、これと同じファイルID
を有するファイル更新ログを前記ファイルの復旧に用い
るためのファイル更新ログとして検索するファイル更新
ログ検索手段とを備えたことを特徴とするファイル管理
装置。
3. The file management device according to claim 1, wherein a file ID assigned to the file brought online when the failure occurs is used, and the same file ID as that is used.
And a file update log search means for searching the file update log having the above as a file update log for use in recovering the file.
JP7121715A 1995-05-19 1995-05-19 File management device Pending JPH08314784A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7121715A JPH08314784A (en) 1995-05-19 1995-05-19 File management device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7121715A JPH08314784A (en) 1995-05-19 1995-05-19 File management device

Publications (1)

Publication Number Publication Date
JPH08314784A true JPH08314784A (en) 1996-11-29

Family

ID=14818093

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7121715A Pending JPH08314784A (en) 1995-05-19 1995-05-19 File management device

Country Status (1)

Country Link
JP (1) JPH08314784A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004017205A1 (en) * 2002-08-14 2004-02-26 Access Co., Ltd. Log recording method, file management program, and information device
JP2006012121A (en) * 2004-05-28 2006-01-12 Fujitsu Ltd Data backup system and method
JP2016224962A (en) * 2011-06-30 2016-12-28 マイクロソフト テクノロジー ライセンシング,エルエルシー Transparent failover
US10284626B2 (en) 2011-06-29 2019-05-07 Microsoft Technology Licensing, Llc Transporting operations of arbitrary size over remote direct memory access
US10630781B2 (en) 2011-09-09 2020-04-21 Microsoft Technology Licensing, Llc SMB2 scaleout
WO2020186786A1 (en) * 2019-03-20 2020-09-24 平安科技(深圳)有限公司 File processing method and apparatus, computer device and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004017205A1 (en) * 2002-08-14 2004-02-26 Access Co., Ltd. Log recording method, file management program, and information device
JP2006012121A (en) * 2004-05-28 2006-01-12 Fujitsu Ltd Data backup system and method
US10284626B2 (en) 2011-06-29 2019-05-07 Microsoft Technology Licensing, Llc Transporting operations of arbitrary size over remote direct memory access
JP2016224962A (en) * 2011-06-30 2016-12-28 マイクロソフト テクノロジー ライセンシング,エルエルシー Transparent failover
US10630781B2 (en) 2011-09-09 2020-04-21 Microsoft Technology Licensing, Llc SMB2 scaleout
WO2020186786A1 (en) * 2019-03-20 2020-09-24 平安科技(深圳)有限公司 File processing method and apparatus, computer device and storage medium

Similar Documents

Publication Publication Date Title
JP2531776B2 (en) How to recover your database
US6023710A (en) System and method for long-term administration of archival storage
JP2531894B2 (en) Data processing device
US6324548B1 (en) Database backup and recovery using separate history files for database backup and audit backup
CA2933790C (en) Apparatus and method for creating a real time database replica
US10235375B1 (en) Persistent file system objects for management of databases
US4819156A (en) Database index journaling for enhanced recovery
JP3050510B2 (en) Image data management device
US5740434A (en) System for maintenance of database integrity
JP2001356945A (en) Data backup recovery system
JPH06332778A (en) Method for transaction management
US5745674A (en) Management of units of work on a computer system log
JPH08314784A (en) File management device
CN120336088A (en) Snapshot rollback method, device, electronic device and storage medium
JP2000076110A (en) Recovery processing system in distributed file system
JP2820352B2 (en) Image data filing equipment
JPH033046A (en) Log recording management method
JPH0816881B2 (en) Database update method
JPH0844609A (en) Data backup method
US20060235903A1 (en) Method and system for retrieving deleted and overwritten documents
JP2708610B2 (en) Database log management processing method
JP3323524B2 (en) Optical disc difference information extraction method
JPH01140353A (en) Database data preservation method
JPS58168165A (en) Recovery system in data base system
JPH0823840B2 (en) Method and apparatus for updating database