JPH06187217A - System for synchronization between data base and normal file - Google Patents

System for synchronization between data base and normal file

Info

Publication number
JPH06187217A
JPH06187217A JP4333948A JP33394892A JPH06187217A JP H06187217 A JPH06187217 A JP H06187217A JP 4333948 A JP4333948 A JP 4333948A JP 33394892 A JP33394892 A JP 33394892A JP H06187217 A JPH06187217 A JP H06187217A
Authority
JP
Japan
Prior art keywords
program
transaction
input
database
pointer
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.)
Withdrawn
Application number
JP4333948A
Other languages
Japanese (ja)
Inventor
Naoki Nara
直樹 奈良
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.)
TOHOKU NIPPON DENKI SOFTWARE KK
NEC Solution Innovators Ltd
Original Assignee
TOHOKU NIPPON DENKI SOFTWARE KK
NEC Software Tohoku 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 TOHOKU NIPPON DENKI SOFTWARE KK, NEC Software Tohoku Ltd filed Critical TOHOKU NIPPON DENKI SOFTWARE KK
Priority to JP4333948A priority Critical patent/JPH06187217A/en
Publication of JPH06187217A publication Critical patent/JPH06187217A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To prevent a data base and a normal file from becoming asynchronous by returning even the pointer of the normal file to a last stationary point when program fault occurs and the data base is returned to a nearest stationary point. CONSTITUTION:A program supervising means 2 holds the number of inputs in an input quantity counting table 42 at every input transaction process; when the data base is updated and established by every input quantity, a processing quantity is set in a program control table 41 and the postprocessing process number is set in a transaction number control table 43. If the fault occurs and a program is started while the data base is returned to the nearest stationary point, the program supervising means 2 considers that normal processing is carried out up to the process quantity value in the control table 41 and instructs an operating system 1 so that an input corresponding to the process quantity and the transaction number of an output paired with it are read out of the number control table 43 and the pointers are set to those number values through a pointer returning means 3.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はデータベースと通常ファ
イルとの同期化処理方式、特にデータベースを更新する
と共に通常ファイルに入出力データを記録するトランザ
クション処理におけるデータベースと通常ファイルとの
同期化処理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a synchronization processing method for a database and a normal file, and more particularly to a synchronization processing method for a database and a normal file in transaction processing for updating the database and recording input / output data in the normal file. .

【0002】[0002]

【従来の技術】従来、入力トランザクションによりデー
タベースの更新を行ない、出力トランザクションを発生
させるプログラムにおいて、データベースのデッドロッ
クまたはソフトウェア障害等が発生した場合にデータベ
ースは更新前ジャーナルにより、障害直前のデータベー
スを実更新し内容を確立した時点、一般に直前の静止点
と称される内容への復帰が可能となっているが、入力ト
ランザクションおよび出力トランザクションは通常のフ
ァイルを使用することが多く、通常ファイルの直前の静
止点でのポインタを人手によりプログラム内のデータを
調べて復帰している。またこのような非同期を避けるた
めに、1トランザクションごとに静止点を確立する方法
をとっている場合がある。
2. Description of the Related Art Conventionally, in a program that updates a database by an input transaction and generates an output transaction, when a database deadlock or a software failure occurs, the database uses a pre-update journal to execute the database immediately before the failure. When the contents are updated and the contents are established, it is possible to return to the contents generally called the quiesce point immediately before, but the input transaction and the output transaction often use a normal file, and immediately before the normal file. The pointer at the quiescent point is manually restored by examining the data in the program. In addition, in order to avoid such asynchronization, a method of establishing a quiesce point for each transaction may be adopted.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の人手に
よりデータベースと通常ファイルとの同期をとる方法で
は、煩雑な作業と時間とを要し、また、トランザクショ
ンごとに静止点を確立する方法によれば、データベース
と通常のファイルとの同期は可能となるが、その都度、
実更新を行なうことになり性能の大幅な低下につながる
という問題がある。
The above-mentioned conventional method of manually synchronizing the database and the normal file requires complicated work and time, and also depends on the method of establishing a quiesce point for each transaction. For example, it is possible to synchronize the database with regular files, but each time,
There is a problem that the actual update is performed and the performance is significantly reduced.

【0004】[0004]

【課題を解決するための手段】本発明のデータベースと
通常ファイルとの同期化処理方式は、入力トランザクシ
ョンによりデータベースの更新を行なって出力トランザ
クションを発生させ、データベースの実更新による静止
点の確立は複数の入力トランザクションの処理後に行な
うプログラムの障害発生で、更新前ジャーナルにより直
前の静止点へ復帰したデータベースと通常のファイルを
使用した入出力トランザクションのポインタとの同期を
とるためのデータベースと通常ファイルとの同期化処理
方式において、オペレーティングシステムを介してプロ
グラムの状態監視を行なって、入力トランザクションの
処理ごとに入力件数カウントテーブルの入力トランザク
ションの入力件数を更新保持させ、静止点の確立処理ご
とにこの入力件数をプログラム管理テーブルの前処理件
数として更新保持させ、静止点の確立処理後の入力トラ
ンザクション処理による入出力トランザクション番号対
をトランザクション番号管理テーブルに記録しておき、
データベースが更新ジャーナルにより直前の静止点へ復
帰したことを検知した後のプログラムの起動の検知によ
り、前記プログラム管理テーブルから前処理件数の値を
読取るプログラム監視手段と、このプログラム監視手段
が読取った前処理件数を受けて、前記トランザクション
番号管理テーブルからこの前処理件数に対応する出力ト
ランザクション番号を読取り、前処理件数および読取っ
た出力トランザクション番号から復帰すべき入力および
出力トランザクションのファイルのポインタの値をオペ
レーティングシステムへ指示するポインタ復帰手段とを
有することにより構成される。
According to the method of synchronizing a database and a normal file of the present invention, the database is updated by an input transaction to generate an output transaction, and a quiesce point is established by actual updating of the database. When a program failure occurs after processing the input transaction of, the database that was restored to the previous quiesce point by the pre-update journal and the pointer of the I / O transaction that uses the normal file In the synchronous processing method, the status of the program is monitored through the operating system, and the input count of the input transactions in the input count count table is updated and held for each input transaction process, and this input count is maintained for each quiesce point establishment process. Program update is held as a pretreatment number of management tables, a note of the input transaction number pairs from the input transaction process after the establishment process of the still point in the transaction number management table,
Program monitoring means for reading the value of the number of pre-processing cases from the program management table by detecting the start of the program after detecting that the database has returned to the previous quiesce point by the update journal, and before reading by this program monitoring means. Upon receiving the number of processed transactions, the output transaction number corresponding to this number of preprocessed transactions is read from the transaction number management table, and the pointer values of the input and output transaction files to be restored from the number of preprocessed transactions and the read output transaction numbers are operated. And a pointer returning means for instructing the system.

【0005】[0005]

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

【0006】図1は本発明の一実施例の構成図である。
図1の実施例はジョブ,プログラム,およびファイルの
管理を行なう公知のオペレーティングシステム1,オペ
レーティングシステム1を監視してプログラムの起動・
終了,データベースに対する静止点の確立処理・直前の
静止点への復帰処理の実行,及びソフトウェア障害発生
等の検知を行なうプログラム監視手段2,プログラム監
視手段2により制御されてオペレーティングシステム1
にファイルのポインタの再設定指示を出すポインタ復帰
手段3,およびこれらの制御に必要な各種の情報を記憶
する記憶部4から構成される。記憶部4はプログラム管
理テーブル41,入力件数カウントテーブル42,およ
びトランザクション番号管理テーブル43を有してい
る。
FIG. 1 is a block diagram of an embodiment of the present invention.
The embodiment shown in FIG. 1 monitors a known operating system 1 and operating system 1 for managing jobs, programs, and files, and starts up the program.
The operating system 1 is controlled by the program monitoring means 2 and the program monitoring means 2 for terminating, establishing a quiesce point for the database, executing a restoration process to the immediately preceding quiesce point, and detecting the occurrence of a software failure.
A pointer restoring means 3 for issuing a file pointer reset instruction and a storage section 4 for storing various information necessary for controlling these. The storage unit 4 has a program management table 41, an input number count table 42, and a transaction number management table 43.

【0007】図2は記憶部4の各テーブルの内容を示す
図である。図2(a)はプログラム管理テーブル41の
内容を示す図で、ジョブ名・プログラム名をキーとし、
初期値は0で、その時点までに処理した入力トランザク
ションの件数である前処理件数を設定するようになって
いる。図2(b)は入力件数カウントテーブル42の内
容を示す図で、入力トランザクションの入力件数が設定
されるようになっている。図2(c)はトランザクショ
ン番号管理テーブル43の内容を示す図で、出力トラン
ザクションのファイル名をキーとし、入出力トランザク
ションのレコード番号(以下、入出力トランザクション
番号という)を設定できるようになっている。
FIG. 2 is a diagram showing the contents of each table in the storage unit 4. FIG. 2A is a diagram showing the contents of the program management table 41, with the job name and program name as keys,
The initial value is 0, and the number of pre-processing cases, which is the number of input transactions processed up to that point, is set. FIG. 2B is a view showing the contents of the input case count table 42, in which the number of input cases of the input transaction is set. FIG. 2C is a diagram showing the contents of the transaction number management table 43. With the file name of the output transaction as a key, the record number of the input / output transaction (hereinafter referred to as the input / output transaction number) can be set. .

【0008】次に、図1の実施例の動作について説明を
進める。プログラムが起動、または再起動され、この起
動がオペレーティングシステム1を介してプログラム監
視手段2によって検知されると、プログラム監視手段2
はジョブ名・プログラム名をキーとしてプログラム管理
テーブル41を参照する。参照した結果、ジョブ名・プ
ログラム名が存在しなければ、このプログラムは通常フ
ァイルの同期化処理の対象外と判断して次のプログラム
が起動されるまで、プログラム監視手段2は何も行なわ
ない。ジョブ名・プログラム名が存在していれば、即ち
通常ファイルの同期化処理の対象と判断されてテーブル
内の前処理件数を参照する。そして前処理件数が0であ
れば、前回のプログラムの実行が正常に終了したと判断
し、以降オペレーティングシステム1を介してプログラ
ムの実行状態の監視を続ける。プログラム監視手段2は
プログラムの実行状態の監視を続けると共に、更に入力
トランザクションの入力件数を計数して入力件数を入力
件数カンウントテーブル42へ設定し、入力トランザク
ション番号とそれに対応する出力トランザクション番号
とをトランザクション番号管理テーブル43へ設定す
る。次いで、プログラム監視手段2は入力トランザクシ
ョンの一定件数の処理で行なわれる静止点の確立処理が
正常に行なわれたことを検知すると、入力件数カウント
テーブル72の値をプログラム管理テーブル41へ設定
し、トランザクション番号管理テーブル43の内容消去
を行なう。
Next, the operation of the embodiment shown in FIG. 1 will be described. When the program is started or restarted and this start is detected by the program monitoring means 2 via the operating system 1, the program monitoring means 2
Refers to the program management table 41 using the job name / program name as a key. As a result of the reference, if the job name / program name does not exist, the program monitoring means 2 does nothing until it is judged that this program is not the target of normal file synchronization processing and the next program is started. If the job name / program name exists, that is, it is determined as the target of the normal file synchronization processing, and the number of pre-processing cases in the table is referred to. Then, if the number of pre-processes is 0, it is determined that the execution of the previous program is normally completed, and thereafter, the execution state of the program is continuously monitored via the operating system 1. The program monitoring means 2 continues to monitor the execution state of the program, further counts the number of input transactions, sets the number of input transactions in the input transaction count table 42, and sets the input transaction number and the corresponding output transaction number. Set in the transaction number management table 43. Next, when the program monitoring means 2 detects that the quiesce point establishment process, which is performed by a certain number of input transactions, is normally performed, it sets the value of the input number count table 72 in the program management table 41, and the transaction The contents of the number management table 43 are erased.

【0009】ところで前処理件数に0以外の値が設定さ
れている場合は、前回のプログラムの実行で異常があ
り、その後、再起動されたと判断するが、一方、オペレ
ーティングシステムを介してデータベースに対して直前
の静止点への復帰処理が行なわれたことを検知すると、
入力トランザクションは前処理件数の値まで正常に実行
されたとして、ポインタ復帰手段3に前処理件数の値を
渡す。ポインタ復帰手段3はオペレーティングシステム
1に入力トランザクションに対するポインタを前処理件
数+1の値に設定するように指示する。またトランザク
ション管理テーブル43を参照して、入力トランザクシ
ョン番号と前処理件数の値との比較を行ない、前処理件
数の値より大きい入力トランザクション番号に対する出
力トランザクション号を探し、この番号の出力トランザ
クションおよびそれ以降の出力トランザクションを無効
にするために、オペレーティングシステム1に出力トラ
ンザクションに対してポインタを探し出したトランザク
ション番号の値に設定するよう指示する。オペレーティ
ングシステム1はそれぞれ指示された値をポインタに設
定する。なお出力トランザクションが複数ある場合に
も、トランザクション番号管理テーブル43はファイル
名をキーとしてそれぞれの出力トランザクションに対応
するように設けられているので、それぞれのファイルに
ついて処理される。なお、プログラム監視手段2はポイ
ンタ復帰手段3に制御を渡した後、ポインタの再設定が
行なわれたことを検知すると、プログラムの継続実行を
オペレーティングシステムを介して指示する。またソフ
トウェア障害等でプログラムの継続実行が不可能である
ことを検知すると、プログラムの打切りをオペレーティ
ングシステム1に指示するが、オペレータがソフトウェ
ア障害等の原因を除去してプログラムの再実行を行なっ
た場合には、プログラム管理テーブル41の前処理件数
に従って上述の処理が行なわれるので、円滑な復帰が行
なわれる。さらにまた、プログラム監視手段2はプログ
ラムが正常に終了したことを検知すると、プログラム管
理テーブル41の前処理件数を消去して0にする。
If a value other than 0 is set for the number of pre-processing cases, it is judged that there was an abnormality in the previous program execution, and then the program was restarted. When it detects that the process of returning to the previous stationary point has been performed,
Assuming that the input transaction has been normally executed up to the value of the number of preprocesses, the value of the number of preprocesses is passed to the pointer restoring means 3. The pointer restoring means 3 instructs the operating system 1 to set the pointer for the input transaction to the value of the number of preprocessing cases + 1. In addition, the transaction management table 43 is referred to, the input transaction number is compared with the value of the number of pre-processing cases, the output transaction number for the input transaction number larger than the value of the number of pre-processing cases is searched, and the output transaction of this number and thereafter. In order to invalidate the output transaction of, the operating system 1 is instructed to set the pointer to the value of the found transaction number for the output transaction. The operating system 1 sets the instructed value in the pointer. Even when there are a plurality of output transactions, the transaction number management table 43 is provided so as to correspond to each output transaction using the file name as a key, and therefore each file is processed. When the program monitoring means 2 detects that the pointer has been reset after passing control to the pointer restoring means 3, it instructs the program to continue execution via the operating system. When it is detected that the program cannot be continuously executed due to a software error or the like, the operating system 1 is instructed to terminate the program, but when the operator removes the cause of the software error or the like and re-executes the program. Since the above-mentioned processing is performed according to the number of pre-processing cases of the program management table 41, smooth recovery is performed. Furthermore, when the program monitoring means 2 detects that the program has ended normally, it erases the number of preprocessing cases in the program management table 41 to zero.

【0010】[0010]

【発明の効果】以上説明したように本発明は、トランザ
クション処理においてデータベースに対する静止点の定
期的な確立処理に到るまでの処理件数等を管理すること
により、データベースに対する直前の静止点への復帰処
理に伴ない、通常のファイルのポインタの復帰を行なう
ことができ、データベースと通常のファイルとの同期が
とれるので、人手により通常のファイルのポインタの復
帰や、入力トランザクション処理ごとに静止点の確立を
必要としないので、システム性能の向上がはかられると
いう効果がある。
As described above, the present invention manages the number of processings up to the regular establishment processing of the quiesce point for the database in the transaction processing, thereby returning to the immediately preceding quiesce point for the database. Along with the processing, the pointer of the normal file can be restored, and the database and the regular file can be synchronized, so that the pointer of the regular file is manually restored and a quiesce point is established for each input transaction processing. Since it is not necessary, there is an effect that the system performance can be improved.

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

【図1】本発明の一実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

【図2】図1の実施例の記憶部内の各テーブルの内容を
示す図である。
FIG. 2 is a diagram showing the contents of each table in the storage unit of the embodiment of FIG.

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

1 オペレーティングシステム 2 プログラム監視手段 3 ポンイタ復帰手段 4 記憶部 41 プログラム管理テーブル 42 入力件数カウントテーブル 43 トランザクション番号管理テーブル 1 Operating System 2 Program Monitoring Means 3 Pointer Returning Means 4 Storage Unit 41 Program Management Table 42 Input Count Count Table 43 Transaction Number Management Table

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 入力トランザクションによりデータベー
スの更新を行なって出力トランザクションを発生させ、
データベースの実更新による静止点の確立は複数の入力
トランザクションの処理後に行なうプログラムの障害発
生で、更新前ジャーナルにより直前の静止点へ復帰した
データベースと通常のファイルを使用した入出力トラン
ザクションのポインタとの同期をとるためのデータベー
スと通常ファイルとの同期化処理方式において、オペレ
ーティングシステムを介してプログラムの状態監視を行
なって、入力トランザクションの処理ごとに入力件数カ
ウントテーブルの入力トランザクションの入力件数を更
新保持させ、静止点の確立処理ごとにこの入力件数をプ
ログラム管理テーブルの前処理件数として更新保持さ
せ、静止点の確立処理後の入力トランザクション処理に
よる入出力トランザクション番号対をトランザクション
番号管理テーブルに記録しておき、データベースが更新
ジャーナルにより直前の静止点へ復帰したことを検知し
た後のプログラムの起動の検知により、前記プログラム
管理テーブルから前処理件数の値を読取るプログラム監
視手段と、このプログラム監視手段が読取った前処理件
数を受けて、前記トランザクション番号管理テーブルか
らこの前処理件数に対応する出力トランザクション番号
を読取り、前処理件数および読取った出力トランザクシ
ョン番号から復帰すべき入力および出力トランザクショ
ンのファイルのポインタの値をオペレーティングシステ
ムへ指示するポインタ復帰手段とを有することを特徴と
するデータベースと通常ファイルとの同期化処理方式。
1. A database is updated by an input transaction to generate an output transaction,
Establishing a quiesce point by actually updating the database is a program failure that occurs after the processing of multiple input transactions, and the database that was restored to the last quiesce point by the pre-update journal and the pointer of the I / O transaction that uses a normal file In the synchronization processing method of the database and regular files for synchronization, the status of the program is monitored through the operating system, and the input count of the input transaction in the input count count table is updated and held for each input transaction processing. , This input count is updated and held as the preprocessing count of the program management table for each quiesce point establishment process, and the input / output transaction number pair by the input transaction process after the quiesce point establishment process is stored in the transaction number management table. A program monitoring means for reading the value of the number of pre-processing cases from the program management table by detecting the start of the program after detecting that the database has returned to the previous quiesce point by the update journal, and this program monitoring Upon receiving the number of preprocesses read by the means, the output transaction number corresponding to the number of preprocesses is read from the transaction number management table, and the file of the input and output transactions to be restored from the number of preprocesses and the read output transaction number is read. A synchronization processing method for a database and a normal file, comprising a pointer restoring means for instructing a pointer value to an operating system.
JP4333948A 1992-12-15 1992-12-15 System for synchronization between data base and normal file Withdrawn JPH06187217A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4333948A JPH06187217A (en) 1992-12-15 1992-12-15 System for synchronization between data base and normal file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4333948A JPH06187217A (en) 1992-12-15 1992-12-15 System for synchronization between data base and normal file

Publications (1)

Publication Number Publication Date
JPH06187217A true JPH06187217A (en) 1994-07-08

Family

ID=18271775

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4333948A Withdrawn JPH06187217A (en) 1992-12-15 1992-12-15 System for synchronization between data base and normal file

Country Status (1)

Country Link
JP (1) JPH06187217A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006127418A (en) * 2004-11-01 2006-05-18 Hitachi Ltd Computer system, computer, database access method, and database system
US20130201607A1 (en) * 2010-06-29 2013-08-08 Siemens Aktiengesellschaft Pressurised gas-insulated multi-phase control panel

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006127418A (en) * 2004-11-01 2006-05-18 Hitachi Ltd Computer system, computer, database access method, and database system
US20130201607A1 (en) * 2010-06-29 2013-08-08 Siemens Aktiengesellschaft Pressurised gas-insulated multi-phase control panel

Similar Documents

Publication Publication Date Title
JPH0465414B2 (en)
KR20040088397A (en) Transactionally consistent change tracking for databases
JPH04139544A (en) Data restoring method
JPH08221433A (en) Information retrieval system
JPH06187217A (en) System for synchronization between data base and normal file
JPH0594353A (en) Database management system
JPH04195436A (en) Automatic test system for computer system
KR101091071B1 (en) Method system and software for journaling system objects
JPH1040123A (en) System and method for job management
GB2405228A (en) Verifying the order of a queue of work items
JPH0659913A (en) Batch job scheduling system
JPH05143422A (en) Updated journal managing system
JP2845886B2 (en) Management processing method for each generation data
JPH03246643A (en) Processing for editing dump summary
JPH05100935A (en) Data base managing system
JPS61114335A (en) Output system of control journal
JPH03233634A (en) Job reprocessing system
JPH08272669A (en) Data updating method in client-server system
JPH0962554A (en) Quiescent point save generation system
JP2528882B2 (en) Fallback operation method in case of memory failure
JPH03174633A (en) Multi-task control system
JP3483662B2 (en) Computer backup method
JPH0756793A (en) Automatic restoration system for file fault
JPH0212447A (en) Parallel processing system for online processing and batch processing
JP2008234142A (en) Batch processing restoration method and system, and program

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000307