JP3033444B2 - Database comparison method - Google Patents

Database comparison method

Info

Publication number
JP3033444B2
JP3033444B2 JP6174463A JP17446394A JP3033444B2 JP 3033444 B2 JP3033444 B2 JP 3033444B2 JP 6174463 A JP6174463 A JP 6174463A JP 17446394 A JP17446394 A JP 17446394A JP 3033444 B2 JP3033444 B2 JP 3033444B2
Authority
JP
Japan
Prior art keywords
database
key code
update
stored
storage unit
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
JP6174463A
Other languages
Japanese (ja)
Other versions
JPH0844604A (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 JP6174463A priority Critical patent/JP3033444B2/en
Publication of JPH0844604A publication Critical patent/JPH0844604A/en
Application granted granted Critical
Publication of JP3033444B2 publication Critical patent/JP3033444B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、同一のキーコード列
と、このキーコード列のキーコードに対応するレコード
からなるレコード列とを有するデータベースにおいて、
更新前のデータベースと更新後のデータベースとを比較
して更新処理の確認を行うためのデータベース比較方
法、例えば、電力系統システムにおける同じ機器コード
をキーコードとする分散された複数のデータベースに対
し、機器の増設、改廃に伴うデータ改造を行った後に、
その処理の整合性を検証するためのデータベース比較方
法に関するものである。また、例えば、随時更新される
データベースに対し、前回比較時点の旧データベースと
その後に発生した更新内容を保存するトランザクション
ファイルとから、その処理の整合性を検証するためのデ
ータベース比較方法に関するものである。
The present invention relates to a database having the same key code sequence and a record sequence consisting of records corresponding to the key codes of the key code sequence.
A database comparison method for comparing the pre-update database and the post-update database to confirm the update process, for example, for a plurality of distributed databases using the same device code as a key code in a power system, After remodeling data due to expansion and renovation of
The present invention relates to a database comparison method for verifying the consistency of the processing. Also, for example, the present invention relates to a database comparison method for verifying the consistency of the processing from an old database at the time of the previous comparison and a transaction file for storing the update contents generated thereafter with respect to a database that is updated as needed. .

【0002】[0002]

【従来の技術】電力系統システムなどのデータベースシ
ステムにおいては、その設備の増設、改廃によって、設
備に関するデータベースのデータ改造を必要とする。こ
のとき、同じ機器コードをキーコードとし、いくつかの
計算機に分散した複数のデータベースに対し、同時にデ
ータ改造を行うので、データ改造プログラムの不具合
や、装置のトラブルにより、例えば、キーコードの追加
・削除洩れ、およびレコード内容の変更洩れが発生し、
それぞれのデータベース相互間に不整合を生じる可能性
があった。
2. Description of the Related Art In a database system such as an electric power system, the data of a database relating to the equipment needs to be remodeled due to the addition, modification or abolition of the equipment. At this time, the same device code is used as a key code, and data remodeling is performed simultaneously on a plurality of databases distributed to several computers. Omission of deletion and omission of record contents occurred,
There was a possibility of inconsistency between the respective databases.

【0003】図34は、このようなデータベースのデー
タ改造の後、新旧データの整合性をチェックするための
従来のデータベース比較方法の一例を示すブロック図で
あり、図において、10はデータ改造後の新データベー
スの新データ部、40はデータ改造前の旧データベース
の旧データ部、70はこれらの新旧データ部10および
40を比較するための比較部、110はこの比較部70
での不一致データを出力する比較結果出力部である。
FIG. 34 is a block diagram showing an example of a conventional database comparison method for checking the consistency between new and old data after such data modification of the database. In FIG. The new data section of the new database, 40 is the old data section of the old database before data modification, 70 is a comparing section for comparing these new and old data sections 10 and 40, and 110 is this comparing section 70
Is a comparison result output unit that outputs mismatched data in.

【0004】次に動作について、図35に示す従来のデ
ータベース比較方法のフローチャートによって説明す
る。まず、ステップS1、S2においてまず新旧それぞ
れのデータベースのデータ部10および40が読み込ま
れ、例えば、特公昭62ー30647号公報に示される
ように、それぞれのデータ部をユニットに分割し(ステ
ップS3)、ユニットごとに新旧データベース部の内容
を比較し(ステップS4)、不一致部分を印字出力する
(ステップS5)。このような処理を、全データベース
に対して実施し(ステップS6)、それぞれのデータベ
ースの変化内容出力を人手によって分析比較することに
より、データ改造の整合性を確認していた。また、従来
のデータベース比較方法として、例えば特公平5ー43
140号公報や特開昭57ー31040号公報がある
が、いずれも2つのデータベース間を比較するものであ
り、新旧の、かつ複数のデータベースを比較する方法に
ついては示されていない。
Next, the operation will be described with reference to a flowchart of a conventional database comparison method shown in FIG. First, in steps S1 and S2, the data portions 10 and 40 of the new and old databases are read, and each data portion is divided into units as shown in, for example, Japanese Patent Publication No. Sho 62-30647 (step S3). Then, the contents of the new and old database units are compared for each unit (step S4), and the mismatched portion is printed out (step S5). Such processing is performed for all databases (step S6), and the output of the contents of change of each database is manually analyzed and compared to confirm the consistency of data remodeling. As a conventional database comparison method, for example, Japanese Patent Publication No. 5-43
JP-A-140-140 and JP-A-57-31040 both disclose comparisons between two databases, and do not disclose a method for comparing new and old databases.

【0005】[0005]

【発明が解決しようとする課題】従来のデータベース比
較方法は、以上のように構成されているので、複数存在
する新旧データベースの比較結果が膨大な印字として出
力されるため、これらの出力からそれぞれの新旧データ
ベースの更新状態の整合性を確認することは、非常に困
難で、大きな手間を要しており、新旧データベースを相
互に比較して、更新処理の正常異常の判定を自動的に行
う手段がなかった。また、新旧データベースの比較のた
め、データ改造前の旧データ部を保存しておく必要があ
り、この旧データベースの記憶のために非常に大きな記
憶容量を要した。
Since the conventional database comparison method is configured as described above, the result of comparison between a plurality of existing and old databases is output as an enormous number of prints. Checking the consistency of the update status of the old and new databases is extremely difficult and requires a great deal of time, and there is a need to compare the old and new databases with each other and automatically determine whether the update process is normal or abnormal. Did not. In addition, for comparison between the new and old databases, it is necessary to save the old data part before data modification, and a very large storage capacity is required for storing the old database.

【0006】この発明は上記のような課題を解決するた
めになされたものであり、データベースの更新時に、こ
の更新処理の整合性の検証を、人手を介さず効率的に行
うことのできるデータベース比較方法を得ることを目的
とする。また、データベースが複数に分散されていた場
合でも、容易に比較が行えるとともに、比較のために必
要とする記憶容量を最小限に押さえることのできるデー
タベース比較方法を得ることを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems, and has been made in consideration of the above circumstances. The aim is to get the method. It is another object of the present invention to provide a database comparison method capable of easily performing a comparison even when a plurality of databases are distributed and minimizing a storage capacity required for the comparison.

【0007】[0007]

【課題を解決するための手段】この発明の請求項1に係
わるデータベース比較方法は、同じキーコード列を有す
る第1および第2のデータベースに対して、第1のデー
タベースの更新前と更新後とをキーコードごとに比較
し、その相違点を第1の格納部に記憶し、第2のデータ
ベースの更新前と更新後とをキーコードごとに比較し、
その相違点を第2の格納部に記憶し、上記第1および第
2の格納部に記憶された相違点を比較し、その不一致内
容を出力するものである。
According to a first aspect of the present invention, there is provided a database comparison method for a first database and a second database having the same key code sequence before and after updating the first database. Is compared for each key code, the difference is stored in the first storage unit, and before and after updating the second database are compared for each key code,
The difference is stored in the second storage section, the difference stored in the first and second storage sections is compared, and the content of the mismatch is output.

【0008】この発明の請求項2に係わるデータベース
比較方法は、同じキーコード列を有する第1および第2
のデータベースに対して、更新前のデータとして更新前
のキーコード列のみを有し、この更新前のキーコード列
と、更新後の第1のデータベースのキーコード列とを比
較し、その相違点を第1の格納部に記憶し、上記更新前
のキーコード列と、更新後の第2のデータベースのキー
コード列とを比較し、その相違点を第2の格納部に記憶
し、上記第1および第2の格納部に記憶された相違点を
比較し、その不一致内容を出力するものである。
According to a second aspect of the present invention, there is provided a database comparison method, comprising the steps of:
Has only the key code sequence before the update as the data before the update, and compares the key code sequence before the update with the key code sequence of the first database after the update. Is stored in the first storage unit, the key code sequence before the update is compared with the key code sequence in the second database after the update, and the difference is stored in the second storage unit. It compares the differences stored in the first and second storage units and outputs the inconsistency.

【0009】この発明の請求項3に係わるデータベース
比較方法は、キーコードごとにそのキーコードに対応す
るレコードが更新された時点を示すデータを有し、デー
タベースごとに更新前のキーコード列と、更新後のキー
コード列とを比較する際に、それぞれのキーコードに対
応する更新時点をも比較して、その相違点を格納部に記
憶するものである。
According to a third aspect of the present invention, there is provided a database comparison method, wherein each key code has data indicating a point in time when a record corresponding to the key code is updated, and a key code string before update is stored for each database; When comparing with the updated key code sequence, the update time point corresponding to each key code is also compared, and the difference is stored in the storage unit.

【0010】この発明の請求項4に係わるデータベース
比較方法は、更新前のデータベースのキーコード列を、
保存時点を示すデータとともに記録し、更新後のデータ
ベースのキーコードごとに、そのキーコードに対応する
レコードが更新された時点を示すデータを設け、データ
ベースごとに更新前のキーコード列と、更新後のキーコ
ード列とを比較する際に、それぞれのキーコードに対応
する上記更新時点と上記保存時点とをも比較して、その
相違点を格納部に記憶するものである。
According to a fourth aspect of the present invention, in the database comparison method, the key code sequence of the database before the update
Recorded together with the data indicating the storage time, and provided, for each key code of the updated database, data indicating the time at which the record corresponding to the key code was updated. When comparing with the key code strings of the above, the update time and the storage time corresponding to each key code are also compared, and the difference is stored in the storage unit.

【0011】この発明の請求項5に係わるデータベース
比較方法は、各データベースの更新前と更新後とをキー
コードごとに比較する際に、その相違点を追加、削除、
および変更有の3つに分類して格納部に記憶するもので
ある。
According to a fifth aspect of the present invention, in the database comparison method, when comparing before and after updating each database for each key code, the difference is added, deleted,
And stored in the storage unit.

【0012】この発明の請求項6に係わるデータベース
比較方法は、同じキーコード列を有するデータベースが
3つ以上あり、各データベースごとに比較した更新前と
更新後との相違点を記憶する格納部に対し、各格納部に
記憶された相違点をキーコードごとに比較し、それぞれ
の不一致内容を出力するものである。
According to a sixth aspect of the present invention, there is provided the database comparison method, wherein there are three or more databases having the same key code string, and the storage unit for storing the difference between before and after update for each database is stored. On the other hand, the difference stored in each storage section is compared for each key code, and the content of the mismatch is output.

【0013】この発明の請求項に係わるデータベース
比較方法は、更新されたレコードに対応するキーコード
と、この更新の種別を示すデータと、この更新の行われ
た時点を示すデータとを有するトランザクションデータ
からなるトランザクションファイルとを設け、各データ
ベースの更新前と更新後とをキーコードごとに比較した
相違点を格納部に記憶する際に、上記比較の実施時点を
示すデータとともに格納し、各格納部に記憶した相違点
を比較した不一致内容に対し、上記各格納部に記憶した
時点が食い違っていれば、上記トランザクションファイ
ルから、上記比較時点の差に相当する部分の更新データ
を示すトランザクションデータを抽出し、これらのトラ
ンザクションデータと比較することにより、上記不一致
内容を補正するものである。
According to a seventh aspect of the present invention, there is provided a database comparison method, comprising: a transaction having a key code corresponding to an updated record, data indicating a type of the update, and data indicating a time when the update is performed. A transaction file composed of data is provided, and when storing a difference in comparing each database before and after updating for each key code in the storage unit, the difference is stored together with data indicating a time point of the above-described comparison. If the time points stored in the respective storage units are different from each other for the inconsistency content obtained by comparing the differences stored in the units, the transaction data indicating the update data of the part corresponding to the difference between the comparison points is obtained from the transaction file. By extracting and comparing with these transaction data, It is.

【0014】[0014]

【作用】この発明の請求項1に係わるデータベース比較
方法は、同じキーコード列を有する第1および第2のデ
ータベースに対し、各データベース間をキーコードごと
に関連づけしたものであり、第1のデータベースの更新
前と更新後とをキーコードごとに比較して得た相違点
と、第2のデータベースの更新前と更新後とを比較して
得た相違点とは、本来一致しているはずであるので、そ
れらが不一致であれば更新不良として、その不一致内容
を出力する。
According to a first aspect of the present invention, there is provided a database comparison method in which first and second databases having the same key code sequence are associated with each other for each key code. The difference obtained by comparing before and after the update of each of the key codes for each key code and the difference obtained by comparing the second database before and after the update should originally match each other. If they do not match, the contents of the mismatch are output as an update failure.

【0015】この発明の請求項2に係わるデータベース
比較方法は、同じキーコード列を有する第1および第2
のデータベースに対し、各データベース間をキーコード
ごとに関連づけしたものであり、更新前のキーコード列
は共通となることから、この共通の更新前のキーコード
列と更新後の第1のデータベースのキーコード列とを比
較して得た相違点と、上記更新前のキーコード列と更新
後の第2のデータベースのキーコード列とを比較して得
た相違点とは、本来一致しているはずであるので、それ
らが不一致であれば更新不良として、その不一致内容を
出力する。
According to a second aspect of the present invention, there is provided a database comparison method comprising the steps of:
The database is associated with each database for each key code. Since the key code sequence before update is common, the common key code sequence before update and the first database after update are shared. The difference obtained by comparing the key code sequence with the key code sequence before the update and the key code sequence of the second database after the update are essentially the same. Therefore, if they do not match, it is determined that the update is defective, and the content of the mismatch is output.

【0016】この発明の請求項3に係わるデータベース
比較方法は、データベースごとに更新前のキーコード列
と、更新後のキーコード列とを比較するとともに、それ
ぞれのキーコードに対応する更新時点をも比較して、そ
の相違点を格納部に記憶し、これらの相違点を各格納部
ごとに比較し、その不一致内容を出力する。
According to a third aspect of the present invention, in the database comparison method, the key code sequence before update and the key code sequence after update are compared for each database, and the update time point corresponding to each key code is also determined. Then, the difference is stored in the storage unit, the difference is compared for each storage unit, and the content of the mismatch is output.

【0017】この発明の請求項4に係わるデータベース
比較方法は、データベースごとに更新前のキーコード列
と、更新後のキーコード列とを比較するとともに、デー
タベースに共通の更新前のキーコード列を記録した保存
時点と、更新後のキーコードの更新時点とをも比較し
て、その相違点を格納部に記憶し、これらの相違点を各
格納部ごとに比較し、その不一致内容を出力する。
According to a fourth aspect of the present invention, in the database comparison method, the key code sequence before the update is compared with the key code sequence after the update for each database, and the key code sequence before the update is shared by the databases. The recorded save time is also compared with the updated key code update time, the difference is stored in the storage unit, and the difference is compared for each storage unit, and the content of the mismatch is output. .

【0018】この発明の請求項5に係わるデータベース
比較方法は、各データベースの更新前と更新後との相違
点をキーコードごとに追加、削除、および変更有の3つ
に分類して、それぞれのデータベースに対応して設けら
れた格納部に記憶し、これらの相違点を各格納部ごとに
比較し、その不一致内容を出力する。
In the database comparison method according to a fifth aspect of the present invention, the differences between before and after the update of each database are classified into three for each key code: addition, deletion, and change. The difference is stored in a storage unit provided corresponding to the database, these differences are compared for each storage unit, and the content of the mismatch is output.

【0019】この発明の請求項6に係わるデータベース
比較方法は、3つ以上あるデータベースごとに対応して
設けられた格納部に、各データベースごとの更新前と更
新後とのデータの相違点を記憶し、各格納部に記憶され
た相違点をキーコードごとに比較し、それぞれの不一致
内容を出力する。
According to a sixth aspect of the present invention, in the database comparison method, a difference between data before and after updating of each database is stored in a storage unit provided for each of three or more databases. Then, the difference stored in each storage unit is compared for each key code, and the content of the mismatch is output.

【0020】この発明の請求項に係わるデータベース
比較方法は、各データベースの更新前と更新後とをキー
コードごとに比較した相違点と、その比較を行った実施
時点とを各格納部に記憶し、各格納部に記憶した相違点
を比較した不一致内容に対し、これらの各格納部に記憶
した実施時点が食い違っていれば、トランザクションフ
ァイルから、上記比較時点の差に相当する部分の更新デ
ータを示すトランザクションデータを抽出し、これらの
トランザクションデータと比較することにより、上記不
一致内容を補正する。
According to a seventh aspect of the present invention, there is provided a database comparing method, wherein a difference between a key code before and after each database is updated is stored for each key code, and a time when the comparison is performed is stored in each storage unit. If the execution time stored in each storage unit is different from the inconsistency content obtained by comparing the differences stored in each storage unit, the update data of the portion corresponding to the difference between the comparison times is read from the transaction file. Is extracted, and the above-mentioned mismatch contents are corrected by comparing the extracted transaction data with these transaction data.

【0021】[0021]

【実施例】実施例1. 図1は、この発明の実施例1を示すデータベース比較方
法の構成図であり、図において、1は第1のデータベー
ス部、11は更新後の第1のデータベース、21はこの
データベース11のキーコード列、31はキーコード列
21の個々のキーコードに対応する詳細データからなる
レコード列、41は更新前の第1のデータベース、5
1,61は更新前のデータベース41のそれぞれキーコ
ード列とレコード列、71は第1のデータベース11お
よび41をキーコードごとに比較する比較部、81はそ
の結果の相違点を記憶する比較結果格納部である。2は
第2のデータベース部、12,22,32,42,5
2,62,72,82はそれぞれ第2のデータベース部
2における構成要素であり、符号の下1桁の2がデータ
ベース部の番号を示し、その上位の桁の文字は、第1の
データベース部の該当の文字と同じものを示す。以降、
データベース部が複数存在するとき、符号の下1桁の文
字がデータベース部の番号を示す。ただし、符号の下1
桁が0であるものは、複数のデータベースに共通、また
は単独のデータベースに存在するものを示す。
[Embodiment 1] FIG. 1 is a configuration diagram of a database comparison method according to a first embodiment of the present invention. In the figure, reference numeral 1 denotes a first database unit, 11 denotes an updated first database, and 21 denotes a key code of the database 11. Column, 31 is a record sequence consisting of detailed data corresponding to each key code of the key code sequence 21, 41 is the first database before update, 5
Reference numerals 1 and 61 denote key code strings and record strings of the database 41 before the update, 71 a comparison unit for comparing the first databases 11 and 41 for each key code, and 81 a comparison result storage for storing a difference between the results. Department. 2 is a second database unit, 12, 22, 32, 42, 5
Reference numerals 2, 62, 72, and 82 denote constituent elements in the second database unit 2, respectively. The last digit 2 of the code indicates the number of the database unit, and the upper digit characters are those of the first database unit. Indicates the same as the corresponding character. Or later,
When there are a plurality of database parts, the last digit of the code indicates the number of the database part. Where 1
Those having a digit of 0 indicate those that are common to a plurality of databases or exist in a single database.

【0022】90は各データベース部の比較結果格納部
81および82の相違点を比較する結果比較部、100
は結果比較部90の結果である不一致内容を記憶する不
一致内容格納部、110はこの不一致内容に基づきデー
タベースの更新不良を出力する更新不良出力部である。
図2および図3は、この発明の実施例1を示すデータベ
ース比較方法の処理手順を説明するフローチャート、図
4および図5は、データベース比較方法を説明するため
のデータ例である。
Numeral 90 denotes a result comparing section for comparing the difference between the comparison result storing sections 81 and 82 of the respective database sections.
Numeral denotes a mismatch content storage unit that stores the mismatch content as a result of the result comparison unit 90, and 110 denotes an update failure output unit that outputs a database update failure based on the mismatch content.
FIGS. 2 and 3 are flowcharts illustrating the processing procedure of the database comparison method according to the first embodiment of the present invention, and FIGS. 4 and 5 are data examples for explaining the database comparison method.

【0023】以下、図2〜図5に従って、この実施例1
のデータベース比較方法を説明する。まず、図2のフロ
ーチャートに従って、データベースの更新前と更新後の
相違点を比較する。図2は図1の比較部71または72
の動作を示すもので、第1のデータベース部を例にとっ
て説明すると、図のステップS101において、新旧デ
ータベース11および41(以降、更新後のデータベー
スを新データベース、更新前のデータベースを旧データ
ベースと呼ぶ)のキーコード列21および51を比較す
る。キーコードごとにステップS102およびS104
で、新旧それぞれのデータベースに該当のキーコードが
存在するかどうかを比較する。ステップS103で、キ
ーコードが新データベース11にのみ存在する場合は、
このキーコードを示すコードと種別を示す”追加”を比
較結果格納部81に記憶する。ステップS105で、キ
ーコードが旧データベース41にのみ存在する場合は、
このキーコードを示すコードと種別を示す”削除”を比
較結果格納部81に記憶する。ステップS106および
S107において、キーコードが新旧両方のデータベー
スに存在する場合、そのキーコードに該当するレコード
31および61を比較してレコード内容に対する変更の
有無をチェックし、内容に変更があれば、ステップS1
08でこのキーコードを示すコードと種別を示す”変更
有”を比較結果格納部81に記憶する。この操作を、新
旧データベースのキーコード21および51の全てに対
して行う。第2のデータベース部についての処理も上記
と同じである。
Hereinafter, the first embodiment will be described with reference to FIGS.
A database comparison method will be described. First, according to the flowchart of FIG. 2, the difference between before and after updating the database is compared. FIG. 2 shows the comparison unit 71 or 72 of FIG.
When the first database unit is taken as an example, the old and new databases 11 and 41 (hereinafter, the updated database is referred to as a new database and the pre-update database is referred to as an old database) in step S101 in the figure. Key sequences 21 and 51 are compared. Steps S102 and S104 for each key code
Then, whether the corresponding key code exists in each of the new and old databases is compared. In step S103, if the key code exists only in the new database 11,
The code indicating the key code and “addition” indicating the type are stored in the comparison result storage unit 81. In step S105, if the key code exists only in the old database 41,
The code indicating the key code and “delete” indicating the type are stored in the comparison result storage unit 81. In steps S106 and S107, if the key code exists in both the new and old databases, the records 31 and 61 corresponding to the key code are compared to check whether there is any change in the record contents. S1
At 08, the code indicating the key code and “changed” indicating the type are stored in the comparison result storage unit 81. This operation is performed for all the key codes 21 and 51 of the new and old databases. The processing for the second database unit is the same as above.

【0024】次に図3によって、比較結果格納部81お
よび82に記録された更新前と更新後のデータベースの
相違点を、結果比較部90、不一致内容格納部100を
介して、更新不良出力部110に出力する動作について
説明する。
Next, referring to FIG. 3, the difference between the pre-update database and the post-update database recorded in the comparison result storage units 81 and 82 is compared with the update failure output unit via the result comparison unit 90 and the mismatch content storage unit 100. The operation of outputting to 110 will be described.

【0025】図3のステップS111において、比較結
果格納部81および82に記憶された相違点の内、種別
が”追加”であるものに対して、そのキーコードを比較
し(ステップS111内の(1)および(2)はそれぞ
れのデータベース部の番号を示す。以下同様)、比較結
果がどちらか一方にしかないキーコードがあれば(ステ
ップS112)、そのキーコードを示すコードと不良内
容”追加NG”とデータベースごとの追加有無を不一致
内容格納部100に記憶する(ステップS113)。次
にステップS114において、比較結果格納部81およ
び82に記憶された相違点の内、種別が”削除”である
ものに対して、キーコードを比較し、比較結果がどちら
か一方にしかないキーコードがあれば(ステップS11
5)、そのキーコードを示すコードと不良内容”削除N
G”とデータベースごとの削除有無を不一致内容格納部
100に記憶する(ステップS116)。さらにステッ
プS117において、比較結果格納部81および82に
記憶された相違点の内、種別が”変更有”であるものに
対して、キーコードを比較し、比較結果がどちらか一方
にしかないキーコードがあれば(ステップS118)、
そのキーコードを示すコードと不良内容”変更NG”と
データベースごとの変更有無を不一致内容格納部100
に記憶する(ステップS119)。最後にステップS1
20において、不一致内容格納部100に記憶された不
一致内容を更新不良出力部110に出力する。
In step S111 of FIG. 3, among the differences stored in the comparison result storage units 81 and 82, the key code is compared with that of the type "added" ((step S111). 1) and (2) indicate the numbers of the respective database sections. The same applies to the following.) If there is a key code whose comparison result is found only in one of them (step S112), the code indicating the key code and the defect content "additional NG""And the presence or absence of addition for each database are stored in the mismatched content storage unit 100 (step S113). Next, in step S114, a key code is compared with the difference type stored in the comparison result storage units 81 and 82, and the key code whose comparison result is in only one of them is compared. If there is (step S11
5), the code indicating the key code and the defect content "Delete N"
G ”and the presence or absence of deletion for each database are stored in the inconsistency content storage unit 100 (step S116). Further, in step S117, the type is“ changed ”among the differences stored in the comparison result storage units 81 and 82. The key code is compared with a certain one. If there is a key code in which only one of the comparison results is found (step S118),
The code indicating the key code, the defect content “change NG”, and the presence / absence of change for each database are inconsistent.
(Step S119). Finally, step S1
At 20, the inconsistent content stored in the inconsistent content storage unit 100 is output to the update failure output unit 110.

【0026】例えば、図4の(A)〜(D)に示したデ
ータ例でみると、第1の更新前の旧データベース41が
(A)であり、更新後の新データベース11が(B)で
ある。図2のフローチャートに従って処理すれば、キー
コード(a)が旧データベース41にあって、新データ
ベース11にないので、種別”削除”として比較結果格
納部81に記憶される。この比較結果格納部81の内容
を図5の(A)に示す。キーコード(b)についても同
様に処理され、種別”削除”として記憶される。キーコ
ード(c)は、旧データベース41にも、新データベー
ス11にも存在し、レコード内容を比較することにな
る。この内容に変更がなかったとすると、このキーコー
ド(c)は比較結果格納部81には格納されない。キー
コード(d)は新データベースに存在し、旧データベー
ス41には存在しないので、種別”追加”として比較結
果格納部81に記憶される。キーコード(e)も同様で
ある。第2のデータベースに対しても、図4の(C),
(D)に対し、その相違点を比較結果格納部82に図5
(B)に示すように記憶される。図3のフローチャート
に従って処理すれば、第1のデータベースと第2のデー
タベースの相違点である図5の(A),(B)を比較す
ることによって、両者の不一致内容である図5(C)が
不一致内容格納部100に記憶される。この不一致内容
を更新不良出力部110に出力することにより、データ
更新作業による更新不良が発見できる。
For example, in the data examples shown in FIGS. 4A to 4D, the old database 41 before the first update is (A) and the new database 11 after the update is (B) It is. If the process is performed according to the flowchart of FIG. 2, the key code (a) is stored in the comparison result storage unit 81 as the type “delete” because the key code (a) is in the old database 41 and not in the new database 11. The contents of the comparison result storage unit 81 are shown in FIG. The key code (b) is processed in the same manner and stored as the type “delete”. The key code (c) exists in both the old database 41 and the new database 11 and compares the record contents. If this content is not changed, this key code (c) is not stored in the comparison result storage unit 81. Since the key code (d) exists in the new database and does not exist in the old database 41, the key code (d) is stored in the comparison result storage unit 81 as the type “added”. The same applies to the key code (e). As for the second database, FIG.
5D, the difference is stored in the comparison result storage unit 82 in FIG.
It is stored as shown in FIG. If the processing is performed according to the flowchart of FIG. 3, by comparing the differences between the first database and the second database in FIG. 5A and FIG. 5B, FIG. Is stored in the mismatch content storage unit 100. By outputting the content of the mismatch to the update failure output unit 110, an update failure due to the data update work can be found.

【0027】以上に示したように、この実施例1によれ
ば、データベースの内容が異なっていても、両者に共通
のキーコードを用いて、各データベース間の関連づけを
行ってデータベースの更新不良部の検出が行えるので、
検出処理が簡単であり、また、更新不良部のみを出力す
るようにしたので、確認作業の時間を大幅に削減できる
という効果がある。さらに、新旧データベースの比較を
行う比較部および比較結果格納部をそれぞれのデータベ
ース部に設けたので、複数のデータベースが複数の計算
機に分散して配置されている場合でも、それぞれのデー
タベースの比較結果だけのデータを収集して、更新不良
部の検出が行えるので、計算機間をまたぐデータ伝送量
を少なくでき、データベース間の比較部を容易に構成で
きるという効果もある。
As described above, according to the first embodiment, even if the contents of the databases are different, the databases are associated with each other by using a common key code for both, so that the update failure portion of the database is updated. Can be detected,
Since the detection process is simple and only the update defective portion is output, the time required for the checking operation can be greatly reduced. Furthermore, since a comparison unit and a comparison result storage unit for comparing the old and new databases are provided in each database unit, even when a plurality of databases are distributed to a plurality of computers, only the comparison results of the respective databases are provided. In this case, the update failure portion can be detected by collecting the above data, so that the amount of data transmitted between computers can be reduced, and the comparison portion between databases can be easily configured.

【0028】実施例2. 図6は、この発明の実施例2を示すデータベース比較方
法の構成図であり、実施例1の更新前のデータベース4
1,42をなくし、各データベース部に共通の更新前の
キーコード列60を設けたものである。また、データベ
ース部を2つに限定せずn(nは3以上の整数)個のデ
ータベース部を持つ場合を示したものである。この実施
例の場合、それぞれの更新前のデータベースは、互いの
整合性を合わされており、同じキーコード列を有するこ
とが前提となる。
Embodiment 2 FIG. FIG. 6 is a configuration diagram of a database comparison method according to the second embodiment of the present invention.
1 and 42 are eliminated, and a key code sequence 60 before update common to each database unit is provided. In addition, the number of database units is not limited to two, and a case is shown in which n (n is an integer of 3 or more) database units are provided. In the case of this embodiment, it is assumed that each pre-update database is matched with each other and has the same key code sequence.

【0029】以下、図7〜図10に従って、この実施例
2のデータベース比較方法を説明する。まず、図7のフ
ローチャートに従って、データベースの更新前と更新後
の相違点を比較する。図7は図6の比較部71,72ま
たは7nの動作を示すもので、第1のデータベース部を
例にとって説明すると、図のステップS201におい
て、新旧データベースのキーコード列21とキーコード
列60とを比較する。実施例1の場合と同様、互いのキ
ーコードの有無を比較し、S203で追加を、S205
で削除をそれぞれの相違点として検出し、そのキーコー
ドを示すコードと種別”追加”または”削除”を比較結
果格納部81に記憶する。ただし、実施例1の場合と異
なり、同じキーコードが存在するときのレコードの比較
は行えない。第2〜第nのデータベース部についても同
様に処理し、新旧の相違点を比較結果格納部82〜8n
に記憶する。
A database comparison method according to the second embodiment will be described below with reference to FIGS. First, according to the flowchart of FIG. 7, the difference between before and after updating the database is compared. FIG. 7 shows the operation of the comparison unit 71, 72 or 7n of FIG. 6. Taking the first database unit as an example, in step S201 of FIG. Compare. As in the case of the first embodiment, the presence / absence of each other's key code is compared.
, The deletion is detected as each difference, and the code indicating the key code and the type “add” or “delete” are stored in the comparison result storage unit 81. However, unlike the case of the first embodiment, comparison of records when the same key code exists cannot be performed. The same processing is performed for the second to n-th database units, and the difference between the new and old database units is compared with the comparison result storage units 82 to 8n.
To memorize.

【0030】次に図8のフローチャートに従って、比較
結果格納部81〜8nに記録された更新前と更新後のデ
ータベースの相違点を、結果比較部90で比較し、その
不一致内容を不一致内容格納部100を介して、更新不
良出力部110に出力する。ステップS211では、比
較結果格納部81〜8nに記録された全てのキーコード
を各種別”追加”または”削除”ごとに比較し、一部に
でも食い違いがあれば”追加NG”(ステップS21
3)または”削除NG”(ステップS216)として、
そのキーコードを示すコードと不良内容とデータベース
ごとの有無を不一致内容格納部100に記憶し、最終的
にこの不一致内容を更新不良出力部110に出力する
(ステップ217)。
Next, in accordance with the flowchart of FIG. 8, the difference between the pre-update and post-update databases recorded in the comparison result storage units 81 to 8n is compared by the result comparison unit 90, and the unmatched content is compared with the unmatched content storage unit. The data is output to the update failure output unit 110 via the control unit 100. In step S211, all key codes recorded in the comparison result storage units 81 to 8n are compared for each type of "addition" or "deletion". If there is any discrepancy, "additional NG" (step S21)
3) As “deletion NG” (step S216),
The code indicating the key code, the defect content, and the presence / absence of each database are stored in the mismatch content storage unit 100, and the mismatch content is finally output to the update failure output unit 110 (step 217).

【0031】例えば、図9の(A)〜(D)に示したデ
ータ例でみると、(A)は更新前の第1の旧データベー
スからキーコード列のみを取り出したもので、これが更
新前のキーコード列60となる。また、(B),
(C),(D)はそれぞれ第1,第2,第nの更新後の
新データベース11,12,1nであり、それぞれ
(A)と(B),(A)と(C),(A)と(D)を図
7のフローチャートに従って比較した結果が図10の
(A),(B),(C)となって比較結果格納部81,
82,8nに記憶される。次に、図8のフローチャート
に従って、図10の(A),(B),(C)を比較した
結果が(D)であり、不一致内容格納部100に記憶さ
れる。図10において、キーコード(e)に関しては全
てのデータベースに共通に”追加”があるが、その他の
キーコードについては一部のデータベースの比較結果格
納部の内容に不一致があるため不一致内容が出力されて
いる。この不一致内容を更新不良出力部110に出力す
ることにより、データ更新作業による更新不良が発見で
きる。
For example, looking at the data examples shown in FIGS. 9A to 9D, FIG. 9A shows only the key code string extracted from the first old database before update, which is the data before update. Key code string 60. (B),
(C) and (D) are new databases 11, 12, and 1n after the first, second, and n-th updates, respectively, and (A) and (B), (A) and (C), (A), respectively. ) And (D) in accordance with the flowchart of FIG. 7 become (A), (B), and (C) of FIG.
82, 8n. Next, according to the flowchart of FIG. 8, the result of comparing (A), (B), and (C) of FIG. 10 is (D), which is stored in the mismatch content storage unit 100. In FIG. 10, for the key code (e), "addition" is common to all databases, but for the other key codes, there is a mismatch in the contents of the comparison result storage units of some databases, so that the mismatched contents are output. Have been. By outputting the content of the mismatch to the update failure output unit 110, an update failure due to the data update work can be found.

【0032】以上に示したように、この実施例2によれ
ば、更新前のデータベースとして各データベースに共通
に更新前のキーコード列のみを比較の対象としているの
で、データベースの比較に際して、旧データベースを保
持しておく必要がなく、比較のための記憶容量を非常に
小さく構成できるという効果がある。また、データベー
スが3つ以上の場合においても、各データベースに共通
のキーコードを用いて、各データベース間の関連づけを
行ってデータベースの更新不良部の検出が行えるので、
検出処理が簡単に行えるという効果がある。
As described above, according to the second embodiment, since only the key code sequence before the update is commonly used as the database before the update in each database, the old database is used when comparing the databases. Is not required to be stored, and the storage capacity for comparison can be made very small. Further, even in the case where there are three or more databases, it is possible to detect a defective update portion of the database by associating the databases with each other using a common key code for each database.
There is an effect that the detection processing can be easily performed.

【0033】実施例3. 図11は、この発明の実施例3を示すデータベース比較
方法の構成図であり、実施例2の各データベースのキー
コードに、そのキーコードに対応するレコードを更新し
た時点を示す更新日時21t、22tを設け、さらに、
各データベース部に共通の更新前のキーコード列60の
キーコードに対応して更新時点を示す更新日時60tを
設けたものである。この実施例3においても、実施例2
と同様に、それぞれの更新前のデータベースは、互いの
整合性を合わされており、同じキーコード列を有するこ
とが前提となる。
Embodiment 3 FIG. FIG. 11 is a configuration diagram of a database comparison method according to the third embodiment of the present invention. In the second embodiment, the key codes of the respective databases have update dates / times 21t and 22t indicating the point in time when the record corresponding to the key code is updated. And,
An update date and time 60t indicating the update time point is provided corresponding to the key code of the key code string 60 before update common to each database unit. Also in the third embodiment, the second embodiment
Similarly to the above, it is assumed that the databases before updating are matched with each other and have the same key code string.

【0034】以下、図12〜図15に従って、この実施
例3のデータベース比較方法を説明する。まず、図12
のフローチャートに従って、データベースの更新前と更
新後の相違点を比較する。図12は図11の比較部71
および72の動作を示すもので、第1のデータベース部
を例にとって説明すると、図のステップS301におい
て、新旧データベースのキーコード列21とキーコード
列60とを比較する。ステップ302〜ステップ305
は実施例2の場合と全く同じであり、互いのキーコード
の有無を比較し、S303で追加を、S305で削除を
それぞれの相違点として検出し、そのキーコードを示す
コードと種別”追加”または”削除”を比較結果格納部
81に記憶する。ただし、実施例2の場合と異なり、同
じキーコードが存在するときは、ステップS306でそ
のキーコードの更新日時21tと60tとを比較して、
更新日時が異なれば、そのキーコードを示すコードと種
別”変更有”を比較結果格納部81に記憶する(ステッ
プS308)。また、第2のデータベース部についての
処理も上記と同じである。
The database comparison method according to the third embodiment will be described below with reference to FIGS. First, FIG.
The differences before and after updating the database are compared in accordance with the flowchart of FIG. FIG. 12 shows the comparison unit 71 of FIG.
In the first database section, the key code sequence 21 and the key code sequence 60 of the new and old databases are compared in step S301. Step 302 to step 305
Is exactly the same as in the second embodiment, the presence or absence of each other's key code is compared, the addition is detected in S303, and the deletion is detected in S305 as the respective differences, and the code indicating the key code and the type “add” are detected. Alternatively, “delete” is stored in the comparison result storage unit 81. However, unlike the case of the second embodiment, when the same key code exists, the update date and time 21t and 60t of the key code are compared in step S306, and
If the update date and time are different, the code indicating the key code and the type “changed” are stored in the comparison result storage unit 81 (step S308). The processing for the second database unit is the same as above.

【0035】次に図13のフローチャートに従って、比
較結果格納部81および82に記録された更新前と更新
後のデータベースの相違点を、結果比較部90で比較
し、その不一致内容を不一致内容格納部100を介し
て、更新不良出力部110に出力する。ステップS31
1,S314またはS317では、比較結果格納部81
および82に記録された全てのキーコードを各種別”追
加”,”削除”または”変更有”ごとに比較し、両者に
食い違いがあれば”追加NG”(ステップS31
3),”削除NG”(ステップS316)または”変更
NG”(ステップS319)として、そのキーコードを
示すコードと不良内容とデータベースごとの有無を不一
致内容格納部100に記憶し、最終的にこの不一致内容
を更新不良出力部110に出力する(ステップS32
0)。
Next, in accordance with the flowchart of FIG. 13, the difference between the pre-update and post-update databases recorded in the comparison result storage units 81 and 82 is compared by the result comparison unit 90, and the unmatched content is compared with the unmatched content storage unit. The data is output to the update failure output unit 110 via the control unit 100. Step S31
1, S314 or S317, the comparison result storage unit 81
All the key codes recorded in and 82 are compared for each type of "addition", "deletion" or "changed", and if there is a discrepancy between them, "additional NG" (step S31)
3) As "deletion NG" (step S316) or "change NG" (step S319), the code indicating the key code, the defect content, and the presence / absence of each database are stored in the non-coincidence content storage unit 100. The inconsistency is output to the update failure output unit 110 (step S32).
0).

【0036】例えば、図14の(A1),(B)および
(C)に示したデータ例でみると、(A1)は更新前の
第1の旧データベースからキーコード列と更新日時のみ
を取り出したもので、これが更新前のキーコード列60
と更新日時60tとなる。また、(B),(C)はそれ
ぞれ第1,第2の更新後の新データベース11,12で
あり、それぞれ(A1)と(B),(A1)と(C)を
図12のフローチャートに従って比較した結果が図15
の(A),(B)となって比較結果格納部81,82に
記憶される。次に、図13のフローチャートに従って、
図15の(A),(B)を比較した結果が(C)であ
り、不一致内容格納部100に記憶される。この不一致
内容を更新不良出力部110に出力することにより、デ
ータ更新作業による更新不良が発見できる。
For example, in the data example shown in (A1), (B) and (C) of FIG. 14, (A1) extracts only the key code string and the update date and time from the first old database before update. This is the key code sequence 60 before the update.
And the update date and time 60t. (B) and (C) are new databases 11 and 12 after the first and second updates, respectively. (A1) and (B), and (A1) and (C) are respectively shown in accordance with the flowchart of FIG. FIG. 15 shows the comparison result.
(A) and (B) are stored in the comparison result storage units 81 and 82. Next, according to the flowchart of FIG.
The result of comparing (A) and (B) in FIG. 15 is (C), which is stored in the mismatch content storage unit 100. By outputting the content of the mismatch to the update failure output unit 110, an update failure due to the data update work can be found.

【0037】また、図14の(A2)のように、更新前
の第1の旧データベースからキーコード列のみを取り出
し、この取り出した時点を示す保存日時を一緒に記録し
たものをキーコード列60と保存日時60tとしてもよ
い。この場合、図12のフローチャートにおいて、ステ
ップS307で更新日時を比較する際に、この旧データ
ベースの保存日時60tと該当のキーコードの更新日時
21tを比較して、更新日時21tの方が新しければ”
変更有”とすれば、同様の処理が可能となる。
As shown in (A2) of FIG. 14, only the key code sequence is extracted from the first old database before updating, and the storage date and time indicating the extracted time is recorded together with the key code sequence 60. And the storage date and time 60t. In this case, in the flowchart of FIG. 12, when comparing the update date and time in step S307, the storage date and time 60t of the old database is compared with the update date and time 21t of the corresponding key code, and if the update date and time 21t is newer, "
If "changed", the same processing can be performed.

【0038】以上に示したように、この実施例3によれ
ば、更新前のデータベースとして各データベースに共通
に更新前のキーコード列と更新日時のみを比較の対象と
しているので、データベースの比較に際して、旧データ
ベースをそのまま保持しておく必要がなく、比較のため
の記憶容量を非常に小さく構成できるという効果があ
る。また、更新前のキーコード列のみを使用する実施例
2の場合に比較して、レコードの内容に変更があったも
のに対しても、整合性の検出が可能であるという効果が
ある。
As described above, according to the third embodiment, as the pre-update database, only the key code sequence before the update and the update date and time are subject to comparison in common in each database. There is no need to keep the old database as it is, and the storage capacity for comparison can be made very small. Further, as compared with the case of the second embodiment using only the key code sequence before the update, there is an effect that the consistency can be detected even for the record whose contents are changed.

【0039】先行例1. 以上の実施例1〜実施例3に示したように、更新前のデ
ータベースと更新後のデータベースをキーコードごとに
比較して、更新処理の整合性をチェックする方法は、更
新処理によって更新したデータをトランザクションファ
イルとして生成する単独のデータベースに適用すること
も可能であり、その例を先行例1に示す。
Previous Example 1 As described in the first to third embodiments, the method of comparing the database before update and the database after update for each key code and checking the consistency of the update process is based on the data updated by the update process. it is also possible to apply to a single database to generate a transaction file, examples of which are illustrated in the preceding example 1.

【0040】図16は、この発明の先行例1を示すデー
タベース比較方法の構成図であり、図において、10
は、更新後の新データベース、20はこのデータベース
10のキーコード列、30はキーコード列20の個々の
キーコードに対応する詳細データからなるレコード列、
40は前回比較時点の旧データベース、50,60は旧
データベース40のそれぞれキーコード列とレコード
列、70はデータベース10および40をキーコードご
とに比較する比較部、80はその結果の相違点を記憶す
る比較結果格納部、120はこのデータベースの更新デ
ータを示す、キーコードと更新日時と更新種別とレコー
ドとからなるトランザクションデータを更新の都度蓄積
記録したトランザクションファイル、130はトランザ
クションファイル120から、旧データベース40を保
存した前回比較時点から現在までに対応する更新データ
のキーコードと更新種別とだけを抜き出す比較対象キー
コード抽出部、140はこの比較対象キーコードを記憶
する比較対象キーコード格納部、90は比較対象キーコ
ード格納部140の更新データと比較結果格納部80に
記憶された新旧データベースの相違点を比較する結果比
較部、100は結果比較部90の結果である不一致内容
を記憶する不一致内容格納部、110はこの不一致内容
に基づきデータベースの更新不良を出力する更新不良出
力部である。
FIG. 16 is a block diagram of a database comparison method showing the first embodiment of the present invention.
Is a new database after the update, 20 is a key code sequence of the database 10, 30 is a record sequence including detailed data corresponding to each key code of the key code sequence 20,
40 is the old database at the time of the previous comparison, 50 and 60 are the key code strings and record strings of the old database 40, 70 is a comparing unit that compares the databases 10 and 40 for each key code, and 80 is the difference between the results. A comparison result storage unit 120 is a transaction file storing transaction data including a key code, an update date and time, an update type, and a record each time an update is performed on the database. The comparison target key code extraction unit 140 extracts only the key code and the update type of the update data corresponding to the time from the previous comparison time point when the data 40 is stored to the present time, and a comparison target key code storage unit 140 that stores the comparison target key code. Is the key code storage unit 140 for comparison. A result comparison unit that compares the difference between the new data and the old and new databases stored in the comparison result storage unit 80, 100 is a mismatch content storage unit that stores the mismatch content as a result of the result comparison unit 90, and 110 is the mismatch content. An update failure output section that outputs a database update failure based on the update failure.

【0041】以下、図17〜図21に従って、この先行
例1のデータベース比較方法を説明する。まず、図17
のフローチャートに従って、データベースの更新前と更
新後の相違点を、トランザクションファイル120から
比較対象キーコード抽出部130が選択したキーコード
に関して比較する。図17は、図16の比較対象キーコ
ード抽出部130と比較部70の動作を示すもので、図
のステップS401およびS402で、例えば図19
(A)に示すようなデータからなるトランザクションフ
ァイル120から、更新日時が、前回比較日時より新し
いトランザクションデータだけを抽出し、比較対象キー
コード格納部140に、そのキーコードを示すコードと
更新種別とを記憶する。ステップS403で、この選択
されたトランザクションデータのキーコードに対し、更
新後の新データベース10と旧データベース40との間
で、互いのキーコードの有無を比較し、S405で追加
を、S407で削除をそれぞれの相違点として検出し、
そのキーコードを示すコードと種別”追加”または”削
除”を比較結果格納部80に記憶する。同じキーコード
が存在するときは、ステップS408でそのキーコード
に対応するレコード30および50を比較し、内容に変
更があればステップS410で、種別”変更有”を比較
結果格納部80に記憶する(ステップS410)。以上
の処理を、トランザクションファイル120の全データ
について実施し、終了後にステップS412で、トラン
ザクションファイル120の前回比較日時を更新する。
[0041] Hereinafter, according to FIGS. 17 to 21, this prior
The database comparison method of Example 1 will be described. First, FIG.
According to the flowchart of FIG. 7, the differences between the database before and after the update are compared with respect to the key code selected by the comparison target key code extraction unit 130 from the transaction file 120. FIG. 17 shows the operation of the comparison target key code extraction unit 130 and the comparison unit 70 of FIG. 16, and in steps S401 and S402 of FIG.
(A) Extracts only the transaction data whose update date and time is newer than the previous comparison date and time from the transaction file 120 including the data as shown in (A), and stores the code indicating the key code, the update type, and the Is stored. In step S403, the key codes of the selected transaction data are compared with each other between the updated new database 10 and the old database 40 for the presence or absence of the key codes, and addition is performed in S405 and deletion is performed in S407. Detect each difference,
The code indicating the key code and the type “add” or “delete” are stored in the comparison result storage unit 80. If the same key code exists, the records 30 and 50 corresponding to the key code are compared in step S408, and if the content is changed, the type “changed” is stored in the comparison result storage unit 80 in step S410. (Step S410). The above processing is performed for all data in the transaction file 120, and after the end, the previous comparison date and time of the transaction file 120 is updated in step S412.

【0042】次に図18のフローチャートに従って、比
較結果格納部80に記憶された新旧データベースの相違
点と、トランザクションファイル120から抽出された
比較対象キーコード格納部140に記録されたデータと
を結果比較部90で比較し、その不一致内容を不一致内
容格納部100を介して、更新不良出力部110に出力
する。即ち、図18のステップS421で、種別が”追
加”である比較結果格納部80に記憶されたキーコード
と、比較対象キーコード格納部140に記憶されたキー
コードとを比較し、不一致があれば”追加NG”とし
て、そのキーコードを示すコードと不良内容を不一致内
容格納部100に記憶する(ステップS423)。同様
に、種別”削除”をステップS424で比較し、不一致
があれば”削除NG”として(ステップS426)、ま
た、種別”変更有”をステップS427で比較し、不一
致があれば”変更NG”として(ステップS429)、
そのキーコードを示すコードと不良内容を不一致内容格
納部100に記憶する。最終的にステップS430で、
この不一致内容を更新不良出力部110に出力する。
Next, according to the flowchart of FIG. 18, the difference between the new and old databases stored in the comparison result storage unit 80 and the data recorded in the comparison target key code storage unit 140 extracted from the transaction file 120 are compared. The difference is compared by the unit 90, and the mismatch content is output to the update failure output unit 110 via the mismatch content storage unit 100. That is, in step S421 in FIG. 18, the key code stored in the comparison result storage unit 80 whose type is "added" is compared with the key code stored in the comparison target key code storage unit 140. For example, as "additional NG", the code indicating the key code and the defect content are stored in the mismatch content storage unit 100 (step S423). Similarly, the type “delete” is compared in step S424. If there is a mismatch, the type is “deleted NG” (step S426). If the type is “changed” in step S427, the type is “change NG”. (Step S429),
The code indicating the key code and the defect content are stored in the mismatch content storage unit 100. Finally, in step S430,
This mismatch content is output to the update failure output unit 110.

【0043】例えば、図19において、(A)は、トラ
ンザクションファイル120の例であり、図17のフロ
ーチャートに従って、比較対象キーボード130が比較
対象キーコードを抜き出し、比較対象キーコード格納部
140に記憶した例が(B)である。トランザクション
ファイル120の先頭には、(A)に示すように、前回
にデータベースの比較を行った比較日時が格納されてお
り、この例では、キーコード(f)の更新日時が比較日
時より古く、キーコード(b)以下が比較対象となる。
For example, in FIG. 19, (A) shows an example of the transaction file 120, and the comparison target keyboard 130 extracts the comparison target key code and stores it in the comparison target key code storage unit 140 according to the flowchart of FIG. An example is (B). At the beginning of the transaction file 120, as shown in (A), the comparison date and time when the database was compared last time is stored. In this example, the update date and time of the key code (f) is older than the comparison date and time. The key codes (b) and below are comparison targets.

【0044】図20の(A),(B)はそれぞれ前回比
較時点の旧データベース40と、更新後の新データベー
ス10であり、図17のフローチャートに従って、これ
らのデータベースが比較部70で比較され、比較された
結果が図21の(A)となる。さらに、この結果と図1
9(B)に示す比較対象キーコードとを図18のフロー
チャートに従って比較し、不一致内容を図21(B)の
ように出力する。
FIGS. 20A and 20B show the old database 40 at the time of the previous comparison and the new database 10 after the update, respectively. These databases are compared by the comparing unit 70 according to the flowchart of FIG. The result of the comparison is shown in FIG. Furthermore, this result and FIG.
The key code is compared with the comparison target key code shown in FIG. 9B according to the flowchart of FIG.

【0045】以上に示したように、この先行例1によれ
ば、トランザクションファイルを参照して、更新のあっ
た部分だけの更新結果を比較確認するようにしたので、
比較の処理に要する時間を大幅に削減できるという効果
がある。
As described above, according to the preceding example 1 , the update result of only the updated portion is compared and confirmed with reference to the transaction file.
This has the effect of significantly reducing the time required for the comparison process.

【0046】実施例4. 上記の実施例1〜実施例3においては、同時にデータ改
造を行う複数のデータベ−スに対し、更新前のデ−タベ
−スと更新後のデ−タベ−スをキ−コ−ドごとに比較し
て、複数のデータベース間の更新処理の整合性をチェッ
クする方法を示したが、この実施例4では、随時更新処
理を行う複数のデータベースに対し、前回比較時点の旧
データベースと更新内容を保存するトランザクションフ
ァイルとから、その処理の整合性を検証するためのデー
タベース比較方法を示すものである。この実施例4
は、同じキーコードを有する複数のデータベースがあ
り、それぞれのデータベースの更新は同時に全てのデー
タベースに反映されるように構成されていることが前提
となる。
Embodiment 4 FIG. In the first to third embodiments, for a plurality of databases for which data remodeling is performed at the same time, a database before update and a database after update are provided for each key code. A method of comparing and checking the consistency of the update processing between a plurality of databases has been described. In the fourth embodiment , the old database and the update contents at the time of the last comparison are compared with the plurality of databases that perform the update processing as needed. It shows a database comparison method for verifying the consistency of the processing from the stored transaction file. In the fourth embodiment , it is assumed that there are a plurality of databases having the same key code, and that the update of each database is simultaneously reflected in all the databases.

【0047】図22は、この発明の実施例4を示すデー
タベース比較方法の構成図であり、実施例1のデータベ
ースにトランザクションファイルを設け、互いのデータ
ベースの整合性をチェックする際に、それぞれのデータ
ベースの比較時点の違いによって発生する相違点をトラ
ンザクションファイルによって修正するようにしたもの
である。また、実施例1〜実施例3と異なり、それぞれ
のデータベース部および結果比較部を別々の計算機に設
けた例で示している。
FIG. 22 is a configuration diagram of a database comparison method showing a fourth embodiment of the present invention. When a transaction file is provided in the database of the first embodiment and each database is checked for consistency, the respective databases are compared. Are modified by using a transaction file. Further, unlike the first to third embodiments, an example is shown in which each database unit and result comparison unit are provided in separate computers.

【0048】図において、1は計算機(1)内に設けら
れた第1のデータベース部、2は計算機(2)内に設け
られた第2のデータベース部、3は計算機(3)内に設
けられたデータベース比較部、比較結果格納部81,8
2はそれぞれ比較日時81a,82aと比較結果81
b,82bからなり、150は結果比較部90で比較す
る比較結果格納部81と82の相違点を記憶する相違点
格納部、160はこの相違点をトランザクションファイ
ル122と比較する相違点確認部であり、他の符号は実
施例1の同一符号のものと同一もしくは同等のものを示
す。
In the figure, 1 is a first database unit provided in the computer (1), 2 is a second database unit provided in the computer (2), and 3 is provided in the computer (3). Database comparison unit, comparison result storage units 81 and 8
2 is the comparison date and time 81a, 82a and the comparison result 81, respectively.
b, 82b, 150 is a difference storage unit that stores the differences between the comparison result storage units 81 and 82 that are compared by the result comparison unit 90, and 160 is a difference confirmation unit that compares this difference with the transaction file 122. The other reference numerals are the same as or equivalent to those of the first embodiment.

【0049】以下、図23〜図27に従って、この実施
例4のデータベース比較方法を説明する。まず、図23
のフローチャートに従って、前回比較時点の旧データベ
ースと、現時点の新データベースとの相違点を比較す
る。図23は図22の比較部71または72の動作を示
すもので、第1のデータベース部を例にとって説明する
と、図のステップS501において、新旧データベース
のキーコード列21とキーコード列61とを比較する。
実施例1の場合と同様、互いのキーコードの有無を比較
し、S503で追加を、S505で削除をそれぞれの相
違点として検出し、そのキーコードを示すコードと種
別”追加”または”削除”を比較結果格納部81に記憶
する。また、新旧データベースの双方に同じキーコード
が存在する場合はそのレコード31と51とを比較し
(ステップS506)、レコード内容に変更があれば、
そのキーコードを示すコードと種別”変更有”を比較結
果格納部81に記憶する。さらに、全キーコードについ
て比較したのち、このときの時刻を比較日時81aとし
て比較結果格納部81に記憶する。第2のデータベース
部についても同様に処理し、新旧の相違点を比較結果格
納部82に記憶する。
Hereinafter, this embodiment will be described with reference to FIGS.
The database comparison method of Example 4 will be described. First, FIG.
The differences between the old database at the time of the previous comparison and the new database at the current time are compared according to the flowchart of FIG. FIG. 23 shows the operation of the comparison unit 71 or 72 of FIG. 22. The first database unit will be described as an example. In step S501, the key code sequence 21 and the key code sequence 61 of the new and old databases are compared. I do.
As in the case of the first embodiment, the presence / absence of each other's key code is compared, the addition is detected in S503, and the deletion is detected as a difference in S505, and the code indicating the key code and the type “add” or “delete” are detected. Is stored in the comparison result storage unit 81. If the same key code exists in both the new and old databases, the records 31 and 51 are compared (step S506).
The code indicating the key code and the type “changed” are stored in the comparison result storage unit 81. Further, after comparing all key codes, the time at this time is stored in the comparison result storage unit 81 as the comparison date and time 81a. The same processing is performed for the second database unit, and the difference between the new and old databases is stored in the comparison result storage unit 82.

【0050】次に図24のフローチャートに従って、比
較結果格納部81および82に記録された更新前と更新
後のデータベースの相違点を、結果比較部90で比較
し、その不一致内容を相違点格納部150に記憶する。
ステップS511では、比較結果格納部81および82
に記録された全てのキーコードを各種別”追加”,”削
除”および”変更有”ごとに比較し、一部にでも食い違
いがあれば”追加NG”(ステップS513),”削除
NG”(ステップS516)または”変更NG”(ステ
ップS519)として、そのキーコードを示すコードと
不一致内容とデータベースごとの有無とを相違点格納部
150に記憶する(ステップS520)。このとき、ス
テップS521で、それぞれのデータベースの比較日時
81aおよび82aも、合わせて相違点格納部150に
記憶する。
Next, according to the flowchart of FIG. 24, the difference between the pre-update and post-update databases recorded in the comparison result storage units 81 and 82 is compared by the result comparison unit 90, and the inconsistent content is compared with the difference storage unit. 150.
In step S511, the comparison result storage units 81 and 82
Are compared for each type of "addition", "deletion" and "changed". If there is any discrepancy, "additional NG" (step S513), "deletion NG" ( As step S516) or “change NG” (step S519), the code indicating the key code, the inconsistent content, and the presence / absence of each database are stored in the difference storage unit 150 (step S520). At this time, the comparison dates and times 81a and 82a of the respective databases are also stored in the difference storage unit 150 in step S521.

【0051】さらに、図25のフローチャートに従っ
て、相違点格納部150の記憶内容とトランザクション
ファイル122とを比較する。まず、ステップS531
では、それぞれのデータベースの比較日時81aと82
aとを比較し、比較日時が一致しておれば、ステップS
533で全てのNG情報を不一致内容格納部100に記
憶してステップS540で更新不良出力部110に不一
致内容を出力する。また、ステップS532で比較日時
に差がある場合は、ステップS534で相違点格納部1
50の記憶内容とトランザクションファイル122とを
キーコードごとに比較する。トランザクションデータの
更新日時が上記比較日時の差の間にあり(ステップS5
35)、かつ相違点格納部150に記憶された不一致内
容の種別が同じ(ステップS537)場合は、この不一
致内容は、比較時点が異なることに起因した不一致とし
て不良内容としては記憶せず、その他の場合についての
み、ステップS536およびS538でNG情報を不一
致内容格納部100に記憶する。全キーコードについて
比較後、最後にステップS540で更新不良出力部11
0に不一致内容を出力する。
Further, the contents stored in the difference storage unit 150 and the transaction file 122 are compared in accordance with the flowchart of FIG. First, step S531
Then, the comparison date and time 81a and 82 of each database
a, and if the comparison date and time match, step S
At 533, all NG information is stored in the mismatch content storage unit 100, and at step S540, the mismatch content is output to the update failure output unit 110. If there is a difference in the comparison date and time in step S532, the difference storage unit 1 is determined in step S534.
The storage contents of the transaction file 122 and the contents of the transaction file 122 are compared for each key code. The update date and time of the transaction data is between the differences of the comparison date and time (step S5
35) If the type of the mismatched content stored in the difference storage unit 150 is the same (step S537), the mismatched content is not stored as the mismatched content due to the difference in the comparison time point, and is not stored as the defective content. Only in the case of NG, the NG information is stored in the mismatch content storage unit 100 in steps S536 and S538. After comparing all the key codes, finally, in step S540, the update failure output unit 11
Outputs non-matching contents to 0.

【0052】例えば、図26および図27のデータ例で
みると、第1のデータベース部の新旧データベース(図
26の(B)および(A))と第2のデータベース部の
新旧データベース(図26の(D)および(C))のそ
れぞれを比較部71および72で比較した比較結果格納
部81および82の内容は図27の(A),(B)のよ
うになり、この2つの比較結果の相違点を抽出した結果
が図27の(C)である。この結果を第2のデータベー
スのトランザクションファイル122のデータ例を示す
図26の(E)により図25のフローチャートに従って
処理すると、キーコード(b)の削除NGが両者の比較
日時の差の間にあり、不一致内容の種別も同じであるの
で、これを記憶しないで、結果として図27の(D)に
示す不良内容が得られる。
For example, referring to the data examples of FIGS. 26 and 27, the old and new databases ((B) and (A) of FIG. 26) of the first database unit and the old and new databases (FIG. 26 of FIG. 26) of the second database unit (D) and (C) are compared by the comparison units 71 and 72, respectively. The contents of the comparison result storage units 81 and 82 are as shown in FIGS. 27A and 27B. FIG. 27C shows the result of extracting the differences. When this result is processed in accordance with the flowchart of FIG. 25 according to (E) of FIG. 26 showing a data example of the transaction file 122 of the second database, the deletion NG of the key code (b) is between the difference between the comparison date and time. Since the type of the unmatched content is the same, this is not stored, and as a result, the fault content shown in FIG. 27D is obtained.

【0053】以上に示したように、この実施例4によれ
ば、随時更新処理を行う複数のデータベースに対し、ト
ランザクションファイルを比較結果確認に用いることに
より、比較するタイミングが異なる場合においても更新
不良部を検出できるという効果がある。また、この実施
例では、トランザクションファイルを第2のデータベー
ス部に置いた場合を示したが、第1のデータベース部に
も同様のトランザクションファイルを設ければ、比較の
順番を意識しなくても同様な更新不良部の検出が行え
る。
As described above, according to the fourth embodiment , the transaction file is used for confirming the comparison result with respect to a plurality of databases for which the update process is performed at any time, so that even if the comparison timing is different, the update failure occurs. There is an effect that a part can be detected. Further, in this embodiment, the case where the transaction file is placed in the second database unit has been described. However, if a similar transaction file is provided in the first database unit, the same operation can be performed without being aware of the order of comparison. Detection of a defective update portion.

【0054】実施例5. この実施例5は、先行例1および実施例4において示さ
れたトランザクションファイルを効率的に保持するため
のトランザクションファイルのデータ圧縮方法の実施例
について示したものである。
Embodiment 5 FIG. The fifth embodiment shows an embodiment of a transaction file data compression method for efficiently holding the transaction file shown in the first and fourth embodiments .

【0055】図28は、この実施例5を示すトランザク
ションファイルの圧縮方法の構成図を示したものであ
り、図において、120は圧縮前のトランザクションフ
ァイル、120a,120b,120cおよび120d
はこのトランザクションファイル120の構成要素であ
り、データベースの更新1件ごとの更新内容を示すトラ
ンザクションデータごとに設けられ、データベースの更
新内容を示すそれぞれキーコード,更新日時,更新種別
およびレコード、170はこのトランザクションファイ
ルの圧縮可能な期間を入力するための圧縮可能期間入力
部、180はトランザクションファイル120の中から
圧縮可能な更新日時120bを持つデータを抜き出して
同一キーコードについて複数の更新があったものをキー
コード格納部190に格納する比較部、200はキーコ
ード格納部190に格納されたデータを元にトランザク
ションファイル120を圧縮する圧縮部である。
FIG. 28 is a diagram showing the configuration of a method of compressing a transaction file according to the fifth embodiment . In FIG. 28, reference numeral 120 denotes a transaction file before compression, 120a, 120b, 120c and 120d.
Are the components of the transaction file 120, and are provided for each transaction data indicating the update content of each database update. The key code, the update date and time, the update type and the record indicating the update content of the database are respectively 170. A compressible period input unit 180 for inputting a compressible period of the transaction file, 180 extracts data having a compressible update date and time 120b from the transaction file 120 and deletes data having a plurality of updates for the same key code. A comparison unit 200 stores the key code storage unit 190, and a compression unit 200 compresses the transaction file 120 based on the data stored in the key code storage unit 190.

【0056】次に、図29〜図33に従って、この実施
例5のトランザクションファイルの圧縮方法について説
明する。まず、図29のフローチャートに従って、圧縮
可能日時を圧縮可能期間入力部170より入力する(ス
テップS601)。トランザクションファイル120の
中から、この期間に相当するトランザクションデータを
更新日時120bを参照してステップS602で抜き出
し、キーコード,更新種別,トランザクションデータの
データNO(通し番号)を、同一キーコードごとに整理
してキーコード格納部190に記憶する(ステップS6
03)。次に、この格納データから同一キーコードに対
して複数の更新のあったものだけを残し他を削除する
(ステップS606)。
Next, this embodiment will be described with reference to FIGS.
A method of compressing the transaction file of Example 5 will be described. First, the compressible date and time are input from the compressible period input unit 170 according to the flowchart of FIG. 29 (step S601). The transaction data corresponding to this period is extracted from the transaction file 120 in step S602 with reference to the update date and time 120b, and the key code, the update type, and the data NO (serial number) of the transaction data are arranged for each same key code. To the key code storage unit 190 (step S6).
03). Next, from the stored data, only those having a plurality of updates for the same key code are left, and others are deleted (step S606).

【0057】このキーコード格納部190に記憶された
データから、図30のフローチャートに従って、トラン
ザクションファイル120のデータ圧縮を行う。ステッ
プS611において、キーコードごとにキーコード格納
部190に記憶されたデータを読み出し、更新種別に削
除があれば(ステップS612)、そのキーコードの更
新種別が”変更”のトランザクションデータをトランザ
クションファイルから削除する(ステップS613)。
また、更新種別に”追加”があり、”削除”がなければ
(ステップS614)、ステップS615およびS61
6にて”追加”のレコードに”変更”のレコードの内容
を書き込み、”変更”のトランザクションデータを削除
する。さらに、更新種別に”変更”だけがあるものに対
しては、最後の”変更”のトランザクションデータのみ
を残し、他を削除する(ステップS618)。このよう
にして、トランザクションファイルから、削除されるト
ランザクションデータを抜き出して、空きデータを圧縮
する(ステップS620)。
From the data stored in the key code storage section 190, the data of the transaction file 120 is compressed according to the flowchart of FIG. In step S611, the data stored in the key code storage unit 190 is read for each key code, and if there is a deletion in the update type (step S612), the transaction data with the update type of the key code "change" is read from the transaction file. It is deleted (step S613).
If "update" is included in the update type and "delete" is not included (step S614), steps S615 and S61 are performed.
At step 6, the contents of the "change" record are written to the "add" record, and the "change" transaction data is deleted. Further, for the update type having only "change", only the last "change" transaction data is left, and the others are deleted (step S618). In this way, the transaction data to be deleted is extracted from the transaction file, and the free data is compressed (step S620).

【0058】例えば、図31の(A)に示すトランザク
ションファイルを例にして、説明すると、図31の
(B)に示される圧縮可能日時で、圧縮可能なトランザ
クションデータのみを抜き出して、同一キーコードごと
に整理したデータ例が図32の(A)であり、このデー
タの内、同一キーコードに複数の更新処理が行われたも
ののみを抜き出したデータ例が図32の(B)である。
このデータに対し、図30のフローチャートに従って、
処理した結果を示す表が図33であり、最終的にトラン
ザクションファイルを圧縮した結果が図31の(C)の
ようになる。
For example, taking the transaction file shown in FIG. 31A as an example, to explain, only the compressible transaction data is extracted at the compressible date and time shown in FIG. FIG. 32 (A) shows an example of data arranged for each, and FIG. 32 (B) shows an example of data obtained by extracting only data obtained by performing a plurality of update processes on the same key code.
According to the flowchart of FIG.
FIG. 33 is a table showing the result of the processing, and the result of finally compressing the transaction file is as shown in FIG.

【0059】以上のように、この実施例に依れば、先行
例1および実施例4に示したトランザクションファイル
を圧縮して保存することができ、トランザクションファ
イルのための記憶容量を削減できるという効果がある。
[0059] As described above, according to this embodiment, the prior
The transaction file shown in Example 1 and Example 4 can be compressed and stored, and the storage capacity for the transaction file can be reduced.

【0060】[0060]

【発明の効果】この発明は、以上に説明したように構成
されているので、以下に示すような効果を奏する。
Since the present invention is configured as described above, it has the following effects.

【0061】この発明の請求項1に係わるデータベース
比較方法は、データベースの内容が異なっていても、両
者に共通のキーコードを用いて、各データベース間の関
連づけを行ってデータベースの更新不良部の検出が行え
るので、検出処理が簡単であり、また、人手を介さずに
更新不良部のみを出力するようにしたので、確認作業の
時間を大幅に削減できるという効果がある。
In the database comparison method according to the first aspect of the present invention, even if the contents of the databases are different, the databases are associated with each other using a common key code to detect a defective update portion of the database. Can be performed, the detection process is simple, and only the defective update portion is output without manual intervention, so that the time required for the checking operation can be greatly reduced.

【0062】この発明の請求項2に係わるデータベース
比較方法は、更新前のデータベースとして各データベー
スに共通に更新前のキーコード列のみを比較の対象とし
ているので、データベースの比較に際して、旧データベ
ースを保持しておく必要がなく、比較のための記憶容量
を非常に小さく構成できるという効果がある。また、デ
ータベースの内容が異なっていても、両者に共通のキー
コードを用いて、各データベース間の関連づけを行って
データベースの更新不良部の検出が行えるので、検出処
理が簡単であり、また、人手を介さずに更新不良部のみ
を出力するようにしたので、確認作業の時間を大幅に削
減できるという効果がある。
In the database comparison method according to the second aspect of the present invention, since only the key code sequence before update is commonly used as the database before update for each database, the old database is retained when the databases are compared. There is no need to keep this, and the storage capacity for comparison can be made very small. In addition, even if the contents of the databases are different, it is possible to detect a defective update portion of the database by associating the databases with each other using a common key code, so that the detection process is simple, Because only the defective update portion is output without going through the process, there is an effect that the time for the checking operation can be greatly reduced.

【0063】この発明の請求項3に係わるデータベース
比較方法は、更新前のデータベースとして各データベー
スに共通に更新前のキーコード列と更新日時のみを比較
の対象としているので、データベースの比較に際して、
旧データベースをそのまま保持しておく必要がなく、比
較のための記憶容量を非常に小さく構成できるという効
果がある。また、更新前のキーコード列のみを使用する
場合に比較して、レコードの内容に変更があったものに
対しても、整合性の検出が可能であるという効果があ
る。さらに、データベースの内容が異なっていても、両
者に共通のキーコードを用いて、各データベース間の関
連づけを行ってデータベースの更新不良部の検出が行え
るので、検出処理が簡単であり、また、人手を介さずに
更新不良部のみを出力するようにしたので、確認作業の
時間を大幅に削減できるという効果がある。
In the database comparison method according to the third aspect of the present invention, since only the key code string before update and the update date and time are to be compared in common as the database before update in each database, when comparing the databases,
There is no need to keep the old database as it is, and the storage capacity for comparison can be made very small. In addition, as compared with the case where only the key code sequence before the update is used, there is an effect that the consistency can be detected even for the record whose contents are changed. Further, even if the contents of the databases are different, the database can be associated with each other using the common key code to detect the defective update portion of the database, so that the detection process is simple, and Because only the defective update portion is output without going through the process, there is an effect that the time for the checking operation can be greatly reduced.

【0064】この発明の請求項4に係わるデータベース
比較方法は、更新前のデータベースとして各データベー
スに共通に更新前のキーコード列と、このキーコード列
を保存した保存日時とのみを比較の対象としているの
で、データベースの比較に際して、旧データベースをそ
のまま保持しておく必要がなく、比較のための記憶容量
を非常に小さく構成できるという効果がある。また、更
新前のキーコード列のみを使用する場合に比較して、レ
コードの内容に変更があったものに対しても、整合性の
検出が可能であるという効果がある。さらに、データベ
ースの内容が異なっていても、両者に共通のキーコード
を用いて、各データベース間の関連づけを行ってデータ
ベースの更新不良部の検出が行えるので、検出処理が簡
単であり、また、人手を介さずに更新不良部のみを出力
するようにしたので、確認作業の時間を大幅に削減でき
るという効果がある。
According to a fourth aspect of the present invention, in the database comparison method, only the key code sequence before the update and the storage date and time when the key code sequence was stored are compared as the databases before the update. Therefore, when comparing databases, it is not necessary to keep the old database as it is, and the storage capacity for comparison can be made very small. In addition, as compared with the case where only the key code sequence before the update is used, there is an effect that the consistency can be detected even for the record whose contents are changed. Further, even if the contents of the databases are different, the database can be associated with each other using the common key code to detect the defective update portion of the database, so that the detection process is simple, and Because only the defective update portion is output without going through the process, there is an effect that the time for the checking operation can be greatly reduced.

【0065】この発明の請求項5に係わるデータベース
比較方法は、データベースの更新前と更新後とを、キー
コードごとに、追加,削除,および変更有の3種類の更
新種別に分類して比較するので、データベースの内容が
異なっていても、両者に共通のキーコードを用いて、各
データベース間の関連づけを容易に行うことができると
いう効果がある。
According to a fifth aspect of the present invention, in the database comparison method, before and after the database is updated are classified into three types of update, namely, addition, deletion, and change for each key code, and are compared. Therefore, even if the contents of the databases are different, there is an effect that the association between the databases can be easily performed by using a common key code for both.

【0066】この発明の請求項6に係わるデータベース
比較方法は、データベースが3つ以上の場合において
も、各データベースに共通のキーコードを用いて、各デ
ータベース間の関連づけを行ってデータベースの更新不
良部の検出が行えるので、検出処理が簡単に行えるとい
う効果がある。
According to a sixth aspect of the present invention, in the database comparison method, even when there are three or more databases, the databases are associated with each other by using a common key code for each database, and the database update failure portion is determined. Can be detected, so that the detection processing can be easily performed.

【0067】この発明の請求項に係わるデータベース
比較方法は、トランザクションファイルを比較結果確認
に用いることにより、比較するタイミングが異なる場合
においても更新不良部を検出できるという効果がある。
The database comparison method according to claim 7 of the present invention has an effect that, by using a transaction file for checking the comparison result, an update defective portion can be detected even when the comparison timing is different.

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

【図1】 この発明の実施例1のデータベース比較方法
を示す構成図である。
FIG. 1 is a configuration diagram illustrating a database comparison method according to a first embodiment of the present invention.

【図2】 この発明の実施例1のデータベース比較方法
の新旧データベースの比較の処理手順を示すフローチャ
ートである。
FIG. 2 is a flowchart illustrating a processing procedure for comparing a new and old database in the database comparison method according to the first embodiment of the present invention.

【図3】 この発明の実施例1のデータベース比較方法
のデータベースの更新不良内容を検出出力する処理手順
を示すフローチャートである。
FIG. 3 is a flowchart illustrating a processing procedure for detecting and outputting update failure contents of a database in the database comparison method according to the first embodiment of the present invention.

【図4】 この発明の実施例1のデータベース比較方法
を説明するデータベースのデータ例を示す図である。
FIG. 4 is a diagram illustrating a data example of a database for explaining a database comparison method according to the first embodiment of the present invention.

【図5】 この発明の実施例1のデータベース比較方法
を説明するデータベース比較結果のデータ例を示す図で
ある。
FIG. 5 is a diagram illustrating a data example of a database comparison result for explaining a database comparison method according to the first embodiment of the present invention.

【図6】 この発明の実施例2のデータベース比較方法
を示す構成図である。
FIG. 6 is a configuration diagram illustrating a database comparison method according to a second embodiment of the present invention.

【図7】 この発明の実施例2のデータベース比較方法
の新旧データベースの比較の処理手順を示すフローチャ
ートである。
FIG. 7 is a flowchart showing a processing procedure for comparing a new and old database in the database comparison method according to the second embodiment of the present invention.

【図8】 この発明の実施例2のデータベース比較方法
のデータベースの更新不良内容を検出出力する処理手順
を示すフローチャートである。
FIG. 8 is a flowchart illustrating a processing procedure for detecting and outputting update failure contents of a database in the database comparison method according to the second embodiment of the present invention.

【図9】 この発明の実施例2のデータベース比較方法
を説明するデータベースのデータ例を示す図である。
FIG. 9 is a diagram illustrating a data example of a database for explaining a database comparison method according to the second embodiment of the present invention.

【図10】 この発明の実施例2のデータベース比較方
法を説明するデータベース比較結果のデータ例を示す図
である。
FIG. 10 is a diagram illustrating a data example of a database comparison result for explaining a database comparison method according to the second embodiment of the present invention.

【図11】 この発明の実施例3のデータベース比較方
法を示す構成図である。
FIG. 11 is a configuration diagram illustrating a database comparison method according to a third embodiment of the present invention.

【図12】 この発明の実施例3のデータベース比較方
法の新旧データベースの比較の処理手順を示すフローチ
ャートである。
FIG. 12 is a flowchart illustrating a processing procedure for comparing a new database with an old database in the database comparison method according to the third embodiment of the present invention.

【図13】 この発明の実施例3のデータベース比較方
法のデータベースの更新不良内容を検出出力する処理手
順を示すフローチャートである。
FIG. 13 is a flowchart showing a processing procedure for detecting and outputting update failure contents of a database in the database comparison method according to the third embodiment of the present invention.

【図14】 この発明の実施例3のデータベース比較方
法を説明するデータベースのデータ例を示す図である。
FIG. 14 is a diagram illustrating a data example of a database for explaining a database comparison method according to the third embodiment of the present invention.

【図15】 この発明の実施例3のデータベース比較方
法を説明するデータベース比較結果のデータ例を示す図
である。
FIG. 15 is a diagram illustrating a data example of a database comparison result illustrating a database comparison method according to the third embodiment of the present invention.

【図16】 先行例1のデータベース比較方法を示す構
成図である。
FIG. 16 is a configuration diagram showing a database comparison method of the first prior art.

【図17】 先行例1のデータベース比較方法の新旧デ
ータベースの比較の処理手順を示すフローチャートであ
る。
FIG. 17 is a flowchart illustrating a processing procedure for comparing a new database with an old database in the database comparison method of the first example .

【図18】 先行例1のデータベース比較方法のデータ
ベースの更新不良内容を検出出力する処理手順を示すフ
ローチャートである。
FIG. 18 is a flowchart illustrating a processing procedure for detecting and outputting update content of a database in the database comparison method of the first prior art;

【図19】 先行例1のデータベース比較方法を説明す
るトランザクションファイルのデータ例を示す図であ
る。
FIG. 19 is a diagram showing an example of data of a transaction file for explaining the database comparison method of the first example.

【図20】 先行例1のデータベース比較方法を説明す
るデータベースのデータ例を示す図である。
20 is a diagram illustrating a data example of a database that describes the database comparison method of the preceding Example 1.

【図21】 先行例1のデータベース比較方法を説明す
るデータベース比較結果のデータ例を示す図である。
21 is a diagram illustrating a data example of a database comparison results illustrating the database comparison method of the preceding Example 1.

【図22】 この発明の実施例4のデータベース比較方
法を示す構成図である。
FIG. 22 is a configuration diagram illustrating a database comparison method according to a fourth embodiment of the present invention.

【図23】 この発明の実施例4のデータベース比較方
法の新旧データベースの比較の処理手順を示すフローチ
ャートである。
FIG. 23 is a flowchart showing a processing procedure for comparing a new database with an old database in the database comparison method according to the fourth embodiment of the present invention.

【図24】 この発明の実施例4のデータベース比較方
法のデータベースの不一致内容を検出する処理手順を示
すフローチャートである。
FIG. 24 is a flowchart showing a processing procedure for detecting non-coincidence contents of a database in the database comparison method according to the fourth embodiment of the present invention.

【図25】 この発明の実施例4のデータベース比較方
法のデータベースの更新不良内容を検出出力する処理手
順を示すフローチャートである。
FIG. 25 is a flowchart showing a processing procedure for detecting and outputting the contents of a database update failure in the database comparison method according to the fourth embodiment of the present invention.

【図26】 この発明の実施例4のデータベース比較方
法を説明するデータベースのデータ例を示す図である。
FIG. 26 is a diagram illustrating a data example of a database for explaining a database comparison method according to the fourth embodiment of the present invention.

【図27】 この発明の実施例4のデータベース比較方
法を説明するデータベース比較結果のデータ例を示す図
である。
FIG. 27 is a diagram illustrating a data example of a database comparison result illustrating a database comparison method according to the fourth embodiment of the present invention.

【図28】 この発明の実施例5のトランザクションフ
ァイルの圧縮方法を示す構成図である。
FIG. 28 is a configuration diagram showing a method of compressing a transaction file according to Embodiment 5 of the present invention.

【図29】 この発明の実施例5のトランザクションフ
ァイルの圧縮方法のキーコード格納までの処理手順を示
すフローチャートである。
FIG. 29 is a flowchart showing a processing procedure up to key code storage in the transaction file compression method according to the fifth embodiment of the present invention.

【図30】 この発明の実施例5のトランザクションフ
ァイルの圧縮方法の圧縮処理手順を示すフローチャート
である。
FIG. 30 is a flowchart illustrating a compression processing procedure of a transaction file compression method according to Embodiment 5 of the present invention.

【図31】 この発明の実施例5のトランザクションフ
ァイルの圧縮方法を説明するトランザクションファイル
のデータ例を示す図である。
FIG. 31 is a diagram illustrating a data example of a transaction file for explaining a transaction file compression method according to a fifth embodiment of the present invention.

【図32】 この発明の実施例5のトランザクションフ
ァイルの圧縮方法の処理を説明するデータ例を示す図で
ある。
FIG. 32 is a diagram illustrating an example of data for explaining processing of a transaction file compression method according to a fifth embodiment of the present invention.

【図33】 この発明の実施例5のトランザクションフ
ァイルの圧縮方法の更新種別の組合せによる処理を説明
するデータ例を示す図である。
FIG. 33 is a diagram showing an example of data for explaining a process based on a combination of update types of a transaction file compression method according to the fifth embodiment of the present invention.

【図34】 従来のデータベース比較方法の構成図であ
る。
FIG. 34 is a configuration diagram of a conventional database comparison method.

【図35】 従来のデータベース比較方法の処理手順を
説明するフローチャートである。
FIG. 35 is a flowchart illustrating a processing procedure of a conventional database comparison method.

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

11 更新後の第1のデータベース 21 更新後の第1のデータベースのキーコード列 31 更新後の第1のデータベースのレコード列 41 更新前の第1のデータベース 51 更新前の第1のデータベースのキーコード列 61 更新前の第1のデータベースのレコード列 81 第1のデータベースの更新前と更新後との比較
結果格納部 81a 第1のデータベースの更新前と更新後との比較
日時 81b 第1のデータベースの更新前と更新後との比較
結果 12 更新後の第2のデータベース 22 更新後の第2のデータベースのキーコード列 32 更新後の第2のデータベースのレコード列 42 更新前の第2のデータベース 52 更新前の第2のデータベースのキーコード列 62 更新前の第2のデータベースのレコード列 82 第2のデータベースの更新前と更新後との比較
結果格納部 82a 第2のデータベースの更新前と更新後との比較
日時 82b 第2のデータベースの更新前と更新後との比較
結果 60 旧データベースのキーコード列 60t 旧データベースのレコードの更新日時 90 結果比較部 100 不一致内容格納部 110 更新不良出力部 120 トランザクションファイル
11 first database after update 21 key code sequence of first database after update 31 record sequence of first database after update 41 first database before update 51 key code of first database before update Column 61 Record column of first database before update 81 Comparison result storage section 81a before and after update of first database 81a Date and time of comparison between before update and after update of first database 81b Date of first database Comparison result between before and after the update 12 Second database after the update 22 Key code column of the second database after the update 32 Record column of the second database after the update 42 Second database 52 before the update 52 Update Key code column 62 of the second database before update Record column of the second database before update 82 Second database Comparison result storage section 82a between before and after update of database 82a Comparison date and time between before and after update of second database 82b Comparison result between before and after update of second database 60 Key code string of old database 60t Update date and time of old database record 90 Result comparison unit 100 Mismatch content storage unit 110 Update failure output unit 120 Transaction file

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平4−172543(JP,A) 特開 平6−195251(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 12/00 ────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-4-172543 (JP, A) JP-A-6-195251 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G06F 12/00

Claims (7)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 キーコード列と、このキーコード列の各
キーコードに対応するレコードからなるレコード列とを
有する第1のデータベース、およびこの第1のデータベ
ースと別に設けられ、上記キーコード列と同内容のキー
コード列と、このキーコード列の各キーコードに対応す
るレコードからなるレコード列とを有する第2のデータ
ベースに対し、データ更新内容を確認するデータベース
比較方法において、第1のデータベースの更新前と更新
後とをキーコードごとに比較し、その相違点を第1の格
納部に記憶し、第2のデータベースの更新前と更新後と
をキーコードごとに比較し、その相違点を第2の格納部
に記憶し、上記第1および第2の格納部に記憶された相
違点を比較し、その不一致内容を出力することを特徴と
するデータベース比較方法。
1. A first database having a key code sequence and a record sequence consisting of records corresponding to each key code of the key code sequence, and a first database provided separately from the first database, In a database comparison method for confirming data update contents, a second database having a key code string having the same contents and a record string composed of records corresponding to each key code of the key code string is used. The pre-update and post-update are compared for each key code, the difference is stored in the first storage unit, the pre-update and post-update of the second database are compared for each key code, and the difference is determined. A database ratio stored in a second storage unit, comparing the differences stored in the first and second storage units, and outputting the inconsistent content. Comparison method.
【請求項2】 キーコード列と、このキーコード列の各
キーコードに対応するレコードからなるレコード列とを
有する第1のデータベース、およびこの第1のデータベ
ースと別に設けられ、上記キーコード列と同内容のキー
コード列と、このキーコード列の各キーコードに対応す
るレコードからなるレコード列とを有する第2のデータ
ベースに対し、データ更新内容を確認するデータベース
比較方法において、更新前のキーコード列と、更新後の
第1のデータベースのキーコード列とを比較し、その相
違点を第1の格納部に記憶し、上記更新前のキーコード
列と、更新後の第2のデータベースのキーコード列とを
比較し、その相違点を第2の格納部に記憶し、上記第1
および第2の格納部に記憶された相違点を比較し、その
不一致内容を出力することを特徴とするデータベース比
較方法。
2. A first database having a key code sequence and a record sequence consisting of records corresponding to each key code of the key code sequence, and a first database provided separately from the first database. In a database comparison method for confirming data update contents, a key code before updating is performed for a second database having a key code string having the same contents and a record string including records corresponding to the respective key codes of the key code string. The column and the updated key code sequence of the first database are compared, the difference is stored in the first storage unit, and the key code sequence before the update and the key of the second database after the update are compared. The difference is compared with the code string, and the difference is stored in the second storage unit.
And comparing the differences stored in the second storage unit and outputting the content of the mismatch.
【請求項3】 キーコードごとにそのキーコードに対応
するレコードが更新された時点を示すデータを設け、デ
ータベースごとに更新前のキーコード列と、更新後のキ
ーコード列とを比較する際に、それぞれのキーコードに
対応する更新時点をも比較して、その相違点を格納部に
記憶することを特徴とする請求項2記載のデータベース
比較方法。
3. A method according to claim 1, wherein data indicating a time point at which a record corresponding to the key code is updated is provided for each key code, and a key code sequence before update is compared with a key code sequence after update for each database. 3. The database comparison method according to claim 2, further comprising comparing update times corresponding to the respective key codes, and storing the differences in a storage unit.
【請求項4】 更新前のデータベースのキーコード列
を、保存時点を示すデータとともに記録し、更新後のデ
ータベースのキーコードごとに、そのキーコードに対応
するレコードが更新された時点を示すデータを設け、デ
ータベースごとに更新前のキーコード列と、更新後のキ
ーコード列とを比較する際に、それぞれのキーコードに
対応する上記更新時点と上記保存時点とをも比較して、
その相違点を格納部に記憶することを特徴とする請求項
2記載のデータベース比較方法。
4. A key code sequence of a database before update is recorded together with data indicating a storage time, and for each key code of the database after update, data indicating a time when a record corresponding to the key code is updated is stored. Provided, when comparing the key code string before the update for each database, and the key code string after the update, also compare the update time point and the storage time point corresponding to each key code,
3. The database comparison method according to claim 2, wherein the difference is stored in a storage unit.
【請求項5】 各データベースの更新前と更新後とを、
キーコードごとに比較する際に、その相違点を追加、削
除、および変更有の3つに分類して格納部に記憶するこ
とを特徴とする請求項1、請求項3または請求項4記載
のデータベース比較方法。
5. Before and after updating each database,
5. The method according to claim 1, wherein, when comparing each key code, the difference is classified into three types, that is, added, deleted, and changed, and stored in the storage unit. Database comparison method.
【請求項6】 同じキーコード列を有するデータベース
が3つ以上あり、各データベースごとに比較した更新前
と更新後との相違点を記憶する格納部に対し、各格納部
に記憶された相違点をキーコードごとに比較し、それぞ
れの不一致内容を出力することを特徴とする請求項1〜
請求項5のいずれかに記載のデータベース比較方法。
6. There are three or more databases having the same key code sequence, and the difference stored in each storage unit is different from the storage unit storing the difference between before and after update compared for each database. Are compared for each key code, and the content of each mismatch is output.
A database comparison method according to claim 5.
【請求項7】 データベースに更新されたレコードに対
応するキーコードと、この更新の種別を示すデータと、
この更新の行われた時点を示すデータとを有するトラン
ザクションデータからなるトランザクションファイルを
設け、各データベースの更新前と更新後とをキーコード
ごとに比較した相違点を格納部に記憶する際に、上記比
較の実施時点を示すデータとともに格納し、各格納部に
記憶した相違点を比較した不一致内容に対し、上記各格
納部に記憶した時点が食い違っていれば、上記トランザ
クションファイルから、上記比較時点の差に相当する部
分の更新データを示すトランザクションデータを抽出
し、これらのトランザクションデータと比較することに
より、上記不一致内容を補正することを特徴とする請求
項1〜請求項6のいずれかに記載のデータベース比較方
法。
7. A key code corresponding to a record updated in a database, data indicating a type of the update,
When a transaction file including transaction data having the data indicating the time point of this update is provided, and the difference between each key code before and after each database is compared for each key code is stored in the storage unit, Stored together with the data indicating the time point of the comparison, and if the time points stored in the respective storage units are different for the inconsistency content comparing the differences stored in the respective storage units, the transaction file 7. The method according to claim 1, wherein transaction data indicating update data of a portion corresponding to the difference is extracted, and the contents of the mismatch are corrected by comparing the extracted transaction data with the transaction data. Database comparison method.
JP6174463A 1994-07-26 1994-07-26 Database comparison method Expired - Fee Related JP3033444B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6174463A JP3033444B2 (en) 1994-07-26 1994-07-26 Database comparison method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6174463A JP3033444B2 (en) 1994-07-26 1994-07-26 Database comparison method

Publications (2)

Publication Number Publication Date
JPH0844604A JPH0844604A (en) 1996-02-16
JP3033444B2 true JP3033444B2 (en) 2000-04-17

Family

ID=15978931

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6174463A Expired - Fee Related JP3033444B2 (en) 1994-07-26 1994-07-26 Database comparison method

Country Status (1)

Country Link
JP (1) JP3033444B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5054065B2 (en) 2009-05-14 2012-10-24 株式会社エヌ・ティ・ティ・ドコモ Database apparatus, database alignment system, and database alignment method
CN103198068A (en) * 2012-01-07 2013-07-10 湖南省电力勘测设计院 Application method of dynamic information database in distribution automation system
JP5878232B2 (en) * 2012-03-13 2016-03-08 株式会社野村総合研究所 Data processing system

Also Published As

Publication number Publication date
JPH0844604A (en) 1996-02-16

Similar Documents

Publication Publication Date Title
US6560598B2 (en) Internal database validation
US5809500A (en) System for converting programs and databases to correct year 2000 processing errors
US6236993B1 (en) Computer file comparison method
EP0282721B1 (en) Paradigm-based morphological text analysis for natural languages
KR20010022215A (en) System and method for generating year 2000 test cases
JP3033444B2 (en) Database comparison method
Goyal Duplicate record identification in bibliographic databases
Karrison Data editing in a clinical trial
JP2702986B2 (en) How to replace data in a program
JP2933093B2 (en) Sequence program collation method
JP2655549B2 (en) Text generation management processor
JP2001022613A (en) Method for retrieving log information in log file
JP3295930B2 (en) Executing program management method and apparatus, and recording medium
JPH0991182A (en) Method and device for managing data base
JP2642015B2 (en) Network configuration information creation device
JP3307476B2 (en) Data item definition standardization device
JP3028843B2 (en) Design information extraction system
JPH05120065A (en) Testing and verifying method for computer program
Bowman et al. On-line storage and retrieval of chemical information. I. Structure entry
EP0910013A2 (en) Date manipulation system
JP2699436B2 (en) Parameter inspection processing method
JPH03177972A (en) Data base system
JPH07261986A (en) Library monitoring processor
JPS63265331A (en) Program managing system
JPS6151249A (en) Data set recovery processing system

Legal Events

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