JPS5856142B2 - Online recovery control method - Google Patents
Online recovery control methodInfo
- Publication number
- JPS5856142B2 JPS5856142B2 JP53131308A JP13130878A JPS5856142B2 JP S5856142 B2 JPS5856142 B2 JP S5856142B2 JP 53131308 A JP53131308 A JP 53131308A JP 13130878 A JP13130878 A JP 13130878A JP S5856142 B2 JPS5856142 B2 JP S5856142B2
- Authority
- JP
- Japan
- Prior art keywords
- log data
- storage means
- data
- data set
- stored
- 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.)
- Expired
Links
Landscapes
- Hardware Redundancy (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
【発明の詳細な説明】
本発明はオンライン回復制御卸方式に関し、特にデータ
カット障害が発生したとき、例えばデータを記憶する記
憶装置にリード、ライトエラーが発生したり、プログラ
ムエラー、パリティ−エラー等が発生したとき、予め読
出しである全ダンプデータと、その先頭に記入しである
ログデータセット番号とログデータのブロック番号とを
もとにして最新のデータセットを速やかに復旧できるよ
うにしたオンライン回復制御方式に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an online recovery control system, and particularly when a data cut failure occurs, for example, a read or write error occurs in a storage device that stores data, a program error, a parity error, etc. When this occurs, the latest data set can be quickly restored based on the entire dump data that has been read in advance, the log data set number and the log data block number that have been written at the beginning of the dump data. Concerning recovery control method.
例えば、在庫管理業務や銀行業務の如きオンライン業務
を処理する場合におけるオンライン回復(4従来、以下
のように行われていた。For example, online recovery when processing online business such as inventory management business or banking business (4) has conventionally been performed as follows.
即ち、第1図は従来のオンライン回復側の方式を実行す
るシステムのブロック図であり、1は例えば在庫管理デ
ータ群、預金残高データ群等(以後単にデータセットと
いう)を記憶する磁気ディスク、または磁気ディスクか
ら読出された全内容(全ダンプデータ)を記憶する磁気
テープ装置、3−1,3−2はアプリケーションプログ
ラムにより所定の処理を実行する処理手段(以後、単に
アプリケーションプログラムという)、4はログデータ
を記憶する磁気テープ装置(以後ログデータセットとい
う)、5は障害発生後データセットを復旧するデータセ
ット復旧回路、16,17は端末機、51は磁気ディス
ク1の内容を磁気テープ2に読出し書込む書込制御手段
、52はログデータをログデータセット4に書込む書込
制御手段である。That is, FIG. 1 is a block diagram of a system that executes a conventional online recovery method, in which 1 is a magnetic disk that stores, for example, an inventory management data group, a bank account balance data group, etc. (hereinafter simply referred to as a data set); A magnetic tape device stores all contents read from the magnetic disk (all dump data); 3-1 and 3-2 are processing means (hereinafter simply referred to as application programs) for executing predetermined processing by application programs; 4 is a processing means for executing predetermined processing by application programs; A magnetic tape device for storing log data (hereinafter referred to as a log data set), 5 a data set recovery circuit for restoring the data set after a failure occurs, 16 and 17 terminals, and 51 converting the contents of the magnetic disk 1 to the magnetic tape 2 Write control means for reading and writing; 52 is a write control means for writing log data into the log data set 4;
まず、オンライ業務が停止されているときに、書込制御
手段51の制御により磁気ディスク1からその内容を読
みとり、全ダンプデータを磁気テープ装置2に書込みオ
リジナルデータを得る。First, when the online service is stopped, the contents are read from the magnetic disk 1 under the control of the write control means 51, and all dump data is written to the magnetic tape device 2 to obtain original data.
この作業は、例えば前日オンライン業務が終了した後で
もよいし、またオンライン業務開始前でもよい。This work may be performed, for example, after the online business has finished the previous day, or before the online business starts.
業務が開始され、例えば、端末機16より電文が伝達さ
れると該端末機に対応して用意されているアプリケーシ
ョンプログラムAが起動し、該端末機から入力された仕
事に対するそれまでのデータを、磁気ディスク1のデー
タ格納領域61から読み(例えば在庫管理の場合には物
品Aの在庫数、銀行業務の場合にはA氏の預金残高等\
該読み出したデータを端末機から入力されたデータ(例
えば、A氏の預金金額)に基づき加工処理し、その結果
得られた更新データを再び上記データ格納領域6−1に
格納する。When a job is started and, for example, a message is transmitted from the terminal 16, the application program A prepared for the terminal starts, and the data up to that point regarding the job input from the terminal is downloaded. Read from the data storage area 61 of the magnetic disk 1 (for example, in the case of inventory management, the number of goods A in stock, in the case of banking business, Mr. A's deposit balance \)
The read data is processed based on the data input from the terminal (for example, Mr. A's deposit amount), and the updated data obtained as a result is stored again in the data storage area 6-1.
同時に上記入力データを書込制御手段52によりログデ
ータとしてログデータセット4に別に格納する。At the same time, the input data is separately stored in the log data set 4 as log data by the write control means 52.
このようなアプリケーションプログラムを何回か処理し
たあとで、ある端末機から入力があり、それに応じてア
プリケーションプログラムBが起動し、磁気ディスク1
のデータ格納領域6−2からデータを読み、該端末機か
ら入力されたデータに基づき加工処理を行ない、その加
工処理した結果を再び上記データ格納領域6−2に格納
したとき該磁気ディスク1に障害が発生したものとする
。After processing such an application program several times, an input is received from a certain terminal, and application program B is started in response to the input, and the magnetic disk 1 is
The data is read from the data storage area 6-2 of the terminal, processed based on the data input from the terminal, and when the processed results are stored again in the data storage area 6-2, the data is stored on the magnetic disk 1. It is assumed that a failure has occurred.
この場合には、至急に以後のオンライン業務を継続する
ためにデータセットを最新に復旧しなければならない。In this case, it is necessary to immediately restore the data set to the latest version in order to continue online operations.
このとき、該データセットを復旧するためには、当日の
業務開始前にオリジナルデータと該障害の発生する前ま
でにどのような処理が行なわれていたかということを示
すログデータが必要である。At this time, in order to restore the data set, it is necessary to have the original data before the start of the day's work and log data indicating what kind of processing was being performed before the failure occurred.
したがって、上記した如く、業務開始前に磁気ディスク
7より全ダンプしたことにより得たオリジナルデータと
障害発生時までに処理されたログデータとにより、この
処理を繰返し、データセットを復旧しなければならない
。Therefore, as mentioned above, the data set must be restored by repeating this process using the original data obtained by dumping all data from the magnetic disk 7 before the start of work and the log data processed up to the time of the failure. .
しかしながら、このような従来の方式では、データセッ
ト復元に必要なオリジナルデータを得るためには業務処
理停止状態のときでなければならず、そのために業務開
始前といった非常に限定された状態のときのみにしかオ
リジナルデータを得ることができない。However, in such conventional methods, in order to obtain the original data necessary for data set restoration, it is necessary to stop the business process, and therefore, it is possible to obtain the original data required for data set restoration only in a very limited state such as before the start of business. It is only possible to obtain the original data.
したがって、オリジナルデータが得られてから障害発生
時までに時間がある程度経過している場合には、該障害
発生時までに非常に沢山のアプリケーションプログラム
の処理、つまり業務処理が行なわれることになり、その
データセットの復IB!こ時間がかかる欠点があった。Therefore, if a certain amount of time has elapsed between when the original data was obtained and when a failure occurs, a large number of application programs, that is, business processes, will have been processed by the time the failure occurs. Revival of that data set! This had the disadvantage of being time consuming.
したがって、本発明の目的はオンライン実行中の任意の
時点でデータセットをダンプし、障害発生後のデータセ
ット復元に必要なログデータを少なくすることにより、
これら従来の問題点を解決したオンライン回復側(財)
方式を提供することであり、この目的は本発明において
は、入力データに基づいて更新されると共に、該更新結
果を記憶するデータセット記憶手段、前記データセット
記憶手段のオフライン時における全内容を読出して記憶
する全ダンプデータ記憶手段、前記入力データに応じた
内容を記憶するログデータ記憶手段、障害発生後、前記
全ダンプ記憶手段の内容とログデータ記憶手段の内容と
に基づいてデータセット記憶手段の内容を回復するデー
タセット復旧手段とを備えたオンラインシステムにおけ
るオンライン回復制御部方式において、ログデータを順
次ログデータ記憶手段に記憶させると共に、各ログデー
タを識別する識別情報を記憶する手段を設け、前記全ダ
ンプデータ記憶手段にデータセット記憶手段の全内容を
オンライン実行中の任意の時刻に読出し可能とし、該内
容を全ダンプデータ記憶手段に記憶する際、該全ダンプ
データ記憶手段の制(iRItif報記録領域に該時刻
における前記識別情報を記憶させ、障害発生後、前記全
ダンプデータ記憶手段に記憶した前記時刻におけるデー
タセット記憶手段の内容と前記制御情報記憶領域に記憶
したログデータ識別情報を用いて得られる前記時刻から
障害発生時点までの間に記憶した前記ログデータ記憶手
段の内容とから、データセット復旧手段をして、前記デ
ータセット記憶手段の内容を回復することにより達成さ
れる。Therefore, an object of the present invention is to dump a dataset at any point during online execution and reduce the amount of log data required to restore the dataset after a failure occurs.
Online recovery side (foundation) that solved these conventional problems
The purpose of this invention is to provide a data set storage means that is updated based on input data and stores the updated results, and a data set storage means that reads out the entire contents of the data set storage means when offline. a total dump data storage means for storing contents according to the input data, a log data storage means for storing contents according to the input data, and a data set storage means for storing contents of the total dump storage means and the log data storage means after a failure occurs. In an online recovery control unit method in an online system, the method includes a data set recovery means for recovering the contents of the log data, and a means for sequentially storing log data in the log data storage means and storing identification information for identifying each log data. , the entire contents of the dataset storage means can be read out to the total dump data storage means at any time during online execution, and when the contents are stored in the total dump data storage means, the control of the total dump data storage means ( The identification information at the time is stored in the iRItif information recording area, and after a failure occurs, the contents of the data set storage means at the time stored in the total dump data storage means and the log data identification information stored in the control information storage area are stored. This is achieved by using a data set recovery means to recover the contents of the data set storage means from the contents of the log data storage means stored between the time obtained using the method and the point of occurrence of the failure. .
以下、本発明を図面に従って詳細に説明する。Hereinafter, the present invention will be explained in detail with reference to the drawings.
第2図a −cは本発明の詳細な説明するブロック図で
あり、図中、6,7はデータセットを記憶する磁気ディ
スク、8,9は所定の処理を実行するアプリケーション
プログラム、10.11は後述の履歴制御情報を記憶す
るエントリーの先頭アドレス(以後エントリポインタと
いう)を記憶すると共にアプリケーションプログラムを
制御するタスクコントロール手段、14は制御テーブル
、15は各アプリケーションプログラムに対応して設け
られ、履歴制御情報を記憶するエントリ一部、16.1
7は端末機、18は全ダンプデータを記憶する磁気テー
プ装置、19は制御情報を記憶する制御情報記憶部、2
0−1〜20−4はデータを記憶するデータ記憶部、2
1.22はログデータセットである。FIGS. 2a to 2c are block diagrams illustrating the present invention in detail, in which 6 and 7 are magnetic disks that store data sets, 8 and 9 are application programs that execute predetermined processing, and 10.11 14 is a control table, and 15 is provided corresponding to each application program. Part of entry for storing control information, 16.1
7 is a terminal, 18 is a magnetic tape device that stores all dump data, 19 is a control information storage section that stores control information, 2
0-1 to 20-4 are data storage units for storing data, 2
1.22 is a log data set.
なお、ログデータセットは複数個(2L22・・・)設
けられ、それぞれデータセット番号により区別され、し
かも各ログデータセットは多数のブロックにより構成さ
れている。Note that a plurality of log data sets (2L22, . . . ) are provided, each of which is distinguished by a data set number, and each log data set is composed of a large number of blocks.
さて、本発明においては、第2図aに示す如く、アプリ
ケーションプログラム毎に制御テーブル14内にエンl
−IJ一部15が割当てられており、該エントリ一部1
5には履歴制御情報、即ち、最新のログデータが記録さ
れるべきログデータセットの番号(ログデータセット番
号)そのログデータのブロックの番号(ブロック番号)
および状態表示信号(STATUS)15−1等が記憶
されている。Now, in the present invention, as shown in FIG. 2a, an entry is made in the control table 14 for each application program.
- IJ part 15 is allocated and the entry part 1
5 contains history control information, that is, the number of the log data set in which the latest log data is to be recorded (log data set number), and the number of the block of that log data (block number).
and a status display signal (STATUS) 15-1, etc. are stored.
この状態表示信号にはアプリケーションプログラムに基
づく処理途中においてログデータがログデークセツ1−
(21,22)に記録されたか否かを表示する途中 ロ
グ取得表示M1アプリケーションプログラムによる処理
開始を表示する開始表示ST、アプリケーションプログ
ラムによる処理終了を表示する終了表示ED等がある。This status display signal contains log data during processing based on the application program.
(21, 22) In the middle of displaying whether or not the log acquisition display M1 has been recorded, there is a start display ST that displays the start of processing by the application program, and an end display ED that displays the end of processing by the application program.
今、アプリケーションプログラム8が端末機16からの
要求により処理を実行しているものとすれば、該アプリ
ケーションプログラム8に対応するエントリ一部15に
、端末機16からの入力データを記憶すべきログデータ
セットのログデータセット番号とログデータのブロック
番号が後述のログデータセットの制御情報記憶部より読
出され記録される。Assuming that the application program 8 is currently executing processing in response to a request from the terminal 16, log data to store input data from the terminal 16 is stored in the entry part 15 corresponding to the application program 8. The log data set number of the set and the block number of the log data are read from a control information storage section of the log data set, which will be described later, and are recorded.
しかも状態信号もその状態に応じて記録される。Moreover, the status signal is also recorded according to the status.
そして、状態表示信号(ST。M、ED)はアプリケー
ションプログラムに基づく処理が開始されれば(1,0
,0)、処理途中にログデータがログデータセットに記
録されれば(1,1,0)、処理が終了すれば(1,1
,1)となる。When the processing based on the application program starts, the status display signals (ST.M, ED) are (1,0
, 0), if log data is recorded in the log data set during processing (1, 1, 0), if processing is completed (1, 1
,1).
一方、磁気テープ18には全ダンプデータが第2図すに
示す如く、書込制御手段51の制(財)によりデータセ
ット6または7より転記される。On the other hand, all dump data is transferred to the magnetic tape 18 from the data set 6 or 7 under the control of the write control means 51, as shown in FIG.
なお、データ部20−1〜20−4の先頭部に制御情報
記憶部19が設けられており、該制御M]情報記憶部1
9には全ダンプデータを磁気テープ18に取得する際、
該ダンプデータ取得要求時に実行中のアプリケーション
プログラムに対応するエントリ一部、または実行中のプ
ログラムがなければダンプデータ取得要求時を基準にし
て最も最近に処理が終了したアプリケーションプログラ
ムに対応するエントリ一部から読出されたログデータセ
ット番号およびログデータのブロック番号が記録される
。Note that a control information storage section 19 is provided at the beginning of the data sections 20-1 to 20-4, and the control information storage section 1
9, when acquiring all dump data onto the magnetic tape 18,
Part of the entry corresponding to the application program being executed at the time of the dump data acquisition request, or if there is no running program, part of the entry corresponding to the application program whose processing was completed most recently based on the time of the dump data acquisition request. The log data set number and log data block number read from the log data are recorded.
また、ログデータセット2L22には第2図Cに示す如
くアプリケーションプログラムの処理により端末機から
の入力データ(ログデータ)、例えば銀行業務を例にと
って云えば、口座番号、預金または支払金額、預金また
は支払等の種別等よりなる変更項目データが次々と記録
される。Further, as shown in FIG. 2C, the log data set 2L22 includes input data (log data) input from the terminal through the processing of the application program, for example, in the case of banking, account numbers, deposits or payment amounts, deposits or Change item data consisting of types of payments, etc. are recorded one after another.
なお、ログデータセット21,22はそれぞれ制御情報
記憶部21−1.21−2とデータ記憶部21−2.2
2−2とから構成され、該制御情報記憶部にはログデー
タセット番号、ブロック番号およびエントリーの先頭ア
ドレス(エントリポインタ)が記録されている。Note that the log data sets 21 and 22 are a control information storage section 21-1.21-2 and a data storage section 21-2.2, respectively.
2-2, and the log data set number, block number, and entry start address (entry pointer) are recorded in the control information storage section.
即ち、制御情報記憶部には常時、最新のログデータを記
録すべきデータセット番号とブロック番号が記録されて
おり、該ログデータの書込が終了すればログデータのブ
ロック番号は、例えば1歩進した番号に更新され、また
、1つのログデータセットがログデータで満杯になれば
、次のログデータセットの制御情報記憶部に1歩進した
ログデータセット番号とログデータのブロック番号/i
61が記録され、以後、該ログデータセットが満杯にな
るまでログデータの書込終了毎にブロック番号が1づつ
更新されてゆく。That is, the data set number and block number in which the latest log data should be recorded are always recorded in the control information storage unit, and once the writing of the log data is completed, the block number of the log data changes, for example, by one step. Also, when one log data set becomes full with log data, the log data set number incremented by one step and the log data block number /i are updated to the control information storage section of the next log data set.
61 is recorded, and thereafter, the block number is updated by 1 each time writing of log data is completed until the log data set is full.
更にこの制御情報記憶部には現在実行中、または最も最
近に処理が終了したアプリケーションプロダラムに対応
するエントリーを示すエントリーポインタが以下の如く
書込まれている。Further, in this control information storage section, an entry pointer indicating an entry corresponding to an application program currently being executed or whose processing has been completed most recently is written as shown below.
即ち、このエントリーポインタの書込は、端末機からの
要求により所定のアプリケーションプログラムに起動が
かかると該アプリケーションプログラムに対応するタス
クコントロール手段内に記憶されているエントリーポイ
ンタを図示しない制御手段が読出し、前記制御情報記憶
部に書込むことにより行われる。That is, this writing of the entry pointer is carried out by the control means (not shown) reading out the entry pointer stored in the task control means corresponding to the application program when a predetermined application program is activated in response to a request from the terminal. This is done by writing to the control information storage section.
従って、いずれかのログデータセットの制御情報記憶部
21−1.21−2には■最新のログデータの書込むべ
き位置を示すログデータセット番号とログデータのブロ
ック番号および■実行中、または最も最近に処理が完了
したアプリケーションプログラムに対応するエントリー
の先頭アドレス(エントリポインタ)が記憶されている
ことになる。Therefore, the control information storage unit 21-1 or 21-2 of any one of the log data sets contains the log data set number and log data block number indicating the position where the latest log data should be written, and The start address (entry pointer) of the entry corresponding to the application program whose processing was completed most recently is stored.
次に本発明の動作を(1)データセット更新とログデー
タ蓄積処理、(2)データセットのダンプ処理の2つに
分は説明する。Next, the operation of the present invention will be explained in two parts: (1) data set update and log data accumulation processing, and (2) data set dump processing.
(1) データセットの更新とログデータ蓄積処理■
初期時、所定のログデータセット21゜22の制御情
報記憶部に最新のログデータを書込むべき位置を示すロ
グデータセット番号とログデータのブロック番号を記録
しておく。(1) Data set update and log data accumulation processing ■
At the initial stage, the log data set number indicating the position where the latest log data should be written and the block number of the log data are recorded in the control information storage section of the predetermined log data set 21-22.
■ ついで、例えば端末機16よりオンラインジョブ要
求信号ならびに入力データが入力されればタスクコノト
ロール手段10はアプリケーションプログラム8に起動
開始を命令する。(2) Next, when an online job request signal and input data are input from the terminal 16, for example, the task control means 10 instructs the application program 8 to start up.
これによりアプリケーションプログラムは(イ)磁気デ
ィスク6のデータ格納領域6−1に格納されていたデー
タの読出し、(ロ)入力データに基づく所定の加工処理
、(/→ログデータセットへの入力データの書込処理、
に)前記加工された結果の格納領域6−2への格納処理
を実行する。As a result, the application program (a) reads the data stored in the data storage area 6-1 of the magnetic disk 6, (b) performs predetermined processing based on the input data, and (/→ writes the input data to the log data set). writing process,
b) A process of storing the processed result in the storage area 6-2 is executed.
なお、データの加工結果は端末機16にもアンサパーク
される。Note that the data processing results are also answered parked in the terminal device 16.
■ 前述の如く、端末機16からの要求により所定のア
プリケーションプログラムが走り出し、処理の実行を開
始すると、これと並行して図示しない制御手段は該アプ
リケーションプログラムに対応するタスクコントロール
手段10よりエントリポインタを読出し、これを所定の
ログデータセットの制御情報記憶部に記録する。■ As mentioned above, when a predetermined application program starts running in response to a request from the terminal device 16 and starts executing processing, the control means (not shown) in parallel sets an entry pointer from the task control means 10 corresponding to the application program. The data is read and recorded in the control information storage section of a predetermined log data set.
これによりデータセットの制御情報記憶部には実行中の
アプリケーションプログラムに対応するエントリーの先
頭アドレスを示すエントリポインタが書込まれたことに
なる。As a result, an entry pointer indicating the start address of the entry corresponding to the application program being executed has been written in the control information storage section of the data set.
なお、該アプリケーションプログラムの処理が終了して
も、このエントリポインタは次のアプリケーションプロ
グラムに起動がかかるまで保持されている。Note that even if the processing of the application program ends, this entry pointer is held until the next application program is started.
従って、該制御情報記憶部には実行中の、または最新に
処理が完了したアプリケーションプログラムに対応する
エントリのポインタが書込まれているといえる。Therefore, it can be said that a pointer to an entry corresponding to an application program that is currently being executed or has completed processing most recently is written in the control information storage section.
■ ついで、前記図示しない制御手段は、予めログデー
タセットの制御情報記憶部に書込まれているログデータ
セット番号とログデータのブロック番号を読出し、これ
らを前記アプリケーションプログラムに対応するエント
リ部に書込む。(2) Next, the control means (not shown) reads the log data set number and log data block number that have been written in advance in the control information storage section of the log data set, and writes them to the entry section corresponding to the application program. It's crowded.
これにより実行中のアプリケーションプログラムに対応
するエントリ部にはログデータを書込むべきログデータ
セット番号とログデータのブロック番号が記憶されたこ
とになる。As a result, the log data set number into which log data should be written and the log data block number are stored in the entry section corresponding to the application program being executed.
また、これらの番号の記録と同時に該エントリ部の状態
信号記録部にはアプリケーションプログラムの処理に応
じた状態、即ち、処理開始(1、0、’0 )、ログデ
ータのログデータセットへの書込完了(1,1,0)、
処理終了(1,1,1)が書込まれる。At the same time as recording these numbers, the status signal recording section of the entry section also records the status according to the processing of the application program, that is, processing start (1, 0, '0), writing of log data to the log data set. Completed (1, 1, 0),
Process end (1, 1, 1) is written.
■ アプリケーションプログラムの処理に基づいて、ロ
グデータがログデータセットに書込まれれば該ログデー
タセットの制御情報記憶部におけるログデータのブロッ
ク番号は1だけ更新され、次のログデータを記憶すべき
ブロックを指示する。■ When log data is written to a log data set based on the processing of the application program, the block number of the log data in the control information storage section of the log data set is updated by 1, and the block number in which the next log data should be stored is instruct.
■ アプリケーションプログラムの処理が終了する。■ Application program processing ends.
■■〜■の動作を繰返す。Repeat operations from ■■ to ■.
これにより磁気ディスク6.7のデータセットは次々と
更新されてゆき、しかも端末機16.17からのログデ
ータはログデータセットに蓄積されてゆく。As a result, the data set on the magnetic disk 6.7 is updated one after another, and the log data from the terminal 16.17 is accumulated in the log data set.
以上データセットの更新処理およびログデータの蓄積処
理を説明したが、次にデータセットの磁気テープ18へ
のダンプ処理について説明する。The data set update process and log data accumulation process have been described above, and next, the process of dumping the data set onto the magnetic tape 18 will be described.
(2)データセットのダンプ処理
■ 磁気ディスク6.7に記録されている全ダンプデー
タの磁気テープ18へのダンプ要求が発生すると前記図
示しない制御手段は、最新のログデータを書込むべきロ
グデータセットの制御情報記憶部に書込んであるエント
リポインタを読み、該エントリポインタの指示する制御
テーブル14のエントリーにアクセスする。(2) Data set dump processing ■ When a request to dump all the dump data recorded on the magnetic disk 6.7 to the magnetic tape 18 is generated, the control means (not shown in the drawings) processes the log data to which the latest log data should be written. The entry pointer written in the control information storage section of the set is read, and the entry in the control table 14 pointed to by the entry pointer is accessed.
なお、このエントリ部は前述の如く、ダンプ要求発生時
に実行中、またはダンプ要求発生時刻を基準にして最も
最近に実行完了したアプリケーションプログラムに対応
したエントリーであり、該エントリーには最新のログデ
ータを書込むべき、または書込んだログデータセット番
号とログデータのブロック番号および状態信号が書込ま
れている。As mentioned above, this entry section is an entry corresponding to the application program that is being executed at the time the dump request is generated or has completed execution most recently based on the dump request generation time, and the latest log data is stored in this entry. The log data set number to be written or written, the log data block number, and the status signal are written.
■ ついで、該エンl−IJ−の状態信号を読取り、そ
の状態に応じて(イ)〜(ハ)の処理が行われる。(2) Next, the status signal of the encoder 1-IJ- is read, and the processes (a) to (c) are performed depending on the status.
げ)状態信号が(1,o、0)の場合・・・・・・この
場合には、ログデータがまだログデータセットに書込ま
れておらず、また、該ログデータに基づいてデータセッ
トは更新されていない。(G) When the status signal is (1, o, 0)...In this case, the log data has not yet been written to the log data set, and the data set is set based on the log data. has not been updated.
従って、更新前のデータセットがダンプされることにな
るから、このログデータは障害発生後のデータセットの
回復に必要である。Therefore, since the data set before the update is dumped, this log data is necessary for recovering the data set after a failure occurs.
それ故、該ログデータを記憶すべきログデータセット番
号とログデータのブロック番号、即ち、前記エントリー
に書込まれているログデータセット番号とログデータの
ブロック番号を磁気テープ
18の制御情報記憶部に書込む。Therefore, the log data set number and log data block number in which the log data is to be stored, that is, the log data set number and log data block number written in the entry, are stored in the control information storage section of the magnetic tape 18. write to.
(C])状態信号が(1,1,0)の場合・・・・・・
この場合には、既にログデータがログデータセラH帽込
まれているが、データセットは、まだ更新されていない
。(C]) When the status signal is (1, 1, 0)...
In this case, the log data has already been included in the log data server H, but the data set has not been updated yet.
従って、該ログデータに基づく更新前のデータセットが
ダンプされることになり、障害発生後のデータセラl復
に際して、このログデータが必
要になるから、(1)と同様にエントリーに記憶されて
いるログデータセット番号とログデータのブロック番号
とを磁気テープ18の制御情報記憶部に書込む。Therefore, the unupdated data set based on the log data will be dumped, and since this log data will be required when recovering the data server after a failure, it will be stored in the entry as in (1). The current log data set number and log data block number are written in the control information storage section of the magnetic tape 18.
(ハ)状態信号が(1,1,1)の場合)・・・・・・
この場合には、ログデータが既にログデータセットに書
込まれており、また該ログデータに基づいてデータセッ
トの更新が終了している。(c) When the status signal is (1, 1, 1))...
In this case, the log data has already been written to the log data set, and the update of the data set has been completed based on the log data.
そして更新後のデータセットがダンプされることになる
から障害発生後のデータセットの回復に際しては、この
ログデータは不要である。Since the updated data set is dumped, this log data is not necessary when recovering the data set after a failure occurs.
従ってエントリに記憶されているログデータのブロック
番号に1を加えたブロック番号とデータセットとが磁気
テープ18の制御情報記憶部に書込まれる。Therefore, the block number obtained by adding 1 to the block number of the log data stored in the entry and the data set are written to the control information storage section of the magnetic tape 18.
■ ついで、磁気ディスク6.7のデータセットが書込
制御手段51の制御により磁気テープ18に全ダンプさ
れる。(2) Next, the entire data set on the magnetic disk 6.7 is dumped onto the magnetic tape 18 under the control of the write control means 51.
以後、前記データセットの更新とログデータの蓄積処理
■〜■が繰返えされ、データセットが次々と更新され、
またログデータがログデータセットに蓄積されてゆく。After that, the updating of the data set and the log data accumulation process ■~■ are repeated, and the data set is updated one after another.
Also, log data is accumulated in a log data set.
従って、ある時刻に障害が発生すれば全ダンプしてから
その時刻までのログデータは全てログデータセットに記
憶されていることになり、またシーケンス■により全ダ
ンプ後、ログデータが書込まれた最初の位置は磁気テー
プ18の制御情報記憶部に書込まれていることになる。Therefore, if a failure occurs at a certain time, all log data from the time of the full dump to that time will be stored in the log data set, and the log data will be written after the full dump due to sequence ■. The first position is written in the control information storage section of the magnetic tape 18.
■ 障害が発生し、該障害発生後のデータセットの回復
に際しては磁気テープ18に書込まれている全ダンプデ
ータと磁気テープ18の制御情報記憶部に書込まれてい
る位置情報(ログデータセット番号、ブロック番号)が
指示するログデータセットの位置から障害発生直前にお
けるログデータセット位置までに記憶されているログデ
ータを使用して所定の回復プログラムによりデータセッ
トを回復する。■ When a failure occurs and the data set is recovered after the failure, all the dump data written on the magnetic tape 18 and the position information (log data set) written in the control information storage section of the magnetic tape 18 are recovered. The data set is recovered by a predetermined recovery program using the log data stored from the log data set position indicated by the log data set position (number, block number) to the log data set position immediately before the failure occurred.
以上、本発明によれば、オンライン実行中の任意の時刻
にいつでもデータセットを全ダンプできるから、全ダン
プデータが得られてから障害発生時までの時間を短縮で
き、換言すればデータセット回復に必要なログデータを
少なくすることができるからデータセットの回復に要す
る時間を著しく短縮することができる。As described above, according to the present invention, all datasets can be dumped at any time during online execution, so the time from when all dumped data is obtained to when a failure occurs can be shortened. In other words, data sets can be recovered quickly. Since less log data is required, the time required to recover a data set can be significantly reduced.
なお、以上の説明では、制御テーブル14を別に設けた
が、該制御テーブルを除去し、各アプリケーションプロ
グラムに対応して設けられたタスクコントロール手段内
にその機能を肩代りさせることもできる。In the above description, the control table 14 is provided separately, but the control table may be removed and its function may be taken over by a task control means provided corresponding to each application program.
また、ログデータセットを複数設けた場合について説明
したが、唯1つでも構わない。Further, although the case where a plurality of log data sets are provided has been described, it is also possible to provide only one log data set.
また、ログデータが書込まれる毎にログデータのブロッ
ク番号を1づつ更新する場合について説明したが、本発
明はこれに限るものではなく、次のログデータを記憶す
べき位置を指示できれば十分である。Furthermore, although the case has been described in which the block number of log data is updated by 1 each time log data is written, the present invention is not limited to this, and it is sufficient to be able to indicate the location where the next log data should be stored. be.
第1図は従来のオンライン回復制御方式を説明する説明
図、第2図は本発明に係るオンライン回復制御方式を実
現するブロック図である。
6.7・・・・・・データセットを記憶する磁気ディス
ク、8,9・・・・・・アプリケーションプログラムに
より動作する処理装置、10,11・・・・・・タスク
コントロール手段、14・・・・・・制御テーブル、1
5・・・・・・エントリ部、18・・・・・・全ダンプ
データを記憶する磁気テープ装置、19・・・・・・制
御情報記憶、21・・・・・・ログデータセット(磁気
テープ装置)。FIG. 1 is an explanatory diagram for explaining a conventional online recovery control method, and FIG. 2 is a block diagram for realizing the online recovery control method according to the present invention. 6.7... Magnetic disk for storing data sets, 8, 9... Processing device operated by application program, 10, 11... Task control means, 14... ...Control table, 1
5... Entry section, 18... Magnetic tape device for storing all dump data, 19... Control information storage, 21... Log data set (magnetic tape device).
Claims (1)
を記憶するデータセット記憶手段、前記データセット記
憶手段のオフライン時における全内容を読出して記憶す
る全ダンプデータ記憶手段、前記入力データに応じた内
容を記憶するログデータ記憶手段、障害発生後、前記全
ダンプ記憶手段の内容とログデータ記憶手段の内容とに
基づいてデータセット記憶手段の内容を回復するデータ
セット復旧手段とを備えたオンラインシステムにおける
オンライン回復制御方式においてログデータを順次ログ
データ記憶手段に記憶させると共に、各ログデータを識
別情報を記憶する手段を設け、前記全ダンプデータ記憶
手段にデータセット記憶手段の全内容をオンライン実行
中の任意の時刻に読出し可能とし、該内容を全ダンプデ
ータ記憶手段に記憶する際、該全ダンプデータ記憶手段
の制御情報記憶領域に該時刻におけるログデータの識別
情報を記憶させ、障害発生後、前記全ダンプデータ記憶
手段に記憶した前記時刻におけるデータセット記憶手段
の内容と前記制御情報記憶領域に記憶したログデータ識
別情報を用いて得られる前記時刻から障害発生時点まで
の間に記憶した前記ログデータ記1意手段の内容とから
、データセット復旧手段をして、前記データセット記憶
手段の内容を回復することを特徴とするオンライン回復
制御方式。 2 上記ログデータの識別情報として、ログデータを記
憶すべきログデータ記憶手段の位置を示す位置情報を用
いることを特徴とする特許請求の範囲第1項記載のオン
ライン回復処理方式。 3 前記ログデータのログデータ記憶手段への書込が終
了したか否か、および前記データセット記憶手段へのデ
ータの更新が終了したか否かを記憶する状態記憶手段を
設け、ログデータの書込が終了し、更新が終了していな
い場合には前記位置情報を前記制御部清報記憶領域に記
憶せしめ、ログデータの書込、および更新が共に終了し
ている場合には前記位置情報に所定の修飾を付して得ら
れた位置情報を前記制御情報記憶領域に記憶せしめるこ
とを特徴とする特許請求の範囲第2項記載のオンライン
回復制御方式。[Scope of Claims] 1. Data set storage means that is updated based on human data and stores the updated results; full dump data storage means that reads and stores the entire contents of the data set storage means when offline; a log data storage means for storing contents corresponding to input data; and a data set recovery means for restoring the contents of the data set storage means based on the contents of the entire dump storage means and the contents of the log data storage means after a failure occurs. In an online recovery control method for an online system equipped with a system, log data is sequentially stored in a log data storage means, and means for storing identification information for each log data is provided, and all of the data set storage means are stored in the entire dump data storage means. The contents can be read at any time during online execution, and when the contents are stored in the total dump data storage means, the identification information of the log data at the time is stored in the control information storage area of the total dump data storage means. , after the failure occurs, the period from the time to the time of failure, which is obtained using the contents of the data set storage means at the time stored in the total dump data storage means and the log data identification information stored in the control information storage area; An online recovery control method, characterized in that the data set recovery means recovers the contents of the data set storage means from the contents of the log data storage means stored in the log data storage means. 2. The online recovery processing method according to claim 1, wherein position information indicating the position of the log data storage means in which the log data is to be stored is used as the identification information of the log data. 3. Provide a state storage means for storing whether writing of the log data to the log data storage means has been completed and whether updating of data to the data set storage means has been completed; If the writing has been completed but the updating has not been completed, the location information is stored in the control section clear information storage area, and if both the writing and updating of log data have been completed, the location information is stored. 3. The online recovery control method according to claim 2, wherein position information obtained with predetermined modification is stored in the control information storage area.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP53131308A JPS5856142B2 (en) | 1978-10-25 | 1978-10-25 | Online recovery control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP53131308A JPS5856142B2 (en) | 1978-10-25 | 1978-10-25 | Online recovery control method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5557959A JPS5557959A (en) | 1980-04-30 |
| JPS5856142B2 true JPS5856142B2 (en) | 1983-12-13 |
Family
ID=15054912
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP53131308A Expired JPS5856142B2 (en) | 1978-10-25 | 1978-10-25 | Online recovery control method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5856142B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6310248U (en) * | 1986-07-09 | 1988-01-23 | ||
| JPH0158748U (en) * | 1987-10-08 | 1989-04-12 |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS59125460A (en) * | 1982-12-30 | 1984-07-19 | Fujitsu Ltd | Saving and restoring system of file |
| JPS62257540A (en) * | 1986-05-01 | 1987-11-10 | Hitachi Ltd | System for restoring constitution of data processing system |
| JPH0235530A (en) * | 1988-07-25 | 1990-02-06 | Nec Corp | Total reprocessing system for on-line service |
-
1978
- 1978-10-25 JP JP53131308A patent/JPS5856142B2/en not_active Expired
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6310248U (en) * | 1986-07-09 | 1988-01-23 | ||
| JPH0158748U (en) * | 1987-10-08 | 1989-04-12 |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5557959A (en) | 1980-04-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2718031B2 (en) | History information acquisition method | |
| JPH046017B2 (en) | ||
| JPH10207754A (en) | Update database replication method | |
| JPS5856142B2 (en) | Online recovery control method | |
| WO2006095356A1 (en) | A method of logging transactions and a method of reversing a transaction | |
| JPS5852740A (en) | System for restoration processing control of partitioned file | |
| JPS62224843A (en) | Database medium content maintaining system | |
| JPH06149485A (en) | Data completion guarantee processing method | |
| JPS62245348A (en) | Method and device for updating data base | |
| JPS63187347A (en) | Data base file recovering system | |
| JPH04184641A (en) | Data base restoring system | |
| JP2631185B2 (en) | Database backup method | |
| JPS60142446A (en) | Recovery processing system of backward fault | |
| JP2822869B2 (en) | Library file management device | |
| JPH04209044A (en) | Data base control system | |
| JPS62297948A (en) | Database failure recovery method | |
| CN118012669A (en) | File metadata recovery system and method for distributed file system | |
| JPH02206842A (en) | Failure recovery method for information processing systems | |
| JPH03196236A (en) | Data recording system in on-line system | |
| JPS6257030A (en) | History information managing system | |
| JPS63262737A (en) | Data base updating and recording processing method | |
| JPS58200358A (en) | File reprocessing and recovering method on disk base | |
| JPH01113836A (en) | Transaction processing system | |
| JP2001337857A (en) | Database restoration system | |
| JPH01140353A (en) | Database data preservation method |