JP2939414B2 - Database Equivalent Processor for Dual Computer - Google Patents

Database Equivalent Processor for Dual Computer

Info

Publication number
JP2939414B2
JP2939414B2 JP6100926A JP10092694A JP2939414B2 JP 2939414 B2 JP2939414 B2 JP 2939414B2 JP 6100926 A JP6100926 A JP 6100926A JP 10092694 A JP10092694 A JP 10092694A JP 2939414 B2 JP2939414 B2 JP 2939414B2
Authority
JP
Japan
Prior art keywords
data
database
storage area
data storage
difference data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP6100926A
Other languages
Japanese (ja)
Other versions
JPH07306795A (en
Inventor
佳弘 福本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP6100926A priority Critical patent/JP2939414B2/en
Publication of JPH07306795A publication Critical patent/JPH07306795A/en
Application granted granted Critical
Publication of JP2939414B2 publication Critical patent/JP2939414B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Hardware Redundancy (AREA)
  • Multi Processors (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】この発明は二重系の計算機におけ
る複数のデータベース相互に同一の汎用共通言語からな
るデータを等価記憶する装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for equivalently storing data of the same general-purpose common language among a plurality of databases in a dual computer.

【0002】[0002]

【従来の技術】図14は例えば特開平2−118737
号公報に示された従来の二重系計算機のデータベース等
価処理装置を示す構成図である。この図14において、
1はA系サーバコンピュータ、2はA系サーバコンピュ
ータ1が有するA系データベース、2aはA系サーバコ
ンピュータ1が有するA系全データ記憶データベース、
3はB系サーバコンピュータ、4はB系サーバコンピュ
ータ3が有するB系データベース、3aはB系サーバコ
ンピュータ3が有するB系全データ記憶データベース、
6は汎用共通言語を保有するクライアントコンピュー
タ、5はクライアントコンピュータ6にA系サーバコン
ピュータ1およびB系サーバコンピュータ3を接続する
バス形伝送路である。
2. Description of the Related Art FIG.
FIG. 1 is a configuration diagram illustrating a conventional database equivalence processing device of a dual computer disclosed in Japanese Unexamined Patent Publication. In FIG. 14,
1 is an A-system server computer, 2 is an A-system database of the A-system server computer 1, 2a is an A-system total data storage database of the A-system server computer 1,
3 is a B-system server computer, 4 is a B-system database of the B-system server computer 3, 3a is a B-system all data storage database of the B-system server computer 3,
Reference numeral 6 denotes a client computer having a general-purpose common language, and reference numeral 5 denotes a bus-type transmission line that connects the A-system server computer 1 and the B-system server computer 3 to the client computer 6.

【0003】次に、上記従来の二重系計算機のデータベ
ース等価処理装置の動作について説明する。クライアン
トコンピュータ6がデータ変更をA系・B系サーバコン
ピュータ1,3にバス形伝送路5を使用して指示する
と、A系・B系サーバコンピュータ1,3はそれぞれ自
分のデータベース2,4のデータを同時に変更する。結
果として、データベース2,4はデータが同一の状態に
保たれた、データの等価格納状態になる。
Next, the operation of the above-mentioned conventional database equivalence processing device for a dual computer will be described. When the client computer 6 instructs the A-system / B-system server computers 1 and 3 to change the data using the bus-type transmission line 5, the A-system and B-system server computers 1 and 3 store their own data in their databases 2 and 4, respectively. To change at the same time. As a result, the databases 2 and 4 have an equivalent data storage state in which the data is kept in the same state.

【0004】このデータ変更途中において、もし、B系
サーバコンピュータ3が何らかの理由で機能を停止しB
系データベース4を変更できない場合には、A系データ
ベース2のみが更新されるので、B系データベース4は
最新の状態でなくなるうえ、そのB系データベース4の
データはA系データベース2のデータと齟齬を生じる。
このとき、このA系・B系データベース2,4でのデー
タの齟齬を解消するために、クライアントコンピュータ
6はその異常監視機能によりB系サーバコンピュータ3
の正常復帰を監視する。そして、B系サーバコンピュー
タ3が正常状態に復帰したとき、クライアントコンピュ
ータ6はそのデータベース管理機能によりA系・B系サ
ーバコンピュータ1,3にB系データベース4のデータ
をA系データベース2と等しくするための等価処理指示
を与える。この等価処理は具体的には下記(1)乃至
(3)の処理によって達成される。
During the data change, if the B-system server computer 3 stops functioning for some reason and
If the system database 4 cannot be changed, only the system A database 2 is updated, so that the system B database 4 is out of date and the data of the system B database 4 is inconsistent with the data of the system A database 2. Occurs.
At this time, in order to resolve the inconsistency of data in the A-system / B-system databases 2 and 4, the client computer 6 uses the B-system server computer 3 by its abnormality monitoring function.
Monitor the normal return of. Then, when the B-system server computer 3 returns to a normal state, the client computer 6 causes the A-system / B-system server computers 1 and 3 to make the data of the B-system database 4 equal to the A-system database 2 by the database management function. Is given. This equivalent process is specifically achieved by the following processes (1) to (3).

【0005】(1)A系サーバコンピュータ1がA系デ
ータベース2のデータ全部をA系全データ記憶データベ
ース2aに吸い上げる。つまり、A系データベース2の
データ全部がA系全データ記憶データベース2aに記憶
される。そして、A系サーバコンピュータ1はA系全デ
ータ記憶データベース2aのデータをB系サーバコンピ
ュータ3にバス形伝送路5を使用して転送する。
(1) The A-system server computer 1 downloads all data in the A-system database 2 to the A-system full data storage database 2a. That is, all the data of the A-system database 2 is stored in the A-system all data storage database 2a. Then, the A-system server computer 1 transfers the data of the A-system full data storage database 2a to the B-system server computer 3 using the bus-type transmission path 5.

【0006】(2)B系サーバコンピュータ3はA系サ
ーバコンピュータ1から転送されてきたA系全データ記
憶データベース2aのデータをB系データベース4に書
き込む(複写する)。
(2) The B-system server computer 3 writes (copies) the data of the A-system all data storage database 2a transferred from the A-system server computer 1 to the B-system database 4.

【0007】(3)上記(1)および(2)の処理中に
おいて、A系データベース2のデータが変更されると、
B系データベース4のデータがA系データベース2のデ
ータと等価の状態にならないため、クライアントコンピ
ュータ6は上記(1)および(2)の作業中はA系サー
バコンピュータ1におけるA系データベース2でのデー
タの更新を禁止する。または、クライアントコンピュー
タ6はそのデータベース管理機能により(1)および
(2)作業中のトランザクションログをとりB系データ
ベース4に反映するが、しかし、このトランザクション
ログの反映の間に、A系データベース2が変更される
と、B系データベース4が上記同様に最新の等価状態に
ならないため、この間は、クライアントコンピュータ6
はA系サーバコンピュータ1におけるA系データベース
2でのデータの更新を禁止する。
(3) If the data in the A-system database 2 is changed during the processing of (1) and (2),
Since the data in the B-system database 4 does not become equivalent to the data in the A-system database 2, the client computer 6 keeps the data in the A-system database 2 in the A-system server computer 1 during the operations (1) and (2). Prohibit updating of. Alternatively, the client computer 6 takes (1) and (2) the working transaction log by its database management function and reflects it in the B system database 4, but during the reflection of the transaction log, the A system database 2 If it is changed, the B-system database 4 will not be in the latest equivalent state as described above.
Prohibits updating of data in the A-system database 2 in the A-system server computer 1.

【0008】[0008]

【発明が解決しようとする課題】上記従来の二重系計算
機のデータベース等価処理装置は以上のようにA系デー
タベース2のデータ全部をA系全データ記憶データベー
ス2aに吸い上げてからB系データベース4に投入する
全データ等価処理を行う構成であるから、処理時間が多
くかかるという問題点があった。
As described above, the above-described conventional database equivalent processing apparatus of the dual computer reads all the data of the A-system database 2 into the A-system full data storage database 2a and then transfers the data to the B-system database 4. There is a problem that it takes a lot of processing time because the configuration is such that all data input processing is performed.

【0009】この発明は上記のような課題を解決するた
めになされたもので、第1の目的は処理速度を上げ、第
2の目的は等価処理中でもデータ更新を可能とし、第3
の目的はデータ等価の信頼性を上げ、第4の目的は複数
のクライアントコンピュータからデータ更新に対応可能
とし、第5の目的は状況に応じた等価処理を選択可能と
し、第6の目的は等価処理データの制約を低減し、異常
発生でも等価処理を継続するようにしたことである。
The present invention has been made to solve the above-mentioned problems. A first object is to increase the processing speed, and a second object is to enable data updating even during equivalent processing.
The fourth object is to increase the reliability of data equalization, the fourth object is to be able to respond to data update from a plurality of client computers, the fifth object is to be able to select an equalization process according to the situation, and the sixth object is to be equivalent. This is to reduce the restriction on the processing data and continue the equivalent processing even if an abnormality occurs.

【0010】[0010]

【課題を解決するための手段】請求項1に記載された第
1の発明に係る二重系計算機のデータベース等価処理装
置は、汎用共通言語からなるデータを保有するクライア
ントコンピュータにバス形伝送路で接続された複数のサ
ーバコンピュータのデータベースが、それぞれに記憶さ
れたデータの差分を記憶するための差分データ記憶領域
を個別に有し、クライアントコンピュータは転送手段お
よび複写手段を有し、この転送手段が複数のサーバコン
ピュータのうちの一方のデータベースにその差分データ
記憶領域に記憶された差分データを他方のサーバコンピ
ュータに転送するための指示を行い、上記複写手段は他
方のサーバコンピュータに転送された差分データをその
差分データ記憶領域に複写するための指示を行う構成と
したものである。
According to a first aspect of the present invention, there is provided a database equivalent processing apparatus for a dual computer, wherein a client computer having data in a general-purpose common language is connected to a client computer having a bus-type transmission path. Databases of a plurality of connected server computers each have a difference data storage area for storing a difference between data stored therein, and a client computer has a transfer unit and a copy unit. One of the plurality of server computers issues an instruction to transfer the difference data stored in the difference data storage area to the other server computer, and the copying means performs the difference data transfer to the other server computer. Is instructed to copy to the difference data storage area.

【0011】請求項2に記載された第2の発明に係る二
重系計算機のデータベース等価処理装置は、第1の発明
のクライアントコンピュータが比較手段を有し、この比
較手段が第1の発明の複写手段による一方の差分データ
記憶領域から他方の差分データ記憶領域への複写完了後
における両者のデータ量を比較しその両者のデータ量が
不一致ならば他方の差分データ記憶領域の複写データを
消去しさらに再度一方の差分データ記憶領域から他方の
差分データ記憶領域への複写を行う構成としたものであ
る。
According to a second aspect of the present invention, in the database equivalence processing apparatus for a dual computer according to the second aspect, the client computer according to the first aspect of the present invention has a comparing means, and the comparing means comprises the comparing means of the first aspect. After the copying by the copying means from one differential data storage area to the other differential data storage area is completed, the two data amounts are compared. If the two data amounts do not match, the copy data in the other differential data storage area is deleted. Further, copying from one differential data storage area to the other differential data storage area is performed again.

【0012】請求項3に記載された第3の発明に係る二
重系計算機のデータベース等価処理装置は、第1の発明
のデータベースには更新命令記憶領域が設けられ、上記
クライアントコンピュータまたは複数のサーバコンピュ
ータのいずれかには更新命令手段が設けられ、この更新
命令手段が一方のデータベースから他方のデータベース
への等価処理に際し、その等価処理での更新命令を上記
更新命令記憶領域に書き込む、その更新命令記憶領域が
なくなるまで等価処理を繰り返す構成としたものであ
る。
According to a third aspect of the present invention, in the database equivalence processing apparatus for a dual computer according to the third aspect, the database of the first invention is provided with an update instruction storage area, and the client computer or the plurality of servers are provided. One of the computers is provided with an update instruction means, and the update instruction means writes an update instruction in the equivalent processing to the update instruction storage area when performing equivalent processing from one database to the other database. The configuration is such that the equivalent processing is repeated until there is no more storage area.

【0013】請求項4に記載された第4の発明に係る二
重系計算機のデータベース等価処理装置は、第1の発明
の複数のサーバコンピュータが検証手段を有し、この検
証手段が第1の発明の複写手段による一方のデータベー
スから他方のデータベースへの複写完了後におけるデー
タベース量の一致性を検証する構成としたものである。
According to a fourth aspect of the present invention, there is provided a database equivalence processing apparatus for a dual computer according to the fourth aspect, wherein the plurality of server computers of the first invention have a verification means, and the verification means comprises the first This is a configuration for verifying the consistency of the database amount after copying from one database to the other database by the copying means of the present invention.

【0014】請求項5に記載された第5の発明に係る二
重系計算機のデータベース等価処理装置は、第1の発明
の複数のサーバコンピュータが更新順序手段を有し、こ
の更新順序手段が複数のクライアントコンピュータから
のデータ更新を受けことによってそのデータ更新と同一
トランザクションで差分データを差分データ記憶領域に
書き込むとともにその差分データに時間順の連続番号を
付与する構成としたものである。
According to a fifth aspect of the present invention, in the database equivalence processing device for a dual computer according to the fifth aspect, the plurality of server computers of the first invention have update order means, and the update order means has a plurality of update order means. In response to the data update from the client computer, the differential data is written to the differential data storage area in the same transaction as the data update, and a serial number in time order is given to the differential data.

【0015】請求項6に記載された第6の発明に係る二
重系計算機のデータベース等価処理装置は、第1の発明
の複数のサーバコンピュータが全データ等価処理による
データを記憶する全データ記憶データベースを有し、こ
れら複数のサーバコンピュータまたはクライアントコン
ピュータのいずれかが比較選択手段を有し、この比較選
択手段はデータベースの記憶領域に対する差分データ記
憶領域への差分データ容量の割合が基準値より小さい場
合には差分データ記憶領域を使用する差分データ等価処
理を実行し上記割合が基準値を越えた場合には全データ
記憶データベースを使用する全データ等価処理を実行す
る構成としたものである。
According to a sixth aspect of the present invention, there is provided a database equalization processing apparatus for a dual computer according to the first aspect of the present invention, wherein the plurality of server computers of the first invention store data by the all data equalization process. Any one of the plurality of server computers or the client computers has a comparison and selection unit, and the comparison and selection unit is configured such that the ratio of the difference data capacity to the difference data storage area with respect to the storage area of the database is smaller than the reference value. Is configured to execute a differential data equalization process using a differential data storage area, and execute an all data equalization process using an all data storage database when the above ratio exceeds a reference value.

【0016】請求項7に記載された第7の発明に係る二
重系計算機のデータベース等価処理装置は、第1の発明
の複数のサーバコンピュータが全データ等価処理による
データを記憶する全データ記憶データベースを有し、こ
れら複数のサーバコンピュータまたはクライアントコン
ピュータのいずれかが比較判定手段を有し、この比較判
定手段は差分データ記憶領域への差分データ量が差分デ
ータ記憶領域より小さい場合には差分データ記憶領域を
使用する差分データ等価処理を実行し上記差分データ量
が差分データ記憶領域を越える場合には全データ記憶デ
ータベースを使用する全データ等価処理を実行する構成
としたものである。
According to a seventh aspect of the present invention, there is provided a database equalization processing apparatus for a dual computer, wherein the plurality of server computers according to the first invention store data by all data equalization processing. Any one of the plurality of server computers or the client computers has a comparison determination unit, and the comparison determination unit stores the difference data when the difference data amount to the difference data storage area is smaller than the difference data storage area. When the difference data amount exceeds the difference data storage area, a difference data equalization process using the entire data storage database is executed.

【0017】請求項8に記載された第8の発明に係る二
重系計算機のデータベース等価処理装置は、第1の発明
の複数のサーバコンピュータが全データ等価処理による
データを記憶する全データ記憶データベースを有し、こ
れら複数のサーバコンピュータまたはクライアントコン
ピュータのいずれかが異常対策手段を有し、この異常対
策手段は差分データの差分データ記憶領域への差分デー
タ等価処理中に異常が発生したときその差分データ等価
処理を中止するとともに全データ記憶データベースを使
用する全データ等価処理を実行する構成としたものであ
る。
According to an eighth aspect of the present invention, there is provided a database equalization processing apparatus for a dual computer according to the eighth invention, wherein the plurality of server computers of the first invention store data by all data equalization processing. Any of the plurality of server computers or the client computers has an abnormality countermeasure unit, and the abnormality countermeasure unit is configured to determine the difference when an error occurs during the differential data equalization processing of the difference data to the difference data storage area. The configuration is such that the data equalization processing is stopped and the all data equalization processing using the all data storage database is executed.

【0018】[0018]

【作用】第1の発明の二重系計算機のデータベース等価
処理装置は、汎用共通言語で記載された差分を一方のデ
ータベースの差分データ記憶領域から他方のデータベー
スの差分データ記憶領域に複写し、この差分データで他
方のデータベースに変更をかけることにより、データベ
ースの等価処理速度が速くなる。
According to a first aspect of the present invention, a database equivalent processing apparatus for a dual computer copies a difference described in a general-purpose common language from a difference data storage area of one database to a difference data storage area of another database. By making a change to the other database with the difference data, the equivalent processing speed of the database is increased.

【0019】第2の発明の二重系計算機のデータベース
等価処理装置は、差分データの汎用共通言語の数を複写
前後で比較し、同複写前後での文字数が一致するまで差
分データの等価処理を繰り返すことにより、等価処理中
でもデータ更新が可能となる。
In a second aspect of the invention, the database equivalence processing device for a dual computer compares the number of general-purpose common languages of the difference data before and after copying, and performs the equalization processing of the difference data until the number of characters before and after the copying matches. By repeating, the data can be updated even during the equivalent processing.

【0020】第3の発明の二重系計算機のデータベース
等価処理装置は、差分データがなくなるまで差分データ
を一方のデータベースの差分データ記憶領域から他方の
データベースの差分データ記憶領域に複写し、この差分
データで他方のデータベースに変更をかけることによ
り、データベースへ変更をかける間もデータ更新が可能
となる。
The database equivalence processing device of the dual computer according to the third invention copies the difference data from the difference data storage area of one database to the difference data storage area of the other database until there is no difference data. By making changes to the other database with data, data can be updated while making changes to the database.

【0021】第4の発明の二重系計算機のデータベース
等価処理装置は、データ等価後におけるデータベース量
の一致性を検証することにより、データ等価の信頼性が
上がる。
The database equivalence processing device of the dual computer according to the fourth aspect of the present invention increases the reliability of data equivalence by verifying the consistency of the database amount after data equivalence.

【0022】第5の発明の二重系計算機のデータベース
等価処理装置は、データ更新について差分データをデー
タ更新と同一トランザクションで書き込み、その差分デ
ータに時間順の連続番号をあたえることにより、複数ク
ライアントからのデータ更新が容易になる。
According to a fifth aspect of the present invention, the database equivalence processing device of the dual computer writes the difference data in the same transaction as the data update for the data update, and gives the difference data a serial number in time order, so that the plurality of clients can receive the data. Data can be easily updated.

【0023】第6の発明の二重系計算機のデータベース
等価処理装置は、差分データのデータ容量と全体データ
容量とを比較し両者の比により、差分データを複写する
差分データ等価処理およびデータ全部を複写する全デー
タ等価処理のうちで速い方を選択することにより、処理
速度が速くなる。
In a sixth aspect of the present invention, the database equalization processing apparatus for a dual computer compares the data capacity of the difference data with the entire data capacity, and performs the difference data equalization processing for copying the difference data and the entire data by the ratio between the two. By selecting the faster one of all data equivalent processes to be copied, the processing speed is increased.

【0024】第7の発明の二重系計算機のデータベース
等価処理装置は、差分データがあらかじめ定められた容
量を越えるかどうかで、差分データ等価処理および全デ
ータ等価処理を使い分けることにより、差分データ容量
の制約がなくなる。
In a seventh aspect of the present invention, the database equalization processing apparatus for a dual computer selectively uses difference data equalization processing and all data equalization processing depending on whether or not difference data exceeds a predetermined capacity. Restrictions are eliminated.

【0025】第8の発明の二重系計算機のデータベース
等価処理装置は、差分データ等価処理中にエラーが発生
すると、その差分データ等価処理を中止し、全データ等
価処理を実施することにより、データ等価の信頼性が上
がる。
According to an eighth aspect of the present invention, when an error occurs during the differential data equalization process, the database equalization processing device of the dual computer suspends the difference data equalization process, and performs the all data equalization process to obtain the data. Equivalent reliability increases.

【0026】[0026]

【実施例】以下、この発明の各実施例を図1乃至図13
を用い、上記従来例と同一部分に同一符号を付して説明
する。 実施例1(請求項1に対応).図1は実施例1の二重系
計算機のデータベース等価処理装置を示す構成図であ
る。この図1において、クライアントコンピュータ6に
はA系サーバコンピュータ1とB系サーバコンピュータ
3とがバス形伝送路5にて接続され、A系サーバコンピ
ュータ1はA系データベース2を備え、このA系データ
ベース2にはA系データベース2に対する更新分を蓄え
るA系差分データ記憶領域7が設けられ、B系サーバコ
ンピュータ3はB系データベース4を備え、このB系デ
ータベース4にはB系データベース4に対する更新分を
蓄えるB系差分データ記憶領域8が設けられている。ま
た、クライアントコンピュータ6は例えばSQLのよう
な汎用共通言語で記憶されるデータ6aを保有するとと
もに転送手段6bおよび複写手段6cを備える。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of the present invention will be described with reference to FIGS.
In the following description, the same parts as those of the above-described conventional example are denoted by the same reference numerals. Embodiment 1 (corresponding to claim 1). FIG. 1 is a configuration diagram illustrating the database equivalence processing device of the dual computer according to the first embodiment. In FIG. 1, an A-system server computer 1 and a B-system server computer 3 are connected to a client computer 6 via a bus-type transmission line 5, and the A-system server computer 1 includes an A-system database 2; 2 is provided with an A-system difference data storage area 7 for storing an update for the A-system database 2, and a B-system server computer 3 is provided with a B-system database 4. Is provided in the B-system difference data storage area 8 for storing the data. The client computer 6 has data 6a stored in a general-purpose common language such as SQL, for example, and includes a transfer unit 6b and a copy unit 6c.

【0027】次に、実施例1の動作について説明する。
クライアントコンピュータ6は同一データをA系・B系
サーバコンピュータ1,2相互にバス形伝送路5を使用
して二相コミットメント方式により転送することでA系
・B系データベース2,4のデータを同時に変更する。
つまり、A系・B系サーバコンピュータ1,3はクライ
アントコンピュータ6からのデータ変更指示を受けるこ
とによりA系・B系データベース2,4のデータを同時
に変更し、A系・B系データベース2,4がデータの等
価格納状態になる。しかし、このデータ変更途中におい
て、もし、B系サーバコンピュータ3の機能停止によっ
て、B系データベース4が変更されない場合は、B系デ
ータベース4のデータが最新の状態とならずA系データ
ベース2のデータと齟齬を生じ、B系データベース4の
データとA系データベース2とが不等価になる。そこ
で、クライアントコンピュータ6はその異常監視機能に
よりB系サーバコンピュータ3の機能停止なる異常およ
びその機能回復なる正常復帰を監視し、B系サーバコン
ピュータ3が正常状態に復帰したとき、クライアントコ
ンピュータ6はそのデータベース管理機能によりA系・
B系サーバコンピュータ1,3にB系データベース4の
データをA系データベース2と等しくするための等価処
理指示を与える。この等価処理は具体的には下記(1)
乃至(4)の処理によって達成される。
Next, the operation of the first embodiment will be described.
The client computer 6 transfers the same data to the A-system / B-system databases 2 and 4 at the same time by transferring the same data to the A-system / B-system server computers 1 and 2 by the two-phase commitment method using the bus-type transmission line 5. change.
That is, the A-system / B-system server computers 1 and 3 change the data of the A-system and B-system databases 2 and 4 at the same time by receiving the data change instruction from the client computer 6. Becomes an equivalent storage state of data. However, during the data change, if the B-system database 4 is not changed due to the stoppage of the function of the B-system server computer 3, the data of the B-system database 4 will not be updated and the data of the A-system database 2 will not be updated. A discrepancy occurs, and the data of the B-system database 4 and the A-system database 2 become unequal. Therefore, the client computer 6 monitors the malfunction of the B-system server computer 3 by the abnormality monitoring function and the normal recovery of the function recovery, and when the B-system server computer 3 returns to the normal state, the client computer 6 performs the operation. A system by database management function
An equivalent processing instruction for making the data in the B-system database 4 equal to the data in the A-system database 2 is given to the B-system server computers 1 and 3. This equivalent processing is specifically described in (1) below.
This is achieved by the processing of (4).

【0028】(1)クライアントコンピュータ6は2相
コミットメント方式でB系サーバコンピュータ3の異常
を表すエラーメッセージを受け取ると、データ変更指示
にもとづくA系差分データ記憶領域7への書き込み指示
をA系サーバコンピュータ1に与える。この指示によっ
て、A系サーバコンピュータ1はA系データベース2の
データ変更に伴う命令を汎用共通言語の文字列としてA
系差分データ記憶領域7に書き込む。
(1) When the client computer 6 receives an error message indicating an abnormality of the B-system server computer 3 in the two-phase commitment system, the client computer 6 issues a write instruction to the A-system differential data storage area 7 based on the data change instruction. Give to computer 1. In response to this instruction, the A-system server computer 1 converts the instruction accompanying the data change of the A-system database 2 into a character string of a general-purpose common language.
The data is written to the system difference data storage area 7.

【0029】(2)クライアントコンピュータ6は二相
コミットメント方式でB系サーバコンピュータ3の異常
回復を表す使用可能メッセージを受け取った時点で、ク
ライアントコンピュータ6はその転送手段6bによって
A系サーバコンピュータ1にA系差分データ記憶領域7
に格納された内容のみをB系サーバコンピュータ3に転
送する指示を与える。この転送指示を受けたA系サーバ
コンピュータ1はA系差分データ記憶領域7に格納され
た内容のみをB系サーバコンピュータ3にバス形伝送路
5を使用して転送する。この転送完了後に、クライアン
トコンピュータ6はその複写手段6cによってB系サー
バコンピュータ3に上記A系サーバコンピュータ1から
の転送を受けたB系差分データ記憶領域8に複写する指
示を与える。この複写指示を受けたB系サーバコンピュ
ータ3はA系差分データ記憶領域7からの転送データと
しての汎用共通言語の文字列をB系差分データ記憶領域
8に書き込む(複写する)。この複写完了後に、クライ
アントコンピュータ6はA系サーバコンピュータ1にA
系差分データ記憶領域7の内容を消去する指示を与え
る。この消去指示によって、A系サーバコンピュータ1
はA系差分データ記憶領域7のデータを消去する。
(2) When the client computer 6 receives the available message indicating the abnormal recovery of the B-system server computer 3 by the two-phase commitment system, the client computer 6 sends the A-system server computer 1 to the A-system server computer 1 by the transfer means 6b. System difference data storage area 7
Is transferred to the B-system server computer 3 only. The A-system server computer 1 having received the transfer instruction transfers only the contents stored in the A-system difference data storage area 7 to the B-system server computer 3 using the bus-type transmission path 5. After the completion of the transfer, the client computer 6 gives an instruction to the B-system server computer 3 to copy to the B-system difference data storage area 8 transferred from the A-system server computer 1 by the copying means 6c. Upon receiving the copy instruction, the B-system server computer 3 writes (copies) a character string in a general-purpose common language as transfer data from the A-system difference data storage area 7 to the B-system difference data storage area 8. After the copying is completed, the client computer 6 sends the A
An instruction to delete the contents of the system difference data storage area 7 is given. By this erasure instruction, the A-system server computer 1
Deletes the data in the A-system difference data storage area 7.

【0030】(3)引き続き、クライアントコンピュー
タ6はその複写手段6cによってB系サーバコンピュー
タ3にB系データベース4の内容を変更する指示を与え
る。この変更指示によって、B系サーバコンピュータ3
はB系差分データ記憶領域8から汎用共通言語の文字列
を読み出し、その読み出した内容でB系データベース4
に変更をかけ(B系データベース4を更新し)、その変
更後にB系差分データ記憶領域8のデータを消去する。
(3) Subsequently, the client computer 6 gives an instruction to change the contents of the B-system database 4 to the B-system server computer 3 by the copying means 6c. By this change instruction, the B-system server computer 3
Reads a character string in a general-purpose common language from the B-system difference data storage area 8 and uses the read contents as a B-system database 4
Is changed (the B system database 4 is updated), and after the change, the data in the B system difference data storage area 8 is deleted.

【0031】(4)上記(1)乃至(4)の処理中は、
クライアントコンピュータ6はA系サーバコンピュータ
1にA系データベース2にデータの更新を禁止する指示
を与える。それは、(1)乃至(4)の処理中にA系デ
ータベース2のデータが更新されると、B系データベー
ス4が最新の状態にならない。これを防止するために、
(1)乃至(4)の処理中はA系データベース2の更新
を禁止する。結果として、(1)乃至(4)の処理によ
って、A系データベース2とB系データベース4とのデ
ータの等価処理の1サイクルが終了する。
(4) During the processing of the above (1) to (4),
The client computer 6 gives the A-system server computer 1 an instruction to prohibit the A-system database 2 from updating data. That is, if the data of the A-system database 2 is updated during the processing of (1) to (4), the B-system database 4 does not become the latest state. To prevent this,
During the processing of (1) to (4), updating of the A-system database 2 is prohibited. As a result, by the processes (1) to (4), one cycle of the data equalization process of the A-system database 2 and the B-system database 4 is completed.

【0032】実施例2(請求項2に対応).図2は実施
例2の二重系計算機のデータベース等価処理装置を示す
構成図、図3は実施例2の等価処理を示すフローチャー
トであり、この実施例2はデータの等価処理中での一部
の動作を除きA系データベース2の更新を可能とするこ
とに特徴がある。
Embodiment 2 (corresponding to claim 2). FIG. 2 is a configuration diagram showing a database equivalence processing device of a dual computer according to the second embodiment, and FIG. 3 is a flowchart showing the equivalence processing of the second embodiment. It is characterized in that the A-system database 2 can be updated except for the above operation.

【0033】図2において、A系・B系サーバコンピュ
ータ1,3はA系・B系差分データ記憶領域7,8を含
むA系・B系データベース2,4を個別に備え、A系・
B系サーバコンピュータ1,3がクライアントコンピュ
ータ6にバス形伝送路5で接続され、このクライアント
コンピュータ6は汎用共通言語からなるデータ6aを保
有するとともに転送手段6bおよび複写手段6cに加え
て図2に示す処理を実行する比較手段6dを備える。
In FIG. 2, the A-system / B-system server computers 1 and 3 are separately provided with A-system / B-system databases 2 and 4 including A-system and B-system differential data storage areas 7 and 8, respectively.
The B-system server computers 1 and 3 are connected to a client computer 6 via a bus-type transmission line 5. The client computer 6 holds data 6a composed of a general-purpose common language and includes a transfer unit 6b and a copying unit 6c as shown in FIG. A comparison means 6d for executing the processing shown is provided.

【0034】次に、実施例2の動作を図3を参照しつつ
説明する。 (1)クライアントコンピュータ6は例えばB系サーバ
コンピュータ3の異常を表すエラーメッセージを受け取
ると、データ変更指示にもとづきA系差分データ記憶領
域7への書き込み指示をA系サーバコンピュータ1に与
える。この指示によって、A系サーバコンピュータ1は
A系データベース2のデータ変更に伴いA系データベー
ス2のデータを変更した命令を汎用共通言語の文字列と
してA系差分データ記憶領域7に書き込む。 (2)クライアントコンピュータ6は二相コミットメン
ト方式でB系サーバコンピュータ3の異常回復を表す使
用可能メッセージを受け取った時点で、クライアントコ
ンピュータ6は転送手段6bおよび複写手段6cによっ
てA系差分データ記憶領域7のデータをB系差分データ
記憶領域8に複写する処理を実行する(ステップ10
1)。
Next, the operation of the second embodiment will be described with reference to FIG. (1) Upon receiving, for example, an error message indicating an abnormality in the B-system server computer 3, the client computer 6 gives the A-system server computer 1 an instruction to write to the A-system difference data storage area 7 based on the data change instruction. In response to this instruction, the A-system server computer 1 writes, in the A-system difference data storage area 7, a command that has changed the data of the A-system database 2 in accordance with the data change of the A-system database 2 as a character string in a general-purpose common language. (2) When the client computer 6 receives the usable message indicating the abnormal recovery of the B-system server computer 3 in the two-phase commitment system, the client computer 6 causes the transfer means 6b and the copying means 6c to execute the A-system difference data storage area 7 Is executed to copy the data of step S1 into the B-system difference data storage area 8 (step 10).
1).

【0035】(3)そして、上記複写処理が完了する
と、クライアントコンピュータ6は比較手段6dによっ
てステップ102以降の処理を行う。つまり、ステップ
102およびステップ103においてはA系データ記憶
領域7内の汎用共通言語の文字列の文字数とB系データ
記憶領域8内の汎用共通言語の文字列の文字数とを数え
る。引き続き、ステップ104では、A系・B系差分デ
ータ記憶領域7,8での文字数が同一するかを調べる。
(3) When the above-mentioned copying process is completed, the client computer 6 performs the processes after step 102 by the comparing means 6d. That is, in steps 102 and 103, the number of characters of the general-purpose common language character string in the A-system data storage area 7 and the number of general-purpose common language character strings in the B-system data storage area 8 are counted. Subsequently, in step 104, it is checked whether the number of characters in the A / B difference data storage areas 7 and 8 is the same.

【0036】(4)そして、文字数が同じなら、A系・
B系差分データ記憶領域7,8のデータが同一であると
予測し、ステップ105においてB系データ記憶領域8
の汎用共通言語の文字列の内容でB系データベース4に
変更をかけ、その変更後にステップ106においてA系
・B系差分データ記憶領域7,8のデータを消去して等
価処理の1サイクルを終了する。
(4) If the number of characters is the same,
It is predicted that the data in the B-system difference data storage areas 7 and 8 are the same, and
Is changed in the B-system database 4 with the contents of the character string of the general-purpose common language, and after the change, the data in the A-system / B-system difference data storage areas 7 and 8 is deleted in step 106, and one cycle of the equivalent processing is completed I do.

【0037】(5)文字数が異なれば、A系・B系差分
データ記憶領域7,8のデータが不同であることを意味
するので、ステップ107においてB系差分データ記憶
領域8のデータを消去し、ステップ101に戻り、再
度、A系差分データ記憶領域7からB系差分データ記憶
領域8への汎用共通言語文の文字列の複写を行い、A系
・B系差分データ記憶領域7,8での文字数が同一にな
るまでステップ101からステップ104およびステッ
プ107の処理を繰り返す。
(5) If the number of characters is different, it means that the data in the A-system / B-system difference data storage areas 7 and 8 are not the same, so in step 107 the data in the B-system difference data storage area 8 is deleted. Returning to step 101, the character string of the general-purpose common language sentence is copied from the A-system difference data storage area 7 to the B-system difference data storage area 8 again. Steps 101 to 104 and step 107 are repeated until the number of characters becomes the same.

【0038】要するに、この実施例2によれば、A系差
分データ記憶領域7からB系差分データ記憶領域8への
等価処理に際し、A系・B系差分データ記憶領域7,8
が同一になるまで、A系差分データ記憶領域7からB系
差分データ記憶領域8へのデータの複写を繰り返すの
で、上記(4)に記述したステップ105におけるB系
差分データ記憶領域8の汎用共通言語の文字列の内容で
B系データベース4に変更をかける期間以外の大半の動
作中において、A系データベース2のデータ更新を実行
させることができる。つまり、A系差分データ記憶領域
7からB系差分データ記憶領域8への等価処理中におい
て、A系データベース2のデータが更新されると、その
データ更新に伴いA系差分データ記憶領域7の汎用共通
言語の文字列も自動的に変更され、結果として、ステッ
プ101乃至ステップ104およびステップ107の処
理が繰り返され、上記A系データベース2のデータ更新
後における最新のデータがB系データベース4に記憶さ
れる。よって、A系差分データ記憶領域7からB系差分
データ記憶領域8への等価処理中において、A系データ
ベース2のデータが更新されても、等価処理後における
A系・B系データベース2,4の等価の完全性を確保す
ることができる。
In short, according to the second embodiment, when performing the equivalent processing from the A-system difference data storage area 7 to the B-system difference data storage area 8, the A-system / B-system difference data storage areas 7, 8
Is repeated from the A-system difference data storage area 7 to the B-system difference data storage area 8 until they become the same, so that the general-purpose common data of the B-system difference data storage area 8 in step 105 described in (4) above is used. During most operations other than the period in which the contents of the language character strings are changed in the B-system database 4, the data of the A-system database 2 can be updated. In other words, when the data of the A-system database 2 is updated during the equivalence processing from the A-system difference data storage area 7 to the B-system difference data storage area 8, the general-purpose data of the A-system difference data storage area 7 is updated with the data update. The character string of the common language is also automatically changed, and as a result, the processing of steps 101 to 104 and step 107 is repeated, and the latest data after updating the data of the A-system database 2 is stored in the B-system database 4. You. Therefore, even if the data of the A-system database 2 is updated during the equivalence processing from the A-system difference data storage area 7 to the B-system difference data storage area 8, the A-system / B-system databases 2 and 4 after the equalization processing are updated. Equivalent integrity can be ensured.

【0039】実施例3(請求項3に対応).図4は実施
例3の二重系計算機のデータベース等価処理装置を示す
構成図であり、この実施例3はデータの等価処理中での
A系データベース2の更新を可能とすることに特徴があ
る。
Embodiment 3 (corresponding to claim 3). FIG. 4 is a configuration diagram showing a database equivalence processing device of a dual computer according to the third embodiment. This embodiment 3 is characterized in that the A system database 2 can be updated during data equivalence processing. .

【0040】図4において、クライアントコンピュータ
6は汎用共通言語からなるデータ6aを保有するととも
に転送手段6bおよび複写手段6cに加えて更新命令手
段6eを備え、このクライアントコンピュータ6にはA
系・B系サーバコンピュータ1,3がバス形伝送路5で
接続され、A系サーバコンピュータ1が所有するA系デ
ータベース2にはA系差分データ記憶領域7に加えてA
系更新命令記憶領域7aが設けられ、B系サーバコンピ
ュータ3が所有するB系データベース4にはB系差分デ
ータ記憶領域8に加えてB系更新命令記憶領域8aが設
けられている。
Referring to FIG. 4, a client computer 6 has data 6a in a general-purpose common language, and has an update instruction means 6e in addition to a transfer means 6b and a copying means 6c.
The system / B system server computers 1 and 3 are connected by a bus-type transmission line 5, and in the A system database 2 owned by the A system server computer 1, in addition to the A system difference data storage area 7,
A system update instruction storage area 7a is provided, and a B system update instruction storage area 8a is provided in the B system database 4 owned by the B system server computer 3 in addition to the B system difference data storage area 8.

【0041】次に、実施例3の動作について説明する。 (1)クライアントコンピュータ6はB系サーバコンピ
ュータ3の異常を表すエラーメッセージを受け取ると、
データ変更指示にもとづきA系差分データ記憶領域7へ
の書き込み指示をA系サーバコンピュータ1に与える。
この指示によって、A系サーバコンピュータ1はA系デ
ータベース2のデータ変更に伴いA系データベース2の
データを変更した命令を汎用共通言語の文字列としてA
系差分データ記憶領域7に書き込む。 (2)クライアントコンピュータ6は二相コミットメン
ト方式でB系サーバコンピュータ3の異常回復を表す使
用可能メッセージを受け取った時点で、クライアントコ
ンピュータ6は転送手段6bおよび複写手段6cによっ
てA系差分データ記憶領域7のデータをB系差分データ
記憶領域8に複写処理を実行した後、A系サーバコンピ
ュータ1はA系差分データ記憶領域7のデータを消去す
る。 (3)引き続き、クライアントコンピュータ6はその複
写手段6cによってB系サーバコンピュータ3にB系デ
ータベース4の内容を変更する指示を与える。この変更
指示によって、B系サーバコンピュータ3はB系差分デ
ータ記憶領域8から汎用共通言語の文字列を読み出し、
その読み出した内容でB系データベース4に変更をか
け、その変更後にB系差分データ記憶領域8のデータを
消去する。 (4)上記(2),(3)の処理中において、クライア
ントコンピュータ6は更新命令手段6eによってA系サ
ーバコンピュータ1にデータ更新中の更新命令をA系更
新命令記憶領域7aに記憶する指示を与える。この指示
によって、A系サーバコンピュータ1はデータ更新中の
更新命令をA系更新命令記憶領域7aに書き込む。 (5)このA系更新記憶領域7aが空になるまで上記
(3)乃至(4)を繰り返す。
Next, the operation of the third embodiment will be described. (1) When the client computer 6 receives the error message indicating the abnormality of the B-system server computer 3,
A write instruction to the A-system difference data storage area 7 is given to the A-system server computer 1 based on the data change instruction.
In response to this instruction, the A-system server computer 1 converts the command in which the data of the A-system database 2 is changed in accordance with the change of the data of the A-system database 2 into a character string of a general-purpose common language.
The data is written to the system difference data storage area 7. (2) When the client computer 6 receives the usable message indicating the abnormal recovery of the B-system server computer 3 in the two-phase commitment system, the client computer 6 causes the transfer means 6b and the copying means 6c to execute the A-system difference data storage area 7 After performing the copying process of the data in the A-system difference data storage area 8, the A-system server computer 1 deletes the data in the A-system difference data storage area 7. (3) Subsequently, the client computer 6 gives an instruction to change the contents of the B-system database 4 to the B-system server computer 3 by the copying means 6c. In response to this change instruction, the B-system server computer 3 reads a character string in a general-purpose common language from the B-system difference data storage area 8,
The B-system database 4 is changed with the read contents, and after the change, the data in the B-system difference data storage area 8 is deleted. (4) During the processing of (2) and (3) above, the client computer 6 instructs the A-system server computer 1 to store an update instruction during data update in the A-system update instruction storage area 7a by the update instruction means 6e. give. In response to this instruction, the A-system server computer 1 writes an update instruction during data update to the A-system update instruction storage area 7a. (5) The above (3) and (4) are repeated until the A-system update storage area 7a becomes empty.

【0042】要するに、この実施例3によれば、上記
(4)および(5)の動作によって、A系差分データ記
憶領域7からB系差分データ記憶領域8への等価処理中
において、A系データベース2のデータが更新される
と、そのデータ更新に伴う更新命令がA系更新命令記憶
領域7aに書き込まれ、このA系更新命令記憶領域7a
Aが空になるまでA系差分データ記憶領域7からB系差
分データ記憶領域8への等価処理が繰り返されるので、
上記A系データベース2のデータ更新後における最新の
データがB系データベース4にも逐次記憶される。よっ
て、A系差分データ記憶領域7からB系差分データ記憶
領域8への等価処理中全般において、A系データベース
2のデータが更新されても、等価処理後におけるA系・
B系データベース2,4のデータ等価の完全性を確保す
ることができる。
In short, according to the third embodiment, during the equivalent processing from the A-system difference data storage area 7 to the B-system difference data storage area 8 by the operations (4) and (5), 2 is updated, an update instruction accompanying the data update is written to the A-system update instruction storage area 7a, and the A-system update instruction storage area 7a is updated.
The equivalent processing from the A-system difference data storage area 7 to the B-system difference data storage area 8 is repeated until A becomes empty.
The latest data after updating the data in the A-system database 2 is also sequentially stored in the B-system database 4. Therefore, even if the data in the A-system database 2 is updated during the entire equivalence processing from the A-system difference data storage area 7 to the B-system difference data storage area 8, the A
The data equivalent integrity of the B-system databases 2 and 4 can be ensured.

【0043】実施例4(請求項4に対応).図5は実施
例4の二重系計算機のデータベース等価処理装置を示す
構成図であり、この実施例4は一方のデータベースから
他方のデータベースへの複写完了後におけるデータ量の
一致性を検証することに特徴がある。
Embodiment 4 (corresponding to claim 4). FIG. 5 is a configuration diagram showing a database equivalent processing device of a dual computer according to the fourth embodiment. This fourth embodiment verifies the consistency of the data amount after copying from one database to the other database is completed. There is a feature.

【0044】図5において、A系サーバコンピュータ1
が検証手段9を備え、B系サーバコンピュータ3が検証
手段10を備える。これら検証手段9,10は一方のデ
ータベースから他方のデータベースへの複写完了後にお
けるデータ量の一致性の検証を行う。クライアントコン
ピュータ6は汎用共通言語からなるデータ6aを保有す
るとともに転送手段6bおよび複写手段6cを備え、こ
のクライアントコンピュータ6にはA系・B系サーバコ
ンピュータ1,3がバス形伝送路5で接続され、A系・
B系サーバコンピュータ1,3にはA系・B系差分デー
タ記憶領域7,8を有するA系・B系データベース2,
4が備えられている。
In FIG. 5, A-system server computer 1
Has a verification means 9, and the B-system server computer 3 has a verification means 10. These verification means 9 and 10 verify the consistency of the data amount after copying from one database to the other database is completed. The client computer 6 has data 6a composed of a general-purpose common language and includes a transfer unit 6b and a copying unit 6c. A / B system server computers 1 and 3 are connected to the client computer 6 via a bus transmission line 5. , A system
The A-system / B-system database 2 having the A-system / B-system difference data storage areas 7 and 8 is stored in the B-system server computers 1 and 3.
4 are provided.

【0045】この実施例4によれば、例えば、B系サー
バコンピュータ3の異常を表すエラーメッセージによっ
て、A系差分データ記憶領域7からB系差分データ記憶
領域8への複写およびB系差分データ記憶領域8からB
系データベース4への変更が完了したデータ等価処理完
了後において、検証手段9,10がA系データベース2
とB系データベース4のデータ量の一致性を検証するこ
とにより、データ一致性の簡易チェックを行うことがで
き、信頼性を向上させることができる。
According to the fourth embodiment, for example, the copy from the A-system difference data storage area 7 to the B-system difference data storage area 8 and the B-system difference data storage Region 8 to B
After the completion of the data equivalent processing in which the change to the system database 4 is completed, the verification means 9 and 10
By verifying the consistency between the data amounts of the data and the B database 4, a simple check of the data consistency can be performed, and the reliability can be improved.

【0046】実施例5(請求項5に対応).図6は実施
例5の二重系計算機のデータベース等価処理装置を示す
構成図であり、この実施例5は複数のクライアントコン
ピュータからのデータ更新を受けることによってそのデ
ータ更新と同一トランザクションで差分データを差分デ
ータ記憶領域に書き込むとともにその差分データに時間
順の連続番号を付与することに特徴がある。
Embodiment 5 (corresponding to claim 5). FIG. 6 is a configuration diagram showing a database equivalent processing device of a dual computer according to the fifth embodiment. In the fifth embodiment, when data is updated from a plurality of client computers, difference data is transmitted in the same transaction as the data update. It is characterized in that it is written into the difference data storage area and a serial number in time order is given to the difference data.

【0047】図6において、A系サーバコンピュータ1
が更新順序手段11を備え、B系サーバコンピュータ3
が更新順序手段12を備える。これら更新順序手段1
1,12は複数のクライアントコンピュータ6A,6B
からのデータ更新を受けことによってそのデータ更新と
同一トランザクションで差分データをA系・B系差分デ
ータ記憶領域7,8に書き込むとともにその差分データ
に時間順の連続番号を付与する。これらクライアントコ
ンピュータ6A,6Bは汎用共通言語からなるデータ6
aを保有するとともに転送手段6bおよび複写手段6c
を個別に備えていて上記実施例1のクライアントコンピ
ュータ6と同様の機能を有する。これらクライアントコ
ンピュータ6A,6BにはA系・B系サーバコンピュー
タ1,3がバス形伝送路5で接続され、A系・B系サー
バコンピュータ1,3にはA系・B系差分データ記憶領
域7,8を有するA系・B系データベース2,4が備え
られている。したがって、複数のクライアントコンピュ
ータ6A,6BそれぞれはA系・B系サーバコンピュー
タ1,3相互にバス形伝送路5を使用して同一のデータ
を拡散通信することができる。具体的には、一方のクラ
イアントコンピュータ6AがA系・B系サーバコンピュ
ータ1,3それぞれにバス形伝送路5を使用して同一の
データを拡散通信で転送し、他方のクライアントコンピ
ュータ6BがA系・B系サーバコンピュータ1,3それ
ぞれにバス形伝送路5を使用して同一のデータを拡散通
信で転送する。それぞれのクライアントコンピュータ6
A,6BからA系・B系サーバコンピュータ1,3への
更新ごとに、更新順序手段11,12がデータ更新と同
一トランザクションで差分データをA系・B系差分デー
タ記憶領域7,8に書き込むとともにその差分データに
時間順の連続番号を付与する。
In FIG. 6, the A-system server computer 1
Is provided with the update order means 11, and the B-system server computer 3
Includes an update order unit 12. These update order means 1
Reference numerals 1 and 12 denote a plurality of client computers 6A and 6B.
In response to the data update from, the difference data is written to the A-system / B-system difference data storage areas 7 and 8 in the same transaction as the data update, and the difference data is given a serial number in chronological order. These client computers 6A and 6B store data 6 in a general-purpose common language.
a and transfer means 6b and copy means 6c
And has the same function as the client computer 6 of the first embodiment. A-system / B-system server computers 1 and 3 are connected to these client computers 6A and 6B via a bus-type transmission line 5, and A-system and B-system difference data storage areas 7 are connected to the A-system and B-system server computers 1 and 3, respectively. , 8 are provided. Therefore, each of the plurality of client computers 6A and 6B can spread and communicate the same data between the A-system and B-system server computers 1 and 3 using the bus transmission path 5. Specifically, one client computer 6A transfers the same data to each of the A-system and B-system server computers 1 and 3 by spread communication using the bus-type transmission line 5, and the other client computer 6B transmits The same data is transferred to each of the B-system server computers 1 and 3 by spread communication using the bus transmission path 5. Each client computer 6
For each update from A, 6B to the A-system / B-system server computers 1, 3, the update ordering means 11, 12 writes the differential data to the A-system / B-system differential data storage areas 7, 8 in the same transaction as the data update. At the same time, a serial number in time order is given to the difference data.

【0048】要するに、この実施例5によれば、更新順
序手段11,12がA系・B系サーバコンピュータ1,
3内で動作し、これら更新順序手段11,12が複数の
クライアントコンピュータ6A,6Bからのデータ更新
を受け付ける。そして、更新順序手段11はA系データ
ベース2への更新とA系差分データ記憶領域7への更新
を同一トランザクション内で行い、A系差分データ記憶
領域7のSQL文に時間順の連続番号を与える。また、
更新順序手段12はB系データベース4への更新とB系
差分データ記憶領域8への更新を同一トランザクション
内で行い、B系差分データ記憶領域8のSQL文に時間
順の連続番号を与える。この結果、データ更新の順序の
整合性が、複数のクライアントコンピュータ6A,6B
の要求に対しても確保できる。
In short, according to the fifth embodiment, the update order means 11 and 12 correspond to the A-system / B-system server computers 1 and
3, the update order means 11 and 12 receive data updates from a plurality of client computers 6A and 6B. Then, the update order means 11 updates the A-system database 2 and the A-system difference data storage area 7 within the same transaction, and gives the SQL statements in the A-system difference data storage area 7 serial numbers in time order. . Also,
The update ordering means 12 updates the B-system database 4 and the B-system difference data storage area 8 within the same transaction, and gives the SQL statements in the B-system difference data storage area 8 serial numbers in chronological order. As a result, the consistency of the order of the data update is determined by the plurality of client computers 6A and 6B.
Can be secured for the request.

【0049】実施例6(請求項6に対応).図7は実施
例6の二重系計算機のデータベース等価処理装置を示す
構成図、図8は実施例6の基準値を説明するための実験
結果図、図9は実施例6の処理を示すフローチャートで
あり、この実施例6はA系・B系データベース2,4の
記憶領域に対するA系・B系差分データ記憶領域7,8
においた差分データ容量の割合によって全データ等価処
理と差分データ等価処理とを使い分けることに特徴があ
る。
Embodiment 6 (corresponding to claim 6). FIG. 7 is a configuration diagram showing a database equivalent processing device of a dual computer according to the sixth embodiment, FIG. 8 is an experimental result diagram for explaining reference values of the sixth embodiment, and FIG. 9 is a flowchart showing processing of the sixth embodiment. In the sixth embodiment, the A-system / B-system difference data storage areas 7, 8 for the storage areas of the A-system / B-system databases 2 and 4 are provided.
It is characterized in that all data equalization processing and difference data equalization processing are selectively used depending on the ratio of the difference data capacity described above.

【0050】図7において、クライアントコンピュータ
6は汎用共通言語からなるデータ6aを保有するととも
に転送手段6bおよび複写手段6cを備え、このクライ
アントコンピュータ6にはA系・B系サーバコンピュー
タ1,3がバス形伝送路5で接続され、A系・B系サー
バコンピュータ1,3にはA系・B系差分データ記憶領
域7,8を有するA系・B系データベース2,4および
全データ等価処理によるデータを記憶するA系・B系全
データ記憶データベース2a,3aが設けられる。ま
た、複数のサーバコンピュータ1,3またはクライアン
トコンピュータ6のいずれか一方として、その一例とし
て複数のサーバコンピュータ1,3には比較選択手段1
3,14が設けられる。これら比較選択手段13,14
は、A系・B系データベース2,4の記憶領域に対する
A系・B系差分データ記憶領域7,8における差分デー
タ容量の割合が基準値aより小さい場合にはA系・B系
差分データ記憶領域7,8を使用する差分データ等価処
理を実行し、上記割合が基準値aを越えた場合にはA系
・B系全データ記憶データベース2a,3aを使用する
全データ等価処理を実行する。
In FIG. 7, a client computer 6 has data 6a in a general-purpose common language and includes a transfer means 6b and a copying means 6c. A / B system databases 2 and 4 having A / B system difference data storage areas 7 and 8 connected to A / B system server computers 1 and 3 and data by all data equalization processing. A and B-system all data storage databases 2a and 3a are provided. As one of the plurality of server computers 1 and 3 and the client computer 6, as an example, the plurality of server computers 1 and 3 are provided with a comparison / selection unit 1.
3 and 14 are provided. These comparison and selection means 13 and 14
When the ratio of the difference data capacity in the A-system / B-system difference data storage areas 7 and 8 to the storage areas of the A-system and B-system databases 2 and 4 is smaller than the reference value a, the A-system / B-system difference data storage When the ratio exceeds the reference value a, the differential data equalization processing using the areas 7 and 8 is executed, and the all data equalization processing using the A-system and B-system all data storage databases 2a and 3a is executed.

【0051】上記基準値aについて図8を用い説明す
る。図8において、横軸にはA系データベース2の記憶
領域に対するA系差分データ記憶領域7における差分デ
ータ容量の割合を示し、縦軸には等価に必要な処理時間
としての等価処理時間を示してある。そして、B系サー
バコンピュータ3の異常を表すエラーメッセージによっ
て、A系差分データ記憶領域7からB系差分データ記憶
領域8への複写およびB系差分データ記憶領域8からB
系データベース4への変更が完了したデータ等価につい
て、A系差分データ記憶領域7を使用した差分データ等
価処理とA系全データ記憶データベース2aを使用した
全データ等価処理とを実施し、その差分データ等価処理
時におけるA系データベース2の記憶領域とA系差分デ
ータ記憶領域7における差分データ容量との割合に対す
る等価処理時間を測定した結果が直線L1であり、全デ
ータ等価処理時におけるA系データベース2の記憶領域
と、その全部のデータ容量との割合に対する等価処理時
間を測定した結果が直線L2である。この図8を考察す
ると、差分データ等価処理を表す直線L1は差分データ
容量の割合が小さいほど等価処理時間が少なく、この差
分データ等価処理を表す直線L1は差分データ容量へ依
存性が高い。また、全データ等価処理を表す直線L2は
全データ容量の割合が小さくても処理時間はさほど少な
くならず、この全データ等価処理を表す直線L2は全部
データ容量への依存性が低いことから、両方の直線L
1,L2が交差しており、その交点bでは等価処理時間
が等しいことがわかる。そして、その交点bでの差分デ
ータ容量の割合を解析したところ、A系差分データ記憶
領域7における汎用共通言語の文字容量がA系データベ
ース2記憶領域のa倍であることが解明された。さら
に、このA系差分データ記憶領域7における汎用共通言
語の文字容量がA系データベース2の記憶容量のa倍で
ある点を境として、差分データ容量の割合が低いと直線
L1で示す差分データ等価処理の方が等価処理時間が早
く、同差分データ容量の割合が高いと直線L2で示す全
データ等価処理の方が等価処理時間が早いことが理解で
きるであろう。よって、この実施例6では上記差分デー
タにおける汎用共通言語の文字容量がA系データベース
2の記憶容量のa倍を示す点を基準値aとして、比較選
択手段13にあらかじめ設定しておく。
The reference value a will be described with reference to FIG. 8, the horizontal axis indicates the ratio of the difference data capacity in the A-system difference data storage area 7 to the storage area of the A-system database 2, and the vertical axis indicates the equivalent processing time as the processing time required equivalently. is there. Then, according to an error message indicating an abnormality of the B-system server computer 3, the copying from the A-system difference data storage area 7 to the B-system difference data storage area 8 and the copying from the B-system difference data storage area 8 to B
With respect to the data equivalence that has been changed to the system database 4, the difference data equalization process using the A system difference data storage area 7 and the all data equalization process using the A system all data storage database 2a are performed, and the difference data The result of measuring the equivalent processing time with respect to the ratio between the storage area of the A-system database 2 and the difference data capacity in the A-system difference data storage area 7 at the time of the equivalent processing is a straight line L1, and the A-system database 2 at the time of all data equivalent processing is obtained. The result obtained by measuring the equivalent processing time with respect to the ratio of the storage area to the total data capacity is a straight line L2. Considering FIG. 8, the straight line L1 representing the difference data equalization processing has a shorter equivalent processing time as the ratio of the difference data capacity is smaller, and the straight line L1 representing the difference data equalization processing has a high dependency on the difference data capacity. Further, the processing time of the straight line L2 representing the all data equivalent processing is not so short even if the ratio of the total data capacity is small, and the straight line L2 representing the all data equivalent processing has a low dependence on the total data capacity. Both straight lines L
1 and L2 intersect, and it can be seen that the equivalent processing time is equal at the intersection b. When the ratio of the difference data capacity at the intersection b was analyzed, it was found that the character capacity of the general-purpose common language in the A-system difference data storage area 7 was a times as large as the A-system database 2 storage area. Further, starting from the point that the character capacity of the general-purpose common language in the A-system difference data storage area 7 is a times as large as the storage capacity of the A-system database 2, the difference data capacity indicated by a straight line L1 indicates that the ratio of the difference data capacity is low. It can be understood that the equivalent processing time is shorter in the processing, and that the equivalent data processing time of the all data equivalent processing indicated by the straight line L2 is shorter when the ratio of the difference data capacity is higher. Therefore, in the sixth embodiment, the point at which the character capacity of the general-purpose common language in the difference data is a times the storage capacity of the A-system database 2 is set as the reference value a in the comparison and selection unit 13 in advance.

【0052】次に、実施例6の動作について図9を参照
しつつ説明する。 (1)クライアントコンピュータ6はB系サーバコンピ
ュータ3の異常を表すエラーメッセージを受け取ると、
データ変更指示にもとづくA系差分データ記憶領域7へ
の書き込み指示をA系サーバコンピュータ1に与える。
これら指示によって、A系サーバコンピュータ1は比較
選択手段13によってA系データベース2におけるA系
差分データ記憶領域7の汎用共通言語の文字容量を読み
込む(ステップ201)。 (2)引き続き、A系サーバコンピュータ1は比較選択
手段13によって読み込んだA系差分データ記憶領域7
の汎用共通言語の文字容量が基準値a以下か判断する
(ステップ202)。 (3)そして、A系差分データ記憶領域7の汎用共通言
語の文字容量が基準値a以下の場合は、A系サーバコン
ピュータ1は比較選択手段13によってA系・B系差分
データ記憶領域7,8を使用した差分データ等価処理を
実行する(ステップ203)。 (4)逆に、A系差分データ記憶領域7の汎用共通言語
の文字容量が基準値aを越えた場合は、A系サーバコン
ピュータ1は比較選択手段13によって、A系全データ
記憶データベース2aを使用した全データ等価処理を実
行する(ステップ204)。
Next, the operation of the sixth embodiment will be described with reference to FIG. (1) When the client computer 6 receives the error message indicating the abnormality of the B-system server computer 3,
A write instruction to the A-system difference data storage area 7 based on the data change instruction is given to the A-system server computer 1.
In response to these instructions, the A-system server computer 1 reads the character capacity of the general-purpose common language in the A-system difference data storage area 7 in the A-system database 2 by the comparison and selection means 13 (step 201). (2) Subsequently, the A-system server computer 1 stores the A-system difference data storage area 7 read by the comparison / selection means 13.
It is determined whether the character capacity of the general-purpose common language is equal to or smaller than the reference value a (step 202). (3) If the character capacity of the general-purpose common language in the A-system difference data storage area 7 is equal to or smaller than the reference value a, the A-system server computer 1 causes the comparison / selection means 13 to execute the A-system / B-system difference data storage area 7, Then, the differential data equalization process using No. 8 is executed (step 203). (4) Conversely, when the character capacity of the general-purpose common language in the A-system difference data storage area 7 exceeds the reference value a, the A-system server computer 1 uses the comparison and selection means 13 to store the A-system total data storage database 2a. The all data used process is executed (step 204).

【0053】結果として、この実施例6によれば、上記
A系差分データ記憶領域7の容量がA系データベース2
のa倍を示す基準値a以下であれば差分データ等価処理
を実施し、基準値aを越えれば全データ等価処理を実施
することによって、その都度、A系データベース2の記
憶領域に対するA系差分データ記憶領域7の割合に応じ
た等価処理速度の速いデータ等価処理が得られる。
As a result, according to the sixth embodiment, the capacity of the A-system difference data storage area 7 is
If the difference is equal to or less than the reference value a indicating the a-times, the difference data equalization process is performed. If the difference exceeds the reference value a, the entire data equalization process is performed. Data equivalent processing with a high equivalent processing speed corresponding to the ratio of the data storage area 7 can be obtained.

【0054】実施例7(請求項7に対応).図10は実
施例7の二重系計算機のデータベース等価処理装置を示
す構成図、図11は実施例7の処理を示すフローチャー
トであり、この実施例7は差分データ量のA系・B系差
分データ記憶領域7,8に対する割合によって全データ
等価処理と差分データ等価処理とを使い分けることに特
徴がある。
Embodiment 7 (corresponding to claim 7). FIG. 10 is a configuration diagram showing a database equivalent processing device of a dual computer according to the seventh embodiment, and FIG. 11 is a flowchart showing processing of the seventh embodiment. The feature is that all data equalization processing and difference data equalization processing are selectively used depending on the ratio to the data storage areas 7 and 8.

【0055】図10において、クライアントコンピュー
タ6は汎用共通言語からなるデータ6aを保有するとと
もに転送手段6bおよび複写手段6cを備え、このクラ
イアントコンピュータ6にはA系・B系サーバコンピュ
ータ1,3がバス形伝送路5で接続され、A系・B系サ
ーバコンピュータ1,3にはA系・B系差分データ記憶
領域7,8を有するA系・B系データベース2,4およ
び全データ等価処理によるデータを記憶するA系・B系
全データ記憶データベース2a,3aが設けられる。ま
た、複数のサーバコンピュータ1,3またはクライアン
トコンピュータ6のいずれか一方として、その一例とし
て複数のサーバコンピュータ1,3には比較判定手段1
5,16が設けられる。これら比較判定手段15,16
は、等価処理のための差分データ量がA系・B系差分デ
ータ記憶領域7,8より小さい場合にはA系・B系差分
データ記憶領域7,8を使用する差分データ等価処理を
実行し、上記差分データ量がA系・B系差分データ記憶
領域7,8を越える場合にはA系・B系全データ記憶デ
ータベース2a,3aを使用する全データ等価処理を実
行する。
In FIG. 10, a client computer 6 has data 6a in a general-purpose common language and includes a transfer means 6b and a copying means 6c. A / B system databases 2 and 4 having A / B system difference data storage areas 7 and 8 connected to A / B system server computers 1 and 3 and data by all data equalization processing. A and B-system all data storage databases 2a and 3a are provided. Further, as one of the plurality of server computers 1 and 3 and the client computer 6, for example, the plurality of server
5 and 16 are provided. These comparison determination means 15 and 16
Executes difference data equalization processing using the A-system / B-system difference data storage areas 7, 8 when the difference data amount for the equalization processing is smaller than the A-system / B-system difference data storage areas 7, 8. When the difference data amount exceeds the A-system / B-system difference data storage areas 7 and 8, all data equivalent processing using the A-system and B-system all data storage databases 2a and 3a is executed.

【0056】次に、実施例7の動作について図11を参
照しつつ説明する。 (1)クライアントコンピュータ6はB系サーバコンピ
ュータ3の異常を表すエラーメッセージを受け取ると、
データ変更指示にもとづく差分データ記憶領域7への書
き込み指示をA系サーバコンピュータ1に与える。これ
ら指示によって、A系サーバコンピュータ1は比較判定
手段15によってA系データベース2における汎用共通
言語の文字容量を読み込む(ステップ301)。 (2)引き続き、A系サーバコンピュータ1は比較判定
手段15によって読み込んだ汎用共通言語の文字容量が
A系差分データ記憶領域7を越えたか判断する(ステッ
プ302)。 (3)そして、汎用共通言語の文字容量がA系差分デー
タ記憶領域7を越え場合は、A系サーバコンピュータ1
は比較判定手段15によってA系全データ記憶データベ
ース2aを使用した全データ等価処理を実行する(ステ
ップ303)。 (4)逆に、汎用共通言語の文字容量がA系データ記憶
領域7以下の場合は、A系・B系差分データ記憶領域
7,8を使用した差分データ等価処理を実行する(ステ
ップ304)。
Next, the operation of the seventh embodiment will be described with reference to FIG. (1) When the client computer 6 receives the error message indicating the abnormality of the B-system server computer 3,
A write instruction to the difference data storage area 7 based on the data change instruction is given to the A-system server computer 1. In response to these instructions, the A-system server computer 1 reads the character capacity of the general-purpose common language in the A-system database 2 by the comparison determination means 15 (step 301). (2) Subsequently, the A-system server computer 1 determines whether the character capacity of the general-purpose common language read by the comparison determination means 15 exceeds the A-system difference data storage area 7 (step 302). (3) If the character capacity of the general-purpose common language exceeds the A-system difference data storage area 7, the A-system server computer 1
Executes the all data equivalent process using the A system all data storage database 2a by the comparison determination means 15 (step 303). (4) Conversely, if the character capacity of the general-purpose common language is less than or equal to the A-system data storage area 7, difference data equalization processing using the A-system / B-system difference data storage areas 7 and 8 is executed (step 304). .

【0057】通常は、上記差分データの容量があらかじ
め確保されたA系差分データ記憶領域7を超えると、A
系差分データ記憶領域7が差分データ全部を蓄積でき
ず、差分を使用してのデータ等価に不都合を生じるが、
この実施例7によれば、差分データの容量がA系差分デ
ータ記憶領域7を超えたときは、A系差分データ記憶領
域7の記憶容量に対する上限の制約を受けない全データ
等価処理を実施することにより、その都度、差分データ
の容量のA系差分データ記憶領域7との比較に応じ、等
価処理速度の早い差分データ等価処理と差分データの記
憶漏れを生じない全データ等価処理とによる適切なデー
タ等価処理が行える。
Normally, when the capacity of the difference data exceeds the A-system difference data storage area 7 secured in advance, A
Although the system difference data storage area 7 cannot store all of the difference data, there arises a problem in data equalization using the difference.
According to the seventh embodiment, when the capacity of the difference data exceeds the A-system difference data storage area 7, all data equalization processing is performed without any upper limit imposed on the storage capacity of the A-system difference data storage area 7. Accordingly, each time the difference data capacity is compared with the A-system difference data storage area 7, an appropriate difference between the difference data equalization process having a high equivalent processing speed and the all data equalization process which does not cause storage of the difference data is appropriate. Data equivalency processing can be performed.

【0058】実施例8.図12は実施例8の二重系計算
機のデータベース等価処理装置を示す構成図、図13は
実施例8の処理を示すフローチャートであり、この実施
例8は複写手段6cによるA系・B系差分データの差分
データ記憶領域7,8への記憶による差分データ等価処
理中に異常が発生したとき、その差分データ等価処理を
中止するとともにA系・B系全データ記憶データベース
2a,3aを使用する全データ等価処理を実行すること
に特徴がある。
Embodiment 8 FIG. FIG. 12 is a block diagram showing a database equivalent processing device of a dual computer according to the eighth embodiment. FIG. 13 is a flowchart showing processing of the eighth embodiment. When an error occurs during the differential data equalization processing by storing the data in the differential data storage areas 7 and 8, the differential data equalization processing is stopped and the A-system and B-system all data storage databases 2a and 3a are used. It is characterized by executing data equalization processing.

【0059】図12において、クライアントコンピュー
タ6は汎用共通言語からなるデータ6aを保有するとと
もに転送手段6bおよび複写手段6cを備え、このクラ
イアントコンピュータ6にはA系・B系サーバコンピュ
ータ1,3がバス形伝送路5で接続され、A系・B系サ
ーバコンピュータ1,3にはA系・B系差分データ記憶
領域7,8を有するA系・B系データベース2,4およ
び全データ等価処理によるデータを記憶するA系・B系
全データ記憶データベース2a,3aが設けられる。ま
た、複数のサーバコンピュータ1,3またはクライアン
トコンピュータ6のいずれか一方として、その一例とし
て複数のサーバコンピュータ1,3には異常対策手段1
7,18が設けられる。これら異常対策手段17,18
は、複写手段6cによる差分データの差分データ記憶領
域7,8への記憶による差分データ等価処理中に異常が
発生したとき、その差分データ等価処理を中止するとと
もにA系・B系全データ記憶データベース2a,3aを
使用する全データ等価処理を実行する。
In FIG. 12, a client computer 6 has data 6a in a general-purpose common language and includes a transfer means 6b and a copying means 6c. A / B system databases 2 and 4 having A / B system difference data storage areas 7 and 8 connected to A / B system server computers 1 and 3 and data by all data equalization processing. A and B-system all data storage databases 2a and 3a are provided. Further, as one of the plurality of server computers 1 and 3 and the client computer 6, as an example, the plurality of server computers 1 and 3 are provided with an abnormality countermeasure unit 1.
7, 18 are provided. These abnormality countermeasures 17 and 18
When an error occurs during the differential data equalization processing by storing the differential data in the differential data storage areas 7 and 8 by the copying means 6c, the differential data equalization processing is stopped and the A-system / B-system all data storage database All data equivalent processing using 2a and 3a is executed.

【0060】次に、実施例8の動作について図13を参
照しつつ説明する。例えば、B系サーバコンピュータ3
の異常を表すエラーメッセージによって、A系差分デー
タ記憶領域7への差分データの書き込みからB系データ
ベース4への変更が完了までの等価処理中において(ス
テップ401)、異常対策手段17,18が何らかの異
常を検出すると(ステップ402)、その差分データ等
価処理を中止するとともにA系全データ記憶データベー
ス2aを使用する全データ等価処理を実行する(ステッ
プ403)。結果として、この実施例8によれば、等価
処理中において差分データ等価処理が不可能になる異常
が発生した場合、その差分データ等価処理を中止し、A
系全データ記憶データベース2aを使用する全データ等
価処理を実行するので、信頼性の高いデータ等価処理が
得られる。
Next, the operation of the eighth embodiment will be described with reference to FIG. For example, B system server computer 3
During the equivalence processing from the writing of the difference data to the A-system difference data storage area 7 to the completion of the change to the B-system database 4 (step 401), the abnormality countermeasure means 17 and 18 receive an error message indicating the abnormality of When an abnormality is detected (step 402), the difference data equalization process is stopped, and an all data equalization process using the A-system all data storage database 2a is executed (step 403). As a result, according to the eighth embodiment, when an abnormality occurs that makes it impossible to perform the difference data equalization process during the equalization process, the difference data equalization process is stopped.
Since all data equivalent processing using the system-wide data storage database 2a is executed, highly reliable data equivalent processing can be obtained.

【0061】なお、上記実施例1乃至8では、A系デー
タベース2からB系データベース4への等価処理を例と
して説明したが、B系データベース4からA系データベ
ースへの等価処理についても同様に適用できる。
In the first to eighth embodiments, the equivalent processing from the A-system database 2 to the B-system database 4 has been described as an example. However, the equivalent processing from the B-system database 4 to the A-system database is similarly applied. it can.

【0062】[0062]

【発明の効果】以上のように、第1の発明によれば、二
つのデータベース間の差分を汎用共通言語で保有する装
置と、差分を一方のデータベースから他方のデータベー
スへ転送する手段と、汎用共通言語で記載された差分を
読みデータベースへ変更をかける手段を備えてデータベ
ースの等価処理をするので、処理速度の速いデータベー
ス等価処理方式が得られるという効果がある。
As described above, according to the first aspect of the present invention, an apparatus for holding a difference between two databases in a general-purpose common language, means for transferring the difference from one database to another database, Since there is provided a means for reading the difference described in the common language and making a change to the database, the database is equivalently processed, so that there is an effect that a database equivalent processing method with a high processing speed can be obtained.

【0063】第2の発明によれば、差分データの汎用共
通言語の数を複写前後で比較し、同複写前後での文字数
が一致するまで差分データの等価処理を繰り返すように
したので、データ等価での差分データの複写中もクライ
アントコンピュータからのデータ更新の可能なデータベ
ース等価処理が得られるという効果がある。
According to the second aspect, the number of general-purpose common languages of the difference data is compared before and after copying, and the equalizing process of the difference data is repeated until the number of characters before and after the copying becomes the same. In this case, there is an effect that a database equivalent process capable of updating data from the client computer can be obtained even during the copying of the difference data.

【0064】第3の発明によれば、差分データがなくな
るまで差分データを一方のデータベースから他方のデー
タベースへ転送しデータベースへ変更をかけるようにし
たので、データベースへ変更をかける間もクライアント
からのデータ更新が可能なデータベース等価処理方式が
得られるという効果がある。
According to the third aspect of the present invention, the difference data is transferred from one database to the other database until the difference data is exhausted, and the change is made to the database. There is an effect that a database equivalent processing method that can be updated is obtained.

【0065】第4の発明によれば、データ等価後におけ
るデータベース量の一致性を検証するようにしたことに
より、データ等価処理の信頼性を簡易向上できるという
効果がある。
According to the fourth aspect, by verifying the consistency of the database amount after data equalization, the reliability of the data equalization process can be easily improved.

【0066】第5の発明によれば、複数クライアントか
らのデータ更新について差分データをデータ更新と同一
トランザクションで差分データを書き込み、その差分デ
ータに時間順の連続番号を与えるようにしたことによ
り、複数クライアントからのデータ更新に容易に対応で
きるという効果がある。
According to the fifth invention, the difference data is written in the same transaction as the data update for the data update from a plurality of clients, and the difference data is given a serial number in time order. There is an effect that it is possible to easily respond to data update from the client.

【0067】第6の発明によれば、差分データのデータ
容量と全体データ容量とを比較し両者の比により、差分
データを複写する差分データ等価処理およびデータ全部
を複写する全データ等価処理のうちで速い方を選択する
ようにしたことにより、常に、処理速度の速いデータ等
価処理が適切に得られるという効果がある。
According to the sixth aspect of the present invention, the data capacity of the differential data is compared with the total data capacity, and the ratio between the two is used to compare the differential data and the entire data. By selecting the faster one, there is an effect that data equalization processing with a high processing speed can always be appropriately obtained.

【0068】第7の発明によれば、差分データが、あら
かじめ定められた容量を越えるかどうかで、差分データ
等価処理および全データ等価処理を使い分けるようにし
たことにより、差分データ容量の上限の制約を受けるこ
とのないデータ等価処理が得られるという効果がある。
According to the seventh aspect of the present invention, the difference data equalization process and the entire data equalization process are selectively used depending on whether the difference data exceeds a predetermined capacity, thereby limiting the upper limit of the difference data capacity. There is an effect that a data equalization process that is not affected can be obtained.

【0069】第8の発明によれば、差分データ等価処理
中にエラーが発生すると、その差分データ等価処理を中
止し、全データ等価処理を実施するようにしたことによ
り、信頼性の高いデータ等価処理が得られるという効果
がある。
According to the eighth aspect, when an error occurs during the differential data equalization processing, the differential data equalization processing is stopped, and the entire data equalization processing is performed. There is an effect that processing can be obtained.

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

【図1】 実施例1の二重系計算機のデータベース等価
処理装置を示す構成図である。
FIG. 1 is a configuration diagram illustrating a database equivalent processing device of a dual computer according to a first embodiment.

【図2】 実施例2の二重系計算機のデータベース等価
処理装置を示す構成図である。
FIG. 2 is a configuration diagram illustrating a database equivalent processing device of a dual computer according to a second embodiment.

【図3】 実施例2の処理を示すフローチャートであ
る。
FIG. 3 is a flowchart illustrating a process according to a second embodiment.

【図4】 実施例3の二重系計算機のデータベース等価
処理装置を示す構成図である。
FIG. 4 is a configuration diagram illustrating a database equivalence processing device of a dual computer according to a third embodiment.

【図5】 実施例4の二重系計算機のデータベース等価
処理装置を示す構成図である。
FIG. 5 is a configuration diagram illustrating a database equivalence processing device of a dual computer according to a fourth embodiment.

【図6】 実施例5の二重系計算機のデータベース等価
処理装置を示す構成図である。
FIG. 6 is a configuration diagram illustrating a database equivalent processing apparatus of a dual computer according to a fifth embodiment.

【図7】 実施例6の二重系計算機のデータベース等価
処理装置を示す構成図である。
FIG. 7 is a configuration diagram illustrating a database equivalent processing device of a dual computer according to a sixth embodiment.

【図8】 実施例6の基準値を説明する実験結果図であ
る。
FIG. 8 is an experimental result diagram illustrating a reference value of the sixth embodiment.

【図9】 実施例6の処理を示すフローチャートであ
る。
FIG. 9 is a flowchart illustrating a process according to a sixth embodiment.

【図10】 実施例7の二重系計算機のデータベース等
価処理装置を示す構成図である。
FIG. 10 is a configuration diagram illustrating a database equivalent processing device of a dual computer according to a seventh embodiment.

【図11】 実施例7の処理を示すフローチャートであ
る。
FIG. 11 is a flowchart illustrating a process according to a seventh embodiment.

【図12】 実施例8の二重系計算機のデータベース等
価処理装置を示す構成図である。
FIG. 12 is a configuration diagram illustrating a database equivalence processing device of a dual computer according to an eighth embodiment.

【図13】 実施例8の処理を示すフローチャートであ
る。
FIG. 13 is a flowchart illustrating a process according to the eighth embodiment.

【図14】 従来の二重系計算機のデータベース等価処
理装置を示す構成図である。
FIG. 14 is a configuration diagram showing a conventional database equivalence processing device of a dual computer.

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

1 A系サーバコンピュータ、2 A系データベース、
2a A系全データ記憶データベース、3 B系サーバ
コンピュータ、3a B系全データ記憶データベース、
4 B系データベース、6 クライアントコンピュー
タ、6b 転送手段、6c 複写手段、6d 比較手
段、6e 更新命令手段、7 A系差分データ記憶領
域、7a A系更新命令記憶領域、8 B系差分データ
記憶領域、8a B系更新命令記憶領域、9,10 検
証手段、11,12 更新順序手段、13,14 比較
選択手段、15,16 比較判定手段、17,18 異
常対策手段。
1 A server computer, 2 A database,
2a A system all data storage database, 3B system server computer, 3a B system all data storage database,
4B system database, 6 client computer, 6b transfer unit, 6c copy unit, 6d comparison unit, 6e update instruction unit, 7A system difference data storage area, 7a A system update instruction storage area, 8B system difference data storage area, 8a B system update command storage area, 9,10 verification means, 11,12 update order means, 13,14 comparison selection means, 15,16 comparison determination means, 17,18 abnormality countermeasure means.

Claims (8)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 汎用共通言語で記述されるデータを保有
するクライアントコンピュータとデータベースを有する
複数のサーバコンピュータとがバス形伝送路で接続さ
れ、上記クライアントコンピュータが同一の上記データ
をバス形伝送路を使用して複数のサーバコンピュータそ
れぞれに転送し、これら複数のサーバコンピュータそれ
ぞれがデータベースに等価記憶する二重系計算機のデー
タベース等価処理装置において、 上記複数のデータベースにはそれぞれに記憶されたデー
タの差分を記憶するための差分データ記憶領域が個別に
設けられ、 上記クライアントコンピュータまたは複数のサーバコン
ピュータのいずれかには、上記複数のサーバコンピュー
タのうちの一方のデータベースにその差分データ記憶領
域に記憶された差分データを他方のサーバコンピュータ
に転送するための指示を行う転送手段と、この転送手段
によって他方のサーバコンピュータに転送された差分デ
ータをその差分データ記憶領域に複写する複写手段とが
設けられたことを特徴とする二重系計算機のデータベー
ス等価処理装置。
A client computer having data described in a general-purpose common language and a plurality of server computers having a database are connected by a bus-type transmission line, and the client computer transmits the same data to the bus-type transmission line. The plurality of server computers transfer the data to each of the plurality of server computers, and each of the plurality of server computers equivalently stores the data in a database. A difference data storage area for storing is separately provided, and either one of the client computer or the plurality of server computers stores the difference stored in the database of one of the plurality of server computers in the difference data storage area. Other data Transfer means for instructing transfer to the other server computer, and copying means for copying the difference data transferred to the other server computer by the transfer means to the difference data storage area. Database equivalent processing unit for dual computers.
【請求項2】 上記クライアントコンピュータまたは複
数のサーバコンピュータのいずれかには、上記複写手段
による一方の差分データ記憶領域から他方の差分データ
記憶領域への複写完了後における両者のデータ量を比較
するとともにその両者のデータ量が不一致ならば他方の
差分データ記憶領域の複写データを消去するともに再度
一方の差分データ記憶領域から他方の差分データ記憶領
域への複写を行う比較手段が設けられたことを特徴とす
る請求項第1項記載の二重系計算機のデータベース等価
処理装置。
2. The client computer or the plurality of server computers compare the data amounts of both after completion of copying from one differential data storage area to the other differential data storage area by the copying means. If the two data volumes do not match, comparison means is provided for erasing the copy data in the other differential data storage area and copying again from one differential data storage area to the other differential data storage area. 2. The database equivalence processing apparatus for a dual computer according to claim 1, wherein:
【請求項3】 上記複数のデータベースには更新命令記
憶領域が設けられ、上記クライアントコンピュータまた
は複数のサーバコンピュータのいずれかには、一方のデ
ータベースから他方のデータベースへの等価処理に際
し、その等価処理での更新命令を上記更新命令記憶領域
に書き込み、この更新命令記憶領域がなくなるまで等価
処理を繰り返す更新命令手段を備えた請求項第1項記載
の二重系計算機のデータベース等価処理装置。
3. An update instruction storage area is provided in each of the plurality of databases, and one of the client computer and the plurality of server computers performs an equalization process from one database to the other database in the equalization process. 2. The database equivalence processing device for a dual computer according to claim 1, further comprising update instruction means for writing the update instruction in the update instruction storage area and repeating the equivalence processing until the update instruction storage area is exhausted.
【請求項4】 上記クライアントコンピュータのいずれ
かには複数のサーバコンピュータは上記複写手段による
一方のデータベースから他方のデータベースへの複写完
了後におけるデータベース量の一致性を検証する検証手
段が設けられたことを特徴とする請求項第1項記載の二
重系計算機のデータベース等価処理装置。
4. A method according to claim 1, wherein said plurality of server computers are provided with verification means for verifying the consistency of the amount of database after completion of copying from one database to another database by said copying means. 2. The database equivalence processing device for a dual computer according to claim 1, wherein:
【請求項5】 上記複数のサーバコンピュータには複数
のクライアントコンピュータからのデータ更新を受けこ
とによってそのデータ更新と同一トランザクションで差
分データを差分データ記憶領域に書き込むとともにその
差分データに時間順の連続番号を付与する更新順序手段
が設けられたことを特徴とする請求項第1項記載の二重
系計算機のデータベース等価処理装置。
5. The plurality of server computers receive the data update from the plurality of client computers, write the differential data to the differential data storage area in the same transaction as the data update, and assign a serial number to the differential data in time order. 2. The apparatus according to claim 1, further comprising an update sequence unit for assigning a value.
【請求項6】 上記複数のサーバコンピュータには全デ
ータ等価処理によるデータを記憶する全データ記憶デー
タベースが設けられ、これら複数のサーバコンピュータ
または上記クライアントコンピュータのいずれかにはデ
ータベースの記憶領域に対する差分データ記憶領域への
境差分データ容量の割合が基準値より小さい場合には差
分データ記憶領域を使用する差分データ等価処理を実行
し上記割合が基準値を越えた場合には全データ記憶デー
タベースを使用する全データ等価処理を実行する比較選
択手段が設けられたことを特徴とする請求項第1項記載
の二重系計算機のデータベース等価処理装置。
6. A plurality of server computers are provided with an all data storage database for storing data obtained by an all data equalization process, and one of the plurality of server computers or the client computers is provided with differential data for a storage area of the database. When the ratio of the boundary difference data capacity to the storage area is smaller than the reference value, the difference data equalization process using the difference data storage area is executed, and when the ratio exceeds the reference value, the entire data storage database is used. 2. The apparatus according to claim 1, further comprising comparison / selection means for executing all data equalization processing.
【請求項7】 上記複数のサーバコンピュータには全デ
ータ等価処理によるデータを記憶する全データ記憶デー
タベースが設けられ、これら複数のサーバコンピュータ
または上記クライアントコンピュータのいずれかには上
記差分データ記憶領域への差分データ量が差分データ記
憶領域より小さい場合には差分データ記憶領域を使用す
る差分データ等価処理を実行し上記差分データ量が差分
データ記憶領域を越える場合には全データ記憶データベ
ースを使用する全データ等価処理を実行する比較判定手
段が設けられたことを特徴とする請求項第1項記載の二
重系計算機のデータベース等価処理装置。
7. A plurality of server computers are provided with an all data storage database for storing data obtained by an all data equalization process, and one of the plurality of server computers or the client computers is provided with a data storage area for the difference data storage area. If the difference data amount is smaller than the difference data storage area, a difference data equalization process using the difference data storage area is performed. If the difference data amount exceeds the difference data storage area, all data using the entire data storage database is used. 2. The database equivalence processing apparatus for a dual computer according to claim 1, further comprising comparison determination means for executing equivalence processing.
【請求項8】 上記複数のサーバコンピュータには全デ
ータ等価処理によるデータを記憶する全データ記憶デー
タベースが設けられ、これら複数のサーバコンピュータ
または上記クライアントコンピュータのいずれかには上
記差分データの差分データ記憶領域への差分データ等価
処理中に異常が発生したときその差分データ等価処理を
中止するとともに全データ記憶データベースを使用する
全データ等価処理を実行する異常対策手段が設けられた
ことを特徴とする請求項第1項記載の二重系計算機のデ
ータベース等価処理装置。
8. The plurality of server computers are provided with an all data storage database for storing data obtained by an all data equalization process, and one of the plurality of server computers or the client computers stores a difference data of the difference data. An abnormality countermeasure means is provided for canceling the differential data equalization processing when an error occurs during the differential data equalization processing for the area and executing the all data equalization processing using the all data storage database. Item 2. A database equivalence processing device for a dual computer according to item 1.
JP6100926A 1994-05-16 1994-05-16 Database Equivalent Processor for Dual Computer Expired - Fee Related JP2939414B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6100926A JP2939414B2 (en) 1994-05-16 1994-05-16 Database Equivalent Processor for Dual Computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6100926A JP2939414B2 (en) 1994-05-16 1994-05-16 Database Equivalent Processor for Dual Computer

Publications (2)

Publication Number Publication Date
JPH07306795A JPH07306795A (en) 1995-11-21
JP2939414B2 true JP2939414B2 (en) 1999-08-25

Family

ID=14286963

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6100926A Expired - Fee Related JP2939414B2 (en) 1994-05-16 1994-05-16 Database Equivalent Processor for Dual Computer

Country Status (1)

Country Link
JP (1) JP2939414B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990078538A (en) * 1998-12-26 1999-11-05 김형순 Data queue for database synchronization and method for operating it
US6839723B2 (en) * 2000-08-29 2005-01-04 Fujitsu Limited Information management system
JP2006277424A (en) * 2005-03-30 2006-10-12 Sysmex Corp Analysis system, data processor, measurement device and application program
JP5130538B2 (en) * 2007-06-22 2013-01-30 日本電気株式会社 Network file system and network file system recovery method
JP2009251756A (en) * 2008-04-02 2009-10-29 Nec Corp Client device, distributed file system, shared resource multiplexing method, and program
JP5880608B2 (en) 2014-03-24 2016-03-09 日本電気株式会社 Fault tolerant server

Also Published As

Publication number Publication date
JPH07306795A (en) 1995-11-21

Similar Documents

Publication Publication Date Title
US7444360B2 (en) Method, system, and program for storing and using metadata in multiple storage locations
CN100440155C (en) Method and apparatus for creating a virtual data copy
US6826604B2 (en) Input/output device information management system for multi-computer system
JP4439960B2 (en) Storage device
JP3503957B2 (en) Method and apparatus for controlling remote database
JPH0773087A (en) Method for recovery of file state in data processing system
JP4419884B2 (en) Data replication apparatus, method, program, and storage system
JP2565658B2 (en) Resource control method and apparatus
US20060224639A1 (en) Backup system, program and backup method
JPH10508967A (en) System and method for on-line, real-time, data transfer technical field
US20100169289A1 (en) Two Phase Commit With Grid Elements
US8725686B2 (en) Method and program for creating determinate backup data in a database backup system
US7721191B2 (en) File save method for HTML files using recovery files including a list with temporary and final names for replacement files
CN117480500A (en) Historical information in an instructor-based database system for transaction consistency
JP3382080B2 (en) Method and system for collating instruction execution order consistency
JP2939414B2 (en) Database Equivalent Processor for Dual Computer
WO2023111910A1 (en) Rolling back database transaction
EP0449660B1 (en) A method and apparatus of generating shadow process
US7237069B2 (en) Arrangement and method for update of configuration cache data
JPH04107750A (en) File managing system
US9424261B2 (en) Techniques to take clean database file snapshot in an online database
US11507457B2 (en) Method, electronic device and computer program product for storage management
US20220382635A1 (en) Method and apparatus for processing transaction
JPH06214848A (en) Data base managing system
JP2781691B2 (en) Failure information reference method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees