JPH03260746A - Data updating method - Google Patents

Data updating method

Info

Publication number
JPH03260746A
JPH03260746A JP2059725A JP5972590A JPH03260746A JP H03260746 A JPH03260746 A JP H03260746A JP 2059725 A JP2059725 A JP 2059725A JP 5972590 A JP5972590 A JP 5972590A JP H03260746 A JPH03260746 A JP H03260746A
Authority
JP
Japan
Prior art keywords
data
application program
updating
storage device
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
JP2059725A
Other languages
Japanese (ja)
Inventor
Junichi Kikuchi
淳一 菊池
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.)
NTT Inc
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2059725A priority Critical patent/JPH03260746A/en
Publication of JPH03260746A publication Critical patent/JPH03260746A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Hardware Redundancy (AREA)

Abstract

PURPOSE:To improve the data updating efficiency for a duplex storage device by applying the data updating processing only to a primary face during execution of an application program and then applying the data updating processing to a secondary face in the after-processing carried out at the end of the application program. CONSTITUTION:When an application program has a data updating request, an application program executing state control part 2 buffers the updating position data and the updating data via an input/output buffer 3 and updates the primary face data stored in a duplex storage 5. Then the part 2 detects the end of execution of the application program and gives an instruction to a duplex storage control part 4 to set an input/output device to the secondary face. Then the part 2 writes successively the date buffered by the buffer 3 to the secondary face of the storage 5 and updates the data on the secondary face. Thus the secondary face is positioned to the unupdated data during execu tion of the application program and the saving of the updating data is not necessary. Then the data updating efficiency is improved for a duplex storage.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、二重化記憶装置上のデータを更新する場合の
データ更新方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data update method for updating data on a dual storage device.

〔従来技術〕[Prior art]

従来の二重化記憶装置上のデータ更新方法は、第5図に
示すように、単一のデータ更新処理を基本に設計されて
おり、そのデータ更新処理が終了すると、両方のデータ
が更新される。
As shown in FIG. 5, the conventional method for updating data on a dual storage device is designed based on a single data update process, and when that data update process is completed, both pieces of data are updated.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、前記の従来技術では、トランザクション
処理システムのように、応用プログラムの異常終了等の
理由により、記憶装置上のデータを応用プログラム開始
時点の内容に書き戻す必要がある場合には、データを更
新する前にその更新前データを予め退避しておく必要が
ある。これには、少なくとも更新前データの読み込み1
回と書き込み1回、そして応用プログラム正常終了時に
不要となる更新前の破棄のための書き込み1回の計3回
の入出力オーバヘッドがかかることになり処理効率が上
がらないという問題があった。
However, in the above-mentioned conventional technology, when it is necessary to write back the data on the storage device to the contents at the time the application program started due to abnormal termination of the application program, etc., such as in a transaction processing system, the data is updated. Before updating, it is necessary to save the pre-update data in advance. This includes at least reading 1 of the pre-update data.
There is a problem in that processing efficiency cannot be improved because a total of three input/output overheads are required: one write, one write, and one write for discarding before updating, which is unnecessary when the application program ends normally.

本発明は、前記問題点を解決するためになされたもので
ある。
The present invention has been made to solve the above problems.

本発明の目的は、応用プログラムがデータを二重化し更
新する計算機システムにおいて、二重化記憶装置上のデ
ータ更新処理の効率を向上させることが可能な技術を提
供することにある。
An object of the present invention is to provide a technique that can improve the efficiency of data update processing on a duplex storage device in a computer system in which an application program duplexes and updates data.

本発明の他の目的は、更新前データのオーバヘッドを排
除することができる技術を提供することにある。
Another object of the present invention is to provide a technique that can eliminate the overhead of pre-update data.

本発明の前記ならびにその他の目的と新規な特徴は、本
明細書の記述及び添付図面によって明らかになるであろ
う。
The above and other objects and novel features of the present invention will become apparent from the description of this specification and the accompanying drawings.

〔課題を解決するための手段〕[Means to solve the problem]

前記目的を達成するために、本発明は、応用プログラム
がデータを二重化し更新する計算機システムにおいて、
応用プログラムの実行中はどちらか一方の記憶装置上の
データのみを更新し、応用プログラム終了時に、応用プ
ログラムが正常に終了した場合は、入出力バッファ上に
ある更新後データをもとにもう一方の記憶装置上のデー
タを更新し、また、異常に終了した場合は、入出力バッ
ファ上にある更新位置データをもとにもう一方の記憶装
置上の更新前データによって応用プログラム実行中に更
新対象とした記憶装置上のデータを書き戻すことにより
、更新前データの退避を不要とすることを最も主要な特
徴とするものである。
In order to achieve the above object, the present invention provides a computer system in which an application program duplicates and updates data,
While the application program is running, only the data on one of the storage devices is updated, and when the application program ends, if the application program terminates normally, the data on the other storage device is updated based on the updated data on the input/output buffer. If the data on one storage device is updated, and if the program terminates abnormally, the update target is updated while the application program is running using the pre-update data on the other storage device based on the updated position data on the input/output buffer. The most important feature is that it eliminates the need to save pre-update data by writing back the data on the storage device that was previously updated.

〔作用〕[Effect]

前述の手段によれば、応用プログラムの実行状態を管理
し、応用プログラム実行中は正面に対してのみデータ更
新処理を行い、応用プログラム終了時の後処理で副面の
データ更新処理を行うことにより、その応用プログラム
実行中は副面を更新前データと位置づけて更新前データ
の退避を不要とするので、二重化記憶装置上のデータ更
新処理の効率を向上させることができる。
According to the above-mentioned means, the execution state of the application program is managed, data is updated only on the front side while the application program is running, and data is updated on the side side in post-processing when the application program ends. , while the application program is being executed, the sub-plane is positioned as pre-update data and there is no need to save the pre-update data, so the efficiency of data update processing on the dual storage device can be improved.

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

以下、本発明の一実施例を図面を用いて具体的に説明す
る。
Hereinafter, one embodiment of the present invention will be specifically described using the drawings.

なお、実施例を説明するための全図において、同一機能
を有するものは同一符号を付け、その繰り返しの説明は
省略する。
In addition, in all the figures for explaining the embodiment, parts having the same functions are given the same reference numerals, and repeated explanations thereof will be omitted.

第1図は、本発明のデータ更新方法を実施するだめのト
ランザクション処理システムの一実施例の概略構成を示
すブロック図、 第2図及び第3図は、第1図に示す応用プログラム実行
状態管理部の動作を説明するためのフローチャートであ
る。
FIG. 1 is a block diagram showing a schematic configuration of an embodiment of a transaction processing system that implements the data update method of the present invention, and FIGS. 2 and 3 show application program execution state management shown in FIG. 1. 3 is a flowchart for explaining the operation of the section.

本実施例のトランザクション処理システムは、第1図に
示すように、応用プログラム記憶部1、応用プログラム
実行状態管理部2、入出力バッファ3、二重化記憶装置
制御部4及び二重化記憶装置5から構成されている。
The transaction processing system of this embodiment, as shown in FIG. ing.

前記応用プログラム実行状態管理部2におけるデータ更
新方法は、第2図に示すように、応用プログラムの実行
開始時に当該応用プログラム用に入出力バッファ3を確
保する(ステップ101)。
As shown in FIG. 2, the data updating method in the application program execution state management unit 2 secures an input/output buffer 3 for the application program at the start of execution of the application program (step 101).

次に、応用プログラム実行状態管理テーブルに実行中の
値を設定しくステップ102)、二重化記憶装置制御部
4に対して入出力装置・を正面へ設定するよう指示する
(ステップ103)。この状態で応用プログラムがデー
タ更新を要求すると、応用プログラム実行状態管理部2
は、更新位置データと更新データを入出力バッファ3上
にバッファリングしくステップ104)、二重化記憶装
置5の正面のデータを更新する(ステップ105)。
Next, a value indicating that the application program is being executed is set in the application program execution state management table (step 102), and the duplex storage device control section 4 is instructed to set the input/output device to the front (step 103). When the application program requests data update in this state, the application program execution state management unit 2
buffers the update position data and update data on the input/output buffer 3 (step 104), and updates the data on the front of the duplex storage device 5 (step 105).

このように、応用プログラム実行状態管理部2が、応用
プログラムの実行終了を検出するまで、二重化記憶装a
5の正面のデータのみが更新される。
In this way, until the application program execution state management section 2 detects the end of execution of the application program, the duplex storage device a
Only the data on the front of No. 5 is updated.

そして、応用プログラム実行状態管理部2が応用プログ
ラムの実行終了を検出する(ステップ106のYES)
と、その終了が正常終了か異常終了かを判断しくステッ
プ107)、その結果に応じて応用プログラム実行状態
管理テーブルに正常終了処理中(ステップ108)、ま
たは異常終了処理中の値を設定する(ステップ109)
。正常終了の場合、応用プログラム実行状態管理部2は
、二重化記憶装置制御部4へ入出力装置を副面へ設定す
るよう指示しくステップ110)、当該応用プログラム
用の入出力バッファ3にバッファリングされたデータを
順次二重化記憶装置5の副面へ書き込む(ステップ11
1)。副面のデータ更新がすべて終了したら(ステップ
112のYES)、応用プログラム実行状態管理テーブ
ルに終了処理終了の値を設定しくステップ113)、人
出カバソファ3をクリアする(ステップ114)。
Then, the application program execution state management unit 2 detects the end of execution of the application program (YES in step 106).
Then, it is determined whether the termination is normal or abnormal (step 107), and depending on the result, a value indicating normal termination processing (step 108) or abnormal termination processing is set in the application program execution status management table (step 108). Step 109)
. In the case of normal termination, the application program execution state management section 2 instructs the duplex storage device control section 4 to set the input/output device to the secondary side (step 110), and the application program is buffered in the input/output buffer 3 for the application program. sequentially write the data to the secondary side of the duplex storage device 5 (step 11)
1). When all the data on the secondary side has been updated (YES in step 112), a value indicating the end of termination processing is set in the application program execution state management table (step 113), and the crowded cover sofa 3 is cleared (step 114).

逆に異常終了の場合(ステップ107のNo)、応用プ
ログラム実行状態管理部2は、第3図に示すように、二
重化記憶装置制御部4へ入出力装置を副面へ設定するよ
う指示しくステップ201)、入出力バッファ3上の更
新位置データをもとに副面の更新前データに読み込む(
ステップ202)。
Conversely, in the case of abnormal termination (No in step 107), the application program execution state management section 2 instructs the duplex storage device control section 4 to set the input/output device to the secondary side, as shown in FIG. 201), read into the pre-update data on the secondary side based on the update position data on the input/output buffer 3 (
Step 202).

次に、二重化記憶装置制御部4へ入出力装置を正面へ設
定するよう指示して(ステップ203)。
Next, the duplex storage device control unit 4 is instructed to set the input/output device to the front (step 203).

読み込んだ更新前データを正面に書き込む(ステップ(
204)。正面のデータ書き戻しがすべて終了したら(
ステップ205のYES)、応用プログラム実行状態管
理テーブルに終了処理終了の値を設定しく第2図のステ
ップ113)、人出カバソファをクリアする(第2図の
ステップ114)。
Write the read pre-update data to the front (step (
204). When all the data writing back on the front side is completed (
YES in step 205), a value for termination processing is set in the application program execution state management table (step 113 in FIG. 2), and the crowded cover sofa is cleared (step 114 in FIG. 2).

以上の説明かられかるように、本実施例によれば、従来
の二重化記憶装置上のデータ更新方法(第5図:従来の
二重記憶装置のデータ更新処理参照)と異なり、第4図
(本実施例の二重記憶装置上のデータ更新処理)に示す
ように、応用プログラムの実行状態を管理し、応用プロ
グラム実行中は、正面に対してのみデータ更新処理を行
い、応用プログラム終了時の後処理で副面のデータ更新
処理を行うことにより、その応用プログラム実行中は、
副面を更新前データと位置づけて更新前データの退避処
理を不要としている。応用プログラム実行中のシステム
ダウンから復旧するためには、最低限応用プログラム実
行状態管理テーブルに設定した値と更新位置データを紛
失しないようにする必要があるが、更新データ自体の退
避が不要なことから比較的小容量の不揮発性メモリを適
用することにより容易に実現することができる。
As can be seen from the above description, according to this embodiment, unlike the conventional method for updating data on a dual storage device (see FIG. 5: data updating process of a conventional dual storage device), the method shown in FIG. As shown in the data update process on the dual storage device of this embodiment, the execution status of the application program is managed, and while the application program is running, the data update process is performed only for the front side, and when the application program ends, By updating data on the secondary side in post-processing, while the application program is running,
By positioning the secondary side as pre-update data, there is no need to save the pre-update data. In order to recover from a system failure while an application program is running, it is necessary at least to prevent the values set in the application program execution state management table and update position data from being lost, but it is not necessary to save the update data itself. This can be easily realized by applying a relatively small capacity non-volatile memory.

以上1本発明を実施例にもとづき具体的に説明したが、
本発明は、前記実施例に限定されるものではなく、その
要旨を逸脱しない範囲において種々変更可能であること
は言うまでもない。
The present invention has been specifically explained above based on examples, but
It goes without saying that the present invention is not limited to the embodiments described above, and can be modified in various ways without departing from the spirit thereof.

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

以上、説明したように、本発明によれば、応用プログラ
ムの実行状態を管理し、応用プログラム実行中は正面に
対してのみデータ更新処理を行い、応用プログラム終了
時の後処理で副面のデータ更新処理を行うことにより、
その応用プログラム実行中は副面を更新前データと位置
づけて更新データの退避を不要とするので、二重化記憶
装置上のデータ更新処理の効率を向上させることができ
る。
As described above, according to the present invention, the execution state of the application program is managed, data is updated only on the front side while the application program is running, and data on the side side is updated during post-processing when the application program ends. By performing the update process,
While the application program is being executed, the sub-plane is positioned as pre-update data and there is no need to save the update data, so it is possible to improve the efficiency of data update processing on the dual storage device.

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

第1図は、本発明のデータ更新方法を実施するためのト
ランザクション処理システムの一実施例の概略構成を示
すブロック図、 第2図及び第3図は、第1図に示す応用プログラム実行
状態管理部の動作を説明するためのフローチャート、 第4図は、本実施例の二重記憶装置上のデータ更新処理
方法を説明するための説明図。 第5図は、従来の二重記憶装置のデータ更新処理方法を
説明するための説明図である。 図中、1・・・応用プログラム記憶部、2・・・応用プ
ログラム実行状態管理部、3・・・入出力バッファ、4
・・・二重化記憶装置制御部、5・・・二重化記憶装置
FIG. 1 is a block diagram showing a schematic configuration of an embodiment of a transaction processing system for implementing the data update method of the present invention, and FIGS. 2 and 3 are application program execution state management shown in FIG. FIG. 4 is an explanatory diagram for explaining the data update processing method on the dual storage device of this embodiment. FIG. 5 is an explanatory diagram for explaining a conventional data update processing method for a dual storage device. In the figure, 1... Application program storage unit, 2... Application program execution state management unit, 3... Input/output buffer, 4
... Duplex storage device control unit, 5... Duplex storage device.

Claims (1)

【特許請求の範囲】[Claims] 応用プログラムがデータを二重化し更新する計算機シス
テムにおいて、応用プログラムの実行中はどちらか一方
の記憶装置上のデータのみを更新し、応用プログラム終
了時に、応用プログラムが正常に終了した場合は、入出
力バッファ上にある更新後データをもとにもう一方の記
憶装置上のデータを更新し、また、異常に終了した場合
は、入出力バッファ上にある更新位置データをもとにも
う一方の記憶装置上の更新前データによって応用プログ
ラム実行中に更新対象とした記憶装置上のデータを書き
戻すことにより、更新前データの退避を不要とすること
を特徴とする二重化記憶装置上のデータ更新方法。
In a computer system where an application program duplicates and updates data, only the data on one of the storage devices is updated while the application program is running, and when the application program terminates normally, the input/output The data on the other storage device is updated based on the updated data on the buffer, and if the data ends abnormally, the data on the other storage device is updated based on the updated position data on the input/output buffer. A method for updating data on a dual storage device, characterized in that it is unnecessary to save the pre-update data by writing back the data on the storage device that is subject to update while an application program is being executed using the pre-update data.
JP2059725A 1990-03-09 1990-03-09 Data updating method Pending JPH03260746A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2059725A JPH03260746A (en) 1990-03-09 1990-03-09 Data updating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2059725A JPH03260746A (en) 1990-03-09 1990-03-09 Data updating method

Publications (1)

Publication Number Publication Date
JPH03260746A true JPH03260746A (en) 1991-11-20

Family

ID=13121467

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2059725A Pending JPH03260746A (en) 1990-03-09 1990-03-09 Data updating method

Country Status (1)

Country Link
JP (1) JPH03260746A (en)

Similar Documents

Publication Publication Date Title
JPH04284548A (en) Data base exclusive controlling system
JP3135714B2 (en) Checkpoint restart method
JPH05225076A (en) Method and device for managing common information
JPH03260746A (en) Data updating method
JPH01303529A (en) Invalidation system for retrial point
WO2024139859A1 (en) Method and apparatus for improving data consistency between cache and data source on the basis of write-ahead log mechanism
JP2713218B2 (en) Checkpoint / restart processing method
JPH03241444A (en) Data holding system
JP3463696B2 (en) Online garbage collection processing method
JP2568708B2 (en) How to update the double link queue
JP3292201B2 (en) Access control device
JPH04105159A (en) Work substitute system
JPH06168079A (en) Data backup system
JPS6254347A (en) Processing system for fault of file
JP2874451B2 (en) Online business processing system
JPS6254348A (en) Processing system for fault of file
JPS62229344A (en) Data storing system
JPH05113888A (en) Microprocessor unit
JPS63301333A (en) Transaction recovery system
JPH0346033A (en) Inter-job data transfer control method
JPH08101788A (en) Memory operation management method and memory operation management device
JPS62131313A (en) Restart system for system freeze
JP2001236241A (en) Memory duplication control method
JPH05233342A (en) Job restart control system
JPH0470937A (en) File updating system