JP2001075852A - Database management system, distributed database system, and recording medium with program for making computer execute processing of database management system stored thereon - Google Patents
Database management system, distributed database system, and recording medium with program for making computer execute processing of database management system stored thereonInfo
- Publication number
- JP2001075852A JP2001075852A JP24891399A JP24891399A JP2001075852A JP 2001075852 A JP2001075852 A JP 2001075852A JP 24891399 A JP24891399 A JP 24891399A JP 24891399 A JP24891399 A JP 24891399A JP 2001075852 A JP2001075852 A JP 2001075852A
- Authority
- JP
- Japan
- Prior art keywords
- database
- update
- site
- management system
- command
- 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
Links
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、データベース管理
システムにおけるレプリケーション機能の同期処理に関
し、とくにデータベースへの更新要求があるのと同時に
他のサイトのデータベースを更新することのできるデー
タベース管理システム、分散データベースシステム及び
データベース管理システムの処理をコンピュータに実行
させるためのプログラムを格納した記録媒体に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a synchronous processing of a replication function in a database management system, and more particularly, to a database management system and a distributed database capable of updating a database at another site at the same time as a database update request is issued. The present invention relates to a recording medium storing a program for causing a computer to execute processing of a system and a database management system.
【0002】[0002]
【従来の技術】データベースは、多くの実績があり現在
では必要不可欠な技術である。また、近年のシステムの
分散化に伴い、データベースにおいても分散化がますま
す盛んになっている。とくに企業の組織内では、本店、
支店、営業所などの階層的な組織構造に対して、そのす
べてのデータを常に1ヶ所に集中することは無駄が多い
ので、それぞれの場所ごとに単独のデータベースを持
ち、データベースの分散化が図られてきた。2. Description of the Related Art Databases are indispensable technologies at present with many achievements. Also, with the recent decentralization of systems, decentralization of databases has become more and more popular. The head office,
In a hierarchical organizational structure such as branch offices and sales offices, it is wasteful to always concentrate all the data in one place, so there is a single database for each place, and the database is distributed. I have been.
【0003】しかしながら、このような分散データベー
ス環境では、同一のデータを格納するデータベースが異
なるサイトに存在しているので、1つのサイトのデータ
ベースが変更された場合には他のサイトのデータベース
も変更してデータベース間の整合性をとらなければなら
ない。そのための機能として従来からレプリケーション
機能があった。However, in such a distributed database environment, since databases storing the same data exist at different sites, when a database at one site is changed, a database at another site is also changed. To ensure consistency between databases. Conventionally, there has been a replication function as a function for that.
【0004】図5は、従来の分散データベースシステム
の構成を示すブロック図である。FIG. 5 is a block diagram showing a configuration of a conventional distributed database system.
【0005】図5に示すように、分散データベースシス
テム100は、複数のサイト、ここでは一例としてサイ
ト101Aとサイト101Bの2つのサイトを示し、各
サイトはネットワーク102によって接続されている。
そして、各サイト101A、101Bのそれぞれは、デ
ータベース管理システム103A、103Bとデータベ
ース104A、104Bとから構成されている。[0005] As shown in FIG. 5, the distributed database system 100 shows a plurality of sites, here, for example, two sites, a site 101 A and a site 101 B, and each site is connected by a network 102.
Each of the sites 101A and 101B is composed of database management systems 103A and 103B and databases 104A and 104B.
【0006】このような分散データベースシステムにお
いて、従来のデータベース管理システム103Aはデー
タベース104Aに対するアクセスがあると、そのアク
セスに対応するデータベーストリガーを発生させてデー
タベース104Aに対するアクセスを実行していた。こ
のデータベーストリガーはデータベース管理システムに
標準的に備えられた機能であり、自らの管理するデータ
ベースに対する処理を行うためのものである。例えば、
在庫を管理する場合に、ある商品が10個入荷したとき
にはデータベースに10個入荷したことを入力しなけれ
ばならない。そこで、データベース管理システム103
Aに対して「10個入荷した」という情報を入力する
と、データベース管理システム103Aはその商品がデ
ータベース104Aのテーブル1の商品ID=1である
ことを記憶しているので、例えばIn such a distributed database system, when the conventional database management system 103A accesses the database 104A, a database trigger corresponding to the access is generated to execute the access to the database 104A. The database trigger is a function provided as a standard feature in the database management system, and is for performing processing on a database managed by itself. For example,
When managing inventory, when 10 items are received, it is necessary to input that 10 items are received in the database. Therefore, the database management system 103
When information indicating that "10 pieces have been received" is input to A, the database management system 103A stores that the product has a product ID = 1 in table 1 of the database 104A.
【数1】INSERT 10 INTO TABLE1 数量 WHERE 商品ID=1 というデータベーストリガーを発生してデータをデータ
ベース104Aに入力していた。このデータベーストリ
ガーはテーブル1の商品ID=1の数量の欄に「10」
を入力するという命令である。このデータベーストリガ
ーによってデータベース104Aのテーブル1に「1
0」というデータが図5に示すように挿入されることに
なる。[Equation 1] INSERT 10 INTO TABLE1 Quantity WHERE A database trigger of product ID = 1 was generated to input data to the database 104A. This database trigger is "10" in the column of quantity of product ID = 1 in Table 1.
Is input. By this database trigger, “1” is added to table 1 of the database 104A.
The data "0" is inserted as shown in FIG.
【0007】しかしながら、このままでは同一の商品の
在庫を管理しているデータベース104Bのテーブル2
には図5に示すように「10」というデータが挿入され
ていない。そこで、従来の分散データベースシステムで
は、各サイト間のデータの整合性を取るための機能であ
るレプリケーション機能があり、この機能によって一定
期間が経過した後にサイト101Bにあるデータベース
管理システム103Bがデータベース104Bのテーブ
ル2のデータを更新し、図6に示すようにテーブル2の
商品ID=1の数量の欄にテーブル1と同じにすべく
「10」を書き込んでいた。However, in this state, the table 2 of the database 104B managing the inventory of the same product
Does not have the data "10" inserted therein as shown in FIG. Therefore, in the conventional distributed database system, there is a replication function that is a function for obtaining data consistency between the sites. The database management system 103B in the site 101B uses the replication function after a certain period of time by this function. The data of Table 2 was updated, and "10" was written in the column of the quantity of the product ID = 1 in Table 2 to make it the same as Table 1 as shown in FIG.
【0008】すなわち、従来の分散データベースシステ
ムのレプリケーション機能における同期処理ではテーブ
ル1のデータ変更直後にテーブル2のデータが更新され
るのではなく、周期的にデータの変更が行われたかどう
かをチェックし、変更されていた場合にはその他のサイ
トのデータベースを更新していた。That is, in the synchronous processing in the replication function of the conventional distributed database system, the data in the table 2 is not updated immediately after the data in the table 1 is updated, but it is checked whether the data has been changed periodically. If they had changed, they had to update the database on other sites.
【0009】[0009]
【発明が解決しようとする課題】しかしながら、上述し
たような従来のレプリケーション機能における同期処理
では、週に一度程度データの更新が行われるデータにお
いて、突然1日に数回もデータベースへのアクセスが発
生したような場合には、図7に示すようにテーブル1の
データは多数変更されているにも関わらず、テーブル2
には反映されないので、データの不整合が発生するとい
う問題点が生じていた。However, in the above-described synchronous processing in the conventional replication function, data that is updated about once a week may suddenly access the database several times a day. In such a case, as shown in FIG.
However, there is a problem that data inconsistency occurs because the data is not reflected in the data.
【0010】逆に、データへのアクセスが急に減り月に
一度程度しかアクセスが発生しなくなると、図8に示す
ようにテーブル1のデータもテーブル2のデータも変更
されていないにも関わらず、データが変更されているか
どうかを確認するための処理を実行することになるので
ネットワークに対する負荷が無駄に大きくなるという問
題点も発生していた。Conversely, if the access to the data suddenly decreases and the access occurs only once a month, the data in the table 1 and the data in the table 2 are not changed as shown in FIG. However, since a process for confirming whether or not data has been changed is executed, there has been a problem that the load on the network is unnecessarily increased.
【0011】従って、このようなレプリケーション機能
における同期処理では、データの種類等によって、デー
タの変更確認の処理をどのような周期で実行するかを常
に調節しなければならなかった。例えば、最初はデータ
変更の確認を週に一度するように設定してあったもので
も、データが頻繁に更新されるようになった場合にはデ
ータ変更の確認を毎日行うように人間の手によって周期
を調節していた。Therefore, in the synchronous processing in such a replication function, it is necessary to always adjust the cycle of the data change confirmation processing to be executed depending on the type of data and the like. For example, even though initially set to check for data changes once a week, if data is updated frequently, humans should check for data changes daily. The cycle was being adjusted.
【0012】しかし、データによっては月末にはデータ
変更が集中するものの月のはじめにはデータの変更がほ
とんどなくなってしまうようなデータ変更周期のランダ
ムなものや、新製品の発売とともにデータの変更が徐々
に減っていくような時間の経過とともにデータ変更周期
の変化していくものもあり、このようなデータに対して
はデータの変更確認周期を調節することの負担は非常に
大きなものとなっていた。However, depending on the data, the data change is concentrated at the end of the month, but the data change is almost non-existent at the beginning of the month. In some cases, the data change cycle changes with the passage of time, and the burden of adjusting the data change confirmation cycle for such data has become extremely large. .
【0013】本発明は上記事情に鑑みてなされたもので
あり、その目的は、レプリケーション機能における同期
処理をデータベーストリガーを利用して行うようにした
ことによって、各サイトにおけるデータ変更に対して、
遅延がなくタイムリーにその他のサイトのデータ更新を
することのできるデータベース管理システム、分散デー
タベースシステム及びデータベース管理システムの処理
をコンピュータに実行させるためのプログラムを格納し
た記録媒体を提供することにある。The present invention has been made in view of the above circumstances, and an object of the present invention is to perform a synchronization process in a replication function by using a database trigger so that data change at each site can be prevented.
An object of the present invention is to provide a database management system capable of updating data at other sites in a timely manner without delay, a distributed database system, and a recording medium storing a program for causing a computer to execute processing of the database management system.
【0014】[0014]
【課題を解決するための手段】上記目的を達成するため
に、請求項1に記載の発明であるデータベース管理シス
テムは、データベースとデータベース管理システムとか
ら構成されたサイトが複数存在し、そのサイトがネット
ワークを介して結ばれた分散データベースシステムにお
ける各サイトのデータベース管理システムであって、自
サイトのデータベースへの更新要求を検知する更新要求
検知手段と、この更新要求検知手段によって検知された
更新要求に基づいて同一のデータを格納する他のサイト
のデータベースを更新させるための更新命令を発生する
更新命令発生手段と、この更新命令発生手段によって発
生された前記更新命令を前記他のサイトに転送する更新
命令転送手段とを含むことを特徴とする。In order to achieve the above object, a database management system according to the first aspect of the present invention includes a plurality of sites each including a database and a database management system. A database management system at each site in a distributed database system connected via a network, comprising: an update request detecting unit that detects an update request to a database at its own site; and an update request detected by the update request detecting unit. Update command generating means for generating an update command for updating a database of another site storing the same data based on the update command, and an update for transferring the update command generated by the update command generating means to the other site Command transfer means.
【0015】この請求項1の発明によれば、データベー
ス管理システムが自サイトのデータベースへの更新要求
に基づいて更新命令を発生するので、レプリケーション
機能の同期処理において、1つのサイトのデータが変更
された場合でも、その他のサイトのデータを遅延がなく
タイムリーに更新することができる。したがって、デー
タの不整合や、ネットワークの負荷が増大するという問
題点を解決することができる。According to the first aspect of the present invention, since the database management system issues an update command based on an update request to the database at its own site, the data at one site is changed in the synchronization processing of the replication function. In this case, the data of other sites can be updated in a timely manner without delay. Therefore, problems such as data inconsistency and an increase in network load can be solved.
【0016】請求項2に記載の発明であるデータベース
管理システムの更新命令発生手段は、前記自サイトのデ
ータベースを更新するためのデータベーストリガーを利
用して前記更新命令を発生することを特徴とする。According to a second aspect of the present invention, the update command generation means of the database management system generates the update command using a database trigger for updating the database of the own site.
【0017】この請求項2の発明によれば、データベー
ス管理システムの標準的な機能であるデータベーストリ
ガーを利用して更新命令を発生するので、データベース
管理システムに新たな機能を追加することなく、レプリ
ケーション機能において遅延のない同期処理を実現する
ことができる。According to the second aspect of the present invention, since an update command is generated using a database trigger which is a standard function of the database management system, replication is performed without adding a new function to the database management system. Synchronous processing without delay in function can be realized.
【0018】請求項3に記載の発明である分散データベ
ースシステムは、データベースとデータベース管理シス
テムとから構成されたサイトが複数存在し、そのサイト
がネットワークを介して結ばれた分散データベースシス
テムであって、少なくとも1つのサイトのデータベース
管理システムは、このサイトのデータベースへの更新要
求を検知する更新要求検知手段と、この更新要求検知手
段によって検知された更新要求に基づいて同一のデータ
を格納する他のサイトのデータベースを更新させるため
の更新命令を発生する更新命令発生手段と、この更新命
令発生手段によって発生された前記更新命令を前記他の
サイトに転送する更新命令転送手段とを含み、前記他の
サイトのデータベース管理システムは、前記更新命令転
送手段によって転送された前記更新命令を受信する更新
命令受信手段と、この更新命令受信手段により受信され
た前記更新命令によって指定されたデータを更新するデ
ータベース更新手段とを含むことを特徴とする。According to a third aspect of the present invention, there is provided a distributed database system comprising a plurality of sites each including a database and a database management system, wherein the sites are connected via a network. The database management system of at least one site includes an update request detecting unit that detects an update request to the database of the site, and another site that stores the same data based on the update request detected by the update request detecting unit. Update instruction generating means for generating an update instruction for updating the database of the other, and update instruction transfer means for transferring the update instruction generated by the update instruction generation means to the other site, wherein the other site The database management system of An update instruction receiving means for received the update instruction, characterized in that it comprises a database updating means for updating the data specified by the update instructions received by the update instruction reception means.
【0019】この請求項3の発明によれば、分散データ
ベースシステムの少なくとも1つのサイトのデータベー
ス管理システムが自サイトのデータベースへの更新要求
に基づいて更新命令を発生し、同一のデータを格納する
他のサイトのデータベース管理システムが更新命令を受
信してデータベースを更新するので、レプリケーション
機能の同期処理において、1つのサイトのデータが変更
された場合でも、その他のサイトのデータを遅延がなく
タイムリーに更新することができる。したがって、デー
タの不整合や、ネットワークの負荷が増大するという問
題点を解決することができる。According to the third aspect of the present invention, the database management system of at least one site of the distributed database system generates an update instruction based on an update request to the database of its own site and stores the same data. Since the database management system at one site receives the update command and updates the database, even if the data at one site is changed in the synchronization process of the replication function, the data at the other site is timely and without delay. Can be updated. Therefore, problems such as data inconsistency and an increase in network load can be solved.
【0020】請求項4に記載の発明である分散データベ
ースシステムの更新命令発生手段は前記更新命令を発生
すると共に履歴確認命令をさらに発生し、前記データベ
ース更新手段はこの履歴確認命令を受けると前記他のサ
イトのデータベースの履歴を確認して前記データベース
を更新するか否かを決定することを特徴とする。The update instruction generating means of the distributed database system according to the present invention generates the update instruction and further generates a history confirmation instruction, and when the database update means receives the history confirmation instruction, the other database update means generates the update instruction. The present invention is characterized in that whether or not the database is updated is determined by checking the history of the database of the site.
【0021】この請求項4の発明によれば、データ変更
履歴を確認してデータベースを更新するかどうかを決定
するので、すでにデータベースが更新されている場合に
は無駄なデータの更新をなくすことができる。According to the fourth aspect of the present invention, it is determined whether or not to update the database by checking the data change history. Therefore, if the database has already been updated, unnecessary updating of the data can be eliminated. it can.
【0022】請求項5に記載の発明である分散データベ
ースシステムの更新命令発生手段は、前記自サイトのデ
ータベースを更新するためのデータベーストリガーを利
用して前記更新命令を発生することを特徴とする。According to a fifth aspect of the present invention, the update command generation means of the distributed database system generates the update command using a database trigger for updating the database of the own site.
【0023】この請求項5の発明によれば、データベー
ス管理システムの標準的な機能であるデータベーストリ
ガーを利用して更新命令を発生するので、データベース
管理システムに新たな機能を追加することなく、レプリ
ケーション機能において遅延のない同期処理を実現する
ことができる。According to the fifth aspect of the present invention, since an update instruction is generated using a database trigger which is a standard function of a database management system, replication is performed without adding a new function to the database management system. Synchronous processing without delay in function can be realized.
【0024】請求項6に記載の発明であるデータベース
管理システムの処理をコンピュータに実行させるための
プログラムを格納した記録媒体は、データベースとデー
タベース管理システムとから構成されたサイトが複数存
在し、そのサイトがネットワークを介して結ばれた分散
データベースシステムにおける各サイトのデータベース
管理システムの処理をコンピュータに実行させるための
プログラムを格納した記録媒体であって、自サイトのデ
ータベースへの更新要求を検知する更新要求検知処理
と、この更新要求検知処理によって検知された更新要求
に基づいて同一のデータを格納する他のサイトのデータ
ベースを更新させるための更新命令を発生する更新命令
発生処理と、この更新命令発生処理によって発生された
前記更新命令を前記他のサイトに転送する更新命令転送
処理と、この更新命令転送処理によって前記他のサイト
に転送された前記更新命令を受信する更新命令受信処理
と、この更新命令受信処理により受信された前記更新命
令によって指定されたデータを更新するデータベース更
新処理とを含むことを特徴とする。A recording medium storing a program for causing a computer to execute the processing of the database management system according to the sixth aspect of the present invention includes a plurality of sites each including a database and a database management system. Is a recording medium storing a program for causing a computer to execute a process of a database management system at each site in a distributed database system connected via a network, the update request detecting an update request to a database at the own site. A detection process, an update command generation process for generating an update command for updating a database of another site storing the same data based on the update request detected by the update request detection process, and the update command generation process The update instruction generated by the The update command transfer process for transferring to the other site, the update command reception process for receiving the update command transferred to the other site by the update command transfer process, and the update command received by the update command reception process And a database update process for updating the designated data.
【0025】この請求項6の発明によれば、データベー
ス管理システムに自サイトのデータベースへの更新要求
に基づいて更新命令を発生させるので、レプリケーショ
ン機能の同期処理において、1つのサイトのデータが変
更された場合でも、その他のサイトのデータを遅延がな
くタイムリーに更新させることができる。したがって、
データの不整合や、ネットワークの負荷が増大するとい
う問題点を解決することができる。According to the sixth aspect of the present invention, an update command is issued to the database management system based on an update request to the database at its own site, so that data at one site is changed in the synchronous processing of the replication function. In this case, the data of other sites can be updated in a timely manner without delay. Therefore,
Problems such as data inconsistency and an increase in network load can be solved.
【0026】請求項7に記載の発明であるデータベース
管理システムの処理をコンピュータに実行させるための
プログラムを格納した記録媒体の更新命令発生処理は前
記更新命令を発生すると共に履歴確認命令をさらに発生
し、前記データベース更新処理はこの履歴確認命令を受
けると前記他のサイトのデータベースの履歴を確認して
前記データベースを更新するか否かを決定することを特
徴とする。According to a seventh aspect of the present invention, in the process of generating an update instruction for a recording medium storing a program for causing a computer to execute the processing of the database management system, the update instruction is generated and a history confirmation instruction is further generated. Upon receiving the history check command, the database update process checks the history of the database at the other site to determine whether to update the database.
【0027】この請求項7の発明によれば、データ変更
履歴を確認してデータベースを更新するかどうかを決定
するので、すでにデータベースが更新されている場合に
は無駄なデータの更新をなくすことができる。According to the seventh aspect of the present invention, it is determined whether or not to update the database by checking the data change history. Therefore, if the database has already been updated, unnecessary updating of the data can be eliminated. it can.
【0028】請求項8に記載の発明であるデータベース
管理システムの処理をコンピュータに実行させるための
プログラムを格納した記録媒体の更新命令発生処理は、
前記自サイトのデータベースを更新するためのデータベ
ーストリガーを利用して前記更新命令を発生することを
特徴とする。The update instruction generation processing of the recording medium storing the program for causing the computer to execute the processing of the database management system according to the invention of claim 8 is as follows
The update command is generated using a database trigger for updating the database of the own site.
【0029】この請求項8の発明によれば、データベー
ス管理システムの標準的な機能であるデータベーストリ
ガーを利用して更新命令を発生するので、データベース
管理システムに新たな機能を追加することなく、レプリ
ケーション機能において遅延のない同期処理を実現する
ことができる。According to the eighth aspect of the present invention, since an update instruction is generated using a database trigger which is a standard function of the database management system, replication is performed without adding a new function to the database management system. Synchronous processing without delay in function can be realized.
【0030】[0030]
【発明の実施の形態】以下、本発明に係るデータベース
管理システム、分散データベースシステム及びデータベ
ース管理システムの処理をコンピュータに実行させるた
めのプログラムを格納した記録媒体の第1の実施形態を
図面に基づいて説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a first embodiment of a database management system, a distributed database system, and a recording medium storing a program for causing a computer to execute processing of the database management system according to the present invention will be described with reference to the drawings. explain.
【0031】図1は本発明の第1の実施形態に係る分散
データベースシステムの構成を示すブロック図である。FIG. 1 is a block diagram showing the configuration of the distributed database system according to the first embodiment of the present invention.
【0032】図1に示すように、分散データベースシス
テム1は、複数のサイト、ここでは一例としてサイト2
Aとサイト2Bの2つのサイトを示し、各サイトはネッ
トワーク3によって接続されている。そして、各サイト
2A、2Bのそれぞれは、データベース管理システム4
A、4Bとデータベース5A、5Bとから構成され、さ
らにサイト2Aには更新命令を格納している更新命令記
憶手段6が含まれている。As shown in FIG. 1, the distributed database system 1 includes a plurality of sites, here, for example, site 2
A shows two sites, site A and site 2B, each site being connected by a network 3. Each of the sites 2A and 2B has a database management system 4
A, 4B and databases 5A, 5B, and the site 2A includes an update command storage means 6 for storing an update command.
【0033】この分散データベースシステム1の複数の
サイトのうち少なくとも1つのサイト、ここではサイト
2Aのデータベース管理システム4Aは、自サイトのデ
ータベース5Aに対するアクセスのうち更新要求を検知
する更新要求検知手段7と、この更新要求検知手段7に
よって検知された更新要求に基づいて同一のデータを格
納している他のサイトのデータベースを更新させるため
の更新命令を発生する更新命令発生手段8と、この更新
命令発生手段8によって発生された更新命令を他のサイ
トに転送する更新命令転送手段9とを含んでいる。The database management system 4A of at least one of the plurality of sites of the distributed database system 1, here the site 2A, includes an update request detecting means 7 for detecting an update request among accesses to the database 5A of its own site. Update instruction generating means 8 for generating an update instruction for updating the database of another site storing the same data based on the update request detected by the update request detecting means 7; Update command transfer means 9 for transferring the update command generated by the means 8 to another site.
【0034】サイト2Aのデータべース5Aと同一のデ
ータを保有している他のサイトとは、ここではサイト2
Bのデータベース5Bが相当する。サイト2Bのデータ
ベース管理システム4Bは、サイト2Aの更新命令転送
手段9によって転送された更新命令を受信する更新命令
受信手段10と、この更新命令受信手段10により受信
された更新命令によって指定されたデータベース5Bの
データを更新するデータベース更新手段11とを含んで
いる。The other site having the same data as the database 5A of the site 2A is the site 2A here.
B corresponds to the database 5B. The database management system 4B of the site 2B includes an update command receiving unit 10 for receiving the update command transferred by the update command transfer unit 9 of the site 2A, and a database designated by the update command received by the update command receiving unit 10. Database updating means 11 for updating 5B data.
【0035】なお、各データベース管理システム4A、
4Bは、各種の処理を行うためのCPUと、この処理の
命令を記憶する記憶手段とを含む通常のコンピュータシ
ステムが含まれる。上記データベース管理システム4
A、4Bに含まれる更新要求検知手段7、更新命令発生
手段8、更新命令転送手段9、更新命令受信手段10、
データベース更新手段11の各処理の命令やタイミング
制約は記憶手段に保持されており、必要に応じてCPU
にロードされ、実行がなされる。Each database management system 4A,
4B includes an ordinary computer system including a CPU for performing various processes and a storage unit for storing instructions for the processes. The above database management system 4
A, 4B, update request detecting means 7, update instruction generating means 8, update instruction transfer means 9, update instruction receiving means 10,
Instructions and timing constraints for each process of the database update unit 11 are stored in the storage unit, and the CPU
And is executed.
【0036】この分散データベースシステム1におい
て、データベース管理システム4Aはデータベース5A
に対するアクセスがあると、まず従来通りにそのアクセ
スに対応するデータベーストリガーを発生させてデータ
ベース5Aに対するアクセスを実行する。そして、その
アクセスがデータベースのデータを変更したり、削除し
たりするような更新要求である場合には、更新要求検知
手段7が検知する。例えば、在庫を管理する場合に、あ
る商品が10個入荷すると、データベース管理システム
4Aは、従来通りにデータベースにデータを挿入するた
めのデータベーストリガーである「INSERT」を下記式
(1)のように発生する。In the distributed database system 1, the database management system 4A includes a database 5A
, An access to the database 5A is executed by generating a database trigger corresponding to the access as in the prior art. If the access is an update request for changing or deleting data in the database, the update request detecting means 7 detects the request. For example, when managing inventory, when 10 items are received, the database management system 4A sets "INSERT", which is a database trigger for inserting data into the database as before, as shown in the following equation (1). appear.
【0037】[0037]
【数2】 INSERT 10 INTO TABLE1 数量 WHERE 商品ID=1 (1) このデータベーストリガー「INSERT」によってデータベ
ース5Aのテーブル1の商品ID=1、数量の欄に「1
0」というデータが図1に示すように挿入される。ここ
で、更新要求検知手段7は、このデータベース5Aに対
するアクセスがデータの内容を変更するような更新要求
であるかどうかを判断するが、この場合「INSERT」はデ
ータを挿入する命令なので、更新要求であると判断す
る。このように更新要求であると判断されるデータベー
ストリガーの例としては、「INSERT」の他に、最新のデ
ータに変更するためのデータベーストリガーである「UP
DATE」、データを削除するためのデータベーストリガー
である「DELEAT」などがある。[Equation 2] INSERT 10 INTO TABLE1 Quantity WHERE Product ID = 1 (1) By this database trigger “INSERT”, product ID = 1 in table 1 of database 5A and “1” in the column of quantity
Data "0" is inserted as shown in FIG. Here, the update request detecting means 7 determines whether or not the access to the database 5A is an update request that changes the content of the data. In this case, since “INSERT” is an instruction to insert data, the update request Is determined to be. Examples of database triggers that are determined to be update requests in this way include, besides “INSERT”, “UP” which is a database trigger for changing to the latest data.
DATE "and" DELEAT "which is a database trigger for deleting data.
【0038】このように更新要求検知手段7によって更
新要求が検知されると、更新命令発生手段8はこの更新
要求に基づいて更新命令を発生する。このとき、とくに
データベース管理システム4Aによって発生されたデー
タベーストリガーを利用して更新命令を発生する。例え
ば、式(1)に示した「INSERT」というデータベースト
リガーから更新命令を発生する場合にはWhen the update request is detected by the update request detecting means 7, the update command generating means 8 generates an update command based on the update request. At this time, an update instruction is generated using a database trigger generated by the database management system 4A. For example, when an update instruction is generated from the database trigger “INSERT” shown in equation (1),
【数3】 INSERT 10 INTO SITE2B.TABLE2 数量 WHERE 商品ID=1 (2) という更新命令を発生する。この式(2)の更新命令に
示すように、データを挿入するテーブルを「SITE2B TAB
LE2」と指定することによってサイト2Bのテーブル2
にデータを挿入する更新命令を発生することができる。[Expression 3] INSERT 10 INTO SITE2B.TABLE2 Quantity WHERE Product ID = 1 (2) An update instruction is generated. As shown in the update instruction of equation (2), the table into which data is to be inserted is “SITE2B TAB
Table 2 of Site 2B by specifying "LE2"
An update instruction to insert data into the data can be generated.
【0039】この更新命令は、それぞれのデータベース
トリガーに対応したものが更新命令記憶手段6に格納さ
れている。とくに、テーブル1のデータと同一のデータ
を保有するサイトが数多くあった場合には、それらのサ
イトそれぞれに対する更新命令が更新命令記憶手段6に
格納されている。例えば、サイト2Aのテーブル1と同
じデータが、サイト2Cのテーブル4、サイト2Dのテ
ーブル5、サイト2Eのテーブル6に保有されていた場
合には、更新命令記憶手段6には、The update command corresponding to each database trigger is stored in the update command storage means 6. In particular, when there are many sites holding the same data as the data in the table 1, an update instruction for each of those sites is stored in the update instruction storage means 6. For example, when the same data as the table 1 of the site 2A is held in the table 4 of the site 2C, the table 5 of the site 2D, and the table 6 of the site 2E, the update instruction storage unit 6 stores
【数4】 INSERT x INTO SITE2C.TABLE4 数量 WHERE 商品ID=y INSERT x INTO SITE2D.TABLE5 数量 WHERE 商品ID=y INSERT x INTO SITE2E.TABLE6 数量 WHERE 商品ID=y という更新命令が格納されており、「x」には挿入され
るデータが入力され、「y」には商品ID番号が入力さ
れて更新命令が生成される。同様に「形状」や「色」な
どの欄にデータを挿入するための更新命令も格納されて
おり、さらに「UPDATE」、「DELEAT」などのデータベー
ストリガーに対する更新命令も格納されている。従っ
て、更新命令発生手段8は、更新要求が検知されると、
そのデータベーストリガーに対応する更新命令を更新命
令記憶手段6から呼び出して、この更新命令をもとにし
て入力するデータを「x」に、商品ID番号を「y」に
入力して更新命令を発生する。[Equation 4] INSERT x INTO SITE2C.TABLE4 Quantity WHERE Product ID = y The data to be inserted is input to “x”, and the product ID number is input to “y” to generate an update command. Similarly, update instructions for inserting data in columns such as "shape" and "color" are stored, and update instructions for database triggers such as "UPDATE" and "DELEAT" are also stored. Therefore, when the update command generation means 8 detects the update request,
An update instruction corresponding to the database trigger is called from the update instruction storage means 6, and based on the update instruction, data to be input is input to "x" and a product ID number is input to "y" to generate an update instruction. I do.
【0040】このようにデータベーストリガーを利用し
て更新命令を発生させることによって、データベースト
リガーはデータベース管理システムの標準的な機能なの
で、データベース管理システムに新たな機能を追加する
ことなく容易に更新命令を発生させることができ、レプ
リケーション機能において遅延のない同期処理を実現す
ることができる。By generating an update command using a database trigger as described above, the database trigger is a standard function of the database management system, so that the update command can be easily issued without adding a new function to the database management system. The synchronization function can be performed without delay in the replication function.
【0041】このようにして、更新命令発生手段8によ
って更新命令が発生されると更新命令転送手段9は更新
命令で指定されたサイトに更新命令を転送する。式
(2)の更新命令ではサイト2Bに転送する。As described above, when the update instruction is generated by the update instruction generating means 8, the update instruction transfer means 9 transfers the update instruction to the site designated by the update instruction. In the update instruction of Expression (2), the data is transferred to the site 2B.
【0042】この更新命令転送手段9によって更新命令
が転送されると、サイト2Bではデータベース管理シス
テム4Bの更新命令受信手段10がこの更新命令を受信
し、データベース更新手段11がその更新命令をデータ
ベーストリガーを実行するのと同様に実行してデータベ
ース5Bを更新する。これで、図2に示すようにサイト
2Aのデータベース5Aに挿入されたデータがサイト2
Bのデータベース5Bにも挿入されてデータの整合性を
とることができた。When the update command is transferred by the update command transfer means 9, the update command receiving means 10 of the database management system 4B receives the update command at the site 2B, and the database update means 11 transmits the update command to the database trigger. To update the database 5B. Thus, the data inserted into the database 5A of the site 2A as shown in FIG.
B was inserted into the database 5B of B, and data consistency was obtained.
【0043】このように、本発明の第1の実施形態の分
散データシステムでは、データベース管理システムが自
サイトのデータベースへの更新要求に基づいて更新命令
を発生するので、レプリケーション機能の同期処理にお
いて、1つのサイトのデータが変更された場合でも、そ
の他のサイトのデータを遅延がなくタイムリーに更新す
ることができる。したがって、データの不整合や、ネッ
トワークの負荷が増大するという問題点を解決すること
ができる。As described above, in the distributed data system according to the first embodiment of the present invention, the database management system generates an update command based on an update request to the database at its own site. Even when data at one site is changed, data at another site can be updated in a timely manner without delay. Therefore, problems such as data inconsistency and an increase in network load can be solved.
【0044】また、更新命令発生手段はデータベース管
理システムの標準的な機能であるデータベーストリガー
を利用して更新命令を発生するので、データベース管理
システムに新たな機能を追加することなく、レプリケー
ション機能において遅延のない同期処理を実現すること
ができる。Further, since the update command generation means generates the update command using a database trigger which is a standard function of the database management system, the update command generation means does not add a new function to the database management system, and has a delay in the replication function. A synchronization process without any error can be realized.
【0045】次に、本発明に係るデータベース管理シス
テム、分散データベースシステム及びデータベース管理
システムの処理をコンピュータに実行させるためのプロ
グラムを格納した記録媒体の第2の実施形態を図面に基
づいて説明する。Next, a database management system, a distributed database system, and a second embodiment of a recording medium storing a program for causing a computer to execute the processing of the database management system according to the present invention will be described with reference to the drawings.
【0046】図3は本発明の第2の実施形態に係る分散
データベースシステムの構成を示すブロック図である。FIG. 3 is a block diagram showing the configuration of the distributed database system according to the second embodiment of the present invention.
【0047】この図3に示す分散データベースシステム
と図1に示す分散データベースシステムとの違いは、サ
イト2Bにデータの変更履歴を保存するためのログ記憶
手段12をさらに含んでいる点である。従って、その他
の構成要素については図1と同様のものなので、詳しい
説明は省略する。第1の実施形態ではサイト2Bのデー
タベース管理システム4Bは更新命令が送られてくると
必ずデータの更新を行っていたが、サイト2Aのデータ
が更新されたときにはすでにサイト2Bのデータが更新
されている場合もあるので、第2の実施形態の分散デー
タベースシステムでは更新命令が発生されたときに必ず
データの更新を行うのではなく、一度データの変更履歴
を確認してからデータの更新を行うかどうかを判断す
る。The difference between the distributed database system shown in FIG. 3 and the distributed database system shown in FIG. 1 is that the site 2B further includes a log storage unit 12 for storing a data change history. Therefore, the other components are the same as those in FIG. 1, and the detailed description is omitted. In the first embodiment, the database management system 4B of the site 2B always updates the data when an update command is sent. However, when the data of the site 2A is updated, the data of the site 2B is already updated. In the distributed database system of the second embodiment, the data is not always updated when an update instruction is issued, but the data update history is checked once and then the data is updated. Judge whether or not.
【0048】この第2の実施形態の分散データベースシ
ステム1において、データベース管理システム4Aはデ
ータベース5Aに対するアクセスがあると、まずそのア
クセスに対応するデータベーストリガーを発生させてデ
ータベース5Aに対するアクセスを実行し、そのアクセ
スが更新要求だった場合には更新要求検知手段7が検知
する。ここで、第2の実施形態の更新命令発生手段8は
更新命令を発生するだけではなく、履歴確認命令をさら
に発生する。この履歴確認命令は、更新命令を発生させ
るのと同様にデータベーストリガーを利用して発生させ
ることができる。例えばデータを参照するためのデータ
ベーストリガー「SELECT」を利用して次式のように発生
させる。In the distributed database system 1 of the second embodiment, when there is access to the database 5A, the database management system 4A first generates a database trigger corresponding to the access and executes access to the database 5A. If the access is an update request, the update request detection means 7 detects the access. Here, the update command generation means 8 of the second embodiment not only generates an update command but also generates a history check command. This history check command can be generated using a database trigger in the same manner as the generation of the update command. For example, using the database trigger "SELECT" for referring to data, it is generated as in the following formula.
【0049】[0049]
【数5】 SELECT 10 FROM SITE2B.LOG INSERT 10 INTO SITE2B.TABLE2 数量 WHERE 商品ID=1 (3) この式(3)の「SELECT」はサイト2Bのログを参照す
るという命令であり、「INSERT」はサイト2Bのテーブ
ル2の商品ID=1、数量の欄に「10」というデータ
を挿入するという命令である。[Equation 5] SELECT 10 FROM SITE2B.LOG INSERT 10 INTO SITE2B.TABLE2 Quantity WHERE Product ID = 1 (3) In this formula (3), “SELECT” is an instruction to refer to the log of the site 2B, and “INSERT” Is a command to insert data "10" into the column of the product ID = 1 and the quantity in the table 2 of the site 2B.
【0050】このようにして、更新命令と履歴確認命令
が発生されると更新命令転送手段9はそれぞれの命令を
指定されたサイトに転送する。そして転送されたサイト
2Bではデータベース管理システム4Bの更新命令受信
手段10が更新命令と履歴確認命令とを受信する。When the update command and the history check command are generated in this way, the update command transfer means 9 transfers each command to the designated site. Then, at the transferred site 2B, the update command receiving means 10 of the database management system 4B receives the update command and the history check command.
【0051】ここで、データベース更新手段11は更新
命令とともに履歴確認命令を受けると、データベースを
更新する前にログ記憶手段12に記憶されているデータ
の変更履歴を参照する。このログ記憶手段12には、商
品ID番号、変更前のデータ、変更後のデータ、変更さ
れた日付などが記憶されている。そして、データベース
5Bのテーブル2のデータがすでに変更されているとい
うデータ変更履歴が存在した場合にはデータベース5B
を更新せず、データ変更履歴が存在しない場合には更新
命令にしたがってデータベース5Bを更新する。例えば
式(3)を例にすると、サイト2Bのテーブル2にデー
タ「10」が挿入されたという履歴が存在しなかった場
合には更新命令にしたがってテーブル2にデータ「1
0」が挿入され、そのような履歴が存在した場合にはテ
ーブル2の更新は行われない。この処理の流れを図4に
示す。Here, when the database update unit 11 receives the history check instruction together with the update instruction, the database update unit 11 refers to the data change history stored in the log storage unit 12 before updating the database. The log storage unit 12 stores a product ID number, data before change, data after change, date of change, and the like. If there is a data change history indicating that the data of table 2 of database 5B has already been changed, database 5B
Is not updated, and if the data change history does not exist, the database 5B is updated according to the update instruction. For example, taking equation (3) as an example, if there is no history indicating that data “10” has been inserted into table 2 of site 2B, data “1” is stored in table 2 according to an update instruction.
"0" is inserted, and if such a history exists, the table 2 is not updated. FIG. 4 shows the flow of this processing.
【0052】この第2の実施形態の分散データベースシ
ステムでは、データベースを更新する前にデータの変更
履歴を確認するので、すでに更新されているデータベー
スを再び更新するようなことがなくなり、無駄なデータ
の更新を行うことがなくなる。とくに、更新するデータ
の数が多い場合、例えば100個のデータを更新しなけ
ればならないような場合には、1回履歴を確認すること
で100回の無駄なデータ更新を行わずに済むので、無
駄なデータ更新を大幅に減らすことができる。In the distributed database system according to the second embodiment, since the data change history is checked before updating the database, it is not necessary to update the already updated database again. No updates will be made. In particular, when the number of data to be updated is large, for example, when 100 pieces of data have to be updated, it is not necessary to perform 100 useless data updates by checking the history once. Useless data updates can be significantly reduced.
【0053】なお、上述したデータベース管理システム
の各処理を実現するためのプログラムは記録媒体に保存
することができ、この記録媒体をコンピュータシステム
によって読み込ませることにより、前記プログラムを実
行してコンピュータを制御しながら上述したデータベー
ス管理システムの各処理を実現することができる。ここ
で、前記記録媒体とは、メモリ装置、磁気ディスク装
置、光ディスク装置等、プログラムを記録することがで
きるような装置が含まれる。A program for realizing each process of the above-mentioned database management system can be stored in a recording medium. By reading this recording medium by a computer system, the program is executed to control the computer. Meanwhile, each process of the database management system described above can be realized. Here, the recording medium includes a device capable of recording a program, such as a memory device, a magnetic disk device, and an optical disk device.
【0054】[0054]
【発明の効果】以上説明したように、本発明のデータベ
ース管理システム、分散データベースシステム及びデー
タベース管理システムの処理をコンピュータに実行させ
るためのプログラムを格納した記録媒体は、データベー
ス管理システムが自サイトのデータベースへの更新要求
に基づいて更新命令を発生し、同一のデータを保有する
他のサイトへ転送してデータベースを更新するので、レ
プリケーション機能の同期処理において、1つのサイト
のデータが変更された場合でも、その他のサイトのデー
タを遅延がなくタイムリーに更新することができる。し
たがって、データの不整合や、ネットワークの負荷が増
大するという問題点を解決することができる。As described above, the recording medium storing the database management system, the distributed database system, and the program for causing the computer to execute the processing of the database management system according to the present invention is the database management system of the present invention. An update command is issued based on an update request to the database, and is transferred to another site having the same data to update the database. Therefore, even if data at one site is changed in the synchronization process of the replication function, , Data on other sites can be updated in a timely manner without delay. Therefore, problems such as data inconsistency and an increase in network load can be solved.
【0055】また、更新命令発生手段はデータベース管
理システムの標準的な機能であるデータベーストリガー
を利用して更新命令を発生するので、データベース管理
システムに新たな機能を追加することなく、レプリケー
ション機能において遅延のない同期処理を実現すること
ができる。Further, since the update command generating means generates the update command using a database trigger which is a standard function of the database management system, the update command generation means does not add a new function to the database management system, and delays in the replication function. A synchronization process without any error can be realized.
【0056】さらに、データベース更新手段は、更新命
令発生手段によって発生された履歴確認命令を受けると
データ変更履歴を確認してからデータベースを更新する
かどうかを決定するので、すでにデータベースが更新さ
れている場合に無駄なデータの更新を行うことがなくな
る。Further, when the database update means receives the history confirmation command generated by the update command generation means, it checks the data change history and then determines whether or not to update the database, so that the database has already been updated. In this case, useless updating of data is not performed.
【図1】本発明による分散データベースシステム及びそ
のデータベース管理システムの第1の実施形態の構成を
示すブロック図である。FIG. 1 is a block diagram showing the configuration of a first embodiment of a distributed database system and its database management system according to the present invention.
【図2】図1に示す分散データベースシステムによるデ
ータ変更の一例を示す図である。FIG. 2 is a diagram showing an example of data change by the distributed database system shown in FIG.
【図3】本発明による分散データベースシステム及びそ
のデータベース管理システムの第2の実施形態の構成を
示すブロック図である。FIG. 3 is a block diagram showing the configuration of a second embodiment of the distributed database system and the database management system according to the present invention.
【図4】図3に示す分散データベースシステムによるデ
ータ変更の一例を示す図である。FIG. 4 is a diagram showing an example of data change by the distributed database system shown in FIG.
【図5】従来の分散データベースシステムの構成を示す
ブロック図である。FIG. 5 is a block diagram showing a configuration of a conventional distributed database system.
【図6】図5に示す従来の分散データベースシステムに
よるデータ変更の一例を示す図である。FIG. 6 is a diagram showing an example of data change by the conventional distributed database system shown in FIG.
【図7】図5に示す従来の分散データベースシステムに
よるデータ変更の一例を示す図である。7 is a diagram showing an example of data change by the conventional distributed database system shown in FIG.
【図8】図5に示す従来の分散データベースシステムに
よるデータ変更の一例を示す図である。8 is a diagram showing an example of data change by the conventional distributed database system shown in FIG.
1、100 分散データベースシステム 2A、2B、101A、101B サイト 3、102 ネットワーク 4A、4B、103A、103B データベース管理シ
ステム 5A、5B、104A、104B データベース 6 更新命令記憶手段 7 更新要求検知手段 8 更新命令発生手段 9 更新命令転送手段 10 更新命令受信手段 11 データベース更新手段 12 ログ記憶手段1, 100 distributed database system 2A, 2B, 101A, 101B site 3, 102 network 4A, 4B, 103A, 103B database management system 5A, 5B, 104A, 104B database 6 update command storage means 7 update request detection means 8 update command generation Means 9 Update instruction transfer means 10 Update instruction reception means 11 Database update means 12 Log storage means
Claims (8)
ムとから構成されたサイトが複数存在し、そのサイトが
ネットワークを介して結ばれた分散データベースシステ
ムにおける各サイトのデータベース管理システムであっ
て、 自サイトのデータベースへの更新要求を検知する更新要
求検知手段と、 この更新要求検知手段によって検知された更新要求に基
づいて同一のデータを格納する他のサイトのデータベー
スを更新させるための更新命令を発生する更新命令発生
手段と、 この更新命令発生手段によって発生された前記更新命令
を前記他のサイトに転送する更新命令転送手段とを含む
ことを特徴とするデータベース管理システム。1. A database management system of each site in a distributed database system in which a plurality of sites each including a database and a database management system are provided, and the sites are connected via a network. Update request detection means for detecting an update request of the same, and an update instruction generation for generating an update instruction for updating a database of another site storing the same data based on the update request detected by the update request detection means Means for transferring the update instruction generated by the update instruction generation means to the another site.
のデータベースを更新するためのデータベーストリガー
を利用して前記更新命令を発生することを特徴とする請
求項1に記載のデータベース管理システム。2. The database management system according to claim 1, wherein the update command generation unit generates the update command using a database trigger for updating the database of the own site.
ムとから構成されたサイトが複数存在し、そのサイトが
ネットワークを介して結ばれた分散データベースシステ
ムであって、 少なくとも1つのサイトのデータベース管理システム
は、このサイトのデータベースへの更新要求を検知する
更新要求検知手段と、この更新要求検知手段によって検
知された更新要求に基づいて同一のデータを格納する他
のサイトのデータベースを更新させるための更新命令を
発生する更新命令発生手段と、この更新命令発生手段に
よって発生された前記更新命令を前記他のサイトに転送
する更新命令転送手段とを含み、 前記他のサイトのデータベース管理システムは、前記更
新命令転送手段によって転送された前記更新命令を受信
する更新命令受信手段と、この更新命令受信手段により
受信された前記更新命令によって指定されたデータを更
新するデータベース更新手段とを含むことを特徴とする
分散データベースシステム。3. A distributed database system in which there are a plurality of sites each including a database and a database management system, and the sites are connected via a network. Update request detection means for detecting an update request to the database of the other, and an update command for updating a database of another site storing the same data based on the update request detected by the update request detection means. Update command generation means, and update command transfer means for transferring the update command generated by the update command generation means to the other site, wherein the database management system of the other site is provided by the update command transfer means Update command receiving means for receiving the transferred update command; Distributed database system comprising a database updating means for updating the data specified by the update command received by the update instruction reception means.
発生すると共に履歴確認命令をさらに発生し、前記デー
タベース更新手段はこの履歴確認命令を受けると前記他
のサイトのデータベースの履歴を確認して前記データベ
ースを更新するか否かを決定することを特徴とする請求
項3に記載の分散データベースシステム。4. The update command generating means generates the update command and further generates a history check command. When the database update means receives the history check command, the database update means checks the database history of the other site. The distributed database system according to claim 3, wherein it is determined whether to update the database.
のデータベースを更新するためのデータベーストリガー
を利用して前記更新命令を発生することを特徴とする請
求項3または4に記載の分散データベースシステム。5. The distributed database system according to claim 3, wherein the update command generation unit generates the update command using a database trigger for updating the database of the own site. .
ムとから構成されたサイトが複数存在し、そのサイトが
ネットワークを介して結ばれた分散データベースシステ
ムにおける各サイトのデータベース管理システムの処理
をコンピュータに実行させるためのプログラムを格納し
た記録媒体であって、 自サイトのデータベースへの更新要求を検知する更新要
求検知処理と、 この更新要求検知処理によって検知された更新要求に基
づいて同一のデータを格納する他のサイトのデータベー
スを更新させるための更新命令を発生する更新命令発生
処理と、 この更新命令発生処理によって発生された前記更新命令
を前記他のサイトに転送する更新命令転送処理と、 この更新命令転送処理によって前記他のサイトに転送さ
れた前記更新命令を受信する更新命令受信処理と、 この更新命令受信処理により受信された前記更新命令に
よって指定されたデータを更新するデータベース更新処
理とを含むことを特徴とするデータベース管理システム
の処理をコンピュータに実行させるためのプログラムを
格納した記録媒体。6. A plurality of sites each including a database and a database management system, wherein the sites execute the processing of the database management system at each site in a distributed database system connected via a network. An update request detecting process for detecting an update request to the database of the own site, and another site storing the same data based on the update request detected by the update request detecting process. Update instruction generation processing for generating an update instruction for updating the database of the above; update instruction transfer processing for transferring the update instruction generated by the update instruction generation processing to the other site; Receiving the update command transferred to the other site A program for causing a computer to execute a process of a database management system, comprising: a new command receiving process; and a database updating process for updating data specified by the update command received by the update command receiving process. Recording medium storing.
発生すると共に履歴確認命令をさらに発生し、前記デー
タベース更新処理はこの履歴確認命令を受けると前記他
のサイトのデータベースの履歴を確認して前記データベ
ースを更新するか否かを決定することを特徴とする請求
項6に記載のデータベース管理システムの処理をコンピ
ュータに実行させるためのプログラムを格納した記録媒
体。7. The update command generation process generates the update command and further generates a history check command. The database update process checks the history of the database at the other site upon receiving the history check command. 7. A recording medium storing a program for causing a computer to execute the processing of the database management system according to claim 6, wherein whether to update the database is determined.
のデータベースを更新するためのデータベーストリガー
を利用して前記更新命令を発生することを特徴とする請
求項6または7に記載のデータベース管理システムの処
理をコンピュータに実行させるためのプログラムを格納
した記録媒体。8. The database management system according to claim 6, wherein the update command generation process generates the update command using a database trigger for updating the database of the own site. Recording medium storing a program for causing a computer to execute the process of (1).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP24891399A JP2001075852A (en) | 1999-09-02 | 1999-09-02 | Database management system, distributed database system, and recording medium with program for making computer execute processing of database management system stored thereon |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP24891399A JP2001075852A (en) | 1999-09-02 | 1999-09-02 | Database management system, distributed database system, and recording medium with program for making computer execute processing of database management system stored thereon |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2001075852A true JP2001075852A (en) | 2001-03-23 |
Family
ID=17185295
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP24891399A Pending JP2001075852A (en) | 1999-09-02 | 1999-09-02 | Database management system, distributed database system, and recording medium with program for making computer execute processing of database management system stored thereon |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2001075852A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003009193A1 (en) * | 2001-07-13 | 2003-01-30 | Hironori Sato | Forwarding system, and forwarding method |
JP2013092945A (en) * | 2011-10-26 | 2013-05-16 | Nomura Research Institute Ltd | Data use system |
-
1999
- 1999-09-02 JP JP24891399A patent/JP2001075852A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003009193A1 (en) * | 2001-07-13 | 2003-01-30 | Hironori Sato | Forwarding system, and forwarding method |
JP2013092945A (en) * | 2011-10-26 | 2013-05-16 | Nomura Research Institute Ltd | Data use system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11520770B2 (en) | System and method for providing high availability data | |
US6343299B1 (en) | Method and apparatus for random update synchronization among multiple computing devices | |
US8095504B2 (en) | N-way synchronization of computer databases | |
JP4612715B2 (en) | Information processing system, data update method, and data update program | |
EP2463789A2 (en) | Computer method and system for combining OLTP database and OLAP database environments | |
CN113396407A (en) | System and method for augmenting database applications using blockchain techniques | |
US20030009753A1 (en) | Method of synchronizing independently distributed software and database schema | |
US20030115268A1 (en) | Conflict resolution for collaborative work system | |
CN104239439A (en) | Selective database replication | |
CN101421726A (en) | Occasionally-connected application server | |
JP2011076487A (en) | Computer and database management program | |
EP3602337B1 (en) | Reducing commit wait in a distributed multiversion database by reading the clock earlier | |
WO2000025213A1 (en) | Distributed transactional processing system and method | |
JP2001142766A (en) | Data base exchange system | |
KR101545626B1 (en) | System for interoperation between dds and dbms | |
WO2016082594A1 (en) | Data update processing method and apparatus | |
US5606705A (en) | Communication coordinator for messages to be sent from at least one data source to a plurality of clients | |
US8412676B2 (en) | Forgetting items with knowledge based synchronization | |
JP2001075852A (en) | Database management system, distributed database system, and recording medium with program for making computer execute processing of database management system stored thereon | |
JP4512386B2 (en) | Backup system and method | |
CN101610225B (en) | Method, system and device for synchronous processing | |
JPH11249943A (en) | Method and system for synchronous management of distributed data base | |
JP2002222107A (en) | Data synchronizing device | |
JP3330006B2 (en) | Network system including information storage system, input system of the system, and | |
US20170154064A9 (en) | Forgetting items with knowledge based synchronization |