JPH0827752B2 - Resource status holding device - Google Patents

Resource status holding device

Info

Publication number
JPH0827752B2
JPH0827752B2 JP59103228A JP10322884A JPH0827752B2 JP H0827752 B2 JPH0827752 B2 JP H0827752B2 JP 59103228 A JP59103228 A JP 59103228A JP 10322884 A JP10322884 A JP 10322884A JP H0827752 B2 JPH0827752 B2 JP H0827752B2
Authority
JP
Japan
Prior art keywords
transaction
data
database
update
file
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 - Lifetime
Application number
JP59103228A
Other languages
Japanese (ja)
Other versions
JPS61843A (en
Inventor
克己 林
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 JP59103228A priority Critical patent/JPH0827752B2/en
Publication of JPS61843A publication Critical patent/JPS61843A/en
Publication of JPH0827752B2 publication Critical patent/JPH0827752B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、電子計算機応用システムで、ファイル上の
データ更新処理が異常事態によって中断された場合の復
旧方法に関するものである。トランザクション機能を実
現するデータベース・システムのデータ処理ではデータ
ベース管理システム(以下、DBMSと言う)のリカバリ機
能によって完全に自動的に解決される問題であるが、そ
れをトランザクション機能の実現手段を保持しないファ
イル・システムにおけるデータ処理に拡張するものであ
る。ただし、更新処理が明確な一連の段階に細分割で
き、トランザクション処理機能を有するデータベース・
システムと同一プロセス上で各段階を順次実行可能な処
理に帰することが可能な場合だけを対象とする。DBMSの
存在が前提となることから、データベース・システムを
構築するためのOS定義の更新などが典型的な利用例にな
る。
DETAILED DESCRIPTION OF THE INVENTION [Industrial application] The present invention relates to a recovery method in a computer application system when data update processing on a file is interrupted due to an abnormal situation. In the data processing of the database system that realizes the transaction function, this is a problem that is completely solved automatically by the recovery function of the database management system (hereinafter referred to as DBMS). -It extends to data processing in the system. However, a database that has a transaction processing function and can be subdivided into a series of stages where the update process is clear
Only when it is possible to attribute each step to a process that can be executed sequentially on the same process as the system. Since the existence of a DBMS is a prerequisite, updating the OS definition for building a database system is a typical use case.

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

「トランザクション処理」はDBMSの中で最も重要な技
術の一つである。この技術は80年代前半に実用的にも論
理的にも完全に確立している。これを利用することによ
って、複雑なデータを独立したプログラム間で共有した
り、エラー発生時の適切な後処理が可能になったため、
データベースの管理は非常に簡単になった。
"Transaction processing" is one of the most important technologies in DBMS. This technique was fully established practically and logically in the early 1980s. By using this, complicated data can be shared between independent programs, and appropriate post-processing when an error occurs is possible.
Managing the database has never been easier.

ところで、トランザクション機能とは、ACID属性と呼
ばれる次の性質を保証する機能のことである。
By the way, the transaction function is a function called the ACID attribute that guarantees the following properties.

(1)原子性(atomicity) トランザクション処理途中で続行が不可能な事態が発
生しても、関連データを完全に着手前(トランザクショ
ン開始宣言)の状態に戻すか、完全に更新完了状態(ト
ランザクション終了宣言)にする以外の過渡的な状態が
発生することを許さない。
(1) Atomicity Even if it is impossible to continue in the middle of transaction processing, the related data is completely returned to the state before the start (declaration of transaction start) or the update complete state (transaction end) Do not allow transitional states other than the declaration) to occur.

(2)無矛盾性(consistency and isolation) 競合するプロセスが一組のデータを同時更新しようと
した場合に、一組のデータ内の一貫性,つまり同時に満
たすべき条件があるとき、これが擾乱されることがない
保証と、各プロセス間の更新が相互干渉しないことの保
証。この性質は本発明では直接利用していない。
(2) Consistency and isolation When competing processes try to update one set of data at the same time, it is disturbed when there is consistency within one set of data, that is, conditions that must be satisfied at the same time. There is no guarantee that the updates between processes do not interfere with each other. This property is not directly utilized in the present invention.

(3)永続性(durability) 一旦、実行完了となった最後の更新結果は記憶媒体が
破壊されても完全に自動復元できることが保証される。
(3) Durability It is guaranteed that the last update result, which has been executed once, can be completely restored automatically even if the storage medium is destroyed.

しかし、トランザクション機能を享受できるのは、DB
MSの中で厳しく決められた形式に則って定義されたデー
タベース上のデータに限られる。一般に任意の場所にあ
るデータに対して、ACID属性をトランザクション機能に
よって付与することが出来ない。
However, DB can enjoy the transaction function.
Limited to the data in the database defined according to the format strictly defined in MS. Generally, the ACID attribute cannot be added to the data in any place by the transaction function.

データベースとしてデータを構築することで量的には
大半のデータをトランザクション機能の対象とすること
が出来るようになったのに、質的にはデータベースと言
う種類以外の大半のデータはトランザクション機能の埒
外にあると言うことである。
By constructing the data as a database, it became possible to target most of the data quantitatively as a transaction function, but qualitatively most of the data other than the type called a database is outside the scope of the transaction function. That is to say.

どのデータも常に更新処理中断の危険や記憶媒体障害
による処理結果の喪失の可能性が等しくあるのに、この
ようなデータの回復手段は個別のデータ構造に従って一
々工夫したプログラムを記述して対処する必要がある。
もっとも手軽な対策は、オペレータにアドホックな対応
(通常は初期設定からやり直す)を全て委ねることであ
った。
All data are at the same risk of interruption of update processing and loss of processing results due to storage media failure, but such data recovery measures are handled by writing individually devised programs according to individual data structures. There is a need.
The easiest measure was to entrust the operator with all ad-hoc measures (usually starting over from the initial setting).

つまり、信頼性の低い人的作業に頼っていた。また、
自動化しようとしたら、個々のデータ毎に詳細な異常解
析プログラムを作成する必要があり、この作業は低能率
で間違いやすいものであった。
In other words, it relied on unreliable human work. Also,
In order to automate, it was necessary to create a detailed abnormality analysis program for each individual data, and this work was inefficient and error prone.

トランザクション機能を実現する手段を持たないファ
イル・システムによってファイルに格納されたデータを
トランザクション外データと呼び、トランザクション外
データを格納するファイルをトランザクション外ファイ
ルと呼ぶことにする。
Data stored in a file by a file system that does not have a means for realizing a transaction function is called non-transaction data, and a file storing non-transaction data is called a non-transaction file.

トランザクション外ファイルの更新途上で処理の中断
が起こった場合には、更新対象のデータ特性に応じてア
ドホックな手法で対処することが考えられる。一般的な
手法としては、 (1)失われたかも知れない更新対象データを再構築し
て、其処から更新処理の進行段階を推量して、アドホッ
クな対処をする。
If the processing is interrupted during the update of the non-transaction file, it is possible to deal with it by an ad hoc method according to the data characteristics of the update target. As a general method, (1) the update target data that may have been lost is reconstructed, the progress stage of the update process is estimated from there, and ad hoc measures are taken.

(2)更新段階を記憶する更新ステータスを別途保持し
ておいて、それを参照して進行段階を調べ、アドホック
な対処をする。
(2) The update status for storing the update step is separately held, the progress step is checked by referring to the update status, and ad hoc measures are taken.

などが考えられるが、(2)は一見簡単そうだが、ステ
ータス・データ自体も壊されるものであるので、ここに
強力な回復手段が用意されていなければならず、再帰的
な問題構造になっていることに注目されたい。
It seems that (2) is simple at first glance, but since the status data itself is also destroyed, a powerful recovery means must be provided here, resulting in a recursive problem structure. Please note that there is.

〔発明の目的〕[Object of the Invention]

本発明は、上記の考察に基づくものであって、DBMSの
持つトランザクション処理機能を応用して、トランザク
ション外データの更新ステータスを常に正確に把握でき
るようにした資源スターテス保持装置を提供すること目
的とする。
The present invention is based on the above consideration, and an object of the present invention is to provide a resource status holding device in which the transaction processing function of a DBMS is applied so that the update status of out-of-transaction data can always be accurately grasped. To do.

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

そしてそのため、本発明の資源スタータス保持装置
は、 トランザクション外データを記憶するトランザクショ
ン外ファイルと、 トランザクション外データの更新の進行状況を記録す
るデータを保持するデータベース、データベースのコピ
ーを保持するコピー・ファイル、データベースのビフォ
ア・イメージを保持するビフォア・イメージ・ファイ
ル、データベースのアフタ・イメージを保持するアフタ
・イメージ・ファイル、およびトランザクション機能を
実現する手段を有するデータベース管理システムを有す
るデータベース・システムと、 トランザクション外データの更新処理をN個(Nは2
以上の整数)の部分データ処理に分割して実行するプロ
セス・ハンドラと を具備し、 プロセス・ハンドラは、第i番目(iは1,2,…,N)の
部分データ処理において、 トランザクション開始をデータベース管理システム
に通知する処理、 トランザクション外データを更新する処理、 データベース内の更新状況データを、トランザクシ
ョン外データが第i番目の部分データ処理により更新さ
れたことを示す値に変更すべきことをデータベース管理
システムに依頼する処理、 部分データ処理の終了に際してトランザクションの
終了をデータベース管理システムに通知する処理 を行う ことを特徴とするものである。
Therefore, the resource status holding device of the present invention includes a non-transaction file for storing non-transaction data, a database for holding data for recording the progress of update of non-transaction data, a copy file for holding a copy of the database, A database system having a before image file holding a before image of the database, an after image file holding an after image of the database, and a database management system having means for realizing a transaction function, and non-transaction data N update processes (where N is 2
And a process handler that executes by dividing into partial data processing of the above integer), and the process handler starts the transaction in the i-th (i is 1, 2, ..., N) partial data processing. Database notification system, update of non-transaction data, update status data in the database should be changed to a value indicating that the non-transaction data was updated by the i-th partial data process. It is characterized by performing a process of requesting the management system and a process of notifying the database management system of the end of the transaction at the end of the partial data processing.

〔発明の実施例〕Example of Invention

以下、図面を参照しながら本発明の実施例を説明す
る。第1図は本発明の概要を示す図である。この図は、
データXの推移とデータYの更新状況を,トランザクシ
ョンTRN1,TRN2,TRN3の直列の実行と対比して描いたもの
である。データXはデータYの更新ステータスを表し、
データYはトランザクション外データである。なお、ト
ランザクションの定義には種々のものがあるが、広い意
味では、一つの意味のあるデータ処理の範囲である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram showing an outline of the present invention. This figure is
The transition of data X and the update status of data Y are drawn in comparison with the serial execution of transactions TRN1, TRN2, and TRN3. Data X represents the update status of data Y,
Data Y is non-transaction data. Note that there are various definitions of transactions, but in a broad sense, it is one meaningful range of data processing.

第1図において、t1,t3,t5はそれぞれトランザクショ
ンの開始時刻を示し、t2,t4,t6はそれぞれトランザクシ
ョンの終了時刻を示す。P1,P2,P3はトランザクション外
データYに対する各トランザクションの開始から終了の
間に施される更新処理を示す関数である(Pn(Y)は初
期値Yのデータが更新の結果Pn(Y)になったことを示
す)。便宜上、Yの行に推移を例示した。正常に更新が
実行された場合には、 TRN1の期間にYがP1(Y)に、 TRN2の期間にP1(Y)がP2(P1(Y))に、 TRN3の期間にP2(P1(Y))がP3(P2(P1(Y))に 変更されていくものとする。
In FIG. 1, t 1 , t 3 and t 5 respectively indicate the transaction start time, and t 2 , t 4 and t 6 respectively indicate the transaction end time. P 1 , P 2 and P 3 are functions indicating the update processing performed from the start to the end of each transaction for the non-transaction data Y (Pn (Y) is the result Pn ( Y)). For convenience, the transition is illustrated in the row Y. If the update is executed normally, Y is set to P 1 (Y) during TRN1, P 1 (Y) is set to P 2 (P 1 (Y)) during TRN 2, and P 1 (Y) is set during TRN 3. 2 (P 1 (Y)) will be changed to P 3 (P 2 (P 1 (Y)).

トランザクション外データの更新状況データはデータ
ベース上のデータXとして保持される。トランザクショ
ン機能を有するDBMS上のデータであるXは、当然にトラ
ンザクション機能を享受できる。
The update status data of the non-transaction data is held as the data X on the database. The data X on the DBMS having the transaction function can naturally enjoy the transaction function.

Yの更新を関数Πと記述するとき、Π=P1*P2*P3
P3(P2(P1(Y)))への分割,Xの値の設定選択は、それ
ぞれの対象とするトランザクション外ファイルの特性に
応じて予め計画されるものであり(本発明では、この分
割方法は含めない)、実施例は或る分割方法について示
したに過ぎない。
When the update of Y is described as a function Π, Π = P 1 * P 2 * P 3
The division into P 3 (P 2 (P 1 (Y))) and the setting selection of the value of X are planned in advance according to the characteristics of the target non-transaction file (in the present invention, This division method is not included), but the embodiment only shows a certain division method.

トランザクション外データであるYの更新がどの段階
で異常終了したかを正確に知れば、Yの後処理(構築方
法は本発明には含まれない)を介して回復処理が構築可
能となる。また、そのようにΠを選択しろと言うことで
もある。
By knowing exactly at what stage the update of Y, which is the non-transaction data, is abnormally terminated, the recovery processing can be constructed through the post-processing of Y (the construction method is not included in the present invention). It also means choosing Π like that.

データYの更新がプロセス・ハンドラに依頼される
と、ここに予め組み込まれたΠ=P1*P2*P3の分割と資
源ステータス保持データXを見いだして、直列するトラ
ンザクションTRN1,TRN2,TRN3をスケジュールして、それ
ぞれのトランザクションの開始から終了までの間に、そ
れぞれXを“1"ずつ加算する(図示の例では初期値を1
としたので、2,3,4と更新される)。また、この各期間
(t1-2,t3-4,t5-6)に、同一プロセスでP1,P2,P3に従っ
て、データYに対してそれぞれの部分的更新を実行す
る。
When the data Y is requested to be updated by the process handler, the division of Π = P 1 * P 2 * P 3 and the resource status holding data X, which are pre-installed here, are found and the serial transactions TRN1, TRN2, TRN3 , And add "1" to each X from the start to the end of each transaction (in the example shown, the initial value is 1).
So, it will be updated as 2,3,4). Further, during each period (t 1-2 , t 3-4 , t 5-6 ), partial updating of the data Y is executed in the same process according to P 1 , P 2 , and P 3 .

このような階段的な更新処理の途中で処理が中断した
場合、直後にDBMSの持つトランザクション機能によっ
て、データXの原子性,永続性の保証処理が働き、中断
時点がトランザクションの内外かを問わず、データXは
中断時点に応じて各トランザクションの開始時点の状態
か,終了直後の状態の値を取ることが保証される。即
ち、トランザクションの終了が成功裏に通知される以前
にあっては、そのトランザクションの開始以前の値にな
り、トランザクションの終了が成功裏に通知された後に
は、そのトランザクションによる更新後の値になる。
If the processing is interrupted during such a stepwise update process, the transaction function of the DBMS immediately executes the process of guaranteeing the atomicity and persistence of the data X, regardless of whether the interruption time is inside or outside the transaction. , The data X is guaranteed to take the value of the state at the start of each transaction or the state immediately after the end of the transaction, depending on the suspension time. That is, before the successful notification of the end of the transaction, the value before the start of the transaction, and after the successful notification of the end of the transaction, the value after the update by the transaction. .

本発明によって、データYはトランザクション機能の
対象外であるにも関わらず、データXの値によって、ど
こで処理が中断したかを容易に判別することが可能にな
る。
According to the present invention, it is possible to easily determine where the processing is interrupted by the value of the data X, even though the data Y is not the target of the transaction function.

第2図は本発明の1実施例のシステム構成を示す図で
ある。第2図で、1はコピー・ファイル、2はデータベ
ース、3はビフォア・イメージ・ファイル、4はアフタ
・イメージ・ファイル、5はアクセス・ハンドラ、6は
トランザクション・ハンドラ、7はプロセス・ハンド
ラ、8はトランザクション外データのファイル、9は端
末、10はDBMSをそれぞれ示している。
FIG. 2 is a diagram showing the system configuration of an embodiment of the present invention. In FIG. 2, 1 is a copy file, 2 is a database, 3 is a before image file, 4 is an after image file, 5 is an access handler, 6 is a transaction handler, 7 is a process handler, and 8 Indicates a file of non-transaction data, 9 indicates a terminal, and 10 indicates a DBMS.

ファイル8にはトランザクション外ファイルY(第1
図)が格納され、データベース2には資源ステータスの
保持に利用されるデータX(第1図)が格納される。DB
MS10は、アクセス・ハンドラ5やトランザクション・ハ
ンドラ6などを含んでいる。DBMS10,コピー・ファイル
1,データベース2,ビフォア・イメージ・ファイル3及び
アフタ・イメージ・ファイル4によって、DBMSはトラン
ザクション機能を実現し、データベースと共にデータベ
ース・システムを構成している。
File 8 is a non-transaction file Y (first
FIG. 1) is stored, and the database 2 stores data X (FIG. 1) used for holding the resource status. DB
The MS 10 includes an access handler 5 and a transaction handler 6. DBMS10, copy file
1, the database 2, the before image file 3 and the after image file 4, the DBMS realizes the transaction function, and constitutes the database system together with the database.

コピー・ファイル1は、データベース2の或る時点の
コピーを保持するものである。このコピーを取得した以
降のデータベース2の更新履歴がアフタ・イメージ・フ
ァイル4に取得される。トランザクション未完了でデー
タベース2を更新する場合、予めビフォア・イメージ・
ファイル3にデータベース2をトランザクション開始前
の状態に復元するためのデータを格納し、トランザクシ
ョン終了後に破棄すると言ったシステム構成が良く採用
されている。
The copy file 1 holds a copy of the database 2 at a certain point in time. The update history of the database 2 after the acquisition of this copy is acquired in the after image file 4. Before updating the database 2 when the transaction is not completed, the before image
A system configuration in which data for restoring the database 2 to the state before the start of a transaction is stored in the file 3 and is discarded after the end of the transaction is often adopted.

ここまでは、一般的なトランザクション機能を有する
るデータベース・システムの構成を説明しただけであ
る。ここからが、本発明に特有の核心的な部分となる。
So far, only the structure of the database system having a general transaction function has been described. From here, it becomes the core part peculiar to the present invention.

Yの更新依頼が端末9からプロセス・ハンドラ7に通
知されると、プロセス・ハンドラ7は、Yのこの更新に
ついて予定の一連の段階的な更新スケジュールを起動す
る。
When the update request for Y is notified from the terminal 9 to the process handler 7, the process handler 7 activates a series of stepwise update schedules scheduled for this update of Y.

この手順に従って、Yに対する第1番目から順に第N
番目の更新手順に対応したデータベース2の更新ステー
タス保持データXを更新するトランザクション処理が実
行されていく。
According to this procedure, from the first to Yth Nth
The transaction processing for updating the update status holding data X of the database 2 corresponding to the th update procedure is executed.

処理の途中、どんな異常事態が発生しても、トランザ
クション機能を実現するデータベース・システムは、X
の最後の値を曖昧性なく決定または復元可能である。例
えば、Xの書き出し後、トランザクション終了させる前
の中断ならビフォア・イメージ・ファイル3により元の
値に復元できるし、トランザクション終了後の中断な
ら、アフタ・イメージ・ファイル4により、再書き込み
できると言った公知のデータベースのリカバリ手法を採
用できるからである。
No matter what abnormal situation occurs during processing, the database system that realizes the transaction function is X
The last value of can be unambiguously determined or restored. For example, after writing X, if it was interrupted before the end of the transaction, it could be restored to its original value by the before image file 3, and if it was interrupted after the transaction was completed, it could be rewritten by the after image file 4. This is because a known database recovery method can be adopted.

これによって、中断後のYの処理段階が何番目と何番
目の間にあるかを明確に決定できる。この結果、従来の
ようにアドホックな複雑な診断プログラムを用意し、中
断状況を推定すると言った必要がなくなる。回復処理
は、単に予め定められた再開方法(この構築方法は本発
明の埒外)を実行すると言うフェーズだけで処理を完了
させることが出来る。
This makes it possible to clearly determine the number of Y processing steps between the interruptions. As a result, there is no need to prepare an ad-hoc complicated diagnostic program and estimate the interruption status as in the conventional case. The recovery process can be completed only in the phase of executing a predetermined restart method (this construction method is outside the scope of the present invention).

第2図のシステムの動作を第1図と関連付けて説明す
る。Yの更新依頼が端末9からプロセス・ハンドラ7に
対して通知されると、プロセス・ハンドラ7は、この更
新処理を実行するためのプログラムを実行する。このプ
ログラムは順次実行されていく部分プログラムから成っ
ている。図示の例では、トランザクションTRN1,TRN2,TR
N3の部分プログラムから成る。
The operation of the system shown in FIG. 2 will be described with reference to FIG. When the update request of Y is notified from the terminal 9 to the process handler 7, the process handler 7 executes a program for executing this update process. This program consists of partial programs that are executed in sequence. In the example shown, transactions TRN1, TRN2, TR
It consists of N3 partial programs.

第1番目の部分プログラムは、部分処理の開始に際し
て、トランザクションの開始をトランザクション・ハン
ドラ6に通知し、次いでP1(データYの値をP1(Y)に
更新)を行い、初期値1のXを+1すべきことをアクセ
ス・ハンドラ5に依頼した後、トランザクションの終了
をトランザクション・ハンドラ6に通知する。この第1
のトランザクションTRN1はt1からt2の期間存続する。t2
以降(次のトランザクション完了まで)、Xは2にな
る。
The first part program, at the start of the partial process, and notifies the start of the transaction to the transaction handler 6, then subjected to P 1 (update the value of the data Y to P 1 (Y)), the initial value 1 After requesting the access handler 5 to increment X by 1, the transaction handler 6 is notified of the end of the transaction. This first
Transaction TRN1 of the above will last for the period from t 1 to t 2 . t 2
After that (until the next transaction is completed), X becomes 2.

次に、第2の部分プログラムが実行されるけれども、
同様にして、YはP2によってP1(Y)からP2(P
1(Y))に更新され、Xは3に更新される。以下、同
様である。
Next, although the second partial program is executed,
Similarly, Y P from P 1 (Y) by P 2 2 (P
1 (Y)) and X is updated to 3. The same applies hereinafter.

本発明の具体的な適用例をデータベースにおける領域
割付を例にして説明する。トランザクション外データが
空き領域管理表およびデータベース領域割付表であり、
空き領域管理表におけるボリュームVOL2のエントリには
空き領域が0〜99(数字はトラック番号)であることが
記入されていると仮定する。この状態の下で、ボリュー
ムVOL2のトラック番号0〜49の領域をデータベースに割
り当てる処理は、次のようになる。なお、Xの初期値を
1とする。
A specific application example of the present invention will be described by taking area allocation in a database as an example. The data outside the transaction is the free space management table and the database space allocation table,
It is assumed that the entry of the volume VOL2 in the free space management table is filled with the free space of 0 to 99 (the numbers are track numbers). Under this condition, the processing of assigning the areas of track numbers 0 to 49 of volume VOL2 to the database is as follows. The initial value of X is 1.

トランザクションの開始 空き領域管理表におけるボリュームVOL2のエントリ
を50〜99に更新する。
Transaction start Update the volume VOL2 entry in the free space management table to 50-99.

Xを更新(X=2) トランザクションの終了 トランザクションの開始 データベース領域割付表の空きエントリに、ボリュ
ームVOL2の領域0〜49が割り当てられたことを書き込
む。
Update X (X = 2) Transaction end Transaction start Write that areas 0-49 of volume VOL2 have been allocated to the empty entries in the database area allocation table.

Xの更新(X=3) トランザクション終了 〔発明の効果〕 以上の説明から明らかなように、本発明によれば、ト
ランザクション外データの更新状況を常に正確に知るこ
とが出来る。
Update of X (X = 3) Transaction end [Effect of the invention] As is clear from the above description, according to the present invention, the update status of data outside a transaction can always be known accurately.

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

第1図は本発明の概要を示すための図、第2図は本発明
の1実施例のシステム構成を示す図である。 1…コピー・ファイル、2…データベース、3…ビフォ
ア・イメージ・ファイル、4…アフタ・イメージ・ファ
イル、5…アクセス・ハンドラ、6…トランザクション
・ハンドラ、7…プロセス・ハンドラ、8…トランザク
ション外データのファイル、9…端末、10…データベー
ス管理システム。
FIG. 1 is a diagram showing an outline of the present invention, and FIG. 2 is a diagram showing a system configuration of one embodiment of the present invention. 1 ... Copy file, 2 ... Database, 3 ... Before image file, 4 ... After image file, 5 ... Access handler, 6 ... Transaction handler, 7 ... Process handler, 8 ... Data outside transaction File, 9 ... Terminal, 10 ... Database management system.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】トランザクション外データを記憶するトラ
ンザクション外ファイルと、 トランザクション外データの更新の進行状況を記録する
データを保持するデータベース、データベースのコピー
を保持するコピー・ファイル、データベースのビフォア
・イメージを保持するビフォア・イメージ・ファイル、
データベースのアフタ・イメージを保持するアフタ・イ
メージ・ファイル、およびトランザクション機能を実現
する手段を有するデータベース管理システムを有するデ
ータベース・システムと、 トランザクション外データの更新処理をN個(Nは2以
上の整数)の部分データ処理に分割して実行するプロセ
ス・ハンドラと を具備し、 プロセス・ハンドラは、第i番目(iは1,2,…,N)の部
分データ処理において、 トランザクション開始をデータベース管理システム
に通知する処理、 トランザクション外データを更新する処理、 データベース内の更新状況データを、トランザクシ
ョン外データが第i番目の部分データ処理により更新さ
れたことを示す値に変更すべきことをデータベース管理
システムに依頼する処理、 部分データ処理の終了に際してトランザクションの
終了をデータベース管理システムに通知する処理 を行う ことを特徴とする資源ステータス保持装置。
1. A non-transaction file that stores non-transaction data, a database that holds data that records the progress of update of non-transaction data, a copy file that holds a copy of the database, and a before image of the database. Before image file,
A database system that has an after image file that holds the after image of the database, and a database management system that has a means for implementing the transaction function, and N (N is an integer of 2 or more) update processing for data outside the transaction. And a process handler that executes by dividing into partial data processing of, and the process handler, in the i-th (i is 1, 2, ..., N) partial data processing, starts the transaction to the database management system. Request the database management system to change the data for notifying transaction, the process for updating non-transaction data, and the update status data in the database to a value indicating that the non-transaction data has been updated by the i-th partial data process. To complete the partial data processing At this time, the resource status holding device is characterized by performing a process of notifying the database management system of the end of the transaction.
JP59103228A 1984-05-21 1984-05-21 Resource status holding device Expired - Lifetime JPH0827752B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59103228A JPH0827752B2 (en) 1984-05-21 1984-05-21 Resource status holding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59103228A JPH0827752B2 (en) 1984-05-21 1984-05-21 Resource status holding device

Publications (2)

Publication Number Publication Date
JPS61843A JPS61843A (en) 1986-01-06
JPH0827752B2 true JPH0827752B2 (en) 1996-03-21

Family

ID=14348611

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59103228A Expired - Lifetime JPH0827752B2 (en) 1984-05-21 1984-05-21 Resource status holding device

Country Status (1)

Country Link
JP (1) JPH0827752B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS624454A (en) * 1985-07-01 1987-01-10 Mitsubishi Heavy Ind Ltd Self-discharge and pulse-charged system electrostatic precipitator
GB2281644A (en) * 1993-09-02 1995-03-08 Ibm Fault tolerant transaction-oriented data processing.

Also Published As

Publication number Publication date
JPS61843A (en) 1986-01-06

Similar Documents

Publication Publication Date Title
US6526441B2 (en) Input/output device information management system for multi-computer system
US10671576B2 (en) Distributed database system
US7801855B2 (en) Method and apparatus for merging log entries in a database management system
JPH04229355A (en) Data access method and data processing system
JPH04264638A (en) System and method for controlling rule-driven transaction
JPH04299748A (en) Automatic file extension system
JPH0628402A (en) Data dictionary manager for maintenance of active data dictionary
US5745674A (en) Management of units of work on a computer system log
CN115687378A (en) DDL task parallel processing method, computing node and electronic equipment
JPH0827752B2 (en) Resource status holding device
JP2939414B2 (en) Database Equivalent Processor for Dual Computer
JP2586800B2 (en) Pool management method for magnetic tape media
CN111143277B (en) Data processing method and device and electronic equipment
JPH09269912A (en) Information processing method and information processor
JPH03123946A (en) Exclusive control method for data base
JP2000315190A (en) Job recovery system
JP2752785B2 (en) Dynamic operating environment change method
JPS63196956A (en) File exclusion system
JP2000267866A (en) Device for acquiring end state of two-stage process
JPH04190434A (en) Device and method for data base control
JP2926873B2 (en) Computer system
JPH0546415A (en) Exclusive management control system
JPH07121421A (en) Exclusive control system for file and exclusive control method for file using the system
JPH04361338A (en) Transaction log data succeeding system
JPH0675705A (en) Block assignment control method for auxiliary storage