JPS6151248A - Recovery processing system - Google Patents

Recovery processing system

Info

Publication number
JPS6151248A
JPS6151248A JP59173550A JP17355084A JPS6151248A JP S6151248 A JPS6151248 A JP S6151248A JP 59173550 A JP59173550 A JP 59173550A JP 17355084 A JP17355084 A JP 17355084A JP S6151248 A JPS6151248 A JP S6151248A
Authority
JP
Japan
Prior art keywords
data
log data
file
processing
schema
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.)
Granted
Application number
JP59173550A
Other languages
Japanese (ja)
Other versions
JPH0812630B2 (en
Inventor
Hidetoshi Furuya
古屋 秀敏
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP59173550A priority Critical patent/JPH0812630B2/en
Publication of JPS6151248A publication Critical patent/JPS6151248A/en
Publication of JPH0812630B2 publication Critical patent/JPH0812630B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To recover the corresponding data base or set by reading a log data from a log data file and the corresponding schema from a management information file, creating a control table, and executing an I/O processing with that table. CONSTITUTION:A log data input part 10 reads data from a history log file 6 and a backout file 7, and transfers it to a reload part 11 for a data set. This processing continus until all the data is input. The reload part 11 checks whethr the intercept from a input parr 10 is a termination intercept or not, and executes a termination processing if it is a termination intercept, otherwise searches the extension corresponding to the data intercepted. It checks whether the environment corresponding to the extension has been already created or not, and reads the corresponding schema from the management information file 1 to create the control table if the answer is No. It executes the I/O processing according to the control table, and recovers the specified extension using the log data.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データの入力時に人力されたログ・データ上
の制御情報を基にして管理ファイルからスキーマを読込
み、読込んだスキーマに基づいて制御表を作成し2作成
された制御表に従って入出力処理を行うことによりログ
・データに基づくデータベースもしくはデータセットの
復元を行うリカバリ処理方式に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention reads a schema from a management file based on control information on log data that is manually entered at the time of data input, and performs processing based on the read schema. This invention relates to a recovery processing method for restoring a database or data set based on log data by creating a control table and performing input/output processing according to the created control table.

〔従来技術と問題点〕[Conventional technology and problems]

第2図は従来のシステム・ダウンからのりカバリ処理方
式を説明するものであって、1は管理情報ファイル、2
は前準備処理部、3はC3A上のスキーマ、4はリカバ
リ本体のジョブ、5はり一ジョン上の各種制御表、6は
履歴ログ・ファイル、7はバンクアウト・ファイル、8
はデータベース又はデータセット、9は初期処理部、1
0はログ・データ入力部、11はデータセットの復元部
、12は後処理部をそれぞれ示している。管理情報ファ
イル1は複数のスキーマが登録されている。スキーマと
は、データベースやデータセットの定義情報および運用
情報の格納メンバである。前準備処理部2は、TRCV
 ()ランザクジョン・リカバリ)コマンドが入力され
た時に動作し、管理ファイル1のスキーマをC3A上に
展開する処理などを行う。C3Aとは、仮想空間相互通
信域を意味している。リカバリ本体のジョブ4は、初期
処理部9、ログ・データ入力部1o、データベースの復
元部11及び後処理部12がら構成されている。初期処
理部9は、C3A上のスキーマに基づいてエクステント
の制御表5をリージョン上に作成する。リージョンとは
、応用プログラムがローディングされ、実行される領域
である。ログ・データ入力部10は、READタスクで
あって、履歴ログファイル6及びバンクアウト・ファイ
ル7の内容を読み取るものである。履歴ログ・ファイル
6は更新後データを保持するものであり、バンクアウト
・フ)         アイル7は更新前データを保
持するものである。
Figure 2 explains the conventional recovery processing method from system failure, in which 1 is a management information file, 2
is the preparatory processing section, 3 is the schema on C3A, 4 is the job of the recovery main body, 5 is various control tables on the main unit, 6 is the history log file, 7 is the bankout file, 8
is a database or data set, 9 is an initial processing unit, 1
0 indicates a log data input section, 11 indicates a data set restoration section, and 12 indicates a post-processing section. A plurality of schemas are registered in the management information file 1. A schema is a member that stores definition information and operational information for a database or dataset. The pre-preparation processing unit 2 is a TRCV
It operates when the ()Ranxion/Recovery) command is input, and performs processing such as expanding the schema of the management file 1 onto the C3A. C3A means virtual space intercommunication area. The job 4 of the recovery main body is composed of an initial processing section 9, a log data input section 1o, a database restoration section 11, and a post-processing section 12. The initial processing unit 9 creates an extent control table 5 on the region based on the schema on the C3A. A region is an area where an application program is loaded and executed. The log data input unit 10 is a READ task that reads the contents of the history log file 6 and bankout file 7. The history log file 6 is for holding updated data, and the bankout file 7 is for holding pre-updated data.

データセットの復元部11は、wR■rEタスクで、あ
って、ログ・データ入力部10から渡されたログ゛・デ
ータで以て該当するエクステントを復元するものである
The data set restoration section 11 is a wR*rE task, which restores the corresponding extent using the log data passed from the log data input section 10.

第3図は前準備処理部2の従来処理を示すものである。FIG. 3 shows the conventional processing of the preparatory processing section 2.

AIMディレクトリ1 (管理情報ファイルと同義)か
らスキーマを読込み、該当するデータベースもしくはデ
ータセットが0PEN状態か否かを調べ、Yesのとき
は読込んだスキーマをC3A上に展開し、TRCV(+
−ランザクジョン・リカバリ)対象表示をつける。以上
の処理をAIMディレクトリ1の全スキーマについて行
い、しかる欲に、TRCV用ジョブを起動する。
Read the schema from AIM directory 1 (synonymous with management information file), check whether the corresponding database or dataset is in 0PEN state, and if Yes, expand the read schema on C3A and run TRCV (+
- Ransomware/Recovery) Attach target indication. The above process is performed for all schemas in the AIM directory 1, and then the TRCV job is started.

第4図は初期処理部9の従来処理を示すものである。C
3A上のスキーマに基づいて、エクステント毎の各種の
制御表(例えばDECB、DCB等)を作成する。以上
の処理をC3A上の全スキーマについて行う。
FIG. 4 shows the conventional processing of the initial processing section 9. C
Based on the schema on 3A, various control tables (for example, DECB, DCB, etc.) are created for each extent. The above processing is performed for all schemas on C3A.

第5図はログ・データ入力処理部1oの従来処理を示す
図である。履歴ログ・データ6及びバンクアウト・ファ
イル7からデータを読込み、データセットの復元部(W
RITII!タスク)11に渡す。以上の処理を全デー
タを入力するまで行い、しかる後に一1?ITEタスク
に終了通知を行う。
FIG. 5 is a diagram showing conventional processing of the log data input processing section 1o. Data is read from the history log data 6 and bankout file 7, and the data set restoration section (W
RITII! Task) Pass to 11. Repeat the above process until all data has been input, and then click 11? Notify the ITE task of completion.

第6図はデータセットの復元部11の従来処理を示す図
である。終了通知(END通知)か否かを調べ、NOの
場合に通知されたデータに対応するエクステントを探し
、8亥当エクステントのデータを復元し、次の通知を待
つ。終了通知を受けたらば、終了処理を行う。
FIG. 6 is a diagram showing conventional processing by the data set restoration unit 11. It is checked whether it is an end notification (END notification), and if NO, it searches for the extent corresponding to the notified data, restores the data in the 8th extent, and waits for the next notification. Upon receiving the termination notification, perform termination processing.

第2図ないし第6図に示した従来のリカバリ処理方式に
おい”ζば、システム内の全スキーマを管理情報ファイ
ルから読込んでいるので、システム規模の増大に応じて
処理時間が増大すること、C3A上にダウン直前に使用
中であったスキーマを展開しているのでC3Aが大きく
なると、及びC3A上の全スキーマに対応した制御表を
リージョン上に展開しているのでリージョンが大きくな
ること等の欠点を有している。
In the conventional recovery processing methods shown in Figures 2 to 6, all schemas in the system are read from the management information file, so the processing time increases as the system scale increases.C3A Disadvantages include the fact that C3A becomes larger because the schema that was in use immediately before the downtime is expanded above, and the region becomes larger because control tables corresponding to all schemas on C3A are expanded onto the region. have.

〔発明の目的〕[Purpose of the invention]

本発明は、上記の欠点を除去するもので生って、システ
ム・ダウンからの立上げ時を短縮できると共に、必要と
するメモリ領域を少なくできるようにしたリカバリ処理
方式を提供することを目的としている。
SUMMARY OF THE INVENTION The present invention aims to provide a recovery processing method that eliminates the above-mentioned drawbacks, shortens the time required to start up a system after it is down, and reduces the amount of memory required. There is.

〔目的を達成するための手段〕[Means to achieve the purpose]

そしてそのため、本発明のリカバリ処理方式は、データ
ベース又はデータセットと、1亥デ=タベース又はデー
タセットに対するスキーマを格納する管理情報ファイル
と、何れのデータベース又はデータセットに対するもの
であるか等を示す制御情報が付加されたログ・データを
格納するログ・データ・ファイルと、リカバリ手段とを
具備し、上記リカバリ手段は、上記ログ・データ・ファ
イルからログ・データを読込み、読込んだログ・データ
の制御情報を参照して対応するスキーマを上記管理情報
ファイルから読込み、読込んだスキーマに基づいて制御
表を作成し、作成した制御表に従って入出力処理を行う
ことにより読込んだログ・データで以て対応するデータ
ベース又はデータセノドの復元を行うよう構成されてい
ることを特徴とずものである。
Therefore, the recovery processing method of the present invention requires a database or a dataset, a management information file that stores a schema for the database or dataset, and a control that indicates which database or dataset it is for. The system includes a log data file for storing log data to which information has been added, and a recovery means, and the recovery means reads log data from the log data file and restores the read log data. The following log data is read by referring to the control information, reading the corresponding schema from the management information file, creating a control table based on the read schema, and performing input/output processing according to the created control table. The invention is characterized in that it is configured to restore the corresponding database or data cenode.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の実施例を図面を参照しつつ説明する。 Embodiments of the present invention will be described below with reference to the drawings.

要約すると、本発明のリカバリ処理方式は、初1υ1時
ではなく、ログ・データの入力時に人力されたログ・デ
ータ上の制御情報を基にして各種の定義情報やアロケー
ション情報を動的に収集するものである。
In summary, the recovery processing method of the present invention dynamically collects various definition information and allocation information based on control information on log data that is manually input when log data is input, rather than at the first time. It is something.

本発明を実施するためのシステムの機能ブロックは第2
図と同様であるが、本発明においては、前準備処理部2
はTRCVジョブ起動のみを行い、初期処理部9はエク
ステント単位の制御表を作成せず、ログ・データ入力の
ための環境のみを作成し、ログ・データ入力部10は基
本的に従来と同様な処理を行う。
The functional blocks of the system for implementing the present invention are the second
Although similar to the figure, in the present invention, the preparatory processing unit 2
performs only TRCV job startup, the initial processing unit 9 does not create a control table for each extent, and only creates an environment for inputting log data, and the log data input unit 10 is basically the same as before. Perform processing.

貨        第”図″*悲斬−9i y”社組”
闘を示す図である。データセット復元部11では下記の
ような処理が行われる。ログ・データ入力部10からの
通知が終了通知(ためて通知)である、か、否かを調べ
、終了通知であれば終了処理を行い、終了通知でなけれ
ば通知されたデータに対応するエクステントを検索する
。そして、該当するエクステントの環境が作成済みか否
かを調べ、NOであれば対応するスキーマを管理情報フ
ァイル1から読込んで制御表を作成する。なお、制御表
はリカバリ・ベクトル・テーブル(図示せず)にキュー
イングされている。また、ログ・データには、何のデー
タ・ベース又はデータセットに対するものであるかを示
す制御情報が付加されている。制御表が作成されたなら
ば、この制御表に従って入出力処理を行い、ログ・デー
タで以て該当エクステントを復元し、次の通知を待つ。
Currency ``Figure'' *Shizan-9i y ``Shagumi''
It is a diagram showing the struggle. The data set restoration unit 11 performs the following processing. It is checked whether the notification from the log data input unit 10 is a termination notification (accumulated notification) or not, and if it is a termination notification, the termination process is performed, and if it is not a termination notification, the extent corresponding to the notified data is checked. Search for. Then, it is checked whether the environment for the corresponding extent has been created, and if NO, the corresponding schema is read from the management information file 1 and a control table is created. Note that the control table is queued in a recovery vector table (not shown). Furthermore, control information indicating what database or data set the log data corresponds to is added. Once the control table is created, input/output processing is performed according to this control table, the corresponding extent is restored using log data, and the next notification is waited for.

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

以上の説明から明らかなように、本発明によれば、ログ
・データの出現時に対応するスキーマを読込むので、ス
キーマの読込み量が最小限で済むので、処理時間を短縮
することが出来る。また、ログ・データの人力とスキー
マの読込みとを併行して行い得るので、この分も処理時
間を短縮できる。さらに、本発明によれば、C3A上に
読込むスキーマを1個とすることが可能であるのでC8
A上の使用領域を減少することが出来、さらに、リージ
ョン上に展開する制御表は現在復元の対象となっている
データベース又はデータセットに対するものに限定でき
るので、リージョン上の使用領域も少なくすることがで
きる。
As is clear from the above description, according to the present invention, a schema corresponding to log data is read when log data appears, so the amount of schema to be read can be minimized, and processing time can be shortened. Furthermore, since manual input of log data and reading of the schema can be performed in parallel, processing time can also be reduced. Furthermore, according to the present invention, it is possible to read one schema onto C3A, so C8
The space used on A can be reduced, and the control tables deployed on the region can be limited to those for the database or dataset currently being restored, so the space used on the region can also be reduced. I can do it.

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

第1図は本発明におけるデータセットの復元部の処理を
示す図、第2図は従来のシステム・ダウンからのリカバ
リ処理方式を説明する図、第3図は前準備処理部の従来
処理を示す図、第4図は初期処理部の従来処理を示す図
、第5図はログ・データ入力処理部の従来処理を示す図
、第6図はデータセットの復元部の従来処理を示す図で
ある。 1・・・管理情報ファイル、2・・・前準備処理部、3
・・・C3A士のスキーマ、4・・・リカバリ本体のジ
ョブ、5・・・リージョン上の各種制御表、6・・・履
歴ログ・ファイル、7・・・バックアウト・ファイル、
8・・・データベース又はデータセット、9・・・初期
処理部、10・・・ログ・データ入力部、11・・・デ
ータセットの復元部、12・・・後処理部。
Fig. 1 is a diagram showing the processing of the data set restoration section in the present invention, Fig. 2 is a diagram explaining the conventional recovery processing method from system failure, and Fig. 3 is a diagram showing the conventional processing of the preparatory processing section. 4 is a diagram showing conventional processing of the initial processing section, FIG. 5 is a diagram showing conventional processing of the log data input processing section, and FIG. 6 is a diagram showing conventional processing of the data set restoration section. . 1... Management information file, 2... Preparation processing section, 3
... Schema of C3A, 4... Job of recovery main body, 5... Various control tables on the region, 6... History log file, 7... Backout file,
8... Database or data set, 9... Initial processing section, 10... Log/data input section, 11... Data set restoration section, 12... Post processing section.

Claims (1)

【特許請求の範囲】[Claims] データベース又はデータセットと、該データベース又は
データセットに対するスキーマを格納する管理情報ファ
イルと、何れのデータベース又はデータセットに対する
ものであるか等を示す制御情報が付加されたログ・デー
タを格納するログ・データ・ファイルと、リカバリ手段
とを具備し、上記リカバリ手段は、上記ログ・データ・
ファイルからログ・データを読込み、読込んだログ・デ
ータの制御情報を参照して対応するスキーマを上記管理
情報ファイルから読込み、読込んだスキーマに基づいて
制御表を作成し、作成した制御表に従って入出力処理を
行うことにより読込んだログ・データで以て対応するデ
ータベース又はデータセットの復元を行うよう構成され
ていることを特徴とするリカバリ処理方式。
A management information file that stores a database or dataset, a schema for the database or dataset, and log data that stores log data with control information indicating which database or dataset it is for.・It is equipped with a file and a recovery means, and the recovery means is configured to recover the above log data.
Read log data from a file, refer to the control information of the read log data, read the corresponding schema from the management information file, create a control table based on the read schema, and according to the created control table. A recovery processing method characterized by being configured to restore a corresponding database or data set using log data read by performing input/output processing.
JP59173550A 1984-08-20 1984-08-20 Recovery processor Expired - Lifetime JPH0812630B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59173550A JPH0812630B2 (en) 1984-08-20 1984-08-20 Recovery processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59173550A JPH0812630B2 (en) 1984-08-20 1984-08-20 Recovery processor

Publications (2)

Publication Number Publication Date
JPS6151248A true JPS6151248A (en) 1986-03-13
JPH0812630B2 JPH0812630B2 (en) 1996-02-07

Family

ID=15962611

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59173550A Expired - Lifetime JPH0812630B2 (en) 1984-08-20 1984-08-20 Recovery processor

Country Status (1)

Country Link
JP (1) JPH0812630B2 (en)

Also Published As

Publication number Publication date
JPH0812630B2 (en) 1996-02-07

Similar Documents

Publication Publication Date Title
EP0578406B1 (en) Distributed transaction processing using two-phase commit protocol with presumed-commit without log force
EP2300921B1 (en) Flashcopy handling
JPH02310665A (en) Data restoration method for distributed transaction processing system
JPH04139544A (en) Data restoring method
JP3135714B2 (en) Checkpoint restart method
JPS6151248A (en) Recovery processing system
US5615371A (en) Debug processing system for user programs
JPH02260045A (en) Application trouble checking system
JPS6154542A (en) Task control system
JPH0833856B2 (en) Serial number management method
JPH03286230A (en) Automatic saving/restoring system for memory area
JP2877826B2 (en) Console command catalog control method
JP2633874B2 (en) Extension processing method
JP2528882B2 (en) Fallback operation method in case of memory failure
JPH04148326A (en) Application activating system
JPH02133845A (en) Duplex auxiliary storage device
JPH0322152A (en) File restoring system
JPS6150356B2 (en)
JPH03233634A (en) Job reprocessing system
JPH03105625A (en) Reserving/restoring system for intermediate language
JPH0387940A (en) File copy system
JPH02170240A (en) Automatic saving/recovering system for memory area
JPH0370062A (en) Terminal equipment remote maintenance system
JPH02186452A (en) Data update commit processing system
JPH01310455A (en) Method for restoring fault