JPH05108444A - Journal extraction system - Google Patents

Journal extraction system

Info

Publication number
JPH05108444A
JPH05108444A JP3269887A JP26988791A JPH05108444A JP H05108444 A JPH05108444 A JP H05108444A JP 3269887 A JP3269887 A JP 3269887A JP 26988791 A JP26988791 A JP 26988791A JP H05108444 A JPH05108444 A JP H05108444A
Authority
JP
Japan
Prior art keywords
journal
record
file device
data
management
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
JP3269887A
Other languages
Japanese (ja)
Inventor
Yuuji Motomori
雄二 本森
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 Software Kansai Ltd
Original Assignee
NEC Software Kansai Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Software Kansai Ltd filed Critical NEC Software Kansai Ltd
Priority to JP3269887A priority Critical patent/JPH05108444A/en
Publication of JPH05108444A publication Critical patent/JPH05108444A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To reduce journal capacity and to shorten data restoration time when data is destroyed in a file device by extracting only the final record content of the alteration request as against a record in the file device, which is outputted from a program, as a journal. CONSTITUTION:When there is the alteration request of the record as against the data file device 25 from the program 21, buffer management judges whether it can be processed in a buffer 22 or the record of the data file device 25 is to be really updated or not. At the time of really updating the record, journal management decides the storage place of a before journal and executes the instruction of the output of the before journal and the alteration of the record in the file device 25 to input/output management. The journal management decides the place where an after journal is stored after all the records which the program is altered are updated, and executes the instruction of the output of the after journal and the alteration of the record in the file device 25 to input/output management to release the before journal.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はファイル装置障害復旧に
利用するジャーナル採取方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a journal collection method used for file device failure recovery.

【0002】[0002]

【従来の技術】従来のジャーナル採取方式では、プログ
ラムからファイル装置内のレコードの内容を変更する要
求が出されると、入出力バッファの許容量に限界が達し
た時点,または変更要求の処理が完結した時点になった
都度、レコードの変更履歴としてジャーナルを書き出し
ていた。
2. Description of the Related Art In the conventional journal collection method, when a program issues a request to change the contents of a record in a file device, the processing of the change request is completed at the time when the capacity of the input / output buffer reaches its limit. Each time I did, I wrote a journal as a record of record changes.

【0003】[0003]

【発明が解決しようとする課題】従来のジャーナル採取
方式では、プログラムから出されたファイル装置内のレ
コードに対する変更要求の履歴としてジャーナル採取を
行い、プログラム異常・装置異常等によりファイル装置
内のデータ破壊が発生した時にはジャーナル採取の直前
にデータを復元した後、採取されたジャーナルレコード
を順に書き戻すことにより破壊されたファイル装置内の
データを復旧していた。
In the conventional journal collecting method, journals are collected as a history of change requests for records in the file device issued from a program, and data in the file device is destroyed due to a program error or device error. When a problem occurred, the data in the file device that was destroyed was restored by restoring the data just before the journal was collected and then writing back the collected journal records in order.

【0004】しかし、このジャーナル採取方式では、同
一レコードに対する変更要求が出された時もジャーナル
レコードが追加出力されるので、ジャーナルの容量は増
大する。これに比例してファイル装置内のデータ破壊が
発生した時のデータ復旧時間も延長することになる。
However, in this journal collection method, the journal record is additionally output even when a change request for the same record is issued, so the capacity of the journal increases. In proportion to this, the data recovery time when the data in the file device is destroyed is extended.

【0005】本発明は、プログラムから出されたファイ
ル装置内のレコードに対する変更要求の最終レコード内
容だけをジャーナルとして採取することにより、従来の
ジャーナル採取方式の欠点であるジャーナル容量を削減
し、ファイル装置内にデータ破壊が発生した時のデータ
復旧時間を短縮することを目的としている。
The present invention reduces the journal capacity, which is a drawback of the conventional journal collecting method, by collecting only the final record contents of the change request for the record in the file device issued from the program as a journal, The purpose is to shorten the data recovery time in the event of data corruption.

【0006】[0006]

【課題を解決するための手段】本発明のジャーナル採取
方式は、ファイル装置内のレコードが変更する時にジャ
ーナルレコードの格納場所を決定する手段と、ジャーナ
ルレコードを格納するジャーナルファイルの管理手段
と、前記ファイル装置内でデータ破壊が発生した時に変
更されたレコードに対応するジャーナルレコードを検索
する手段とを備える。
The journal collecting method of the present invention comprises means for deciding a storage location of a journal record when a record in a file device is changed, means for managing a journal file for storing the journal record, and And means for retrieving a journal record corresponding to a changed record when data destruction occurs in the file device.

【0007】[0007]

【実施例】次に本発明について図面を参照しながら説明
を行う。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0008】図1は本発明の一実施例を示す流れ図、図
2は動作の例を示す説明図である。
FIG. 1 is a flow chart showing an embodiment of the present invention, and FIG. 2 is an explanatory diagram showing an example of operation.

【0009】プログラム21からデータファイル装置2
5に対するレコードの参照要求が出されると、データフ
ァイル装置25に対するレコードの変更は発生しないの
で、ジャーナル管理は何も行わない。
From the program 21 to the data file device 2
When the record reference request for 5 is issued, the record is not changed for the data file device 25, so no journal management is performed.

【0010】プログラム21からデータファイル装置2
5に対するレコードの変更要求が出されると、バッファ
管理11は、バッファ23内で処理できるか,データフ
ァイル装置25のレコードの実更新を行うのか判断す
る。その結果、バッファ内で処理できる場合はジャーナ
ル管理は何も行わないが、バッファ内で処理できなくて
実更新を行う場合はジャーナル管理が更新前ジャーナル
の格納場所を決定し(12)、入出力管理に更新前ジャ
ーナルの出力,ファイル装置25内のレコードの変更の
指示を行う(13,14)。この状態でバッファ管理は
バッファ22内のブロック23を解放することができ
る。
From the program 21 to the data file device 2
When a record change request for 5 is issued, the buffer management 11 determines whether processing can be performed in the buffer 23 or whether the record of the data file device 25 is actually updated. As a result, if the buffer can be processed, the journal management does nothing, but if the buffer cannot be processed and the actual update is performed, the journal management determines the storage location of the pre-update journal (12), and the input / output is performed. The management is instructed to output the pre-update journal and change the record in the file device 25 (13, 14). In this state, the buffer management can release the block 23 in the buffer 22.

【0011】プログラム21からデータファイル装置2
5に対するレコードの変更要求が完結した指示が出され
ると、ジャーナル管理はそのプログラムが変更した全て
のレコードの更新後ジャーナルを格納する場所を決定し
(15)、入出力管理に更新後ジャーナルの出力,ファ
イル装置25内のレコードの変更の指示を行った後で、
更新前ジャーナル解放を行う(16,17,18)。
From the program 21 to the data file device 2
When the instruction to complete the record change request to 5 is issued, the journal management decides the place to store the updated journals of all the records changed by the program (15), and outputs the updated journals to the I / O management. , After instructing to change the record in the file device 25,
The journal before update is released (16, 17, 18).

【0012】図3はジャーナルの管理方法の例を示す説
明図である。
FIG. 3 is an explanatory diagram showing an example of a journal management method.

【0013】データファイル33内のデータレコード3
8を変更する場合に変更が完結していない状態でデータ
レコード38が実更新されると、更新前のジャーナルが
必要になる。また、データレコードの変更が完結した後
は、更新後のジャーナルが必要になる。
Data record 3 in the data file 33
If the data record 38 is actually updated in the state where the change is not completed when changing 8, the journal before the update is required. Also, after the data record change is completed, the updated journal is required.

【0014】そこで、ジャーナルファイル32には、先
方から更新後ジャーナル35,後方から更新前ジャーナ
ル36を書き込む。ジャーナル管理は、各ジャーナルフ
ァイル32に付番されたジャーナル番号の付いたジャー
ナル管理テーブル31内の更新後ジャーナル番号・更新
前ジャーナル番号によってジャーナルファイルのブロッ
ク34の格納範囲を管理している。
Therefore, in the journal file 32, the post-update journal 35 is written from the other side, and the pre-update journal 36 is written from the rear side. The journal management manages the storage range of the block 34 of the journal file by the post-update journal number / pre-update journal number in the journal management table 31 with the journal number added to each journal file 32.

【0015】これらのジャーナルファイル32内のジャ
ーナルレコード37とデータファイル33内のデータレ
コード38は、ジャーナル管理テーブル31内のジャー
ナルのブロックが有効であるかを表す有無区分・ジャー
ナルブロックの論理番号・ジャーナルファイル内に格納
されているブロックの物理アドレスと、データレコード
38内のジャーナル情報が対応付けられている。これに
よってジャーナルレコード格納場所を決定し、変更され
たデータレコードに対応するジャーナルレコードを検索
する。
The journal record 37 in the journal file 32 and the data record 38 in the data file 33 indicate whether the journal block in the journal management table 31 is valid or not, the logical number of the journal block, and the journal. The physical address of the block stored in the file is associated with the journal information in the data record 38. This determines the journal record storage location and retrieves the journal record corresponding to the changed data record.

【0016】これらのジャーナル管理により、データフ
ァイル内のデータレコードを変更中のいかなる状態でプ
ログラム異常・装置異常等によりファイル装置内のデー
タ破壊が発生しても、更新前または更新後ジャーナルレ
コードからデータの復旧を行うことができる。
By these journal management, even if the data in the file device is destroyed due to a program error, device error, etc. in any state while changing the data record in the data file, the data from the journal record before or after the update is updated. Can be restored.

【0017】[0017]

【発明の効果】以上説明してきたように本発明によれ
ば、変更された最終レコードの内容だけをジャーナルに
採取するので、更新後ジャーナルの容量を削減すること
ができ、ファイル資源の削減をおこなうことができる。
また、更新後ジャーナルの容量を削減できるので、更新
後ジャーナルからのデータ復旧処理時間を短縮できる。
As described above, according to the present invention, since only the contents of the changed final record are collected in the journal, it is possible to reduce the capacity of the updated journal and reduce the file resource. be able to.
Further, since the capacity of the updated journal can be reduced, the data recovery processing time from the updated journal can be shortened.

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

【図1】本発明の一実施例を示す流れ図。FIG. 1 is a flow chart showing an embodiment of the present invention.

【図2】動作の例を示す説明図。FIG. 2 is an explanatory diagram showing an example of operation.

【図3】ジャーナルの管理方法の例を示す説明図。FIG. 3 is an explanatory diagram showing an example of a journal management method.

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

11〜18 処理のステップ 21 プログラム 22 入出力バッファ 23 ブロック 24 ジャーナルファイル装置 25 データファイル装置 11-18 Steps of processing 21 Program 22 Input / output buffer 23 Block 24 Journal file device 25 Data file device

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ファイル装置内のレコードが変更する時
にジャーナルレコードの格納場所を決定する手段と、ジ
ャーナルレコードを格納するジャーナルファイルの管理
手段と、前記ファイル装置内でデータ破壊が発生した時
に変更されたレコードに対応するジャーナルレコードを
検索する手段とを備えることを特徴とするジャーナル採
取方式。
1. A means for determining a storage location of a journal record when a record in a file device is changed, a means for managing a journal file for storing a journal record, and a means for changing when a data corruption occurs in the file device. And a means for retrieving a journal record corresponding to the selected record.
JP3269887A 1991-10-18 1991-10-18 Journal extraction system Pending JPH05108444A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3269887A JPH05108444A (en) 1991-10-18 1991-10-18 Journal extraction system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3269887A JPH05108444A (en) 1991-10-18 1991-10-18 Journal extraction system

Publications (1)

Publication Number Publication Date
JPH05108444A true JPH05108444A (en) 1993-04-30

Family

ID=17478601

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3269887A Pending JPH05108444A (en) 1991-10-18 1991-10-18 Journal extraction system

Country Status (1)

Country Link
JP (1) JPH05108444A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0836515A (en) * 1994-07-25 1996-02-06 Nec Corp File restoration system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0836515A (en) * 1994-07-25 1996-02-06 Nec Corp File restoration system

Similar Documents

Publication Publication Date Title
US7472139B2 (en) Database recovery method applying update journal and database log
US7457822B1 (en) Apparatus and method for hardware-based file system
JPH07175700A (en) Database management system
US9411692B2 (en) Applying write elision
US8086580B2 (en) Handling access requests to a page while copying an updated page of data to storage
JPH039494B2 (en)
JPH033046A (en) Log record control system
JPH05108444A (en) Journal extraction system
JPH0816881B2 (en) Database update method
JPH0594356A (en) On-memory table data fault restoration system
JP2822869B2 (en) Library file management device
JPH0287242A (en) Saving and recovering system for data base
CN116483284B (en) Method, device, medium and electronic equipment for reading and writing virtual hard disk
JPS63262737A (en) Data base updating and recording processing method
JPH0443441A (en) Log control processing system for data base
CN118012669A (en) File metadata recovery system and method for distributed file system
JP3368378B2 (en) Storage content management method and data processing device
JPH01140353A (en) System for maintaining data in data base
JP2776608B2 (en) Reformat processing method of auxiliary storage device
JP2933011B2 (en) Exclusive file control system
JPH10143406A (en) File managing device
JP2690700B2 (en) Database file recovery method
JPH04209044A (en) Data base control system
JPH0259837A (en) Data recovery processing system
JPH0259838A (en) File restoring system applying optimization of storing position for file restoring information