JPH04309145A - Data file control system - Google Patents

Data file control system

Info

Publication number
JPH04309145A
JPH04309145A JP3073487A JP7348791A JPH04309145A JP H04309145 A JPH04309145 A JP H04309145A JP 3073487 A JP3073487 A JP 3073487A JP 7348791 A JP7348791 A JP 7348791A JP H04309145 A JPH04309145 A JP H04309145A
Authority
JP
Japan
Prior art keywords
data
updated
data file
block
journal
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
JP3073487A
Other languages
Japanese (ja)
Inventor
Masaru Saijo
西條 賢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HOKKAIDO NIPPON DENKI SOFTWARE KK
NEC Solution Innovators Ltd
Original Assignee
HOKKAIDO NIPPON DENKI SOFTWARE KK
NEC Software Hokkaido Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by HOKKAIDO NIPPON DENKI SOFTWARE KK, NEC Software Hokkaido Ltd filed Critical HOKKAIDO NIPPON DENKI SOFTWARE KK
Priority to JP3073487A priority Critical patent/JPH04309145A/en
Publication of JPH04309145A publication Critical patent/JPH04309145A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To shorten time required for recovering a data file. CONSTITUTION:When a work program 10 outputs a data processing request, a data processing means 20 inputs/outputs data between a data file 90 and a buffer 70 by a data input/output means 80, when the data are updated, the information is outputted to an updated data file 40, and the updated image is outputted to an updated data journal file 60. The data file 90 is saved onto a saved data file 120. When recovering the data file 90 by using the saved data file 120 and the updated data journal file 60 in the case of generating the fault at the data file 90, the updated data file 40 is read, updated block information 200 is prepared, the saved data file 120 is read and compared with the updated block information 200 at a block judging means 150 and only when the block is updated, the data file 90 is written back by a restore processing means 140.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、データファイル制御方
式に関し、特に情報処理システムにおけるデータベース
の運用技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data file control system, and more particularly to a database operation technique in an information processing system.

【0002】0002

【従来の技術】コンピュータが社会に広く使われ、デー
タベースの利用される範囲が広くなるにつれ、データベ
ースシステムの信頼性が重要になっている。しかし、ソ
フトのミスやハード障害などによりデータファイルの障
害は発生する場合があり、データファイルの復旧対策も
必要となっている。
2. Description of the Related Art As computers are widely used in society and databases are used in a wider range of applications, the reliability of database systems has become important. However, data file failures may occur due to software errors or hardware failures, and data file recovery measures are also required.

【0003】従来のデータファイルの制御方式は図7を
参照して説明すると、データの処理を指示する業務処理
プログラム710からの指示により、データベース処理
手段720がデータ入出力手段760を介してバッファ
750とデータファイル770の制御を行う。データフ
ァイル770の更新が行われる場合には、ジャーナル出
力手段730により更新後データが、更新後データジャ
ーナルファイル740に書き出される。
A conventional data file control system will be described with reference to FIG. and controls the data file 770. When the data file 770 is updated, the journal output means 730 writes the updated data to the updated data journal file 740.

【0004】障害が発生した場合は、データファイル7
70を退避データファイル800で置き換え、さらに置
き換えを行ったデータファイル770を最新の状態に戻
すため、復旧プログラム830からの指示により更新後
データジャーナルファイル740をジャーナル入力手段
850により読み込み、データファイル770を退避し
た時点からの更新イメージを全て辿ることにより、最新
の状態まで復旧している。
[0004] When a failure occurs, the data file 7
70 with the saved data file 800, and in order to return the replaced data file 770 to the latest state, the updated data journal file 740 is read by the journal input means 850 according to instructions from the recovery program 830, and the data file 770 is By tracing all the updated images from the time of backup, the system is restored to the latest state.

【0005】[0005]

【発明が解決しようとする課題】上述した従来のデータ
ベース技術では、全てのブロックに対して行われた更新
イメージを辿るため、データファイルを退避した時点か
らの更新量が多くなると、データファイルの復旧に時間
が多くかかってしまうという欠点がある。
[Problems to be Solved by the Invention] In the conventional database technology described above, since update images performed on all blocks are traced, if the amount of updates from the time when the data file was saved increases, it becomes difficult to restore the data file. The disadvantage is that it takes a lot of time.

【0006】そこで、本発明ではデータファイルの復旧
に要する時間を短くすることにより、システムの稼動性
と保守性を高くすることを目的としたデータファイルの
制御方式を提供する。
Accordingly, the present invention provides a data file control method that aims to improve system operability and maintainability by shortening the time required to restore data files.

【0007】[0007]

【課題を解決するための手段】本発明のデータファイル
の制御方式は業務プログラムからのデータ処理要求を受
け取り制御を行うデータ処理手段と、データファイルの
内容をブロック単位にバッファへ読み込み処理とバッフ
ァ内の内容をブロック単位にデータファイルに書き出す
データ入出力手段と、更新命令の場合に更新後ジャーナ
ルを更新後データジャーナルファイルに書き出すジャー
ナル出力手段と、各ブロックを単位として情報を管理し
ている更新データファイルと、更新したブロックに対応
する識別情報を更新データファイルに書き出す更新デー
タ出力手段と、データファイルを補助記憶装置上の退避
データファイルに保存するための制御を行う保存処理手
段と、データファイルの内容をブロック単位に出力する
ブロック出力手段と、データファイルに障害が発生した
場合に、復旧プログラムの要求で復旧の制御を行う復旧
処理手段、更新データファイルから更新ブロック情報を
メモリに読み込む更新データ入力手段と、退避データフ
ァイルからブロックを読み込むブロック入力手段と、読
み込んだブロックと更新ブロック情報を比較して更新ブ
ロックであるか判断するブロック判断手段と、更新ブロ
ックをデータファイルに書き戻すリストア処理手段と、
更新後データジャーナルファイルから更新後ジャーナル
を読み込むジャーナル入力手段と、更新ブロック情報と
更新後ジャーナルを比較して更新ブロックに関するジャ
ーナルを判断するジャーナル判断手段とを有している。
[Means for Solving the Problems] The data file control method of the present invention includes a data processing means that receives a data processing request from a business program and performs control; data input/output means that writes the contents of the block to a data file in block units; journal output means that writes the updated journal to the updated data journal file in the case of an update command; and update data that manages information in units of blocks. an update data output means for writing a file and identification information corresponding to the updated block to an update data file; a storage processing means for controlling saving the data file to a save data file on an auxiliary storage device; A block output means that outputs the contents block by block, a recovery processing means that controls recovery according to the request of the recovery program when a failure occurs in the data file, and an update data input that reads update block information from the update data file into memory. block input means for reading a block from a saved data file; block determination means for comparing the read block with updated block information to determine whether it is an updated block; and restore processing means for writing the updated block back into the data file. ,
It has a journal input means for reading an updated journal from an updated data journal file, and a journal determining means for comparing updated block information and the updated journal to determine a journal related to an updated block.

【0008】[0008]

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

【0009】図1は本発明の一実施例を示すブロック図
である。図1において本発明の一実施例は、業務プログ
ラム10からのデータ処理要求を受け取り制御を行うデ
ータ処理手段20を有しており、データ入出力手段80
、更新データ出力手段30およびジャーナル出力手段5
0に接続されている。データ入出力手段80はデータフ
ァイル90の内容をブロック単位にバッファへ読み込み
処理とバッファ内に内容をブロック単位にデータファイ
ル90に書き出す処理を有している。ジャーナル出力手
段50は、更新命令の場合に更新後ジャーナルを更新後
データジャーナルファイル60に書き出す。更新データ
出力手段は各ブロックを単位として情報を管理している
更新データファイル40に接続されており、更新したブ
ロックに対応する識別情報をこのデータファイル40に
書き出す。保存処理手段100はデータファイル90を
補助記憶装置上の退避データファイル120に保存する
ための制御を行う。ブロック出力手段110はデータフ
ァイル90の内容をブロック単位に出力し、退避データ
ファイル120に出力する。復旧処理手段100はデー
タファイルに障害が発生した場合に、復旧プログラムの
要求で復旧の制御を行う。更新データ入力手段210は
更新データファイル40から更新ブロック情報をメモリ
に読み込む。ブロック入力手段130は退避データファ
イル120からブロックを読み込み、ブロック判断手段
150は読み込んだブロックと更新ブロック情報を比較
して更新ブロックであるか判断する。リストア処理手段
は更新ブロックをデータファイル90に書き戻す。ジャ
ーナル入力手段190は更新後データジャーナルファイ
ル60から更新後ジャーナルを読み込む。ジャーナル判
断手段は更新ブロック情報と更新後ジャーナルを比較し
て更新ブロックに関するジャーナルを判断する。
FIG. 1 is a block diagram showing one embodiment of the present invention. In FIG. 1, one embodiment of the present invention has a data processing means 20 that receives and controls data processing requests from a business program 10, and a data input/output means 80.
, update data output means 30 and journal output means 5
Connected to 0. The data input/output means 80 has a process of reading the contents of the data file 90 into the buffer in units of blocks and a process of writing the contents in the buffer to the data file 90 in units of blocks. The journal output means 50 writes the updated journal to the updated data journal file 60 in the case of an update command. The update data output means is connected to an update data file 40 that manages information for each block, and writes identification information corresponding to the updated block to this data file 40. The storage processing means 100 performs control to save the data file 90 to a save data file 120 on the auxiliary storage device. The block output means 110 outputs the contents of the data file 90 block by block, and outputs it to the save data file 120. The recovery processing means 100 controls recovery in response to a request from a recovery program when a failure occurs in a data file. Update data input means 210 reads update block information from update data file 40 into memory. The block input means 130 reads a block from the saved data file 120, and the block determination means 150 compares the read block with updated block information to determine whether it is an updated block. The restore processing means writes the updated block back to the data file 90. The journal input means 190 reads the updated journal from the updated data journal file 60. The journal determining means compares the updated block information and the updated journal to determine the journal related to the updated block.

【0010】次に本発明の一実施例の動作を説明する。 本実施例は、業務プログラム10がデータ処理要求を出
すと、データ処理手段20に制御が移り、データの入出
力が必要な場合にはデータ入出力手段80によりデータ
ファイル90とバッファ70の間でブロックの入出力が
行われる。データの更新がある場合には、データファイ
ル90中の各ブロックが更新ブロックであるかを示すビ
ットマップになっている更新ブロック情報を更新データ
ファイル40に出力し、更新イメージを更新後データジ
ャーナルファイル60に出力する。
Next, the operation of one embodiment of the present invention will be explained. In this embodiment, when the business program 10 issues a data processing request, control is transferred to the data processing means 20, and when data input/output is required, the data input/output means 80 performs data processing between the data file 90 and the buffer 70. Block input/output is performed. When data is updated, update block information in the form of a bitmap indicating whether each block in the data file 90 is an update block is output to the update data file 40, and the update image is stored in the post-update data journal file. Output to 60.

【0011】図2はデータ更新の場合のデータ入出力、
更新データ出力、更新後ジャーナル出力の関係を示した
ものであり、図3はデータ処理を示すフローである。
FIG. 2 shows data input/output in the case of data update.
This shows the relationship between update data output and post-update journal output, and FIG. 3 is a flowchart showing data processing.

【0012】データファイル90の退避は保存処理手段
100により行われ、ブロック出力手段110により退
避データファイル120上にデータを格納する。データ
ファイル90に障害が発生し、退避データファイル12
0と更新後データジャーナルファイル40を用いて復旧
をする場合、更新データ入力手段210が更新データフ
ァイル40の読み込みを行いメモリ上に更新ブロック情
報200を作成し、ブロック入力手段130により退避
データファイル120の読み込みを行い、ブロック判断
手段150において更新ブロック情報200との比較が
行われ、更新ブロックである場合のみリストア処理手段
140によりデータファイル90に書き戻される。
The data file 90 is saved by the save processing means 100, and the block output means 110 stores the data in the save data file 120. A failure occurs in the data file 90, and the evacuation data file 12
0 and the updated data journal file 40, the update data input means 210 reads the update data file 40, creates update block information 200 on memory, and the block input means 130 reads the updated data file 120. The block determining means 150 compares the updated block information 200 with the updated block information 200, and the restore processing means 140 writes back to the data file 90 only if the block is an updated block.

【0013】図5にはブロック判断手段150の処理詳
細フローを示す。ジャーナル入力手段190が更新後デ
ータジャーナルファイル60からジャーナルを読み、ジ
ャーナル判断手段180で更新ブロック情報との比較を
行い、更新ブロックのデータに関するジャーナルの場合
のみ復旧処理手段170に制御を移して復旧処理を行う
。図6にジャーナル判断手段180の処理詳細のフロー
を示す。全ての更新後ジャーナルの読み込みが終わった
時点で復旧を完了する。図4は復旧処理のフローを示す
FIG. 5 shows a detailed processing flow of the block determining means 150. The journal input means 190 reads the journal from the updated data journal file 60, the journal judgment means 180 compares it with the updated block information, and transfers control to the recovery processing means 170 to perform recovery processing only if the journal is related to the updated block data. I do. FIG. 6 shows a detailed processing flow of the journal determining means 180. Recovery is completed when all post-update journals have been read. FIG. 4 shows the flow of recovery processing.

【0014】[0014]

【発明の効果】本発明は、情報処理システムのデータベ
ース技術に関するもので、データファイルの退避を行っ
た時点からのデータ更新が多い場合でも、障害発生時に
更新中であったブロックのみを復旧の対象とするため、
データファイルの復旧に要する時間を短く済ませること
が可能となり、システムの稼動性及び保守性の低下を防
ぐ効果を得ることができる。
[Effects of the Invention] The present invention relates to database technology for information processing systems, and even if there are many data updates from the time the data file was evacuated, only the blocks that were being updated at the time of failure are subject to recovery. In order to
It becomes possible to shorten the time required to restore data files, and it is possible to obtain the effect of preventing a decline in system operability and maintainability.

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

【図1】本発明の一実施例を示す図である。FIG. 1 is a diagram showing an embodiment of the present invention.

【図2】データ更新の場合のデータ入出力、更新データ
出力、更新後ジャーナル出力の関係を示す図である。
FIG. 2 is a diagram showing the relationship between data input/output, update data output, and post-update journal output in the case of data update.

【図3】データ処理のフローを示す図である。FIG. 3 is a diagram showing the flow of data processing.

【図4】復旧処理のフローを示す図である。FIG. 4 is a diagram showing a flow of recovery processing.

【図5】ブロック判断手段の処理フローを示す図である
FIG. 5 is a diagram showing a processing flow of block determining means.

【図6】ジャーナル判断手段の処理フローを示す図であ
る。
FIG. 6 is a diagram showing a processing flow of journal determining means.

【図7】従来のデータファイル制御方式を示す図である
FIG. 7 is a diagram showing a conventional data file control method.

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

10    業務プログラム 20    データ処理手段 30    更新データ出力手段 40    更新データファイル 50    ジャーナル出力手段 60    更新後データジャーナルファイル70  
  バッファ 80    データ入出力手段 90    データファイル 100    セーブ処理手段 110    ブロック出力手段 120    退避データファイル 130    ブロック入力手段 140    リストア処理手段 150    ブロック判断手段 160    復旧プログラム 170    復旧処理手段 180    ジャーナル判断手段 190    ジャーナル入力手段 200    更新ブロック情報 210    更新データ入力手段
10 Business program 20 Data processing means 30 Update data output means 40 Update data file 50 Journal output means 60 Updated data journal file 70
Buffer 80 Data input/output means 90 Data file 100 Save processing means 110 Block output means 120 Saved data file 130 Block input means 140 Restore processing means 150 Block judgment means 160 Recovery program 170 Recovery processing means 180 Journal judgment means 190 Journal input means 200 Update Block information 210 Update data input means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  業務プログラムからのデータ処理要求
を受け取り処理を行うデータ処理手段と、データファイ
ルの内容をブロック単位にバッファへ読み込み処理とバ
ッファ内の内容をブロック単位にデータファイルへ書き
出すデータ入出力手段と、データの更新がある場合に更
新後のデータを更新後データジャーナルファイルに書き
出すジャーナル出力手段と、各ブロックを単位として情
報を管理している更新データファイルと、更新したブロ
ックに対応する識別情報を更新データファイルに書き出
す更新データ出力手段と、データファイルを補助記憶装
置上に退避データファイルに保存するための制御を行う
保存処理手段と、データファイルの内容をブロック単位
に出力するブロック出力手段と、データファイルに障害
が発生した場合に、復旧プログラムの要求で復旧の制御
を行う復旧処理手段と、更新データファイルから更新ブ
ロック情報をメモリに読み込む更新データ入力手段と、
退避データファイルからブロックを読み込むブロック入
力手段と、読み込んだブロックと更新ブロック情報を比
較するブロック判断手段と、更新ブロックの退避データ
をデータファイルに書き出すリストア手段と、更新後デ
ータジャーナルファイルから更新後ジャーナルを読み込
むジャーナル入力手段と、更新ブロック情報と更新後ジ
ャーナルを比較するジャーナル判断手段とを含み、障害
発生時に高速復旧することを特徴とするデータファイル
制御方式。
Claim 1: A data processing means that receives and processes data processing requests from a business program, a data input/output device that reads the contents of a data file into a buffer in blocks, and writes the contents of the buffer to a data file in blocks. a journal output means for writing updated data to an updated data journal file when data is updated; an updated data file that manages information on a block-by-block basis; and an identification corresponding to the updated block. An update data output means for writing information to an update data file, a storage processing means for controlling to save the data file to an evacuation data file on an auxiliary storage device, and a block output means for outputting the contents of the data file in blocks. a recovery processing means for controlling recovery in response to a request from a recovery program when a failure occurs in the data file; and an update data input means for reading update block information from the update data file into memory;
A block input means for reading a block from a saved data file, a block judgment means for comparing the read block and updated block information, a restore means for writing saved data of an updated block to a data file, and an updated journal from an updated data journal file. 1. A data file control method characterized by comprising a journal input means for reading a journal, and a journal judgment means for comparing updated block information with an updated journal, and is characterized by high-speed recovery in the event of a failure.
JP3073487A 1991-04-08 1991-04-08 Data file control system Pending JPH04309145A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3073487A JPH04309145A (en) 1991-04-08 1991-04-08 Data file control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3073487A JPH04309145A (en) 1991-04-08 1991-04-08 Data file control system

Publications (1)

Publication Number Publication Date
JPH04309145A true JPH04309145A (en) 1992-10-30

Family

ID=13519688

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3073487A Pending JPH04309145A (en) 1991-04-08 1991-04-08 Data file control system

Country Status (1)

Country Link
JP (1) JPH04309145A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002278819A (en) * 2001-03-21 2002-09-27 Toshiba Corp Generation management method for snap shot image, storage medium and generation management system
US7689611B2 (en) 2000-02-02 2010-03-30 Hitachi, Ltd. Method of and a system for recovering data in an information processing system
US8436735B2 (en) 2007-02-12 2013-05-07 Radio Systems Corporation System for detecting information regarding an animal and communicating the information to a remote location

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7689611B2 (en) 2000-02-02 2010-03-30 Hitachi, Ltd. Method of and a system for recovering data in an information processing system
JP2002278819A (en) * 2001-03-21 2002-09-27 Toshiba Corp Generation management method for snap shot image, storage medium and generation management system
US8436735B2 (en) 2007-02-12 2013-05-07 Radio Systems Corporation System for detecting information regarding an animal and communicating the information to a remote location

Similar Documents

Publication Publication Date Title
US5193154A (en) Buffered peripheral system and method for backing up and retrieving data to and from backup memory device
US7991749B2 (en) Database recovery method applying update journal and database log
JP4422016B2 (en) Method and apparatus for creating a virtual data copy
JP4419884B2 (en) Data replication apparatus, method, program, and storage system
US5241670A (en) Method and system for automated backup copy ordering in a time zero backup copy session
US6061769A (en) Data set backup in a shared environment
US20040168034A1 (en) Storage apparatus and its management method
US20030140204A1 (en) Instant virtual copy technique with expedited creation of backup dataset inventory from source dataset inventory
JP2003223287A (en) Storage device, backup method of the same, and program therefor
JPH04139544A (en) Data restoring method
JPH04309145A (en) Data file control system
CN115658391A (en) Backup recovery method of WAL mechanism based on QianBase MPP database
JP2001188690A (en) Computer system and checkpoint information preserving method
JPS62125452A (en) Data back-up system for storage device
JPS63187347A (en) Data base file recovering system
JPH02257228A (en) File control system for data base system
JPH0436421B2 (en)
JP2806779B2 (en) Journal block recovery method and journal block recovery method
JPS60261079A (en) Maintenance system of magnetic disc
JPH01180651A (en) Commit synchronization control system for report file output
JPH04342041A (en) Backup maintenance method for computer system
JPH0330033A (en) File copying processor
JP2776608B2 (en) Reformat processing method of auxiliary storage device
JPS6389944A (en) Managing system for file updating history
JPS644211B2 (en)