JPS63220338A - Data base updating journal acquisition system - Google Patents

Data base updating journal acquisition system

Info

Publication number
JPS63220338A
JPS63220338A JP62055744A JP5574487A JPS63220338A JP S63220338 A JPS63220338 A JP S63220338A JP 62055744 A JP62055744 A JP 62055744A JP 5574487 A JP5574487 A JP 5574487A JP S63220338 A JPS63220338 A JP S63220338A
Authority
JP
Japan
Prior art keywords
journal
database
data base
update
database update
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
JP62055744A
Other languages
Japanese (ja)
Inventor
Hiroshi Ogawa
博史 小川
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 JP62055744A priority Critical patent/JPS63220338A/en
Publication of JPS63220338A publication Critical patent/JPS63220338A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce a data base preupdating information journal by leading temporary normal end journal in a relief unit into a system. CONSTITUTION:A work processor 1 has a function for executing work processing while referring and updating a data base and a data base storing device 2 stores a data base. A data base updating journal acquiring device 3 outputs a data base updating journal to a data base updating journal storing device 5 while interlocking with the movement of the processor 1 and the device 5 stores the data base updating journal. When a fault is generated in the processor 1, a data base restoring device 4 restores the data base on the basis of the data base updating journal stored in the device 5. Consequently, efficient data base restoration can be attained.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データベースを有する計算機システムにおけ
る障害発生時のデータベース復旧のための、データベー
ス更新ジャーナル取得方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a database update journal acquisition method for database recovery when a failure occurs in a computer system having a database.

〔従来の技術〕[Conventional technology]

従来のデータベース更新ジャーナル取得方式では、デー
タベース更新後、情報ジャーナルと共にデータベース更
新前情報ジャーナルを、総てデータベース更新ジャーナ
ル格納装置へ出力していた。
In the conventional database update journal acquisition method, after the database is updated, the information journal and the pre-database update information journal are all output to the database update journal storage device.

従来のデータベース更新ジャーナル取得方式のデ説明す
る。
The conventional database update journal acquisition method will be explained.

従来のデータベース更新ジャーナル取得方式では、ジャ
ーナルの種類として、 m  球済単位開始ジャーナル、12)データベース更
新前情報ジャーナル、(3)  データベース更新後情
報ジャーナル、(4)球済単位正常終了ジャーナル、(
5)球済単位異常終了ジャーナルがあり、すべてのデー
タベース更新前後情報を取得している。
In the conventional database update journal acquisition method, the types of journals are: m completed unit start journal, 12) database update information journal, (3) database update information journal, (4) completed unit normal end journal, (
5) There is a completed unit abnormal termination journal, which obtains information before and after all database updates.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述したように、従来のデータベース史進ジャーナル取
得方式では、すべてのデータ更進前後情報金取得してい
るため、大量のデータベース更新を行なう計算機システ
ムでは、データベース更新ジャーナルが大量に発生する
という欠点がある。
As mentioned above, in the conventional database history journal acquisition method, all data before and after update information is acquired, so in a computer system that updates a large number of databases, a large number of database update journals are generated. be.

本発明の目的は、上記欠点を除去し効率の良いデータベ
ースの復+1図ることのできるデータベーン更新ジャー
ナル取得方式を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a data vane update journal acquisition method that can eliminate the above-mentioned drawbacks and achieve efficient database restoration.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のデータベース更新ジャーナル取得方式の構成は
、データベースを有する計算機システムに於いて、デー
タベース更新ジャーナルとしてデータベース更新前情報
ジャーナルを取得せず、救済単位仮正常終了ジャーナル
を取得する機能を持つデータベース更新ジャーナル取得
装置、およびデータベース更新前情報ジャーナルがなく
、救済単位仮正常終了ジャーナルが存在するデータベー
ス更新ジャーナルをもとにデータベースを復元する機能
を持つデータベース復元装置とを含むことを特徴とする
The configuration of the database update journal acquisition method of the present invention is such that in a computer system having a database, a database update journal that has a function of acquiring a relief unit provisional normal termination journal without acquiring a database pre-update information journal as a database update journal. The present invention is characterized in that it includes an acquisition device, and a database restoration device having a function of restoring a database based on a database update journal in which there is no database pre-update information journal and in which a relief unit temporary normal termination journal exists.

〔実施例〕 次に、本発明について図面を参照して説明する。〔Example〕 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例の構成要素を示した図である
FIG. 1 is a diagram showing the components of an embodiment of the present invention.

業務処理装置IFi、データベースを参照更新しながら
業務処理を行なう機能を持つ処理装置、データベース格
納装#t2け、データベース全格納スるための外部記憶
装置、データベース更新ジャーナル取得装置3は、業務
処理装置の動きに連動してデータベース更新ジャーナル
をデータベース更新ジャーナル格納装置5へ出力する装
置、データベース更新ジャーナル格納装置5は、データ
ベース更新ジャーナルを格納するための外部記憶装置、
データベース復元装fN4は、業務処理装置に障害が発
生した時に、データベース更新ジャーナル格納装置5の
データベース更新ジャーナル金もとにしてデータベース
を復元する機能を持つ装置である。
A business processing device IFi, a processing device that has the function of performing business processing while referencing and updating a database, a database storage device #t2, an external storage device for storing the entire database, and a database update journal acquisition device 3 are business processing devices. The database update journal storage device 5 is an external storage device for storing the database update journal.
The database restoration device fN4 is a device that has a function of restoring the database based on the database update journal money in the database update journal storage device 5 when a failure occurs in the business processing device.

第2図Fi第1図のデータベース更新ジャーナル取得装
置3の動きを中心としたフローチャートである。ここで
いう救済単位とは、データベース更新時にシステム・ダ
ウン等の障害が発生した場合に、データベースの状態を
復元することを保証する単位のことをいう。
FIG. 2 is a flowchart mainly showing the operation of the database update journal acquisition device 3 of FIG. 1. The term "relief unit" as used herein refers to a unit that guarantees that the database state can be restored in the event that a failure such as a system down occurs during database update.

以下に、本実施例の処理の流れを第2図の■〜■に従っ
て、順を追って説明する。
The processing flow of this embodiment will be explained below in accordance with (1) to (2) in FIG. 2.

■ 救済単位開始 データベースの更新に先立って、救済単位の開始を宣言
する。
■ Declare the start of a relief unit prior to updating the relief unit start database.

■ データベース読込み データベースのデータを、データベース入出力バッファ
上に読込む。
■ Database reading Reads database data onto the database input/output buffer.

■ データベース更新 データベースのデータを、データベース入出力バッファ
上でのみ更新する。
■ Database update Update database data only on the database input/output buffer.

■ 救済単位終了 データベースの救済単位の終了を宣言する。■ End of relief unit Declare the end of the database relief unit.

救済単位終了を契機として、 ■〜■を動作させる。With the end of the relief unit, Operate ■~■.

■ 救済単位開始ジャーナル取得 救済単位開始ジャーナルを、データベース更新ジャーナ
ル格納装置へ出力する。
■ Acquisition of relief unit start journal Output the relief unit start journal to the database update journal storage device.

■ データベース更新後情報ジャーナル取得データベー
ス更新後情報ジャーナルを、データベース更新ジャーナ
ル格納装置へ出力する。
■ Obtain post-database update information journal Output the post-database update information journal to the database update journal storage device.

■ 救済単位正常終了ジャーナル取得 救済単位正常終了ジャーナルを、データベース更新ジャ
ーナル格納装置へ出力する。
■ Acquisition of relief unit normal termination journal Output the relief unit normal termination journal to the database update journal storage device.

■ データベース実更新 ■の契機で、データベース入出力バッファ上で更新した
データを、データベース上に実更新する。
■ Actual database update ■ At the trigger of ■, the data updated on the database input/output buffer is actually updated on the database.

■ 救済単位正常終了ジャーナル取得 救済単位正常終了ジャーナルを、データベース更新ジャ
ーナル格納装置へ出力する。
■ Acquisition of relief unit normal termination journal Output the relief unit normal termination journal to the database update journal storage device.

従来の方式では、救済単位開始ジャーナル取得後に、デ
ータベース更新前情報ジャーナルを取得していた。救済
単位仮正常終了ジャーナルは、本実施例のデータベース
更新ジャーナル取得方式で追加したものである。
In the conventional method, the database pre-update information journal was acquired after the relief unit start journal was acquired. The relief unit provisional normal termination journal is added in the database update journal acquisition method of this embodiment.

仮に、■のデータベース実更新時にシステムダウンが発
生した場合のデータベース復元の方式において、従来の
方式と新方式とを比較すると、従来の方式では、データ
ベース更新ジャーナル格納装置には、救済単位仮正常終
了ジャーナルがないために、データベース更新後情報ジ
ャーナルまでしか出力されておらず、仁の救済単位は正
常終了していないものと判断し、データベース更新前情
報ンヤーナルによりデータベースを更新し、データベー
スを救済単位開始時の状態に戻す。
Comparing the conventional method and the new method for restoring the database in the event of a system down during the actual database update in (■), we find that in the conventional method, the database update journal storage device stores information about temporary normal completion of the rescue unit. Since there is no journal, only the post-database update information journal has been output, and it is determined that Jin's relief unit has not ended normally, so the database is updated with the pre-database update information journal, and the database is started as a relief unit. Return to the state of time.

新方式では、データベース更新ジャーナル格納装置には
救済単位仮正常終了ジャーナルが出力されているために
、この救済単位は正常終了したものとして扱い、データ
ベース更新後情報ジャーナルによりデータベースを更新
し、データベースを救済単位正常終了時の状態とする。
In the new method, since the temporary normal termination journal of the relief unit is output to the database update journal storage device, this relief unit is treated as having terminated normally, the database is updated with the post-database update information journal, and the database is rescued. This is the state when the unit normally ends.

以上のように従来の方式では、データベース更新前情報
ジャーナルが必須であったが、新方式では救済単位仮正
常終了ジャーナルを導入するととにより、データベース
更新前情報ジャーナルを不要としている。
As described above, in the conventional method, a database pre-update information journal was essential, but in the new method, a database pre-update information journal is not required by introducing a temporary normal termination journal for a relief unit.

システムダウン発生時のデータベース更新ジャーナル格
納装置の状態と、データベース復元装置の機能との関係
を、従来の方式について第1表に、又、新方式について
第2表に示す。
The relationship between the state of the database update journal storage device and the functions of the database restoration device when a system down occurs is shown in Table 1 for the conventional method and in Table 2 for the new method.

第1表の項番1.2.3のデータベース更新ジャーナル
格納装置の状態では、データベース更新後情報ジャーナ
ルが出力されいないことから、データベースの実更新が
行なわれていないものと判断し、データベースの更新は
行なわない(従来の方式では、データベース実更新は、
データベース更新後情報ジャーナル出力後に行なわれる
ため、第3図参照)。
In the state of the database update journal storage device in item number 1.2.3 of Table 1, since the post-database update information journal is not output, it is determined that the database is not actually updated, and the database is updated. (In the conventional method, the actual database update is
This is done after the database update information journal is output (see Figure 3).

第1表の項番4のデータベース更新ジャーナル格納装置
の状態では、データベース更新途中に救済単位が異常終
了したと判断し、データベース更新前情報ジャーナルで
データベースを復元し、データベースを救済単位開始前
の状態に戻す。
In the state of the database update journal storage device in item 4 of Table 1, it is determined that the rescue unit has terminated abnormally during the database update, and the database is restored using the database pre-update information journal to restore the database to the state before the start of the rescue unit. Return to

データベースの更新は行なわない。The database will not be updated.

第1表の項番6のデータベース更新ジャーナル格納装置
の状態では、救済単位は異常終了しているが、データベ
ースの救済単位開始時の状態への復元は完了しているも
のとみなし、データベースの更新は行なわない。
In the state of the database update journal storage device in item 6 of Table 1, the rescue unit has ended abnormally, but it is assumed that the restoration of the database to the state at the start of the rescue unit has been completed, and the database is updated. will not be carried out.

第2表の項番1,2.3のデータベース更新ジャーナル
格納装置の状態では、救済単位仮正常終了ジャーナルが
出力されていないことから、データベースの実更新が行
なわれていないものト判断し、データベースの更新は行
なわない(新方式では、データベース実更新は救済単位
仮正常終了ジャーナル出力後に行なわれるため。第2図
参照)。
In the status of the database update journal storage device in items 1 and 2.3 of Table 2, since the relief unit provisional normal completion journal is not output, it is determined that the database is not actually updated. is not updated (in the new method, the database is actually updated after the temporary normal termination journal of the repair unit is output; see FIG. 2).

第2表の項番4のデータベース更新ジャーナル格納装置
の状態では、救済単位は正常終了したものとみなすが、
データベースの実更新が完了している保証がないため、
データベース更新後情報ジャーナルでデータベースを復
元し、データベース全救済単位正常終了時の状態にする
In the state of the database update journal storage device in item number 4 of Table 2, the relief unit is considered to have ended normally.
Since there is no guarantee that the actual update of the database has been completed,
After updating the database, restore the database using the information journal and return it to the state it was in when all database rescue units completed normally.

第2表の項番5.6Vi、、第1表の項番5,6と同じ
考え方で、データベースの更新は行なわない。
This is the same idea as item number 5.6Vi in Table 2, and item number 5 and 6 in Table 1, and the database is not updated.

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

以上説明した通り本発明のデータベース更新ジャーナル
取得方式では、救済単位仮正常終了ジャーナルを導入す
ることにより、データベース更新前情報ジャーナルを削
減できる効果がある。
As explained above, the database update journal acquisition method of the present invention has the effect of reducing the number of database pre-update information journals by introducing a temporary normal termination journal for repair units.

救済単位内での平均のデータベース更新データ長2nと
すると、ジャーナルデータ長は下表の通りとなる。
Assuming that the average database update data length within a relief unit is 2n, the journal data length is as shown in the table below.

よって、ジャーナルデータ量は約半分になるという効果
がある。
Therefore, there is an effect that the amount of journal data is approximately halved.

取得方式の構成要素図、第2図はデータベース更新ジャ
ーナル取得時のデータの流れを主体に示す図、第3図は
従来のデータベース更新ジャーナル取得時のデータの流
れを主体に示す図である。
FIG. 2 is a diagram mainly showing the flow of data when acquiring a database update journal, and FIG. 3 is a diagram mainly showing the flow of data when acquiring a conventional database update journal.

1・・・・・・業務処理装置、2・・・・・・データベ
ース格納装置、3・・・・・・データベース更新ジャー
ナル取得装置、4・・・・データベース復元装置、5・
・・・・・データベース更新ジャーナル格納装置。
1...Business processing device, 2...Database storage device, 3...Database update journal acquisition device, 4...Database restoration device, 5.
...Database update journal storage device.

Claims (1)

【特許請求の範囲】[Claims] データベースを有する計算機システムに於いて、データ
ベース更新ジャーナルとしてデータベース更新前情報ジ
ャーナルを取得せず、救済単位仮正常終了ジャーナルを
取得する機能を持つデータベース更新ジャーナル取得装
置、およびデータベース更新前情報ジャーナルがなく、
救済単位仮正常終了ジャーナルが存在するデータベース
更新ジャーナルをもとにデータベースを復元する機能を
持つデータベース復元装置とを含むことを特徴とするデ
ータベース更新ジャーナル取得方式。
In a computer system having a database, there is no database update journal acquisition device that has a function of acquiring a relief unit provisional normal termination journal without acquiring a database pre-update information journal as a database update journal, and there is no database pre-update information journal.
A database update journal acquisition method comprising: a database restore device having a function of restoring a database based on a database update journal in which a relief unit provisional normal termination journal exists.
JP62055744A 1987-03-10 1987-03-10 Data base updating journal acquisition system Pending JPS63220338A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62055744A JPS63220338A (en) 1987-03-10 1987-03-10 Data base updating journal acquisition system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62055744A JPS63220338A (en) 1987-03-10 1987-03-10 Data base updating journal acquisition system

Publications (1)

Publication Number Publication Date
JPS63220338A true JPS63220338A (en) 1988-09-13

Family

ID=13007366

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62055744A Pending JPS63220338A (en) 1987-03-10 1987-03-10 Data base updating journal acquisition system

Country Status (1)

Country Link
JP (1) JPS63220338A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02287643A (en) * 1989-04-27 1990-11-27 Toshiba Corp Fault recovery system for shared file

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02287643A (en) * 1989-04-27 1990-11-27 Toshiba Corp Fault recovery system for shared file

Similar Documents

Publication Publication Date Title
US6430703B1 (en) Method and system for software recovery
US10496672B2 (en) Creating replicas at user-defined points in time
JPS63175951A (en) Reentry of record on log
JPH04139544A (en) Data restoring method
US11010256B1 (en) Method and system for implementing current, consistent, and complete backup copy by rolling a change log backwards against a storage device
EP0881569A3 (en) File system and file management method which realize distributed replication in system having shared type raid
JPS63220338A (en) Data base updating journal acquisition system
JPH04542A (en) Memory checking system
JPH0594356A (en) On-memory table data fault restoration system
JP3514332B2 (en) Database backup method
JPH1153239A (en) Rollback processing method for database and recording medium recorded with procedure thereof
JPS6428750A (en) System for acquiring check point dump in online system
JPH10508968A (en) Data set backup method and apparatus in shared environment
JPH0259837A (en) Data recovery processing system
JPS6256535B2 (en)
JPH0319046A (en) Data base restoring system
JPH02308348A (en) Temporary file relieving system
JPH0363844A (en) File protection managing system
JPH04113428A (en) Data restoring system
Sandoh et al. An optimal backup policy considering jobs for a hard disk
JPS63168742A (en) High speed restoring system for memory information at execution
JPH0383148A (en) Transaction recovery system
JPH06242976A (en) System fault recovery processing system
JPH047756A (en) History collection system
JPS6242303B2 (en)