JPH096659A - Controlling system for data base journal recovery - Google Patents

Controlling system for data base journal recovery

Info

Publication number
JPH096659A
JPH096659A JP7154718A JP15471895A JPH096659A JP H096659 A JPH096659 A JP H096659A JP 7154718 A JP7154718 A JP 7154718A JP 15471895 A JP15471895 A JP 15471895A JP H096659 A JPH096659 A JP H096659A
Authority
JP
Japan
Prior art keywords
journal
recovery
file
records
information storage
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
JP7154718A
Other languages
Japanese (ja)
Inventor
Masahiro Abe
雅洋 阿部
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 JP7154718A priority Critical patent/JPH096659A/en
Publication of JPH096659A publication Critical patent/JPH096659A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To easily know the present progress state of the data base recovery processing. CONSTITUTION: A Journal file 4 stores the data base journal records. A journal record output means 3 writes the journal records in the file 4 and also stores in sequence the number of journal records written in the file 4 in a journal information storage part 9. A recovery means 6 recovers a data base file based on the journal records written in the file 4 and also stores in sequence the number of journal records and the time which are needed for storage of the data base file in a recovery information storage part 20. A recovery state output means 11 outputs the recovery state of the data base file to a console based on the total number of journal records stored in the part 9 and the number of journal records needed for the recovery and stored in the part 10.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、情報処理システムにお
いて障害の起きたデータベースファイルをジャーナルレ
コードを用いて復旧を行うデータベースジャーナルリカ
バリ制御方式に関し、特にデータベース復旧中の状況を
画面表示するデータベースジャーナルリカバリ制御方式
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database journal recovery control method for recovering a database file in which an error has occurred in an information processing system by using a journal record, and more particularly to a database journal recovery for displaying a status during database recovery on a screen. Regarding control method.

【0002】[0002]

【従来の技術】情報処理システムにおいて障害の起きた
データベースファイルは、ジャーナルレコードを用いて
復旧を行う必要があるが、このデータベース復旧処理を
行っている最中は、従来は、“データベース復旧中で
す”などの簡単なメッセージがディスプレイに表示され
るか、あるいは、特開平5−114092の公開公報に
示されるような、復旧開始時刻と終了時刻などの情報が
ディスプレイに出力されていた。
2. Description of the Related Art A database file that has failed in an information processing system needs to be recovered using journal records. A simple message such as "" is displayed on the display, or information such as the recovery start time and the end time is output on the display as shown in Japanese Patent Laid-Open No. 5-114092.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の方式で
は、データベース復旧処理中には復旧処理が行われてい
ることは分るものの、いつ終了するのか、またどこまで
処理が進んでいるのかが分らず、オペレータにとって
は、システム管理や業務計画が十分に行えず、作業効率
が低下するという欠点があった。
In the above-mentioned conventional method, although it is known that the recovery process is being performed during the database recovery process, it is possible to know when the process is completed and how far the process is progressing. For the operator, there is a drawback that the system management and the work plan cannot be sufficiently performed and the work efficiency is lowered.

【0004】[0004]

【課題を解決するための手段】本発明は、障害の起きた
データベースファイルを復旧するためのデータベースジ
ャーナルレコードを格納するジャーナルファイルと、該
ジャーナルファイルへジャーナルレコードを書き込むと
ともに該書き込みがあるたびに該書き込まれたジャーナ
ルレコード数を予め備えたジャーナル情報記憶部に積算
記憶するジャーナルレコード出力手段と、前記ジャーナ
ルファイルに書き込まれた前記ジャーナルレコードを用
いて前記データベースファイルを復旧するとともに予め
定められた第1の周期で該復旧に要した前記ジャーナル
レコードの数と該復旧に要した時間を予じめ備えたリカ
バリ情報記憶部に積算記憶するリカバリ手段と、予め決
められた第2の周期で前記ジャーナル情報記憶部に記憶
されている前記積算ジャーナルレコード数と前記リカバ
リ情報記憶部に記憶されている前記復旧に要したジャー
ナルレコード数と前記復旧に要した時間から算出した復
旧の進捗度と復旧の予想残処理時間を予め具備したコン
ソールに出力する復旧状況出力手段とから構成されるこ
とを特徴とする。
According to the present invention, there is provided a journal file for storing a database journal record for recovering a database file in which a failure has occurred, and a journal file to be written to the journal file and to be written each time the writing is performed. A journal record output unit that cumulatively stores the number of written journal records in a journal information storage unit that is provided in advance, and restores the database file by using the journal record written in the journal file and sets a predetermined first Recovery means for accumulatively storing the number of the journal records required for the recovery and the time required for the recovery in a recovery information storage unit for predicting the journal information in a predetermined cycle, and the journal information in a second predetermined cycle. The product stored in the storage unit Output to a console equipped beforehand with the recovery progress and the expected remaining processing time of recovery calculated from the number of journal records, the number of journal records required for the recovery stored in the recovery information storage unit, and the time required for the recovery. And a recovery status output means for performing the recovery.

【0005】[0005]

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

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

【0007】本発明は、図1に示すように、障害の起き
たデータベースを復旧するためのデータベースジャーナ
ルレコードを格納するジャーナルファイル4と、ジャー
ナルファイル4へジャーナルレコードを書き込むジャー
ナルレコード出力手段3と、ジャーナルレコード出力手
段3によりジャーナルファイル4へ書き込まれたジャー
ナルレコードの数を逐次記憶しておくジャーナル情報記
憶部9と、ジャーナルファイルに書き込まれたジャーナ
ルレコードを用いてデータベースファイルを復旧するリ
カバリ手段6と、リカバリ手段6によりデータベースの
復旧中に復旧に要したジャーナルレコードの数と復旧に
要した時間を逐次記憶するリカバリ情報記憶部10と、
ジャーナル情報記憶部9に記憶されている総ジャーナル
レコード数と、リカバリ情報記憶部10に記憶されてい
る復旧に要したジャーナルレコード数と時間から、復旧
状況として進捗度と予想残処理時間を逐次計算し、コン
ソールに出力する復旧状況出力手段11とから構成され
る。
According to the present invention, as shown in FIG. 1, a journal file 4 for storing a database journal record for recovering a failed database, and a journal record output means 3 for writing a journal record to the journal file 4, A journal information storage unit 9 for sequentially storing the number of journal records written in the journal file 4 by the journal record output unit 3, and a recovery unit 6 for recovering a database file using the journal records written in the journal file. A recovery information storage unit 10 for sequentially storing the number of journal records required for recovery and the time required for recovery during recovery of the database by the recovery means 6;
From the total number of journal records stored in the journal information storage unit 9 and the number of journal records required for recovery stored in the recovery information storage unit 10 and time, the progress and expected remaining processing time are sequentially calculated as the recovery status. And a recovery status output means 11 for outputting to the console.

【0008】次に、図1を参照して、本実施例の動作を
説明する。
Next, the operation of this embodiment will be described with reference to FIG.

【0009】まず、アプリケーションプログラム1でデ
ータベース操作機構2を通してデータベースファイル5
が更新されると、ジャーナルリカバリ操作機構7により
ジャーナルレコード出力手段3が起動され、ジャーナル
レコード出力手段3によってジャーナルファイル4にジ
ャーナルレコードが出力され、ジャーナルレコードが出
力される度に有効なジャーナルレコードの総数がジャー
ナル情報記憶部9に記憶される。
First, in the application program 1, the database file 5 is passed through the database operating mechanism 2.
Is updated, the journal recovery operation mechanism 7 activates the journal record output means 3, the journal record output means 3 outputs the journal record to the journal file 4, and a valid journal record is output each time the journal record is output. The total number is stored in the journal information storage unit 9.

【0010】次に、何らかの障害により、データベース
ジャーナルによるデータベースの復旧処理が行われる場
合、データベース操作機構2から、ジャーナルリカバリ
操作機構7を介して、リカバリ手段6が起動され、ジャ
ーナルファイル4を使用したデータベースファイル5の
復旧処理が開始される。リカバリ手段6は、復旧処理開
始と同時に復旧に要したジャーナルレコード数とその処
理時間を第1の周期でリカバリ情報記憶部10に積算記
憶する。
Next, when the database recovery process is performed by the database journal due to some failure, the recovery means 6 is activated from the database operation mechanism 2 via the journal recovery operation mechanism 7, and the journal file 4 is used. Recovery processing of the database file 5 is started. The recovery means 6 accumulates and stores the number of journal records required for recovery and the processing time thereof in the recovery information storage unit 10 in the first cycle at the same time when the recovery process starts.

【0011】一方、ジャーナルリカバリ操作機構7によ
り、復旧状況出力手段11が起動され、第2の周期で、
リカバリ手段6によりリカバリ情報記憶部10に記憶さ
れている復旧処理に要したジャーナルレコード数と時
間、及びジャーナルレコード出力手段3によりジャーナ
ル情報記憶部9に記憶されている総ジャーナルレコード
数を読み取り、復旧状況として、進捗度((復旧処理に
必要としたジャーナルレコード数/総ジャーナルレコー
ド数)×100)と、予想残復旧処理時間(復旧に必要
とした時間/復旧に必要としたジャーナルレコード数×
(総ジャーナルレコード数−復旧処理に要したジャーナ
ルレコード数))を計算し、コンソール8に表示出力す
る。尚、第1の周期と第2の周期は同一であっても良い
が、一般的には処理効率から第2の周期が第1の周期よ
りも方が大きく設定される。
On the other hand, the journal recovery operation mechanism 7 activates the recovery status output means 11, and in the second cycle,
The recovery unit 6 reads the number and time of the journal records stored in the recovery information storage unit 10 required for the recovery process, and the journal record output unit 3 reads the total number of journal records stored in the journal information storage unit 9 and restores them. The status is the progress ((number of journal records required for recovery processing / total number of journal records) x 100) and estimated remaining recovery processing time (time required for recovery / number of journal records required for recovery x
(Total number of journal records-number of journal records required for recovery processing) is calculated and displayed on the console 8. The first cycle and the second cycle may be the same, but generally, the second cycle is set to be larger than the first cycle in view of processing efficiency.

【0012】リカバリ処理が終了すると、リカバリ手段
6により処理終了がジャーナルリカバリ操作機構7に通
知され、ジャーナルリカバリ操作機構7によりリカバリ
処理終了が復旧状況出力手段11に通知される。復旧状
況出力手段11は、上記復旧状況出力処理を停止し、処
理終了のメッセージをコンソール8に表示する。
When the recovery processing is completed, the recovery means 6 notifies the journal recovery operation mechanism 7 of the end of the processing, and the journal recovery operation mechanism 7 notifies the recovery status output means 11 of the end of the recovery processing. The recovery status output means 11 stops the above recovery status output processing and displays a message of processing completion on the console 8.

【0013】図2は、コンソールに表示する表示情報の
一例を示す図である。この例では、進捗度60%、予想
終了時間20分の場合を示しており、棒グラフは、進捗
度に合わせて反転表示したものである。
FIG. 2 is a diagram showing an example of display information displayed on the console. This example shows the case where the degree of progress is 60% and the expected end time is 20 minutes, and the bar graph is highlighted in accordance with the degree of progress.

【0014】ただし、表示レイアウトや表示項目は、本
実施例に示した項目に限定するものでなく、場合によっ
ては、復旧開始時刻項目の追加や、進捗度の百分率以外
の(復旧に要したジャーナルレコード数/総ジャーナル
レコード数)の形式での表示、予想残処理時間ではなく
予想終了時刻による表示や、さらにこれら表示色を変化
させることも有効である。
However, the display layout and the display items are not limited to the items shown in this embodiment, and in some cases, a recovery start time item is added or a journal other than the percentage of the progress degree It is also effective to display in the form of the number of records / total number of journal records), display by the estimated end time instead of the estimated remaining processing time, and further change these display colors.

【0015】[0015]

【発明の効果】以上説明したように、本発明のデータベ
ースジャーナルリカバリ制御方式は、データベース復旧
処理中に、現在どの程度復旧処理が行なれれているか、
その進捗度、予想終了時間の表示を行うようにしたこと
により、オペレータのシステム管理が容易になり、業務
の計画や遂行が容易になるという効果がある。
As described above, according to the database journal recovery control method of the present invention, how much recovery processing is currently performed during database recovery processing,
By displaying the degree of progress and the expected end time, the system management of the operator is facilitated, and there is an effect that the task planning and execution are facilitated.

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

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

【図2】本発明による処理結果の表示例を示す図であ
る。
FIG. 2 is a diagram showing a display example of a processing result according to the present invention.

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

1 アプリケーションプログラム 2 データベース操作機構 3 ジャーナルリカバリ操作機構 4 ジャーナルファイル 5 データベースファイル 6 リカバリ手段 7 ジャーナルリカバリ操作機構 8 コンソール 9 ジャーナル情報記憶部 10 リカバリ情報記憶部 11 復旧状況出力手段 1 Application Program 2 Database Operation Mechanism 3 Journal Recovery Operation Mechanism 4 Journal File 5 Database File 6 Recovery Means 7 Journal Recovery Operation Mechanism 8 Console 9 Journal Information Storage 10 Recovery Information Storage 11 Recovery Status Output Means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 障害の起きたデータベースファイルを復
旧するためのデータベースジャーナルレコードを格納す
るジャーナルファイルと、該ジャーナルファイルへジャ
ーナルレコードを書き込むとともに該書き込みがあるた
びに該書き込まれたジャーナルレコード数を予め備えた
ジャーナル情報記憶部に積算記憶するジャーナルレコー
ド出力手段と、前記ジャーナルファイルに書き込まれた
前記ジャーナルレコードを用いて前記データベースファ
イルを復旧するとともに予め定められた第1の周期で該
復旧に要した前記ジャーナルレコードの数と該復旧に要
した時間を予じめ備えたリカバリ情報記憶部に積算記憶
するリカバリ手段と、予め決められた第2の周期で前記
ジャーナル情報記憶部に記憶されている前記積算ジャー
ナルレコード数と前記リカバリ情報記憶部に記憶されて
いる前記復旧に要したジャーナルレコード数と前記復旧
に要した時間から算出した復旧の進捗度と復旧の予想残
処理時間を予め具備したコンソールに出力する復旧状況
出力手段とから構成されることを特徴とするデータベー
スジャーナルリカバリ制御方式。
1. A journal file for storing a database journal record for recovering a failed database file, a journal record to be written to the journal file, and the number of written journal records every time the writing is performed. A journal record output means for accumulating and storing in the journal information storage unit provided, and the journal file written in the journal file are used to restore the database file, and the restoration is required in a predetermined first cycle. Recovery means for accumulatively storing the number of the journal records and the time required for the recovery in a recovery information storage unit provided in advance, and the storage unit stored in the journal information storage unit at a second predetermined cycle. Cumulative number of journal records and previous The recovery status output which outputs the progress of recovery calculated from the number of journal records required for the recovery stored in the recovery information storage unit and the time required for the recovery and the estimated remaining processing time of the recovery to a console equipped in advance A database journal recovery control method characterized by comprising:
JP7154718A 1995-06-21 1995-06-21 Controlling system for data base journal recovery Pending JPH096659A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7154718A JPH096659A (en) 1995-06-21 1995-06-21 Controlling system for data base journal recovery

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7154718A JPH096659A (en) 1995-06-21 1995-06-21 Controlling system for data base journal recovery

Publications (1)

Publication Number Publication Date
JPH096659A true JPH096659A (en) 1997-01-10

Family

ID=15590454

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7154718A Pending JPH096659A (en) 1995-06-21 1995-06-21 Controlling system for data base journal recovery

Country Status (1)

Country Link
JP (1) JPH096659A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62186340A (en) * 1986-02-12 1987-08-14 Nec Corp Electronic computer
JPH07121419A (en) * 1993-10-22 1995-05-12 Hitachi Ltd Data base restoration management system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62186340A (en) * 1986-02-12 1987-08-14 Nec Corp Electronic computer
JPH07121419A (en) * 1993-10-22 1995-05-12 Hitachi Ltd Data base restoration management system

Similar Documents

Publication Publication Date Title
GB2287558B (en) Supervising system in a computer network
JPH04139544A (en) Data restoring method
JPH096659A (en) Controlling system for data base journal recovery
JP3206096B2 (en) Input data processing device
JPH07152627A (en) File recovery system
JPH09146627A (en) Device for hiearchizing fault diagnostic knowledge tree
JP3852636B2 (en) Status data collection method and control device
JPS6188311A (en) Supervising method of plant
JPH0844641A (en) Network fault processing system and network fault processing method for the same
JPH11188584A (en) Operation management device, operation management method, and recording medium
JPS5856142B2 (en) Online recovery control method
JPH08190461A (en) Disk array system
JPH04184641A (en) Data base restoring system
JPH04369735A (en) Backup system for computer system
JP2580776B2 (en) Backup method of business data file for failure of magnetic disk device
JP4455258B2 (en) Plant operation monitoring device
JP3536881B2 (en) System status display method in monitoring system that performs history management
JP2000010925A (en) Method and device for supporting maintenance
JPH056339A (en) File restoring processing system by application program
JPH0756793A (en) Automatic restoration system for file fault
JP2003330506A (en) Apparatus and method for data backup in programmable controller
JPS6238945A (en) Information process system
JP2931665B2 (en) switch
JP2001142750A (en) Device and method for managing data file recording and recording medium
JPH07262069A (en) Failure recovery method

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19970506