JP2000293416A - Database processor and storage medium - Google Patents

Database processor and storage medium

Info

Publication number
JP2000293416A
JP2000293416A JP11097882A JP9788299A JP2000293416A JP 2000293416 A JP2000293416 A JP 2000293416A JP 11097882 A JP11097882 A JP 11097882A JP 9788299 A JP9788299 A JP 9788299A JP 2000293416 A JP2000293416 A JP 2000293416A
Authority
JP
Japan
Prior art keywords
update
database
data
processing
series
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.)
Abandoned
Application number
JP11097882A
Other languages
Japanese (ja)
Inventor
Takeshi Iwamoto
剛 岩本
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP11097882A priority Critical patent/JP2000293416A/en
Publication of JP2000293416A publication Critical patent/JP2000293416A/en
Abandoned legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To facilitate processing database of after its restoration when abnormality takes place during update processing in a database processor which continuously updates data in a database by plural application programs. SOLUTION: In this database processor 1 which performs a series of update processing updating plural pieces of data in a database 10 by continuously executing plural database update processing, a transaction ID is generated when a first database update processing of transaction is performed with plural pieces of database update processing as one transaction. Then, the transaction ID is inherited each time database update processing is switched during the transaction, and the execution of database update processing that does not inherit the transaction ID is limited. Also, the update contents of the database is determined provisionally during the transaction and determined completely after the transaction is finished normally.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、データベースの更
新処理を行うデータベース処理装置に係り、詳細には、
データベースの更新が正常に処理されなかった場合にデ
ータベースの復旧を行うデータベース処理装置、およ
び、その制御プログラムを格納した記憶媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database processing apparatus for performing a database update process,
The present invention relates to a database processing device that restores a database when a database update is not normally processed, and a storage medium that stores the control program.

【0002】[0002]

【従来の技術】複数のアプリケーションプログラムによ
る処理で利用されるデータベースとして、RDBMS
(Relational DataBase Management System )と呼ばれ
るデータベースが広く利用されている。このRDBMS
は、通常のデータベース管理システムと同様、更新処理
中に異常が発生してファイルが破壊された場合に、ファ
イルを復旧する機能を備えている。
2. Description of the Related Art An RDBMS is used as a database used in processing by a plurality of application programs.
A database called (Relational DataBase Management System) is widely used. This RDBMS
Has a function of restoring a file when an error occurs during the update process and the file is destroyed, as in a normal database management system.

【0003】ファイルの復旧方法として、これまで一般
的に行われてきた方法としては、アプリケーションプロ
グラムによる削除、追記等の各処理によってデータベー
ス内のデータが更新される際に更新内容を一時的に記憶
し、異常が発生した場合には記憶しておいた更新内容を
もとにファイルを復元するロールバックと呼ばれる方法
があった。
[0003] As a method of restoring a file, a method generally performed so far is to temporarily store an updated content when data in a database is updated by each processing such as deletion and appending by an application program. However, there is a method called rollback for restoring a file based on the stored update content when an error occurs.

【0004】上記のRDBMSを含め、データベース内
のデータを更新する処理は、一般に「トランザクショ
ン」と呼ばれる単位で実行される。通常、トランザクシ
ョンは、アプリケーションプログラムによるデータベー
ス内のデータの更新処理開始から当該アプリケーション
プログラムの処理終了までの間を指し、このトランザク
ションの間は、データベースを他のアプリケーションプ
ログラムで操作することはできない。
The process of updating data in a database, including the above RDBMS, is generally executed in units called "transactions". Usually, a transaction refers to a period from the start of update processing of data in a database by an application program to the end of processing of the application program. During this transaction, the database cannot be operated by another application program.

【0005】従来のデータベースでは、ロールバック法
による復旧はトランザクション毎に行われていた。即
ち、異常が発生したトランザクションで更新された部分
を当該トランザクションの前の状態に戻すことで復旧を
行っていた。
In a conventional database, recovery by the rollback method is performed for each transaction. That is, recovery is performed by returning the updated portion of the transaction in which the abnormality has occurred to the state before the transaction.

【0006】[0006]

【発明が解決しようとする課題】ところが、RDBMS
内のデータについて、複数のアプリケーションプログラ
ムによる処理を連続して行った場合に上記従来の方法で
データベースを復旧すると、異常が発生したアプリケー
ションプログラムの更新処理前の状態でデータベースが
復元される。このため、復旧後に処理を継続する際の手
間がかかるという問題点があった。
However, RDBMS
If the database is restored by the above-mentioned conventional method when the processes in a plurality of application programs are continuously performed on the data in the database, the database is restored in a state before the update process of the application program in which the abnormality has occurred. For this reason, there is a problem that it takes time to continue the processing after the restoration.

【0007】データベースの処理を行う操作者は、複数
のアプリケーションプログラムによって連続して処理を
行ってデータベース内の関連する複数のデータを更新す
る一連の処理を、1つのまとまった処理として操作する
のが一般的である。しかし、上記従来の方法でデータベ
ースを復旧すると、あくまでトランザクション毎に、正
常終了したか否かが判別され、異常発生時には復旧が行
われる。このため、異常発生後に復旧されたデータベー
スは、複数のアプリケーションプログラムのうち、いず
れかのアプリケーションプログラムによる処理が反映さ
れ、異常が発生したアプリケーションプログラム以降の
処理が反映されない状態になる。これでは、データベー
スが復旧されても、どのアプリケーションプログラムか
ら処理を再開すればよいかがわかりにくく、異常発生後
の作業負担の増大を招いていた。
[0007] An operator who performs database processing operates a series of processing of updating a plurality of related data in the database by continuously performing processing by a plurality of application programs as one integrated processing. General. However, when the database is restored by the above-described conventional method, it is determined whether or not the transaction has been completed normally for each transaction, and the recovery is performed when an abnormality occurs. For this reason, the database restored after the occurrence of the abnormality reflects the processing of any one of the plurality of application programs, and does not reflect the processing after the application program in which the abnormality occurred. This makes it difficult to know from which application program the processing should be resumed even after the database is restored, resulting in an increase in the work load after the occurrence of the abnormality.

【0008】また、従来のデータベースでは1つのアプ
リケーションプログラムの処理が終了すると同時にトラ
ンザクションが終了するので、1つのアプリケーション
プログラムによる処理が終了した時点で、無関係なアプ
リケーションプログラムによる処理が可能となってい
た。このため、連続して処理すべき複数のアプリケーシ
ョンプログラムの合間に、無関係なアプリケーションプ
ログラムによる処理が行われ、データベース内のデータ
が整合性を失って、データに矛盾を生じる恐れがあっ
た。
Further, in the conventional database, the transaction ends at the same time when the processing of one application program ends, so that the processing by an unrelated application program can be performed when the processing by one application program ends. For this reason, processing by an unrelated application program is performed between a plurality of application programs to be processed continuously, and data in the database may lose consistency and cause inconsistency in the data.

【0009】この発明は、上記問題点を解決するため、
データベース内のデータを複数のアプリケーションプロ
グラムによって更新するデータベース処理装置におい
て、更新処理中に異常が発生した場合に、データベース
復旧後の処理を容易にすることを目的とする。
The present invention has been made in order to solve the above problems.
In a database processing apparatus that updates data in a database by a plurality of application programs, an object is to facilitate processing after database recovery when an abnormality occurs during the update processing.

【0010】[0010]

【課題を解決するための手段】上記課題を解決するた
め、請求項1記載の発明は、データベース内のデータを
更新する複数の更新手段を備え、これら複数の更新手段
のうち指定された複数の更新手段によって、前記データ
ベース内の複数のデータを更新する一連の更新処理を行
うデータベース処理装置において、前記一連の更新処理
が実行されている間は、前記指定された複数の更新手段
以外の前記更新手段による更新処理を制限する更新制御
手段と、前記一連の更新処理における更新内容を記憶す
る記憶手段と、前記一連の更新処理が正常に終了した際
に、前記記憶手段に記憶された更新内容に従って前記デ
ータベース内のデータを確定するデータ確定手段と、前
記一連の更新処理中に異常が発生した場合には、前記記
憶手段に記憶された更新内容をもとに前記データベース
内のデータを前記一連の更新処理以前の状態に復旧する
データ復旧手段と、を備えることを特徴としている。
In order to solve the above-mentioned problems, the invention according to claim 1 includes a plurality of update units for updating data in a database, and a plurality of update units designated among the plurality of update units. In a database processing device that performs a series of update processing for updating a plurality of data in the database by an update unit, while the series of update processing is being executed, the update other than the specified plurality of update units is performed. Update control means for restricting update processing by means; storage means for storing update contents in the series of update processing; and when the series of update processing ends normally, according to the update contents stored in the storage means. A data deciding unit for deciding data in the database, and an abnormality stored in the storage unit when an abnormality occurs during the series of updating processes. New content is characterized by comprising: a data recovery unit for recovering the data in said database based on the state of the series of update processing earlier, the.

【0011】この請求項1記載の発明によれば、指定さ
れた複数の更新手段によってデータベース内のデータを
更新する一連の更新処理を行う場合に、この一連の更新
処理を行う更新手段として指定されていない更新手段に
よるデータの更新を制限するので、複数のデータを連続
して更新している最中に無関係なデータが更新される等
の事態を避けることができる。これにより、データベー
ス内のデータの矛盾を防ぎ、データベースの信頼性を高
めることができる。また、更新手段によって更新された
更新内容は一連の更新処理が終了してから確定されるの
で、異常が発生した場合には、一連の更新処理が行われ
る前の状態にデータベースが復旧される。従って、デー
タベースが一連の更新処理の途中の状態に戻されること
がないので、復旧後は一連の更新処理を最初から実行す
ればよく、復旧後の処理が非常に容易で、作業負担を軽
減することができる。
According to the first aspect of the present invention, when a series of update processes for updating data in the database by a plurality of designated update units are performed, the update unit is designated as the update unit for performing the series of update processes. Since updating of data by an updating unit that is not updated is restricted, it is possible to avoid a situation in which irrelevant data is updated while a plurality of data are continuously updated. Thereby, inconsistency of data in the database can be prevented, and the reliability of the database can be improved. In addition, since the update content updated by the update unit is determined after the series of update processing ends, if an abnormality occurs, the database is restored to a state before the series of update processing is performed. Therefore, since the database is not returned to the state in the middle of the series of update processing, the series of update processing only needs to be executed from the beginning after restoration, and the processing after restoration is very easy, and the work load is reduced. be able to.

【0012】また、請求項4記載の発明は、データベー
ス内のデータを更新する複数の更新手段を備え、これら
複数の更新手段のうち指定された複数の更新手段によっ
て、前記データベース内の複数のデータを更新する一連
の更新処理を行うデータベース処理装置において、前記
一連の更新処理の最初の前記更新手段によりデータが更
新される際に、当該一連の更新処理に対応する識別符号
を生成して当該更新手段に取得させる識別符号生成手段
と、前記一連の更新処理中、前記更新手段によるデータ
の更新が終了して次の前記更新手段によるデータの更新
が行われる際には、先に更新を行った前記更新手段が取
得した前記識別符号を次の前記更新手段に取得させる識
別符号制御手段と、前記一連の更新処理中は、当該一連
の更新処理に対応する識別符号を取得していない前記更
新手段による更新処理を制限する更新制御手段と、前記
一連の更新処理における更新内容を記憶する記憶手段
と、前記一連の更新処理が正常に終了した際に、前記記
憶手段に記憶された更新内容に従って前記データベース
内のデータを確定するデータ確定手段と、前記一連の更
新処理中に異常が発生した場合には、前記記憶手段に記
憶された更新内容をもとに前記データベース内のデータ
を前記一連の更新処理以前の状態に復旧するデータ復旧
手段と、を備えることを特徴としている。
According to a fourth aspect of the present invention, there are provided a plurality of updating means for updating data in a database, and a plurality of data in the database are updated by a plurality of designated updating means among the plurality of updating means. In a database processing apparatus that performs a series of update processing, when data is updated by the first update unit of the series of update processing, an identification code corresponding to the series of update processing is generated to update the data. The identification code generating means to be obtained by the means, and when the data updating by the updating means is completed and the data updating is performed by the next updating means during the series of updating processing, the updating is performed first. Identification code control means for causing the next update means to acquire the identification code acquired by the update means, and corresponding to the series of update processing during the series of update processing Update control means for restricting update processing by the update means which has not obtained an identification code, storage means for storing update contents in the series of update processing, and when the series of update processing ends normally, Data determination means for determining data in the database according to the update content stored in the storage means, and, if an abnormality occurs during the series of update processing, the data determination means based on the update content stored in the storage means. Data recovery means for recovering the data in the database to a state before the series of update processing.

【0013】この請求項4記載の発明によれば、一連の
更新処理の最初の更新手段による更新が行われる際に、
当該一連の更新処理に対応する識別符号が生成され、こ
の識別符号を取得していない更新手段による処理を制限
するので、無関係なデータの更新を確実に防止して、デ
ータベースの信頼性を向上させることができる。また、
一連の更新処理中に更新手段が切り換えられる際には、
先に更新を行った更新手段から次の更新手段に識別符号
が引き継がれるので、無関係な更新手段を容易に判別す
ることができる。従って、容易に、かつ確実に、データ
ベースの信頼性を向上させることができる。
According to the fourth aspect of the present invention, when updating is performed by the first updating means in a series of updating processing,
An identification code corresponding to the series of update processing is generated, and processing by an update unit that has not acquired the identification code is limited. Therefore, update of irrelevant data is reliably prevented, and the reliability of the database is improved. be able to. Also,
When the updating means is switched during a series of updating processes,
Since the identification code is passed from the updating unit that has performed the updating to the next updating unit, the irrelevant updating unit can be easily determined. Therefore, the reliability of the database can be easily and reliably improved.

【0014】[0014]

【発明の実施の形態】以下、この発明の実施の形態につ
いて、図1〜図7の図面を参照しながら説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below with reference to FIGS.

【0015】[第1の実施の形態]まず、構成を説明す
る。図1は、本発明の第1の実施の形態におけるデータ
ベース処理装置1の構成を示す図である。この図1に示
すように、データベース処理装置1は、CPU(Centra
l Processing Unit )2、RAM(Random Access Memo
ry)3、ROM(Read Only Memory)4、記憶装置5、
記憶装置5が有する記憶媒体6、入力装置7、表示装置
8、印刷装置9およびデータベース10により構成さ
れ、記憶媒体6を除く各部はバス11により接続されて
いる。
[First Embodiment] First, the configuration will be described. FIG. 1 is a diagram showing a configuration of the database processing device 1 according to the first embodiment of the present invention. As shown in FIG. 1, the database processing device 1 includes a CPU (Centra
l Processing Unit) 2, RAM (Random Access Memo)
ry) 3, ROM (Read Only Memory) 4, storage device 5,
The storage device 5 includes a storage medium 6, an input device 7, a display device 8, a printing device 9, and a database 10, and each part except the storage medium 6 is connected by a bus 11.

【0016】なお、本第1の実施の形態において、CP
U2は図2に示す処理を実行することによって請求項記
載の更新手段に対応し、同様に、図3のステップS12
3に示す処理を実行することによって更新制御手段に対
応し、図3のステップS130〜ステップS131に示
す処理を実行することによりデータ確定手段に対応し、
ステップS126〜ステップS128に示す処理を実行
することによってデータ復旧手段に対応する。また、C
PU2によってステップS124あるいはステップS1
35に示す処理が実行されることにより、記憶装置5は
記憶手段に対応する。また、CPU2は、図3のステッ
プS134に示す処理を実行することによって識別符号
生成手段に対応し、図2のステップS106〜ステップ
S107に示す処理を実行することによって識別符号制
御手段に対応する。
In the first embodiment, the CP
U2 corresponds to the updating means described in the claims by executing the processing shown in FIG. 2, and similarly, step S12 in FIG.
3 corresponds to the update control means, and performs the processing shown in steps S130 to S131 in FIG. 3 to correspond to the data determination means.
By executing the processing shown in Steps S126 to S128, it corresponds to a data recovery unit. Also, C
Step S124 or step S1 depending on PU2
By executing the processing shown in 35, the storage device 5 corresponds to a storage unit. The CPU 2 corresponds to the identification code generation unit by executing the processing shown in step S134 in FIG. 3, and corresponds to the identification code control unit by executing the processing shown in steps S106 to S107 in FIG.

【0017】CPU2は、入力装置7における指示入力
に従って、ROM4内に格納される基本制御プログラム
や記憶装置5内に格納された各種アプリケーションプロ
グラムを読み込み、RAM3内に設けられたメモリエリ
アに展開して実行する。具体的には、CPU2は、RO
M4内に格納された基本制御プログラムを実行すること
によってデータベース処理装置1の各部を初期状態に移
行させる等の制御を行う。また、CPU2は、記憶装置
5内に格納された各種アプリケーションプログラムを読
み込んで実行することにより、後述するデータベース更
新処理(図2)を実行してデータベース10内のデータ
の削除、追加あるいは更新等の各種処理を実行する。
The CPU 2 reads a basic control program stored in the ROM 4 and various application programs stored in the storage device 5 in accordance with an instruction input from the input device 7, and develops the basic control program in a memory area provided in the RAM 3. Execute. Specifically, the CPU 2
By executing the basic control program stored in M4, control such as shifting each unit of the database processing apparatus 1 to the initial state is performed. Further, the CPU 2 reads and executes various application programs stored in the storage device 5 to execute a database update process (FIG. 2) described later to delete, add, or update data in the database 10. Execute various processes.

【0018】また、CPU2は、後述するデータベース
制御プログラムを記憶装置5から読み込んで実行するこ
とで後述するデータベース制御処理(図3)を実行し、
アプリケーションプログラムの実行に伴ってデータベー
ス10内に格納されたデータが更新される際に、データ
ベース10の更新内容のバックアップデータを生成して
記憶装置5に記憶させ、暫定コミットを行う。さらに、
トランザクションが終了するまでの間の各種アプリケー
ションプログラムによってデータベース10内のデータ
が更新される度に、随時暫定コミットを行う。そして、
完全コミットが指定された場合、或いは、トランザクシ
ョンが終了する場合には、暫定コミットされていたデー
タの更新内容を完全に確定する完全コミットを実行す
る。
The CPU 2 executes a database control process (FIG. 3) described later by reading a database control program described later from the storage device 5 and executing it.
When the data stored in the database 10 is updated with the execution of the application program, backup data of the updated content of the database 10 is generated and stored in the storage device 5, and a provisional commit is performed. further,
A provisional commit is performed whenever data in the database 10 is updated by various application programs until the end of the transaction. And
When a full commit is specified or when the transaction ends, a full commit is executed to completely determine the update content of the provisionally committed data.

【0019】さらに、CPU2は、入力装置7からの指
示入力に従って、データベース10の内容や更新処理の
進行状況等の各種情報を表示するための表示データを生
成して表示装置8に出力し、表示装置8の表示画面上に
表示させる。また、表示装置8に表示される内容を印刷
するための印刷データを生成して印刷装置9に出力し、
印刷を実行させる。
Further, the CPU 2 generates display data for displaying various information such as the contents of the database 10 and the progress of the update processing in accordance with an instruction input from the input device 7, outputs the display data to the display device 8, and outputs the display data. It is displayed on the display screen of the device 8. Further, print data for printing the content displayed on the display device 8 is generated and output to the printing device 9,
Execute printing.

【0020】RAM3は、CPU2により処理される各
種プログラムや、その処理に係るデータを一時的に格納
するメモリエリアを形成する。
The RAM 3 forms a memory area for temporarily storing various programs processed by the CPU 2 and data related to the processing.

【0021】ROM4は、CPUが実行する一連の処理
を実行するための各種基本制御プログラムを格納する。
このROM4内の各基本制御プログラムは、CPU2が
読み取り可能なプログラムコードの形態で記憶されてい
る。
The ROM 4 stores various basic control programs for executing a series of processes executed by the CPU.
Each basic control program in the ROM 4 is stored in the form of a program code readable by the CPU 2.

【0022】記憶装置5は、プログラムやデータ等が記
憶される記憶媒体6を有し、この記憶媒体6は磁気的、
光学的記録媒体、若しくは半導体メモリで構成されてい
る。この記憶媒体6は記憶装置5に固定的に設けたも
の、若しくは着脱自在に装着するものであり、CPU2
により実行される各種アプリケーションプログラムやこ
れら各種アプリケーションプログラムに係るデータ等を
格納する。
The storage device 5 has a storage medium 6 in which programs, data, and the like are stored.
It is composed of an optical recording medium or a semiconductor memory. The storage medium 6 is either fixedly provided in the storage device 5 or removably mounted.
And various data related to the various application programs to be executed.

【0023】また、上記の記憶媒体6に記憶されるデー
タ等は、通信回線等を介して接続された他の機器から受
信して記憶する構成にしてもよく、さらに、通信回線等
を介して接続された他の機器側に上記記憶媒体を備えた
記憶装置を設け、この記憶媒体6に記憶されているプロ
グラムやデータを通信回線を介して使用する構成として
も良い。
The data and the like stored in the storage medium 6 may be received and stored from another device connected via a communication line or the like. A configuration may be adopted in which a storage device having the above storage medium is provided on the other connected device side, and programs and data stored in the storage medium 6 are used via a communication line.

【0024】入力装置7は、カーソルキー、数字入力キ
ーおよび各種機能キーを備えたキーボードや、マウス等
のポインティングデバイスを備えている。そして、入力
装置7は、キーボードが操作されると押下されたキーに
対応する押下信号を生成してCPU2に出力し、マウス
等のポインティングデバイスが操作されると、クリック
信号等の操作信号とともに、この操作により指定された
座標を示す相対座標データをCPU2に出力する。
The input device 7 includes a keyboard having cursor keys, numeric input keys, and various function keys, and a pointing device such as a mouse. When the keyboard is operated, the input device 7 generates a press signal corresponding to the pressed key and outputs the signal to the CPU 2, and when a pointing device such as a mouse is operated, together with an operation signal such as a click signal, The relative coordinate data indicating the coordinates designated by this operation is output to the CPU 2.

【0025】表示装置8は、CRT(Cathode Ray Tub
e)やLCD(Liquid Crystal Display:液晶表示画
面)等により構成され、CPU2から入力される表示デ
ータに基づいて各種画面を表示する。
The display device 8 is a CRT (Cathode Ray Tub).
e) and an LCD (Liquid Crystal Display), and displays various screens based on display data input from the CPU 2.

【0026】印刷装置9は各種プリンタを備えており、
CPU2から入力される印刷データに従って、各種文書
を印刷して出力する。
The printing device 9 includes various printers.
Various documents are printed and output according to the print data input from the CPU 2.

【0027】データベース10は、データベース処理装
置1により処理される各種のデータが格納されたデータ
ベースであり、記憶媒体6と同様の、磁気的、光学的記
憶媒体若しくは半導体記憶素子等によってなる記憶媒体
内に格納される。このデータベース10内のデータは、
CPU2により実行される各種アプリケーションプログ
ラムのデータ更新処理により、データベース制御処理に
従って更新される。なお、データベース10を格納する
記憶媒体は、記憶装置5および記憶媒体6と別体として
データベース処理装置1に備えられる構成としても良い
し、或いは記憶媒体6内に設けられた記憶領域内にデー
タベース10が格納される構成としても良い。
The database 10 is a database in which various types of data processed by the database processing device 1 are stored. Similar to the storage medium 6, a magnetic or optical storage medium or a storage medium such as a semiconductor storage element is used. Is stored in The data in this database 10
The data is updated according to the database control process by the data update process of various application programs executed by the CPU 2. The storage medium storing the database 10 may be configured to be provided in the database processing device 1 separately from the storage device 5 and the storage medium 6, or may be stored in a storage area provided in the storage medium 6. May be stored.

【0028】続いて、本発明の第1の実施の形態におけ
るデータベース処理装置1の動作について説明する。
Next, the operation of the database processing device 1 according to the first embodiment of the present invention will be described.

【0029】なお、以下に述べるデータベース処理装置
1の動作においては、複数のアプリケーションプログラ
ムを連続して実行し、関連する複数のデータをそれぞれ
更新する一連の処理を、1つのトランザクションとして
取り扱う。即ち、1つのアプリケーションプログラムに
よるデータベース更新処理が終了しても、続いて他のア
プリケーションプログラムによって関連するデータの更
新処理が行われる場合には、トランザクションは終了し
ないで継続される。そして、複数のアプリケーションプ
ログラムによる連続した更新処理が実行された後に、1
つのトランザクションが終了する。
In the operation of the database processing apparatus 1 described below, a series of processes for continuously executing a plurality of application programs and updating a plurality of related data are treated as one transaction. That is, even if the database update processing by one application program ends, if the update processing of related data is subsequently performed by another application program, the transaction is continued without ending. Then, after a continuous update process is performed by a plurality of application programs, 1
One transaction ends.

【0030】このような処理を実現するため、データベ
ース処理装置1ではトランザクションIDを用いる。ト
ランザクションIDとは、開始されたトランザクション
を複数のアプリケーションプログラムに渡って継続する
ための符号であり、トランザクションの最初のアプリケ
ーションプログラムの実行に際して発行される。また、
同一トランザクション中で、アプリケーションプログラ
ムによる処理が終了して次のアプリケーションプログラ
ムの処理が開始される際に、トランザクションIDがア
プリケーション間で引き継がれる。
In order to realize such processing, the database processing apparatus 1 uses a transaction ID. The transaction ID is a code for continuing the started transaction across a plurality of application programs, and is issued when the first application program of the transaction is executed. Also,
In the same transaction, when the processing by the application program ends and the processing of the next application program starts, the transaction ID is inherited between the applications.

【0031】そして、トランザクション中に次のアプリ
ケーションプログラムの処理に移行する際には、このト
ランザクションIDによる認証が行われるので、正しい
トランザクションIDを取得したアプリケーションプロ
グラムによってのみデータベースの更新が可能となる。
これによって、当該トランザクションと無関係なアプリ
ケーションプログラムによるデータベース10の更新処
理は不可能となり、データベース10内のデータに矛盾
や不整合が生じることがない。
Then, when the processing shifts to the processing of the next application program during the transaction, the authentication based on the transaction ID is performed, so that the database can be updated only by the application program that has acquired the correct transaction ID.
This makes it impossible for the application program irrelevant to the transaction to update the database 10 and does not cause inconsistency or inconsistency in the data in the database 10.

【0032】また、以下に述べるデータベース処理装置
1の動作においては、アプリケーションプログラムによ
るデータベース更新処理で更新されたデータベース10
の更新内容は、完全な確定が指示されるまでの間、容易
に復旧可能な状態で暫定的に確定される。この暫定的な
確定処理を、以下、「暫定コミット」と呼ぶ。この暫定
コミットでは、データベース10の更新内容のバックア
ップデータが生成されて記憶装置5に記憶されるので、
このバックアップデータをもとにデータベース10を暫
定コミット前の状態に容易に復旧できる。
In the operation of the database processing device 1 described below, the database 10 updated by the database update process by the application program is used.
The update contents of are temporarily determined in a state where they can be easily recovered until a complete determination is instructed. This tentative confirmation processing is hereinafter referred to as “provisional commit”. In this provisional commit, backup data of the updated contents of the database 10 is generated and stored in the storage device 5.
The database 10 can be easily restored to the state before the provisional commit based on the backup data.

【0033】この暫定コミットに対して、更新されたデ
ータを完全に確定する処理を、以下、「完全コミット」
と呼ぶ。この完全コミットは、後述するデータベース更
新処理中に完全コミットが指示された場合に実行され
る。更新内容が完全コミットされた後は、ロールバック
等の復旧処理が行われてもデータベース10には更新内
容が反映されるので、更新前の状態に復旧する必要が無
くなった際には有用である。
The processing for completely confirming the updated data with respect to this provisional commit is hereinafter referred to as “complete commit”.
Call. This full commit is executed when a full commit is instructed during a database update process described later. After the update content is completely committed, the update content is reflected in the database 10 even if recovery processing such as rollback is performed, so this is useful when it is no longer necessary to restore the state before the update. .

【0034】はじめに、データベース10内のデータを
更新するアプリケーションプログラムをCPU2によっ
て実行した際の動作について説明する。
First, an operation when an application program for updating data in the database 10 is executed by the CPU 2 will be described.

【0035】図2は、データベース処理装置1により実
行されるデータベース更新処理を示すフローチャートで
ある。この図2に示すデータベース更新処理は、記憶装
置5内に格納された各種アプリケーションプログラムが
実行され、データベース10の内容が更新される際の処
理である。
FIG. 2 is a flowchart showing a database update process executed by the database processing device 1. The database update process shown in FIG. 2 is a process when various application programs stored in the storage device 5 are executed and the contents of the database 10 are updated.

【0036】データベース更新処理において、まず、C
PU2は、実行中のアプリケーションプログラムがトラ
ンザクション中の最初のアプリケーションプログラムで
あるか否かを判別する(ステップS101)。ここで、
実行中のアプリケーションプログラムがトランザクショ
ンの最初のアプリケーションプログラムである場合に
は、ステップS102に移行して、入力装置7からの入
力内容に従ってデータベース10内のデータを更新す
る。
In the database update process, first, C
PU2 determines whether the application program being executed is the first application program in a transaction (step S101). here,
If the application program being executed is the first application program in the transaction, the process proceeds to step S102, and the data in the database 10 is updated in accordance with the contents input from the input device 7.

【0037】ステップS103で、CPU2は、ステッ
プS102の更新内容について暫定コミットを指定す
る。ステップS103で暫定コミットが指定されること
により、データベース制御処理(図3)では、ステップ
S102での更新内容のバックアップデータが生成さ
れ、記憶装置5に記憶される。そして、この図2に示す
データベース更新処理が正常に終了しなかった場合に
は、一時的に記憶装置5に記憶された更新内容のバック
アップデータをもとにデータベース10の復旧が行われ
る。
In step S103, the CPU 2 designates a provisional commit for the updated contents in step S102. When the provisional commit is specified in step S103, in the database control process (FIG. 3), backup data of the updated contents in step S102 is generated and stored in the storage device 5. If the database update process shown in FIG. 2 is not completed normally, the database 10 is restored based on the backup data of the update contents temporarily stored in the storage device 5.

【0038】その後、データベース制御処理(図3)に
よりトランザクションIDが発行されるので、発行され
たトランザクションIDを取得する(ステップS10
4)。
Thereafter, a transaction ID is issued by the database control process (FIG. 3), and the issued transaction ID is obtained (step S10).
4).

【0039】ステップS104でトランザクションID
が取得された後は、入力装置7からの入力指示によっ
て、必要に応じた各種コミットの指定が行われる(ステ
ップS105)。例えば、部分的に完全コミットしてし
まいたいデータがある場合や、ここまで暫定コミットさ
れてきた全てのデータを完全コミットするには、ここで
入力装置7から完全コミットする旨の指示入力が行われ
る。
In step S104, the transaction ID
After the is acquired, various commits are specified as needed according to an input instruction from the input device 7 (step S105). For example, when there is data that is to be partially partially committed, or in order to completely commit all data that has been provisionally committed so far, an instruction to perform a complete commit is input from the input device 7 here. .

【0040】そして、ステップS104で取得したトラ
ンザクションIDを、同一トランザクション内で次に実
行されるアプリケーションプログラムに引き継いで(ス
テップS106)、処理を終了する。
Then, the transaction ID acquired in step S104 is taken over by the application program to be executed next in the same transaction (step S106), and the process ends.

【0041】引き続いて他のアプリケーションプログラ
ムによるデータベース更新処理が開始すると、データベ
ース更新処理(図2)ではステップS101からステッ
プS107へ移行し、直前に実行されたアプリケーショ
ンプログラムからトランザクションIDを取得する。
Subsequently, when the database update process by another application program starts, in the database update process (FIG. 2), the process proceeds from step S101 to step S107, and the transaction ID is acquired from the application program executed immediately before.

【0042】そして、CPU2は、ステップS107で
取得したトランザクションIDを指定する(ステップS
108)。ここで指定されたトランザクションIDは、
データベース制御処理(図3)で発行されたトランザク
ションIDと対照され、一致した場合にのみデータベー
ス10のデータの更新が可能となる。
Then, the CPU 2 specifies the transaction ID obtained in step S107 (step S107).
108). The transaction ID specified here is
The data is compared with the transaction ID issued in the database control process (FIG. 3), and the data in the database 10 can be updated only when they match.

【0043】ステップS109では、入力装置7からの
指示入力に従ってデータベース10内のデータを更新し
て(ステップS109)、その後、実行中のアプリケー
ションプログラムがトランザクションの最後のアプリケ
ーションプログラムか否かを判別する(ステップS11
0)。実行中のアプリケーションプログラムの後に、引
き続いてトランザクションを継続するアプリケーション
プログラムがある場合には、ステップS105へ移行す
る。
In step S109, the data in the database 10 is updated according to the instruction input from the input device 7 (step S109), and thereafter, it is determined whether or not the application program being executed is the last application program in the transaction (step S109). Step S11
0). If there is an application program that continues the transaction after the running application program, the process proceeds to step S105.

【0044】また、実行中のアプリケーションプログラ
ムがトランザクションの最後のアプリケーションプログ
ラムである場合には、ステップS111に移行して、更
新されたデータの完全コミットを指定して、処理を終了
する。これにより、データベース制御処理(図3)で
は、トランザクション中に暫定コミットされた更新内容
が全て完全コミットされ、記憶装置5に記憶されていた
更新内容のバックアップデータが消去される。
If the application program being executed is the last application program in the transaction, the flow shifts to step S111 to specify complete commit of the updated data, and ends the processing. As a result, in the database control process (FIG. 3), all of the provisionally committed updates during the transaction are completely committed, and the backup data of the updates stored in the storage device 5 is deleted.

【0045】次に、上記のアプリケーションプログラム
によるデータ更新処理(図2)に応じて、データベース
10内のデータ更新を制御するために実行されるデータ
ベース制御処理について説明する。
Next, a database control process executed to control data update in the database 10 according to the data update process (FIG. 2) by the application program will be described.

【0046】図3は、データベース処理装置1により実
行されるデータベース制御処理を示すフローチャートで
ある。この図3に示すデータベース制御処理において、
まずCPU2は、データベース更新処理(図2)を行う
アプリケーションプログラムに対して、既にトランザク
ションIDを発行したか否かを判別する(ステップS1
21)。
FIG. 3 is a flowchart showing a database control process executed by the database processing device 1. In the database control process shown in FIG.
First, the CPU 2 determines whether a transaction ID has already been issued to the application program for performing the database update process (FIG. 2) (step S1).
21).

【0047】このステップS121でトランザクション
IDをまだ発行していないと判別した場合はトランザク
ションが開始されていないことになるので、ステップS
122に移行してトランザクションを開始し、その後ス
テップS124へ移行する。
If it is determined in step S121 that the transaction ID has not been issued, it means that the transaction has not been started.
The process proceeds to step S122 to start a transaction, and then proceeds to step S124.

【0048】また、トランザクションIDが既に発行さ
れている場合には、既に他のアプリケーションプログラ
ムの実行に際して開始されたトランザクションが継続さ
れているので、実行中のアプリケーションプログラムが
ステップS108(図2)で指定したトランザクション
IDが、トランザクション開始時にデータベース制御処
理によって発行されたトランザクションIDであるか否
かを判別する(ステップS123)。ここで、トランザ
クションIDが一致した場合には、ステップS124へ
移行し、一致しない場合にはそのまま処理を終了する。
If the transaction ID has already been issued, the transaction started when another application program is already executed is continued, and the application program being executed is designated in step S108 (FIG. 2). It is determined whether the transaction ID is a transaction ID issued by the database control process at the start of the transaction (step S123). Here, when the transaction IDs match, the process proceeds to step S124, and when they do not match, the process ends.

【0049】上述のように、トランザクションが開始さ
れると、データベース制御処理によってトランザクショ
ンIDが発行され、このトランザクションIDがアプリ
ケーションプログラムによるデータベース更新処理にお
いて取得される。このトランザクションIDは、アプリ
ケーションプログラムによる処理が終了した際に同一ト
ランザクション中の次のアプリケーションプログラムに
引き継がれる。従って、1つのトランザクション中に実
行される全てのアプリケーションプログラムには、順
次、同じトランザクションIDが引き継がれる。
As described above, when a transaction is started, a transaction ID is issued by the database control process, and this transaction ID is obtained in the database update process by the application program. This transaction ID is taken over by the next application program in the same transaction when the processing by the application program ends. Therefore, the same transaction ID is sequentially taken over by all application programs executed during one transaction.

【0050】従って、アプリケーションプログラムが指
定したトランザクションIDとデータベース制御処理で
発行されたトランザクションIDとがが一致しない場合
には、継続中のトランザクションとは無関係のアプリケ
ーションプログラムによる処理が実行されようとしてい
るので、CPU2はデータベースの更新を拒否してその
まま処理を終了する。
Therefore, when the transaction ID specified by the application program and the transaction ID issued in the database control processing do not match, processing by the application program unrelated to the ongoing transaction is about to be executed. Then, the CPU 2 refuses to update the database and ends the processing.

【0051】ステップS124では、ステップS102
(図2)又はステップS109(図2)での動作に対応
してデータベース10内のデータを更新する。なお、こ
のステップS124で更新されるデータベース10の更
新内容は、一時的に記憶装置5に記憶され、暫定コミッ
トはされない。
In step S124, step S102
The data in the database 10 is updated corresponding to the operation in (FIG. 2) or step S109 (FIG. 2). The updated content of the database 10 updated in step S124 is temporarily stored in the storage device 5, and is not provisionally committed.

【0052】続くステップS125では、データベース
10内のデータの更新処理が正常に終了したか否かを判
別する。データの更新処理が正常に終了していれば、後
述するステップS129へ移行する。また、データベー
ス10内のデータ更新が正常に終了しなかった場合には
ステップS126へ移行して、記憶装置5に一時的に記
憶された更新内容をもとにロールバックによるデータベ
ース10の復旧を実行する。
In a succeeding step S125, it is determined whether or not the update processing of the data in the database 10 has been completed normally. If the data update processing has been completed normally, the flow shifts to step S129 described later. If the update of the data in the database 10 has not been completed normally, the process proceeds to step S126, and the database 10 is restored by rollback based on the update contents temporarily stored in the storage device 5. I do.

【0053】CPU2は、ステップS126でデータベ
ース10を復旧した後、さらにステップS127で、ト
ランザクションが開始されてから暫定コミットになって
いるデータがあるか否かを判別する。そして、暫定コミ
ットされた状態の更新内容がある場合には、記憶装置5
内にバックアップされた更新内容をもとにデータベース
10のロールバックを行う(ステップS128)。な
お、ステップS127で、暫定コミット中のデータがな
い場合には、そのまま処理を終了する。
After restoring the database 10 in step S126, the CPU 2 further determines in step S127 whether there is any data that has been provisionally committed since the transaction was started. Then, when there is the update content in the provisionally committed state, the storage device 5
Then, the database 10 is rolled back based on the updated contents backed up therein (step S128). If there is no data in the provisional commit in step S127, the process ends.

【0054】つまり、トランザクションが開始されてか
ら2番目以降のアプリケーションプログラムを処理する
際には、同一トランザクション内で先に実行されたアプ
リケーションプログラムによるデータベース更新処理で
暫定コミットされたバックアップデータが記憶されてい
る。従って、全ての暫定コミット中の更新内容のバック
アップデータをもとにロールバックを行うことにより、
データの更新時に異常が発生した場合には、トランザク
ションの全てのデータ更新が行われる前の状態へデータ
ベース10を復旧することができる。
That is, when processing the second and subsequent application programs after the transaction is started, the backup data temporarily stored in the database update process by the application program executed earlier in the same transaction is stored. I have. Therefore, by performing rollback based on the backup data of the update contents during all the provisional commits,
When an abnormality occurs during data update, the database 10 can be restored to a state before all data updates of the transaction are performed.

【0055】一方、ステップS125で、データベース
10内のデータの更新処理が正常に終了したと判別され
た場合には、ステップS129に移行して、入力装置7
からの指示入力によって完全コミットが指定されたか否
かを判別する。
On the other hand, if it is determined in step S125 that the update processing of the data in the database 10 has been completed normally, the process proceeds to step S129, where the input device 7
It is determined whether or not a complete commit has been designated by the instruction input from the server.

【0056】そして、データベース更新処理(図2)の
ステップS111で完全コミットが指定された場合に
は、CPU2はステップS130へ移行し、暫定コミッ
トされている更新内容を完全に確定するとともに、記憶
装置5に記憶された更新内容のバックアップデータを破
棄する(ステップS131)。その後、トランザクショ
ンを終了して、一連の処理を終了する。
If complete commit is specified in step S111 of the database update process (FIG. 2), the CPU 2 proceeds to step S130 to completely determine the provisionally committed update content and to store the updated data in the storage device. 5 is discarded (step S131). Thereafter, the transaction ends, and a series of processing ends.

【0057】さらに、ステップS129で、ステップS
111(図2)で完全コミットが指定されなかったと判
別した場合には、そのままトランザクションが継続され
るので、CPU2は、トランザクションIDが既に発行
されたか否かを判別する(ステップS133)。既にト
ランザクションIDが発行されていれば、データベース
更新処理(図2)のステップS106で、次のアプリケ
ーションプログラムにトランザクションIDが引き継が
れるので、ステップS135へ移行する。また、トラン
ザクションIDがまだ発行されていないのであれば、ス
テップS134でトランザクションIDを発行してステ
ップS135へ移行する。
Further, in Step S129, Step S
If it is determined in step 111 (FIG. 2) that the complete commit has not been specified, the transaction is continued as it is, and the CPU 2 determines whether a transaction ID has already been issued (step S133). If the transaction ID has already been issued, the transaction ID is handed over to the next application program in step S106 of the database update process (FIG. 2), and the process proceeds to step S135. If the transaction ID has not been issued yet, the transaction ID is issued in step S134, and the process proceeds to step S135.

【0058】ステップS135では、ステップS124
で行われたデータベース10の更新内容を暫定コミット
して、更新内容のバックアップデータを生成して記憶装
置5に記憶し、処理を終了する。
In step S135, step S124
Tentatively commits the update contents of the database 10 performed in step (1), generates backup data of the update contents, stores it in the storage device 5, and ends the processing.

【0059】その後、トランザクションの最後のアプリ
ケーションプログラムによるデータベース更新処理(図
2)が行われた場合には、ステップS111で完全コミ
ット指定が行われるので、ステップS129(図3)で
は完全コミットが行われ、暫定コミットされた状態の更
新内容が完全に確定される。
Thereafter, when the database update process (FIG. 2) by the last application program of the transaction is performed, a complete commit is specified in step S111, and a complete commit is performed in step S129 (FIG. 3). Then, the updated contents of the provisionally committed state are completely determined.

【0060】以上のように、本発明の第1の実施の形態
におけるデータベース処理装置1によれば、アプリケー
ションプログラムによってデータベース10内のデータ
を更新するデータベース更新処理が開始されると、この
データベース更新処理に応じてで制御処理を開始し、ト
ランザクションを開始してデータベース10内のデータ
の更新を行うとともに、更新内容を一時的に記憶装置5
に記憶する。そして、トランザクション毎に固有のトラ
ンザクションIDを発行し、データベース10の更新内
容を示すバックアップデータを生成して記憶させること
で暫定コミット処理を実行する。また、実行中のアプリ
ケーションプログラムの処理が終了して次のアプリケー
ションプログラムにトランザクションIDが引き継がれ
ると、アプリケーションプログラムが取得したトランザ
クションIDと、発行されたトランザクションIDとを
照合して認証を行い、トランザクションIDが一致しな
い場合にはデータベース10の更新をせずに処理を終了
する。また、トランザクションIDが一致した場合には
データベース10の更新を実行する。さらに、トランザ
クションIDの最後のアプリケーションプログラムによ
る処理が終了する際には、暫定コミットされていた更新
内容を完全に確定して完全コミット処理を実行する。そ
して、データベース10の更新処理中に異常が発生した
場合には、記憶装置5に一時的に記憶された更新内容お
よび暫定コミットされた更新内容を全てロールバックし
てデータベース10を復旧し、全てのアプリケーション
プログラムの処理が終了すると、記憶装置5に一時的に
記憶された更新内容および暫定コミットされた更新内容
を全て完全コミットして処理を終了する。
As described above, according to the database processing apparatus 1 in the first embodiment of the present invention, when the database update processing for updating the data in the database 10 is started by the application program, the database update processing is started. , The control process is started, a transaction is started to update the data in the database 10, and the updated contents are temporarily stored in the storage device 5.
To memorize. Then, a unique transaction ID is issued for each transaction, and backup data indicating the updated contents of the database 10 is generated and stored, thereby executing the provisional commit process. When the processing of the running application program is completed and the transaction ID is taken over by the next application program, the transaction ID acquired by the application program is compared with the issued transaction ID to perform authentication. If they do not match, the process ends without updating the database 10. If the transaction IDs match, the database 10 is updated. Further, when the processing by the last application program of the transaction ID is completed, the provisionally committed update content is completely determined and the full commit process is executed. Then, when an abnormality occurs during the update processing of the database 10, all of the update contents temporarily stored in the storage device 5 and the provisionally committed update contents are rolled back, and the database 10 is restored. When the processing of the application program ends, all the update contents temporarily stored in the storage device 5 and the provisionally committed update contents are completely committed, and the processing ends.

【0061】これによって、データベース10内のデー
タを更新する際に、複数のアプリケーションにより複数
の関連するデータを更新する場合も、全てのアプリケー
ションプログラムによる処理を含む1回のトランザクシ
ョンとして実行することができ、トランザクション中の
更新内容は暫定コミットとしてバックアップされる。こ
のため、データベース10の更新処理中に異常が発生し
た場合には、異常が発生したアプリケーションプログラ
ムによる更新の前でなく、1回のトランザクションが行
われる前の時点での状態でデータベース10を復旧する
ことができる。
Thus, when updating data in the database 10, when updating a plurality of related data by a plurality of applications, it can be executed as one transaction including processing by all application programs. The updated contents during the transaction are backed up as a provisional commit. For this reason, when an abnormality occurs during the update processing of the database 10, the database 10 is restored to the state before the one transaction is performed, not before the update by the application program in which the abnormality has occurred. be able to.

【0062】従って、複数のアプリケーションプログラ
ムによりデータベース10の内容を更新した場合に異常
が発生しても、データベース10が復旧された後に、再
度、最初から複数のアプリケーションプログラムによる
更新処理を実行すれば良く、データベース10が中途半
端に更新された状態になってしまうことがない。
Therefore, even if an abnormality occurs when the contents of the database 10 are updated by a plurality of application programs, the update processing by the plurality of application programs may be executed again from the beginning after the database 10 is restored. The database 10 is not halfway updated.

【0063】また、トランザクションが実行されている
間は、データベース制御処理で発行されたトランザクシ
ョンIDを取得していないアプリケーションプログラム
によるデータベース10の更新を拒否することができる
ので、複数のアプリケーションプログラムにより処理の
合間に関係のないアプリケーションプログラムにより処
理が行われることが無い。このため、データベース10
の内容に矛盾や不整合が生じる事態を確実に避けること
ができる。
While a transaction is being executed, updating of the database 10 by an application program that has not acquired the transaction ID issued in the database control process can be refused. Processing is not performed by application programs that are not related in the meantime. For this reason, the database 10
Inconsistency or inconsistency in the content of the content can be reliably avoided.

【0064】このため、上記第1の実施の形態における
データベース処理装置1によれば、データベース10の
更新処理を効率よく実行することができ、さらに、デー
タベース10内のデータの信頼性を向上させることがで
きる。
For this reason, according to the database processing apparatus 1 of the first embodiment, the updating process of the database 10 can be executed efficiently, and the reliability of the data in the database 10 can be improved. Can be.

【0065】なお、上記第1の実施の形態のデータベー
ス処理装置1においては、図2に示すデータベース更新
処理において、トランザクションの最初のアプリケーシ
ョンプログラムによる処理が終了すると、更新内容が全
て暫定コミットされて、次のアプリケーションプログラ
ムにトランザクションIDが引き渡される構成とした
が、本発明はこれに限定されるものではなく、例えば、
トランザクションが1つのアプリケーションプログラム
によって完結する場合に対応するように、最初のアプリ
ケーションプログラムによる処理が終了した時点でデー
タベース10の更新内容を完全コミットしてトランザク
ションを終了できるようにしても良い。
In the database processing apparatus 1 according to the first embodiment, in the database update processing shown in FIG. 2, when the processing by the first application program of the transaction is completed, all the updated contents are provisionally committed. Although the transaction ID is passed to the next application program, the present invention is not limited to this. For example,
In order to cope with the case where the transaction is completed by one application program, the update contents of the database 10 may be completely committed at the time when the processing by the first application program ends, so that the transaction may be ended.

【0066】[第2の実施の形態]図4は、本発明の第
2の実施の形態におけるデータベース処理装置1により
実行されるデータベース部分別制御処理を示すフローチ
ャートである。なお、本第2の実施の形態におけるデー
タベース処理装置1は上記第1の実施の形態と同様の構
成によってなるので、その構成についての説明および図
示を省略する。
[Second Embodiment] FIG. 4 is a flowchart showing a database part-by-part control process executed by the database processing apparatus 1 according to a second embodiment of the present invention. Since the database processing device 1 according to the second embodiment has the same configuration as that of the first embodiment, description and illustration of the configuration will be omitted.

【0067】なお、本第2の実施の形態において、CP
U2は、図4のステップS218に示す処理を実行する
ことによって請求項記載の確定制御手段に対応する。ま
た、入力装置7は、CPU2によって図2のステップS
105および図4のステップS217に示す処理が実行
されることにより、種別指定手段に対応する。
In the second embodiment, the CP
U2 corresponds to the confirmation control means described in the claims by executing the processing shown in step S218 of FIG. The input device 7 is also operated by the CPU 2 in step S in FIG.
By executing the processing shown in step 105 and step S217 in FIG. 4, it corresponds to the type designation means.

【0068】また、本第2の実施の形態におけるデータ
ベース処理装置1によって、アプリケーションプログラ
ムを実行した際のデータベース更新処理は、上記第1の
実施の形態におけるデータベース更新処理(図2)と同
様の処理であり、説明を省略する。
The database update processing when the application program is executed by the database processing apparatus 1 according to the second embodiment is the same as the database update processing (FIG. 2) according to the first embodiment. Therefore, the description is omitted.

【0069】図4に示すデータベース部分別制御処理で
は、まずCPU2は、トランザクションIDが既に発行
されているか否かを判別する。トランザクションIDが
まだ発行されていなければ、データベース更新処理(図
2)を行うアプリケーションプログラムはトランザクシ
ョン中の最初のアプリケーションプログラムであるの
で、ステップS202に移行してトランザクションを開
始し、ステップS204に移行する。
In the database part control process shown in FIG. 4, first, the CPU 2 determines whether or not a transaction ID has already been issued. If the transaction ID has not been issued yet, the application program that performs the database update process (FIG. 2) is the first application program in the transaction, and therefore the process moves to step S202 to start the transaction, and moves to step S204.

【0070】ステップS204で、CPU2は、ステッ
プS102(図2)の動作に応じてデータベース10内
のデータの更新を行う。なお、ステップS204でのデ
ータベース10の更新内容は一時的に記憶装置5に記憶
され、暫定コミットされない。続くステップS205で
は、ステップS204でのデータベース10の更新が正
常に終了したか否かを判別する。
In step S204, CPU 2 updates the data in database 10 according to the operation in step S102 (FIG. 2). Note that the updated contents of the database 10 in step S204 are temporarily stored in the storage device 5, and are not provisionally committed. In a succeeding step S205, it is determined whether or not the update of the database 10 in the step S204 has been normally completed.

【0071】一方、ステップS201でトランザクショ
ンIDが既に発行されていると判別された場合には、既
に他のアプリケーションプログラムの実行に際して開始
されたトランザクションが継続されているので、実行中
のアプリケーションプログラムがステップS108(図
2)で指定したトランザクションIDが、トランザクシ
ョン開始時にデータベース制御処理によって発行された
トランザクションIDであるか否かを判別する(ステッ
プS203)。ここで、トランザクションIDが一致し
た場合には、ステップS204へ移行し、一致しない場
合にはそのまま処理を終了する。そして、ステップS2
04では、ステップS109(図2)の動作に応じてデ
ータベース10内のデータの更新を実行し、ステップS
205へ移行する。
On the other hand, if it is determined in step S201 that the transaction ID has already been issued, the transaction started when another application program is being executed is continued, and the application program being executed is It is determined whether or not the transaction ID specified in S108 (FIG. 2) is a transaction ID issued by the database control process at the start of the transaction (step S203). If the transaction IDs match, the process proceeds to step S204, and if they do not match, the process ends. Then, step S2
In step S04, the data in the database 10 is updated in accordance with the operation in step S109 (FIG. 2).
Move to 205.

【0072】ステップS205で、データベース10の
更新が正常に終了しなかった場合には、ステップS20
6へ移行し、ステップS204での更新内容をロールバ
ックすることによってデータベース10を復旧する。さ
らに、ステップS207で暫定コミットされた状態のバ
ックアップデータがあるか否かを判別し、暫定コミット
されたバックアップデータが無い場合には処理を終了
し、バックアップデータがある場合には、そのバックア
ップデータをもとにロールバックを行ってデータベース
10をトランザクションの前の状態に復旧して、処理を
終了する。
If it is determined in step S205 that the update of the database 10 has not been completed normally, the process proceeds to step S20.
6 and restore the database 10 by rolling back the updated contents in step S204. Further, in step S207, it is determined whether there is backup data in a provisionally committed state. If there is no provisionally committed backup data, the process is terminated. If there is backup data, the backup data is deleted. Rollback is performed to restore the database 10 to the state before the transaction, and the process ends.

【0073】また、ステップS205で、ステップS2
04でのデータベース10の更新処理が正常に終了した
と判別した場合には、ステップS209へ移行し、アプ
リケーションプログラムによるデータベース更新処理
(図2)のステップS111で完全コミットが指定され
たか否かを判別する。完全コミットが指定された場合に
は、ステップS204で記憶装置5に一時的に記憶され
た更新内容を完全に確定し(ステップS210)、続い
て、暫定コミットされた状態にある更新内容を全て完全
コミットして(ステップS211)、トランザクション
を終了する(ステップS212)。
Also, in step S205, step S2
If it is determined that the update processing of the database 10 in 04 has been completed normally, the process proceeds to step S209, and it is determined whether or not complete commit has been designated in step S111 of the database update processing (FIG. 2) by the application program. I do. When the complete commit is designated, the update contents temporarily stored in the storage device 5 are completely determined in step S204 (step S210), and then all the update contents in the provisionally committed state are completely updated. Commit (step S211) and end the transaction (step S212).

【0074】一方、ステップS209で、完全コミット
が指定されなかったと判別した場合には、ステップS2
13に移行して、トランザクションIDが既に発行され
ているか否かを判別する。トランザクションIDがまだ
発行されていない場合には、ステップS214でトラン
ザクションIDを発行してステップS215へ移行し、
トランザクションIDが既に発行されている場合には、
そのままステップS215へ移行する。
On the other hand, if it is determined in step S209 that the complete commit has not been specified, the process proceeds to step S2
The process proceeds to 13 to determine whether the transaction ID has already been issued. If the transaction ID has not been issued yet, the transaction ID is issued in step S214, and the process proceeds to step S215.
If the transaction ID has already been issued,
The process moves directly to step S215.

【0075】ステップS215では、ステップS204
で記憶装置5に一時的に記憶された更新内容を暫定コミ
ットして、更新内容のバックアップデータを生成して記
憶装置5に記憶させる。続くステップS216では、暫
定コミットした更新内容毎にコミットIDを発行する。
このコミットIDは、暫定コミットされた全ての更新内
容の中から特定の更新内容を指定するために用いられる
符号である。
In step S215, step S204
Tentatively commits the update content temporarily stored in the storage device 5 to generate backup data of the update content and store it in the storage device 5. In a succeeding step S216, a commit ID is issued for each provisionally committed update content.
The commit ID is a code used to designate a specific update content from all provisionally committed updates.

【0076】そして、ステップS217へ移行して、ア
プリケーションプログラムによるデータベース更新処理
(図2)のステップS105で、コミットIDによる部
分的完全コミットが指定されたか否かを判別する。
Then, the flow shifts to step S217, where it is determined whether or not a partial complete commit is designated by the commit ID in step S105 of the database update process (FIG. 2) by the application program.

【0077】部分的完全コミットは、暫定コミットされ
た更新内容の中で指定された一部の更新内容のみが完全
コミットされる処理である。この部分的完全コミットは
図2のデータベース更新処理においてステップS105
で指定され、指定された更新内容は、同一トランザクシ
ョン内の処理に異常が発生した場合であってもロールバ
ックしないようにすることができる。
The partial complete commit is a process in which only a part of the update contents specified in the provisionally committed update contents is completely committed. This partial complete commit is performed in step S105 in the database update process of FIG.
The specified update content can be prevented from being rolled back even if an error occurs in the processing within the same transaction.

【0078】更新内容が暫定コミットされた状態のまま
では、同一トランザクション内のその後の処理で異常が
発生した場合にロールバックされるので、復旧後のデー
タベース10はトランザクションの前の状態となってし
まう。しかし、部分的完全コミットで指定された更新内
容はトランザクションの終了を待たずに完全コミットさ
れるので、ロールバックによってデータベース10が復
旧されても、指定された更新内容はデータベース10の
内容に反映される。
If the contents of the update are provisionally committed, the rollback is performed when an error occurs in the subsequent processing in the same transaction, and the database 10 after recovery will be in the state before the transaction. . However, since the update specified by the partial full commit is completely committed without waiting for the end of the transaction, even if the database 10 is restored by rollback, the specified update is reflected in the content of the database 10. You.

【0079】ステップS217で、ステップS105
(図2)でコミットIDによる部分的完全コミットが指
定されたと判別した場合には、ステップS218に移行
して、指定されたコミットIDに該当する更新内容を完
全コミットし、バックアップデータを消去して、ステッ
プS219へ移行する。また、ステップS217で部分
的完全コミットが指定されなかったと判別した場合に
は、ステップS219へ移行する。
In step S217, step S105
If it is determined in FIG. 2 that the partial complete commit by the commit ID has been designated, the process proceeds to step S218, where the update corresponding to the designated commit ID is completely committed, and the backup data is deleted. Then, the process proceeds to step S219. If it is determined in step S217 that the partial complete commit has not been specified, the process proceeds to step S219.

【0080】ステップS219では、引き続き同一のア
プリケーションプログラムによってデータベース10の
更新が行われるか否かを判別し、他のデータの更新が行
われる場合にはステップS204へ戻り、実行中のアプ
リケーションプログラムによるデータベース10の更新
が終了したのであれば、処理を終了する。
In step S219, it is determined whether or not the database 10 is to be updated by the same application program. If another data is to be updated, the process returns to step S204 to return to the database by the application program being executed. If the update of 10 has been completed, the processing is terminated.

【0081】その後、トランザクションの最後のアプリ
ケーションプログラムによるデータベース更新処理(図
2)が行われた場合には、ステップS111で完全コミ
ット指定が行われるので、ステップS211(図4)で
は完全コミットが行われ、暫定コミットされた状態の更
新内容が完全に確定されて、トランザクションが終了さ
れる。
Thereafter, when the database update processing (FIG. 2) by the last application program of the transaction is performed, a complete commit is specified in step S111, and a complete commit is performed in step S211 (FIG. 4). Then, the updated contents of the provisionally committed state are completely determined, and the transaction is terminated.

【0082】以上のように、本発明の第2の実施の形態
におけるデータベース処理装置1によれば、アプリケー
ションプログラムによりデータベース更新処理が行われ
た際に、データベース制御処理においてデータベース1
0の更新内容を暫定コミットするとともに、暫定コミッ
トされた更新内容毎にコミットIDを発行し、このコミ
ットIDによって部分的完全コミットが指定されると、
指定されたコミットIDに対応する更新内容のみを完全
コミットする。
As described above, according to the database processing apparatus 1 in the second embodiment of the present invention, when the database update processing is performed by the application program, the database control processing is performed in the database control processing.
In addition to tentatively committing the update content of 0, a commit ID is issued for each tentatively committed update content, and a partial complete commit is designated by the commit ID.
Only the update content corresponding to the specified commit ID is completely committed.

【0083】これにより、複数のアプリケーションプロ
グラムによってデータベース10内の関連する複数のデ
ータを更新する際に、これら複数のアプリケーションプ
ログラムによる更新内容毎にコミットIDを付与するこ
とにより、トランザクションが終了する前であっても、
特定の更新内容のみを完全コミットさせることができ
る。従って、データベース10の更新処理中に異常が発
生した場合に復旧されるデータベース10の状態を、任
意の更新処理のみが反映された状態にすることができ
る。例えば、同一トランザクション中の他のアプリケー
ションプログラムによる変更内容とは関連が薄く、独立
して完全コミットしても問題のない更新内容について
は、異常発生時に復旧されるデータベース10に反映さ
れるようにすることができる。このため、データベース
10の更新処理中に異常が発生した場合に復旧されるデ
ータベース10の状態を所望の状態にすることができ
る。このため、データベース10が復旧された後の作業
を減らすことができ、データベース10内のデータにお
ける矛盾や不整合を確実に防止しながら、データベース
10の更新処理をより効率よく行うことができる。
Thus, when updating a plurality of related data in the database 10 by a plurality of application programs, a commit ID is assigned to each update content of the plurality of application programs, so that a transaction is completed before the transaction is completed. Even so,
Only specific updates can be fully committed. Therefore, the state of the database 10 restored when an abnormality occurs during the update processing of the database 10 can be set to a state in which only an arbitrary update processing is reflected. For example, updates that are not closely related to changes made by other application programs in the same transaction and that do not cause a problem even if they are completely committed independently are reflected in the database 10 that is restored when an error occurs. be able to. For this reason, the state of the database 10 that is restored when an abnormality occurs during the update processing of the database 10 can be set to a desired state. Therefore, the work after the database 10 is restored can be reduced, and the database 10 can be updated more efficiently while reliably preventing inconsistencies and inconsistencies in the data in the database 10.

【0084】[第3の実施の形態]図5は、本発明の第
3の実施の形態におけるデータベース処理装置1により
実行されるデータベース処理別制御処理を示すフローチ
ャートである。また、図6は、図5のステップS304
に示す処理種別更新処理をより詳細に示すフローチャー
トであり、図7は、図5のステップS317に示す処理
別完全コミット処理をより詳細に示すフローチャートで
ある。以下、これら図5〜図7に従って、本発明の第3
の実施の形態におけるデータベース処理装置1の動作に
ついて説明する。
[Third Embodiment] FIG. 5 is a flowchart showing the control processing for each database processing executed by the database processing apparatus 1 according to the third embodiment of the present invention. FIG. 6 is a flowchart showing step S304 in FIG.
7 is a flowchart showing the process type update process in more detail, and FIG. 7 is a flowchart showing the process-specific complete commit process shown in step S317 of FIG. 5 in more detail. Hereinafter, the third embodiment of the present invention will be described with reference to FIGS.
The operation of the database processing apparatus 1 according to the embodiment will be described.

【0085】なお、本第3の実施の形態において、CP
U2は、図6のステップS321に示す処理を実行する
ことによって請求項記載の判定手段に対応し、同様に、
ステップS322〜ステップS324に示す処理を実行
することにより記憶制御手段に対応し、図7のステップ
S331〜ステップS334に示す処理を実行すること
によって種別毎確定制御手段に対応する。また、入力装
置7は、CPU2によって図2のステップS105およ
び図5のステップS316に示す処理が実行されること
により、種別指定手段に対応する。
In the third embodiment, the CP
U2 corresponds to the determination means described in the claims by executing the processing shown in step S321 in FIG.
By executing the processing shown in steps S322 to S324, it corresponds to the storage control means, and by executing the processing shown in steps S331 to S334 of FIG. 7, it corresponds to the determination control means for each type. Further, the input device 7 corresponds to a type designation unit by the CPU 2 executing the processing shown in step S105 in FIG. 2 and step S316 in FIG.

【0086】後述するように、本第3の実施の形態にお
けるデータベース処理種別制御処理では、データベース
10の更新処理の種別を判定する。データベース10内
のデータを更新する際の処理の種別としては、例えば、
新しい項目のデータを追加するデータ挿入(INSER
T)処理、古いデータを同じ項目の新しいデータに書き
換えるデータ更新(UPDATE)処理、不要になった
データを削除するデータ削除(DELETE)処理が挙
げられる。以下、本第3の実施の形態では、これら3種
類の処理について、データベース処理別制御処理が実行
されるものとして説明する。
As will be described later, in the database processing type control processing according to the third embodiment, the type of the update processing of the database 10 is determined. As a type of processing when updating data in the database 10, for example,
Insert data to add new item data (INSER
T) processing, data update (UPDATE) processing for rewriting old data with new data of the same item, and data deletion (DELETE) processing for deleting unnecessary data. Hereinafter, in the third embodiment, the three types of processing will be described assuming that the control processing for each database processing is executed.

【0087】従って、記憶装置5内には、上記3種類の
処理に対応づけて、データ挿入処理が登録されるINS
ERT処理群、データ更新処理が登録されるUPDAT
E処理群、データ削除処理が登録されるDELETE処
理群の3つのテーブルが格納される構成とする。
Therefore, in the storage device 5, the INS in which the data insertion processing is registered in association with the above three types of processing.
UPDAT where ERT processing group and data update processing are registered
It is assumed that three tables of an E processing group and a DELETE processing group in which data deletion processing is registered are stored.

【0088】なお、本第3の実施の形態におけるデータ
ベース処理装置1の上記記憶装置5の内部構成を除く各
部は上記第1および第2の実施の形態と同様の構成によ
ってなるので、その構成についての説明および図示を省
略する。また、本第3の実施の形態におけるデータベー
ス処理装置1によって、アプリケーションプログラムを
実行した際のデータベース更新処理は、上記第1の実施
の形態におけるデータベース更新処理(図2)と同様の
処理であり、説明を省略する。
Note that the components of the database processing apparatus 1 according to the third embodiment except for the internal configuration of the storage device 5 have the same configuration as those of the first and second embodiments. The description and illustration are omitted. Further, the database update processing when the application program is executed by the database processing apparatus 1 according to the third embodiment is the same as the database update processing (FIG. 2) according to the first embodiment. Description is omitted.

【0089】図5に示すデータベース処理別制御処理に
おいて、CPU2は、まずトランザクションIDが既に
発行されたか否かを判別する(ステップS301)。ト
ランザクションIDがまだ発行されていなければ、デー
タベース更新処理(図2)を行うアプリケーションプロ
グラムはトランザクション中の最初のアプリケーション
プログラムであるので、ステップS302に移行してト
ランザクションを開始し、ステップS304に移行す
る。
In the control processing for each database processing shown in FIG. 5, the CPU 2 first determines whether a transaction ID has already been issued (step S301). If the transaction ID has not been issued yet, the application program for performing the database update process (FIG. 2) is the first application program in the transaction, and therefore the flow shifts to step S302 to start the transaction, and shifts to step S304.

【0090】ステップS304で、CPU2は、ステッ
プS102(図2)の動作に応じてデータベース10内
のデータの処理種別更新処理を行ってステップS305
へ移行する。
In step S304, the CPU 2 updates the processing type of the data in the database 10 according to the operation in step S102 (FIG. 2), and executes step S305.
Move to.

【0091】ステップS304での処理種別更新処理
は、後述するように、データベース処理装置1の内容を
更新する処理を、INSERT(挿入)、UPDATE
(更新)、DELETE(削除)の3種に分類した上で
実行する処理である。なお、このステップS304での
更新内容は、暫定コミットされずに、記憶装置5に一時
的に記憶される。
The process type updating process in step S304 includes a process of updating the contents of the database processing device 1 as INSERT (insert), UPDATE, as described later.
(Update) and DELETE (delete). Note that the updated content in step S304 is temporarily stored in the storage device 5 without being provisionally committed.

【0092】一方、ステップS301でトランザクショ
ンIDが既に発行されていると判別された場合には、既
に他のアプリケーションプログラムの実行に際して開始
されたトランザクションが継続されているので、実行中
のアプリケーションプログラムがステップS108(図
2)で指定したトランザクションIDが、トランザクシ
ョン開始時にデータベース制御処理によって発行された
トランザクションIDであるか否かを判別する(ステッ
プS303)。ここで、トランザクションIDが一致し
た場合には、ステップS304へ移行し、一致しない場
合にはそのまま処理を終了する。そして、ステップS3
04では、ステップS109(図2)の動作に応じて処
理種別更新処理を実行し、ステップS305へ移行す
る。
On the other hand, if it is determined in step S301 that the transaction ID has already been issued, the transaction started when another application program is being executed is continued, and the application program being executed is It is determined whether or not the transaction ID specified in S108 (FIG. 2) is a transaction ID issued by the database control process at the start of the transaction (step S303). If the transaction IDs match, the process proceeds to step S304, and if they do not match, the process ends. Then, step S3
In step 04, the process type update process is executed in accordance with the operation in step S109 (FIG. 2), and the flow shifts to step S305.

【0093】ステップS305では、ステップS304
でのデータベース10の更新が正常に終了したか否かを
判別する。このステップS305で、データベース10
の更新が正常に終了しなかったと判別された場合には、
ステップS306へ移行し、ステップS304での更新
内容をロールバックすることによってデータベース10
を復旧する。さらに、ステップS307で暫定コミット
された状態のバックアップデータがあるか否かを判別
し、暫定コミットされたバックアップデータが無い場合
には処理を終了し、バックアップデータがある場合に
は、そのバックアップデータをもとにロールバックを行
ってデータベース10をトランザクションの前の状態に
復旧して、処理を終了する。
In step S305, step S304
It is determined whether or not the update of the database 10 has been completed normally. In this step S305, the database 10
If it is determined that the update of the
The process proceeds to step S306, and the contents of the database 10 are rolled back in step S304.
To recover. Further, in step S307, it is determined whether there is backup data in a provisionally committed state. If there is no provisionally committed backup data, the process ends. If there is backup data, the backup data is deleted. Rollback is performed to restore the database 10 to the state before the transaction, and the process ends.

【0094】また、ステップS305で、ステップS3
04でのデータベース10の更新処理が正常に終了した
と判別した場合には、ステップS109へ移行し、アプ
リケーションプログラムによるデータベース更新処理
(図2)のステップS111で完全コミットが指定され
たか否かを判別する。完全コミットが指定された場合に
は、ステップS304で記憶装置5に一時的に記憶され
た更新内容を完全に確定し(ステップS310)、続い
て、暫定コミットされた状態にある更新内容を全て完全
コミットして(ステップS311)、トランザクション
を終了する(ステップS312)。
Also, in step S305, step S3
If it is determined that the update process of the database 10 in 04 has been completed normally, the process proceeds to step S109, and it is determined whether or not a full commit has been designated in step S111 of the database update process (FIG. 2) by the application program. I do. If the complete commit is specified, the update contents temporarily stored in the storage device 5 are completely determined in step S304 (step S310), and then all the update contents in the provisionally committed state are completely updated. Commit (step S311) and end the transaction (step S312).

【0095】一方、ステップS309で、完全コミット
が指定されなかったと判別した場合には、ステップS3
13に移行して、トランザクションIDが既に発行され
ているか否かを判別する。トランザクションIDがまだ
発行されていない場合には、ステップS314でトラン
ザクションIDを発行してステップS315へ移行し、
トランザクションIDが既に発行されている場合には、
そのままステップS315へ移行する。
On the other hand, if it is determined in step S309 that a complete commit has not been specified, the process proceeds to step S3
The process proceeds to 13 to determine whether the transaction ID has already been issued. If the transaction ID has not been issued yet, the transaction ID is issued in step S314, and the process proceeds to step S315.
If the transaction ID has already been issued,
Then, control goes to step S315.

【0096】ステップS315では、ステップS304
で記憶装置5に一時的に記憶された更新内容を暫定コミ
ットして、更新内容のバックアップデータを生成して記
憶装置5に記憶させる。
In step S315, step S304
Tentatively commits the update content temporarily stored in the storage device 5 to generate backup data of the update content and store it in the storage device 5.

【0097】そして、ステップS316へ移行して、ア
プリケーションプログラムによるデータベース更新処理
(図2)のステップS105で、処理別コミット指定が
行われたか否かを判別する。このステップS316で処
理別コミット指定が行われたと判別された場合には、ス
テップS317に移行して、後述する処理別完全コミッ
ト処理を実行して、ステップS318へ移行する。
Then, the flow shifts to step S316, where it is determined whether or not a process-specific commit has been designated in step S105 of the database update process (FIG. 2) by the application program. If it is determined in step S316 that a commit by process has been specified, the process proceeds to step S317, executes a complete commit process by process described later, and proceeds to step S318.

【0098】ここで、処理別コミット指定とは、ステッ
プS304の処理種別更新処理の際に判別された、IN
SERT、UPDATE、DELETEのそれぞれの種
類毎に、完全コミットするか否かを指定するものであ
る。例えば、ステップS105(図2)でINSERT
の処理のみを完全コミットすると指定された場合には、
ステップS317では、指定されたINSERTの処理
に係る更新内容を完全コミットする。
Here, the commit specification for each process is the IN designation determined at the time of the process type update process in step S304.
For each type of SERT, UPDATE, and DELETE, whether or not to commit completely is specified. For example, INSERT in step S105 (FIG. 2)
If it is specified that only the process of the above is completely committed,
In step S317, the update content related to the specified INSERT process is completely committed.

【0099】また、ステップS316で、処理別完全コ
ミット指定が行われなかったと判別された場合には、ス
テップS318に移行する。ステップS318では、引
き続き同一のアプリケーションプログラムによってデー
タベース10の更新が行われるか否かを判別し、他のデ
ータの更新が行われる場合にはステップS304へ戻
り、実行中のアプリケーションプログラムによるデータ
ベース10の更新が終了したのであれば、処理を終了す
る。
If it is determined in step S316 that the complete commit designation for each process has not been performed, the flow shifts to step S318. In step S318, it is determined whether or not the database 10 is updated by the same application program. If another data is updated, the process returns to step S304 to update the database 10 with the application program being executed. Is completed, the process ends.

【0100】図6は、図5のステップS304で実行さ
れる処理種別更新処理をより詳細に示すフローチャート
である。この図6に示すように、処理種別更新処理にお
いてCPU2は、まずデータベース10の更新の種別を
判定する(ステップS321)。
FIG. 6 is a flowchart showing the processing type update processing executed in step S304 of FIG. 5 in more detail. As shown in FIG. 6, in the process type update process, the CPU 2 first determines the type of update of the database 10 (step S321).

【0101】ステップS321では、ステップS102
(図2)又はステップS109(図2)で指示された処
理が、上記3種類の処理のいずれの処理に該当するかを
判別する。このステップS321で、指示された処理が
データ挿入処理であると判別した場合には、ステップS
322に移行して、指定されたデータ挿入処理の内容を
示す更新情報を、記憶装置5内に格納されたINSER
T処理群に登録する。その後、CPU2は、ステップS
305(図5)の処理へ移行する。
In step S321, step S102
It is determined which of the above three types of processes the process instructed in (FIG. 2) or step S109 (FIG. 2) corresponds to. If it is determined in step S321 that the designated process is a data insertion process, the process proceeds to step S321.
322, the update information indicating the contents of the specified data insertion processing is stored in the INSER stored in the storage device 5.
Register in the T processing group. Thereafter, the CPU 2 proceeds to step S
The process proceeds to the process of 305 (FIG. 5).

【0102】また、ステップS321で、指示された処
理がデータ更新処理であると判別した場合には、ステッ
プS323に移行して、指定されたデータ更新処理の内
容を示す更新情報を、記憶装置5内に格納されたUPD
ATE処理群に登録して、ステップS305(図5)の
処理へ移行する。
If it is determined in step S321 that the designated process is a data update process, the flow advances to step S323 to store update information indicating the content of the designated data update process in the storage device 5. UPD stored in
After registering in the ATE process group, the process proceeds to the process of step S305 (FIG. 5).

【0103】さらに、ステップS321で、指示された
処理がデータ削除処理であると判別した場合には、ステ
ップS324に移行して、指定されたデータ削除処理の
内容を示す更新情報を、記憶装置5内に格納されたDE
LETE処理群に登録して、ステップS305(図5)
の処理へ移行する。
Further, if it is determined in step S321 that the designated process is a data deletion process, the flow shifts to step S324 to update information indicating the content of the specified data deletion process in the storage device 5. DE stored in
Registered in the LETE processing group, and step S305 (FIG. 5)
Move to the processing of.

【0104】図7は、図5のステップS317で実行さ
れる処理別完全コミット処理をより詳細に示すフローチ
ャートである。この図7に示すように、処理別コミット
処理においてCPU2は、まずステップS105で指定
された処理の種別を判定する(ステップS331)。
FIG. 7 is a flowchart showing the process-specific complete commit process executed in step S317 of FIG. 5 in more detail. As shown in FIG. 7, in the process-specific commit process, the CPU 2 first determines the type of the process specified in step S105 (step S331).

【0105】ステップS331では、ステップS105
(図2)で指定された処理が、上記INSERT、UP
DATE、DELETEの3種類の処理のいずれの処理
であるかを判別する。このステップS331で、指定さ
れた処理がデータ挿入処理(INSERT)であると判
別した場合には、ステップS332に移行して、記憶装
置5内に格納されたINSERT処理群に登録されてい
る全ての更新情報を完全コミットする。その後、CPU
2は、ステップS319(図5)の処理へ移行する。
In step S331, step S105
The processing specified in (FIG. 2) is the above INSERT, UP
It is determined which of the three types of processing is DATE and DELETE. If it is determined in step S331 that the designated process is the data insertion process (INSERT), the process proceeds to step S332, and all the processes registered in the INSERT process group stored in the storage device 5 are executed. Commit the update information completely. Then the CPU
2 shifts to the process of step S319 (FIG. 5).

【0106】また、ステップS331で、指定された処
理がデータ更新処理(UPDATE)であると判別した
場合には、ステップS333に移行して、記憶装置5内
に格納されたUPDATE処理群に登録された更新情報
を完全コミットして、ステップS319(図5)の処理
へ移行する。
If it is determined in step S331 that the designated process is a data update process (UPDATE), the process shifts to step S333 to be registered in the UPDATE process group stored in the storage device 5. The update information is completely committed, and the process proceeds to step S319 (FIG. 5).

【0107】さらに、ステップS331で、指定された
処理がデータ削除処理(DELETE)であると判別し
た場合には、ステップS334に移行して、記憶装置5
内に格納されたDELETE処理群に登録された更新情
報を完全コミットして、ステップS319(図5)の処
理へ移行する。
Further, if it is determined in step S331 that the designated process is a data deletion process (DELETE), the process proceeds to step S334, and the storage device 5
The update information registered in the DELETE processing group stored in the file is completely committed, and the process proceeds to step S319 (FIG. 5).

【0108】従って、ステップS105(図2)で処理
の種別を指定して処理別完全コミット処理を指示するこ
とで、特定の種類の処理だけを完全コミットすることが
できる。
Therefore, by specifying the type of process in step S105 (FIG. 2) and instructing the process-specific complete commit process, only a specific type of process can be completely committed.

【0109】以上のように、本発明の第3の実施の形態
におけるデータベース処理装置1によれば、アプリケー
ションプログラムによりデータベース10の内容が更新
される際に、更新内容の処理種別を、データ挿入処理
(INSERT)、データ更新処理(UPDATE)、
或いはデータ削除処理(DELETE)のいずれに該当
するかを判別し、各更新内容を示す更新情報を、記憶装
置5内に備えるINSERT処理群、UPDATE処理
群、DELETE処理群の各テーブルに登録する。そし
て、これらの処理種別のうち、特定の処理種別が指定さ
れ、完全コミットが指示された場合には、指定された処
理種別の更新内容を全て完全コミットする。これによ
り、データベース10を更新する処理の種別毎に、トラ
ンザクションが終了する前であっても完全コミットする
ことができるので、データベース10の更新処理中に異
常が発生した場合に復旧されるデータベース10の状態
を、任意の状態にすることができる。
As described above, according to the database processing apparatus 1 of the third embodiment of the present invention, when the contents of the database 10 are updated by the application program, the processing type of the updated contents is changed to the data insertion processing. (INSERT), data update processing (UPDATE),
Alternatively, it is determined which of the data deletion processing (DELETE) corresponds, and update information indicating each update content is registered in each table of the INSERT processing group, the UPDATE processing group, and the DELETE processing group provided in the storage device 5. When a specific processing type is designated from these processing types and a complete commit is instructed, all update contents of the designated processing type are completely committed. Thus, for each type of processing for updating the database 10, a complete commit can be performed even before the transaction is completed. The state can be any state.

【0110】従って、データベース10が復旧された後
の作業を減らすことができ、データベース10内のデー
タにおける矛盾や不整合を確実に防止しながら、データ
ベース10の更新処理をより効率よく行うことができ
る。
Therefore, the work after the database 10 is restored can be reduced, and the database 10 can be updated more efficiently while reliably preventing inconsistencies and inconsistencies in the data in the database 10. .

【0111】なお、上記第3の実施の形態におけるデー
タベース処理装置1においては、データベース10の更
新処理の種別を、INSERT、UPDATE、DEL
ETEの3種に分けて処理を行う構成としたが、本発明
はこれに限定されるものではなく、データベース10の
構成に応じて、種別をさらに増加させることも可能であ
る。
In the database processing apparatus 1 according to the third embodiment, the type of the update processing of the database 10 is INSERT, UPDATE, DEL
Although the processing is performed by dividing the processing into three types of ETE, the present invention is not limited to this, and the types can be further increased according to the configuration of the database 10.

【0112】[0112]

【発明の効果】請求項1記載の発明のデータベース処理
装置、および、請求項5記載の記憶媒体によれば、指定
された複数の更新手段によってデータベース内のデータ
を更新する一連の更新処理を行う場合に、この一連の更
新処理を行う更新手段として指定されていない更新手段
によるデータの更新を制限するので、複数のデータを連
続して更新している最中に無関係なデータが更新される
等の事態を避けることができる。これにより、データベ
ース内のデータの矛盾を防ぎ、データベースの信頼性を
高めることができる。また、更新手段によって更新され
た更新内容は一連の更新処理が終了してから確定される
ので、異常が発生した場合には、一連の更新処理が行わ
れる前の状態にデータベースが復旧される。従って、デ
ータベースが一連の更新処理の途中の状態に戻されるこ
とがないので、復旧後は一連の更新処理を最初から実行
すればよく、復旧後の処理が非常に容易で、作業負担を
軽減することができる。
According to the database processing device of the present invention and the storage medium of the present invention, a series of update processing for updating data in the database by a plurality of specified update means is performed. In such a case, data update by an update unit not specified as an update unit that performs this series of update processing is restricted, so that irrelevant data is updated while a plurality of data are continuously updated. Situation can be avoided. Thereby, inconsistency of data in the database can be prevented, and the reliability of the database can be improved. In addition, since the update content updated by the update unit is determined after the series of update processing ends, if an abnormality occurs, the database is restored to a state before the series of update processing is performed. Therefore, since the database is not returned to the state in the middle of the series of update processing, the series of update processing only needs to be executed from the beginning after restoration, and the processing after restoration is very easy, and the work load is reduced. be able to.

【0113】請求項2記載の発明のデータベース処理装
置によれば、一連の更新処理における各更新手段による
更新内容がそれぞれ記憶手段に記憶され、これらの更新
内容のうち指定した更新内容のみを確定させることがで
きる。これにより、確定したい更新内容のみを先に確定
させ、その後で異常が起こっても復旧されないようにす
ることができる。従って、非常に複雑な更新内容や、取
り扱うデータ量が非常に多い場合など、同じ更新処理を
再度実行すると負担が大きい更新内容については復旧の
際に元に戻さないようにすることができ、更新処理の内
容に応じた復旧を行うことができるので、データベース
内のデータの信頼性を向上させながら作業効率の低下を
防止することができる。
According to the database processing device of the present invention, the update contents of each update means in a series of update processing are stored in the storage means, and only the designated update contents among these update contents are determined. be able to. As a result, it is possible to determine only the update contents to be determined first, and not to recover even if an abnormality occurs later. Therefore, when the same update process is executed again, such as when the update content is extremely complicated or the amount of data to be handled is extremely large, the update content that is burdensome can be prevented from being restored at the time of restoration. Since recovery can be performed according to the contents of the processing, it is possible to prevent a decrease in work efficiency while improving the reliability of data in the database.

【0114】請求項3記載の発明のデータベース処理装
置によれば、一連の更新処理における更新内容をその種
別毎に記憶して、記憶された更新内容のうち、指定した
種別の更新内容を確定させることができる。従って、新
たにデータを追加する更新内容のみを確定させ、データ
を削除する更新内容については確定せずに復旧可能な状
態にしておく等の操作が可能であり、復旧時の作業量が
大きい更新内容や、ミスの発生に備えて復旧可能な状態
にしておきたい種別の更新内容など、更新内容の種別の
特徴に応じた復旧をすることができる。これにより、デ
ータベース内のデータの信頼性を向上させながら、作業
効率の低下を防止することができる。
According to the database processing apparatus of the third aspect of the invention, the update contents in the series of update processing are stored for each type, and the update contents of the specified type are determined from the stored update contents. be able to. Therefore, it is possible to perform an operation such as fixing only the update content for newly adding data and leaving the update content for deleting data in a recoverable state without finalizing the update content. Recovery can be performed in accordance with the characteristics of the type of update content, such as the content and the type of update content that the user wants to be able to recover from in the event of a mistake. Thus, it is possible to prevent a decrease in work efficiency while improving the reliability of data in the database.

【0115】請求項4記載の発明のデータベース処理装
置、および請求項6記載の記憶媒体によれば、一連の更
新処理の最初の更新手段による更新が行われる際に、当
該一連の更新処理に対応する識別符号が生成され、この
識別符号を取得していない更新手段による処理を制限す
るので、無関係なデータの更新を確実に防止して、デー
タベースの信頼性を向上させることができる。また、一
連の更新処理中に更新手段が切り換えられる際には、先
に更新を行った更新手段から次の更新手段に識別符号が
引き継がれるので、無関係な更新手段を容易に判別する
ことができる。従って、容易に、かつ確実に、データベ
ースの信頼性を向上させることができる。
According to the database processing apparatus of the invention described in claim 4 and the storage medium described in claim 6, when updating is performed by the first updating means in a series of update processing, the series of update processing is performed. Since the identification code is generated and the processing by the updating means that does not acquire the identification code is restricted, the update of irrelevant data can be reliably prevented, and the reliability of the database can be improved. Further, when the updating unit is switched during a series of updating processes, the identification code is inherited from the updating unit that has performed the updating to the next updating unit, so that the irrelevant updating unit can be easily determined. . Therefore, the reliability of the database can be easily and reliably improved.

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

【図1】本発明の第1の実施の形態におけるデータベー
ス処理装置1の概略構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a schematic configuration of a database processing device 1 according to a first embodiment of the present invention.

【図2】図1に示すデータベース処理装置1により実行
されるアプリケーションプログラムのデータベース更新
処理を示すフローチャートである。
FIG. 2 is a flowchart showing a database update process of an application program executed by the database processing device 1 shown in FIG.

【図3】図2に示すデータベース更新処理に応じてデー
タベース処理装置1により実行されるデータベース制御
処理を示すフローチャートである。
FIG. 3 is a flowchart showing a database control process executed by a database processing device 1 in response to the database update process shown in FIG. 2;

【図4】本発明の第2の実施の形態におけるデータベー
ス処理装置1により実行されるデータベース部分別制御
処理を示すフローチャートである。
FIG. 4 is a flowchart illustrating a database part-by-part control process executed by a database processing apparatus 1 according to a second embodiment of the present invention.

【図5】本発明の第3の実施の形態におけるデータベー
ス処理装置1により実行されるデータベース処理別制御
処理を示すフローチャートである。
FIG. 5 is a flowchart illustrating a control process for each database process executed by a database processor 1 according to a third embodiment of the present invention.

【図6】図5のステップS304に示す処理種別更新処
理をより詳細に示すフローチャートである。
FIG. 6 is a flowchart showing the process type update process shown in step S304 of FIG. 5 in more detail;

【図7】図5のステップS317に示す処理別完全コミ
ット処理をより詳細に示すフローチャートである。
FIG. 7 is a flowchart illustrating the process-specific complete commit process shown in step S317 of FIG. 5 in more detail.

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

1 データベース処理装置 2 CPU(更新制御手段;データ確定手段;データ復
旧手段;確定制御手段;判定手段;記憶制御手段;種別
毎確定制御手段;識別符号生成手段;識別符号制御手
段) 3 RAM 4 ROM 5 記憶装置(記憶手段) 6 記憶媒体 7 入力装置(指定手段;種別指定手段) 8 表示装置 9 印刷装置 10 データベース 11 バス
Reference Signs List 1 database processing device 2 CPU (update control means; data determination means; data recovery means; determination control means; determination means; storage control means; type-specific determination control means; identification code generation means; identification code control means) 3 RAM 4 ROM Reference Signs List 5 storage device (storage means) 6 storage medium 7 input device (designation means; type designation means) 8 display device 9 printing device 10 database 11 bus

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】データベース内のデータを更新する複数の
更新手段を備え、これら複数の更新手段のうち指定され
た複数の更新手段によって、前記データベース内の複数
のデータを更新する一連の更新処理を行うデータベース
処理装置において、 前記一連の更新処理が実行されている間は、前記指定さ
れた複数の更新手段以外の前記更新手段による更新処理
を制限する更新制御手段と、 前記一連の更新処理における更新内容を記憶する記憶手
段と、 前記一連の更新処理が正常に終了した際に、前記記憶手
段に記憶された更新内容に従って前記データベース内の
データを確定するデータ確定手段と、 前記一連の更新処理中に異常が発生した場合には、前記
記憶手段に記憶された更新内容をもとに前記データベー
ス内のデータを前記一連の更新処理以前の状態に復旧す
るデータ復旧手段と、 を備えることを特徴とするデータベース処理装置。
A plurality of updating means for updating data in a database, and a series of updating processes for updating a plurality of data in the database by a plurality of designated updating means among the plurality of updating means. In the database processing device for performing, while the series of update processing is being executed, update control means for restricting update processing by the update means other than the designated plurality of update means, and updating in the series of update processing Storage means for storing the contents; data determination means for determining data in the database according to the update contents stored in the storage means when the series of update processing ends normally; during the series of update processing In the event that an abnormality has occurred, the data in the database is updated based on the update contents stored in the storage means. And a data recovery means for recovering the state before the data processing.
【請求項2】前記記憶手段は、前記一連の更新処理にお
ける更新内容を、前記指定された複数の更新手段毎にそ
れぞれ記憶する記憶手段であって、 前記記憶手段に記憶された更新内容のうち、特定の前記
更新手段による更新内容を指定する指定手段と、 この指定手段により指定された更新内容に従って、前記
データベース内のデータを前記データ確定手段により確
定させる確定制御手段と、をさらに備えること、 を特徴とする請求項1記載のデータベース処理装置。
2. The storage device according to claim 1, wherein the storage unit stores update contents in the series of update processing for each of the plurality of designated update units. Specifying means for specifying the update content by the specific update means; and determination control means for determining data in the database by the data determination means in accordance with the update content specified by the specification means, The database processing apparatus according to claim 1, wherein:
【請求項3】前記一連の更新処理における更新内容の種
別をそれぞれ判定する判定手段と、 この判定手段により判定された種別毎に、前記更新内容
を前記記憶手段に記憶させる記憶制御手段と、 前記記憶手段に記憶された更新内容のうち、特定の種別
の更新内容を指定する種別指定手段と、 この種別指定手段により指定された種別の更新内容に従
って、前記データベース内のデータを前記データ確定手
段により確定させる種別毎確定制御手段と、 をさらに備えることを特徴とする請求項1記載のデータ
ベース処理装置。
3. A determination means for determining a type of an update content in the series of update processing; a storage control means for storing the update content in the storage means for each type determined by the determination means; Type specifying means for specifying a specific type of update content from among the update content stored in the storage means; and the data in the database by the data determination means in accordance with the type of update content specified by the type specification means. 2. The database processing apparatus according to claim 1, further comprising: a type-specific determination control unit that determines the type.
【請求項4】データベース内のデータを更新する複数の
更新手段を備え、これら複数の更新手段のうち指定され
た複数の更新手段によって、前記データベース内の複数
のデータを更新する一連の更新処理を行うデータベース
処理装置において、 前記一連の更新処理の最初の前記更新手段によってデー
タが更新される際に、当該一連の更新処理に対応する識
別符号を生成して前記最初の更新手段に取得させる識別
符号生成手段と、 前記一連の更新処理中、前記更新手段によるデータの更
新が終了して次の前記更新手段によるデータの更新が行
われる際には、先に更新を行った前記更新手段が取得し
た前記識別符号を次の前記更新手段に取得させる識別符
号制御手段と、 前記一連の更新処理中は、当該一連の更新処理に対応す
る識別符号を取得していない前記更新手段による更新処
理を制限する更新制御手段と、 前記一連の更新処理における更新内容を記憶する記憶手
段と、 前記一連の更新処理が正常に終了した際に、前記記憶手
段に記憶された更新内容に従って前記データベース内の
データを確定するデータ確定手段と、 前記一連の更新処理中に異常が発生した場合には、前記
記憶手段に記憶された更新内容をもとに前記データベー
ス内のデータを前記一連の更新処理以前の状態に復旧す
るデータ復旧手段と、 を備えることを特徴とするデータベース処理装置。
4. A plurality of updating means for updating data in a database, and a series of updating processes for updating a plurality of data in the database by a plurality of designated updating means among the plurality of updating means. In the database processing apparatus, when data is updated by the first updating unit of the series of update processing, an identification code corresponding to the series of update processing is generated to be acquired by the first updating unit. Generating means, during the series of update processing, when the update of the data by the update means is completed and the next update of the data is performed by the update means, the update means which has performed the update earlier has obtained Identification code control means for causing the next update means to acquire the identification code; and acquiring the identification code corresponding to the series of update processing during the series of update processing Update control means for restricting update processing by the update means that has not been performed; storage means for storing update contents in the series of update processing; and storage in the storage means when the series of update processing ends normally. Data determination means for determining data in the database according to the updated content, and, if an abnormality occurs during the series of update processing, data in the database based on the update content stored in the storage means. And a data recovery unit for recovering the state before the series of update processing.
【請求項5】指定された複数の更新処理プログラムを連
続して実行することにより、前記データベース内の複数
のデータを更新する一連の更新処理を行うコンピュータ
が実行可能なプログラムを格納した記憶媒体であって、 前記一連の更新処理が実行されている間は前記指定され
た更新処理プログラム以外の更新処理プログラムによる
更新処理を制限するためのコンピュータが実行可能なプ
ログラムコードと、 前記一連の更新処理における更新内容を記憶手段に記憶
させるためのコンピュータが実行可能なプログラムコー
ドと、 前記一連の更新処理が正常に終了した際に、前記記憶手
段に記憶された更新内容に従って前記データベース内の
データを確定させるためのコンピュータが実行可能なプ
ログラムコードと、 前記一連の更新処理中に異常が発生した場合には、前記
記憶手段に記憶された更新内容をもとに前記データベー
ス内のデータを前記一連の更新処理以前の状態に復旧さ
せるためのコンピュータが実行可能なプログラムコード
と、 を含むプログラムを格納したことを特徴とする記憶媒
体。
5. A storage medium storing a computer-executable program for executing a series of update processing for updating a plurality of data in the database by continuously executing a plurality of designated update processing programs. And a computer-executable program code for restricting update processing by an update processing program other than the designated update processing program while the series of update processing is being executed; and A computer-executable program code for storing the update content in the storage means, and when the series of update processing ends normally, determine the data in the database according to the update content stored in the storage means. Computer-executable program code for performing the series of update processing When an abnormality has occurred, a computer-executable program code for restoring data in the database to a state before the series of update processing based on the update content stored in the storage means, A storage medium storing a program including the program.
【請求項6】指定された複数のデータ更新処理プログラ
ムを連続して実行することにより、前記データベース内
の複数のデータを更新する一連の更新処理を行うコンピ
ュータが実行可能なプログラムを格納した記憶媒体であ
って、 前記一連の更新処理の最初の前記データ更新処理プログ
ラムが実行される際に、当該一連の更新処理に対応する
識別符号を生成して当該データ更新処理プログラムで取
得させるためのコンピュータが実行可能なプログラムコ
ードと、 前記一連の更新処理中、前記更新処理プログラムが終了
して次の前記データ更新処理プログラムによる処理が開
始される際に、先に実行された前記データ更新処理プロ
グラムで取得された前記識別符号を次の前記データ更新
処理プログラムで取得させるためのコンピュータが実行
可能なプログラムコードと、 前記一連の更新処理中は、当該一連の更新処理に対応す
る識別符号を取得していない前記データ更新処理プログ
ラムの実行を制限するためのコンピュータが実行可能な
プログラムコードと、 前記一連の更新処理における更新内容を記憶手段に記憶
させるためのコンピュータが実行可能なプログラムコー
ドと、 前記一連の更新処理が正常に終了した際に、前記記憶手
段に記憶された更新内容に従って前記データベース内の
データを確定させるためのコンピュータが実行可能なプ
ログラムコードと、 前記一連の更新処理中に異常が発生した場合には、前記
記憶手段に記憶された更新内容をもとに前記データベー
ス内のデータを前記一連の更新処理以前の状態に復旧さ
せるためのコンピュータが実行可能なプログラムコード
と、 を含むプログラムを格納したことを特徴とする記憶媒
体。
6. A storage medium storing a computer-executable program for performing a series of update processing for updating a plurality of data in the database by continuously executing a plurality of designated data update processing programs. When the first data update processing program of the series of update processing is executed, a computer for generating an identification code corresponding to the series of update processing and causing the computer to acquire the identification code with the data update processing program is Executable program code, acquired by the previously executed data update processing program when the update processing program ends and processing by the next data update processing program is started during the series of update processing Computer for executing the next data update processing program to obtain the obtained identification code Program code, during the series of update processing, a computer-executable program code for limiting the execution of the data update processing program that has not acquired the identification code corresponding to the series of update processing, A computer-executable program code for storing the update content in the series of update processing in the storage unit; and when the series of update processing ends normally, the database according to the update content stored in the storage unit. A computer-executable program code for determining the data in the memory, and if an error occurs during the series of update processing, the data in the database based on the update content stored in the storage unit. Computer-executable program for restoring to a state before the series of update processing Storage medium characterized by storing a program containing a over de, a.
JP11097882A 1999-04-05 1999-04-05 Database processor and storage medium Abandoned JP2000293416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11097882A JP2000293416A (en) 1999-04-05 1999-04-05 Database processor and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11097882A JP2000293416A (en) 1999-04-05 1999-04-05 Database processor and storage medium

Publications (1)

Publication Number Publication Date
JP2000293416A true JP2000293416A (en) 2000-10-20

Family

ID=14204128

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11097882A Abandoned JP2000293416A (en) 1999-04-05 1999-04-05 Database processor and storage medium

Country Status (1)

Country Link
JP (1) JP2000293416A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006260121A (en) * 2005-03-17 2006-09-28 Nomura Research Institute Ltd System for securing consistency of data stored in dbms
US7120913B2 (en) 2001-04-04 2006-10-10 Denso Corporation Processing execution apparatus having data reference limiting function

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7120913B2 (en) 2001-04-04 2006-10-10 Denso Corporation Processing execution apparatus having data reference limiting function
JP2006260121A (en) * 2005-03-17 2006-09-28 Nomura Research Institute Ltd System for securing consistency of data stored in dbms
JP4628830B2 (en) * 2005-03-17 2011-02-09 株式会社野村総合研究所 System for ensuring the integrity of data stored in DBMS

Similar Documents

Publication Publication Date Title
US20080005189A1 (en) Computer readable recording medium having stored therein database synchronizing process program, and apparatus for and method of performing database synchronizing process
US6434710B1 (en) Commit controlling scheme for transaction processing in system utilizing check point/roll back scheme
US20060004882A1 (en) Custom Atomic Transactions in Programming Environments
US5745674A (en) Management of units of work on a computer system log
JPH09204341A (en) Numbering mechanism, data compatibility confirming mechanism, transaction rerun mechanism and distributed transaction processing system
US20030208489A1 (en) Method for ordering parallel operations in a resource manager
JP2000293416A (en) Database processor and storage medium
JP2006146589A (en) Processing system and arbitration server
JP2610972B2 (en) Database data integrity method
JP2000348113A (en) History information management device and storage medium
JPH10508968A (en) Data set backup method and apparatus in shared environment
JPH07101399B2 (en) Database deadlock processing method
JP2000315190A (en) Job recovery system
JPH07230389A (en) Error processing method and information processor using this method
JP3771753B2 (en) Integrated resource management method
JPH01140353A (en) System for maintaining data in data base
JPH08115412A (en) Generated data presentation device and its presentation method
JPH09305684A (en) Form management method and information processing system for executing the method
JPH03113674A (en) Design data control system
JP2623968B2 (en) Commit synchronization control method for journalless files
JPH05143422A (en) Updated journal managing system
JPH03233634A (en) Job reprocessing system
JPS6310251A (en) Control system for record indicator
JP2000215094A (en) Device and method for file restoration, device and method for process management, and recording medium
JPH0324648A (en) Simultaneous file access control system

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070904

A762 Written abandonment of application

Free format text: JAPANESE INTERMEDIATE CODE: A762

Effective date: 20071029