JPH08263345A - Data base updating management method - Google Patents

Data base updating management method

Info

Publication number
JPH08263345A
JPH08263345A JP7069217A JP6921795A JPH08263345A JP H08263345 A JPH08263345 A JP H08263345A JP 7069217 A JP7069217 A JP 7069217A JP 6921795 A JP6921795 A JP 6921795A JP H08263345 A JPH08263345 A JP H08263345A
Authority
JP
Japan
Prior art keywords
database
information
version number
workstation
update
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.)
Pending
Application number
JP7069217A
Other languages
Japanese (ja)
Inventor
Shuichi Fukuda
修一 福田
Yorio Deki
頼雄 出来
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.)
NEC Corp
NEC Telecom System Ltd
Original Assignee
NEC Corp
NEC Telecom System Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp, NEC Telecom System Ltd filed Critical NEC Corp
Priority to JP7069217A priority Critical patent/JPH08263345A/en
Publication of JPH08263345A publication Critical patent/JPH08263345A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To secure the matching of information between the work stations and a data base by adding the version information to the management information on both work stations and data base and then collating the version numbers of the work stations and the data base with each other periodically or in an updating state of the version number in a simple method. CONSTITUTION: A data base system consists of a data base 4 and the work stations 1 and 2 which have accesses to the base 4 via a network 3. Then the dictionary version information 13 and 23 which manage the version numbers in an updating state are supplied to the data base system together with the data base management information 43. In such a constitution, the version numbers of the work stations and the base 4 are collated with each other periodically or in an updating state of the version number for matching of them. Thus the matching of information is always secured between the work stations and the data base. Then the data base 4 can be retrieved with no error.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はデータベース更新管理方
法に関し、特に分散データシステムにおいて、各ワーク
ステーションからデータベースに対しその内容を更新す
る場合、ワークステーションとデータベース側との情報
の整合をとるための更新管理方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database update management method, and in particular, in a distributed data system, when updating the contents of a database from each workstation, it is necessary to match the information between the workstation and the database side. Regarding update management method.

【0002】[0002]

【従来の技術】従来、この種のデータベース更新管理方
法は、データベースが更新された場合にデータベースが
各ワークステーションに更新された辞書情報を転送し、
各ワークステーションは保持する辞書情報を更新して辞
書情報の整合を行っている。図3はこの従来例の構成を
示すブロック図である。
2. Description of the Related Art Conventionally, this type of database update management method transfers the updated dictionary information to each workstation when the database is updated,
Each workstation updates the dictionary information held therein to match the dictionary information. FIG. 3 is a block diagram showing the configuration of this conventional example.

【0003】図3において、先ずワークステーション6
でデータベースへのアクセスに必要な辞書情報62を見
て、更新処理に必要な情報を登録すると、処理部61で
更新制御データが生成され、ネットワーク8を介してデ
ータベース9へこの制御データが転送される。データベ
ース9で受信した制御データは処理部71で解読され、
データベース本体92の更新を行います。
In FIG. 3, first, the workstation 6
When the dictionary information 62 required for accessing the database is viewed with and the information required for the update processing is registered, the processing unit 61 generates update control data and transfers this control data to the database 9 via the network 8. It The control data received by the database 9 is decrypted by the processing unit 71,
Update the database body 92.

【0004】このテータベースの更新処理が正常終了し
た場合、ワークステーション6に対して正常終了通知及
び更新したデータベース本体92の辞書情報を転送す
る。
When the database updating process ends normally, a normal end notification and the updated dictionary information of the database body 92 are transferred to the workstation 6.

【0005】更に、他のワークステーション7に対して
も、更新した辞書情報を転送する。各ワークステーショ
ンは転送された辞書情報を辞書情報62,72に書き込
みを行い、これにより各ワークステーションとデータベ
ース9とのデータベースの整合が取れることになる。
Further, the updated dictionary information is also transferred to other workstations 7. Each workstation writes the transferred dictionary information in the dictionary information 62, 72, and thereby the databases of each workstation and the database 9 can be matched.

【0006】尚、辞書情報はデータベースの内容を索引
するに必要なインデックス的な情報であり更新時に内容
更新と同時にこの情報も更新される場合が発生する。
The dictionary information is index-like information necessary for indexing the contents of the database, and when updating, this information may be updated at the same time as the contents are updated.

【0007】[0007]

【発明が解決しようとする課題】このように従来の方法
では、ワークステーション側の辞書情報はデータベース
側からの更新情報により一方的に更新されて行くので、
データベース更新時にワークステーションが停止してい
る場合や、回線障害が発生した場合、このワークステー
ションについては辞書情報が更新されず、データベース
とワークステーション間の辞書情報の整合か取れなくな
る問題がある。
As described above, in the conventional method, since the dictionary information on the workstation side is updated unilaterally by the update information from the database side,
If the workstation is stopped at the time of updating the database or if a line failure occurs, the dictionary information for this workstation is not updated and there is a problem that the dictionary information between the database and the workstation cannot be consistent.

【0008】また、各ワークステーション側では、辞書
情報の整合が取れていないことがわからないと言う問題
がある。
Further, there is a problem that it is not possible to know that the dictionary information is not consistent on each workstation side.

【0009】[0009]

【課題を解決するための手段】本発明のデータベース更
新管理方法は、データベースに対し更新する要求元ワー
クステーションから更新部分に関する更新情報とバージ
ョン番号とを前記データベースへ転送し、前記データベ
ースは前記バージョン番号とデータベース側バージョン
番号とを比較し一致する場合は前記更新情報によりデー
タベースを更新し同時にバージョン番号を1つカウント
アップし更新完了情報を前記要求元ワークステーション
を含む全ワークステーションへ転送し、また前記比較で
一致しない場合は前記要求元ワークステーションへ更新
差分情報と前記データベース側バージョン番号とを転送
し、前記要求元ワークステーションは前記更新差分情報
と前記データベース側バージョン番号とを受信した場合
は自己の保有する辞書情報とバージョン番号とを更新す
ると同時にこの異常を保守者に通知し、また前記更新完
了情報を受信した場合も自己の保有する辞書情報とバー
ジョン番号とを更新し、他のワークステーションは前記
更新完了情報を受信した場合はこの前記データベース側
バージョン番号の1つ前の番号と自己のバージョン番号
と比較して一致する場合は保有する辞書情報とバージョ
ン番号とを更新し、また一致しない場合はこの異常をえ
守者に通知する方法である。
A database update management method of the present invention transfers update information and a version number relating to an updated part from a request source workstation that updates the database to the database, and the database updates the version number. And the version number on the database side are compared, and if they match, the database is updated with the update information and at the same time the version number is incremented by 1 and update completion information is transferred to all workstations including the request source workstation. If they do not match in the comparison, the update difference information and the database side version number are transferred to the request source workstation, and the request source workstation receives its update difference information and the database side version number. Possess At the same time as updating the written information and the version number, this abnormality is notified to the maintenance person, and even when the update completion information is received, the dictionary information and version number held by itself are updated, and other workstations update the update. When the completion information is received, the previous version number of the database side version number is compared with the own version number, and if they match, the held dictionary information and the version number are updated. This is a method of notifying the guardian of an abnormality.

【0010】更に前記全ワークステーションは各々所定
の周期で自己の保持するバージョン番号を前記データベ
ースへ転送し、前記データベースはこの転送を受信し保
持するバージョン番号と比較し一致不一致の情報を対応
する前記ワークステーションへ返送し、前記ワークステ
ーションはこの情報に従い自己の保持する辞書情報およ
びバージョン番号を更新する方法を加えても良い。
Further, each of the workstations transfers its own version number to the database in a predetermined cycle, and the database receives the transfer and compares the version number with the version number to be held and responds with the matching / mismatching information. A method of returning to the workstation and updating the dictionary information and version number held by the workstation according to this information may be added to the workstation.

【0011】[0011]

【実施例】次に本発明の一実施例を図面を参照して説明
する。図1は本実施例の構成を示すブロック図、図2は
図1における更新処理方法を示すフローチャートであ
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT An embodiment of the present invention will now be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of this embodiment, and FIG. 2 is a flow chart showing the update processing method in FIG.

【0012】図1において、2台のワークステーション
1,2がネットワーク3を介してデータベース4に接続
されている例で、各ワークステーションは処理部11と
辞書情報12と辞書バージョン情報13とを有してい
る。また、データベース4は処理部41とデータベース
本体42とデータベース管理情報43とを有している。
In FIG. 1, two workstations 1 and 2 are connected to a database 4 via a network 3, and each workstation has a processing unit 11, dictionary information 12 and dictionary version information 13. are doing. Further, the database 4 has a processing unit 41, a database main body 42, and database management information 43.

【0013】データベース4内のデータベース本体42
にはデータベース自体が格納されており、データベース
管理情報43にはデータベースバージョン番号(データ
ベース版数番号)及びデータベースバージョンに対応し
た辞書情報が格納されている。各ワークステーション内
の辞書情報にはデータベース本体42をアクセスするた
めの辞書情報が格納されており、辞書バージョン情報に
は辞書情報の辞書バージョン番号が格納されている。
The database body 42 in the database 4
Stores the database itself, and the database management information 43 stores the database version number (database version number) and dictionary information corresponding to the database version. The dictionary information for accessing the database main body 42 is stored in the dictionary information in each workstation, and the dictionary version number of the dictionary information is stored in the dictionary version information.

【0014】次に図2を参照してワークステーション1
からデータベース4のデータベース更新を行う場合の更
新処理方法を説明する。処理部11は辞書情報13を検
索し、更新情報を付加すると共に、辞書バージョン情報
14を検索し辞書バージョン番号を取得する。更新情報
及び辞書バージョン番号はネットワーク3を介してデー
タベース4へ転送される(ステップA1)。
Next, referring to FIG. 2, the workstation 1
An update processing method for updating the database 4 will be described. The processing unit 11 searches the dictionary information 13 and adds the update information, and also searches the dictionary version information 14 to acquire the dictionary version number. The update information and the dictionary version number are transferred to the database 4 via the network 3 (step A1).

【0015】更新情報及び辞書バージョン番号を受信し
たデータベース4内の処理部41は、データベース管理
情報43よりデータベースバージョン番号を検索し、ワ
ークステーションから転送された辞書バージョン番号と
比較する(A2)。
Upon receiving the update information and the dictionary version number, the processing unit 41 in the database 4 retrieves the database version number from the database management information 43 and compares it with the dictionary version number transferred from the workstation (A2).

【0016】比較結果が一致した場合には、処理部41
はデータベース本体42をワークステーションから更新
情報により更新する。更に、データベース管理情報43
のデータベースバージョン番号を+1カウントアップす
ると共に、辞書情報を格納する(A3)。続いて、ワー
クステーション1,2に対してデータベース更新後の辞
書情報とデータベースバージョン番号とを送信する。特
にワークステーション1には正常終了通知も送信する
(A4,A5)。
If the comparison results match, the processing unit 41
Updates the database body 42 from the workstation with the update information. Furthermore, the database management information 43
The database version number is incremented by +1 and the dictionary information is stored (A3). Then, the dictionary information after the database update and the database version number are transmitted to the workstations 1 and 2. In particular, the normal termination notification is also transmitted to the workstation 1 (A4, A5).

【0017】このデータを受信したワークステーション
1は辞書情報12と辞書バージョン番号とを更新する。
また、ワークステーション2は、辞書バージョン情報2
3を検索し、データベース4から転送されたデータベー
スバージョン番号と比較する(A7)。辞書バージョン
情報23のバージョン番号がカウントアップ前の番号で
あればバージョン番号をカウントアップすると同時に辞
書情報を更新する(A8)。またバージョン番号がカウ
ントアップ前の番号でなかった場合は辞書情報4が異常
であるため、保守者に通知する(A10)。
The workstation 1 receiving this data updates the dictionary information 12 and the dictionary version number.
Also, the workstation 2 uses the dictionary version information 2
3 is searched and compared with the database version number transferred from the database 4 (A7). If the version number of the dictionary version information 23 is a number before counting up, the version number is counted up and the dictionary information is updated at the same time (A8). If the version number is not the number before counting up, the dictionary information 4 is abnormal, and the maintenance person is notified (A10).

【0018】一方、データベース4でバージョン番号を
比較し(A2)、一致しなかった場合は、処理部41は
データベース本体42の更新はしない。また、データベ
ース管理情報43のデータベースバージョン番号もカウ
ントアップせず、要求元のワークステーション1に対し
て最新データベースバージョン番号と共に辞書情報の差
分を転送する(A9)。
On the other hand, the version numbers are compared in the database 4 (A2), and if they do not match, the processing section 41 does not update the database body 42. Also, the database version number of the database management information 43 is not counted up, and the difference of the dictionary information is transferred to the requesting workstation 1 together with the latest database version number (A9).

【0019】このデータを受信した要求元のワークステ
ーション1は、ワークステーション内の辞書情報12が
最新でないと判断し、異常を保守者に通知すると共に差
分情報により辞書情報を更新する(A10)。尚、要求
元のワークステーション1はこ操作によりデータベース
側と整合をとった後、あらためて更新要求(A1)を行
うことになる。
Upon receiving this data, the requesting workstation 1 judges that the dictionary information 12 in the workstation is not the latest, notifies the maintenance person of the abnormality, and updates the dictionary information with the difference information (A10). It should be noted that the requesting workstation 1 makes a renewal request (A1) after matching the database side by this operation.

【0020】次に、上述した更新時とは別にワークステ
ーションとデータベースとのバージョンの整合を更に確
実にするため、定期的に行っている確認方法につき説明
する。各ワークステーションは、定期的に辞書バージョ
ン番号をデータベース4に転送し、データベース側でバ
ージョン番号の比較を行い、異常を検出した場合、要求
元ワークステーションに対して最新のバージョン番号と
共に辞書情報の差分を転送する。上記データを受信した
要求元のワークステーションは、ワークステーション内
の辞書情報が最新でないと判断し、バージョン番号と辞
書情報を更新すると同時に、異常を保守者に通知する。
Next, in order to further ensure the version matching between the workstation and the database, apart from the above-mentioned updating, a checking method that is regularly performed will be described. Each workstation periodically transfers the dictionary version number to the database 4, the database side compares the version numbers, and when an abnormality is detected, the difference between the dictionary information and the latest version number is sent to the requesting workstation. To transfer. The requesting workstation that received the above data determines that the dictionary information in the workstation is not the latest, updates the version number and the dictionary information, and at the same time notifies the maintenance person of the abnormality.

【0021】[0021]

【発明の効果】以上説明したように本発明のデータベー
ス更新管理方法は、ワークステーション側及びデータベ
ース側にそれぞれ辞書バージョン情報を付加し、更新時
あるいは定期的にこのバージョン情報を簡単な方法で比
較確認しているので、常時、各ワークステーションとデ
ータベース側との情報の整合性が確保されて信頼性の高
いデータベースシステムが提供できる効果がある。
As described above, according to the database update management method of the present invention, the dictionary version information is added to the workstation side and the database side, and this version information is compared and confirmed by a simple method when updating or periodically. Therefore, there is an effect that the consistency of information between each workstation and the database side is always secured and a highly reliable database system can be provided.

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

【図1】本発明の一実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

【図2】図1における更新処理方法を示すフローチャー
トである。
FIG. 2 is a flowchart showing an update processing method in FIG.

【図3】従来例の構成を示すブロック図である。FIG. 3 is a block diagram showing a configuration of a conventional example.

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

1,2 ワークステーション 3 ネットワーク 4 データベース 1, 2 workstations 3 network 4 database

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 データベースに対し更新する要求元ワー
クステーションから更新部分に関する更新情報とバージ
ョン番号とを前記データベースへ転送し、前記データベ
ースは前記バージョン番号とデータベース側バージョン
番号とを比較し一致する場合は前記更新情報によりデー
タベースを更新し同時にバージョン番号を1つカウント
アップし更新完了情報を前記要求元ワークステーション
を含む全ワークステーションへ転送し、また前記比較で
一致しない場合は前記要求元ワークステーションへ更新
差分情報と前記データベース側バージョン番号とを転送
し、前記要求元ワークステーションは前記更新差分情報
と前記データベース側バージョン番号とを受信した場合
は自己の保有する辞書情報とバージョン番号とを更新す
ると同時にこの異常を保守者に通知し、また前記更新完
了情報を受信した場合も自己の保有する辞書情報とバー
ジョン番号とを更新し、他のワークステーションは前記
更新完了情報を受信した場合はこの前記データベース側
バージョン番号の1つ前の番号と自己のバージョン番号
と比較して一致する場合は保有する辞書情報とバージョ
ン番号とを更新し、また一致しない場合はこの異常をえ
守者に通知することを特徴とするデータベース更新管理
方法。
1. A transfer source of update information and a version number relating to an updated portion from a requesting workstation which updates the database, and the database compares the version number with the version number on the database side, and if they match, The database is updated with the update information, and at the same time, the version number is incremented by 1, the update completion information is transferred to all the workstations including the request source workstation, and if there is no match in the comparison, it is updated to the request source workstation. When the difference information and the version number on the database side are transferred, and the requesting workstation receives the update difference information and the version number on the database side, it updates the dictionary information and version number held by itself, and at the same time Anomaly Is also notified to the maintenance person, and when the update completion information is received, the dictionary information and version number held by itself are updated, and when the other workstations receive the update completion information, the version on the database side is updated. It is characterized by comparing the previous version number with its own version number and updating the dictionary information and version number it holds if they match, and notifying the guardian of this abnormality if they do not match. How to manage database updates.
【請求項2】 前記全ワークステーションは各々所定の
周期で自己の保持するバージョン番号を前記データベー
スへ転送し、前記データベースはこの転送を受信し保持
するバージョン番号と比較し一致不一致の情報を対応す
る前記ワークステーションへ返送し、前記ワークステー
ションはこの情報に従い自己の保持する辞書情報および
バージョン番号を更新することを特徴とする請求項1記
載のデータベース更新管理方法。
2. Each of the workstations transfers its own version number to the database in a predetermined cycle, and the database receives the transfer and compares the version number with the stored version number to respond to the information of matching / mismatching. 2. The database update management method according to claim 1, wherein the database is returned to the workstation, and the workstation updates its own dictionary information and version number in accordance with this information.
JP7069217A 1995-03-28 1995-03-28 Data base updating management method Pending JPH08263345A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7069217A JPH08263345A (en) 1995-03-28 1995-03-28 Data base updating management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7069217A JPH08263345A (en) 1995-03-28 1995-03-28 Data base updating management method

Publications (1)

Publication Number Publication Date
JPH08263345A true JPH08263345A (en) 1996-10-11

Family

ID=13396341

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7069217A Pending JPH08263345A (en) 1995-03-28 1995-03-28 Data base updating management method

Country Status (1)

Country Link
JP (1) JPH08263345A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998033128A1 (en) * 1997-01-23 1998-07-30 Athena Telecom Lab, Inc. Method of distributing and acquiring information, its apparatus and data structure
WO2000055765A1 (en) * 1999-03-05 2000-09-21 Cai Co., Ltd. Method for sorting/searching/abstracting documents
JP2003044756A (en) * 2001-07-26 2003-02-14 Kenichi Omae On-line shopping method, shopping site, voice recognizing device and voice recognition supporting device
JP2007122643A (en) * 2005-10-31 2007-05-17 Toshiba Corp Data retrieval system, meta data synchronization method and data retrieval device
CN107391620A (en) * 2017-07-06 2017-11-24 天脉聚源(北京)传媒科技有限公司 A kind of method and device for handling collaboration update abnormal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998033128A1 (en) * 1997-01-23 1998-07-30 Athena Telecom Lab, Inc. Method of distributing and acquiring information, its apparatus and data structure
WO2000055765A1 (en) * 1999-03-05 2000-09-21 Cai Co., Ltd. Method for sorting/searching/abstracting documents
JP2003044756A (en) * 2001-07-26 2003-02-14 Kenichi Omae On-line shopping method, shopping site, voice recognizing device and voice recognition supporting device
JP2007122643A (en) * 2005-10-31 2007-05-17 Toshiba Corp Data retrieval system, meta data synchronization method and data retrieval device
CN107391620A (en) * 2017-07-06 2017-11-24 天脉聚源(北京)传媒科技有限公司 A kind of method and device for handling collaboration update abnormal

Similar Documents

Publication Publication Date Title
US20200394208A1 (en) System and Method for Providing Patient Record Synchronization In a Healthcare Setting
JPH01253062A (en) File backup system
US20030126133A1 (en) Database replication using application program event playback
JPH06215031A (en) Equipment and method for decentralized data processing
JPH02127755A (en) Apparatus and method for generating identifying element for object in computer system
WO1991010191A1 (en) Object oriented distributed processing system
CN112527534A (en) Service processing method, device, equipment and storage medium based on message queue
WO2007078774A2 (en) Conflict resolution in highly available network element
EP1577776B1 (en) Method and apparatus for data synchronization in a distributed data base system
JPH04364562A (en) Method of ensuring data stored in primary database and secondary database in process control system
JPH08263345A (en) Data base updating management method
US20020042910A1 (en) Method of detecting write conflicts in replicated databases without memory overhead
JPH11312111A (en) Method for restoring data base and data base management system thereof
CN109976944B (en) Data processing method and system, storage medium and electronic device
JPH08249279A (en) Online system
JP3296570B2 (en) File transfer method
JP2614224B2 (en) Network configuration management method
JPH103418A (en) Data coincidence system between electronic computer systems
JP3177674B2 (en) Module fault concealment method
JPH03256143A (en) Data base synchronizing control system
CN115442232B (en) CDN distributed management platform interface monitoring method and system
JP2001333083A (en) Setting method for newly adding and deleting field device, and method for newly adding field device
US11609931B2 (en) Ring replication system
JPH0381838A (en) Correction system for software fault
JPH07152662A (en) Communication system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19970805