JPWO2009107184A1 - Replica processing method, program and apparatus - Google Patents
Replica processing method, program and apparatus Download PDFInfo
- Publication number
- JPWO2009107184A1 JPWO2009107184A1 JP2010500461A JP2010500461A JPWO2009107184A1 JP WO2009107184 A1 JPWO2009107184 A1 JP WO2009107184A1 JP 2010500461 A JP2010500461 A JP 2010500461A JP 2010500461 A JP2010500461 A JP 2010500461A JP WO2009107184 A1 JPWO2009107184 A1 JP WO2009107184A1
- Authority
- JP
- Japan
- Prior art keywords
- update
- address table
- update address
- database
- updated
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/1658—Data re-synchronization of a redundant component, or initial sync of replacement, additional or spare unit
- G06F11/1662—Data re-synchronization of a redundant component, or initial sync of replacement, additional or spare unit the resynchronized component or unit being a persistent storage device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/2053—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant
- G06F11/2094—Redundant storage or storage space
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Quality & Reliability (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
常時接続できない場合でも拠点間のDBの同期を取る。本レプリ処理方法は、ユーザからDBの更新指示を受け付け、更新指示に従ってDBを更新し、少なくとも更新対象の領域を示す更新アドレスと更新後データとを第1アドレス表に格納する工程と、所定のタイミングで他拠点と接続し、他拠点における更新に係る更新アドレスと更新後データとを格納している第2アドレス表を取得し、他拠点との接続を終了する工程と、第1アドレス表及び第2アドレス表に同一の更新アドレスが格納されている場合、所定の規則に従って当該更新アドレスに対応し且つ第1アドレス表及び第2アドレス表に格納される更新後データのいずれかを当該更新アドレスに示され且つDB内の該当領域に反映すべきデータとして特定する工程と、反映すべきデータとして第2アドレス表に格納された更新後のデータが特定された場合、当該更新後データでDB内の該当領域を更新する工程とを含む。Even if you cannot always connect, synchronize DBs between sites. The replication processing method receives a DB update instruction from a user, updates the DB according to the update instruction, and stores at least an update address indicating an area to be updated and updated data in a first address table; Connecting to other sites at the timing, obtaining a second address table storing update addresses and updated data relating to updates at other sites, and terminating the connection with other sites; the first address table and When the same update address is stored in the second address table, either the updated data corresponding to the update address and stored in the first address table or the second address table according to a predetermined rule is the update address. Specified as the data to be reflected in the corresponding area in the DB and the updated data stored in the second address table as the data to be reflected are identified And updating the relevant area in the DB with the updated data.
Description
本発明は、狭帯域回線を用いて拠点間のデータベースの同期を取るための技術に関する。 The present invention relates to a technique for synchronizing a database between bases using a narrowband line.
従来から、例えばバックアップシステムにおいて、データベースのレプリカを作成し、本体とレプリカとを同期させる技術が存在している。 Conventionally, for example, in a backup system, there is a technique for creating a replica of a database and synchronizing the main body and the replica.
例えば特開2000−035911号公報には、複数のサーバで構成された分散システムにおいて、自サーバの保有するデータベースと、他サーバの保有するデータベースとを等価させる技術が開示されている。具体的には、自サーバと他サーバとのデータベースが等価している状態で、他サーバを分散システムから切り離して再度接続する場合、他サーバが切り離されてから再接続するまでの間に、自サーバのデータベースにおいて変更のあったデータを他サーバに送信するようになっている。 For example, Japanese Patent Laid-Open No. 2000-035911 discloses a technique for equalizing a database held by the own server and a database held by another server in a distributed system including a plurality of servers. Specifically, when the other server is disconnected from the distributed system and reconnected while the databases of the local server and the other server are equivalent, the local server is disconnected from the other server until it is reconnected. Data changed in the server database is sent to other servers.
また例えば特開平11−259324号公報には、主記憶装置の記憶内容の複写期間中の信頼性の低下、並びに処理能力の圧迫を極力軽減することができる二重化制御装置が開示されている。具体的には、二重化制御装置は、各チャネル制御装置の機能試験用に設けられ、ダイレクトメモリアクセス(DMA)機能を具備する擬似入出力装置に、現用系の主記憶装置の記憶内容を、他系の主記憶装置に複写を要求するメモリ複写指令を受信・識別するメモリ複写指令受付手段と、メモリ複写指令受付手段が、現用系の中央制御装置からメモリ複写指令を受信した場合に、現用系の主記憶装置の各アドレスに格納されている単位データを順次抽出し、他系の主記憶装置の同一アドレスに格納するデータ複写動作を、主記憶装置の全記憶領域に就いて連続して実行した後、メモリ複写動作の実行完了を、現用系の中央制御装置に通知するメモリ複写動作制御手段とを備える。 Further, for example, Japanese Patent Application Laid-Open No. 11-259324 discloses a duplex control device that can reduce the reduction in reliability during the copying period of the stored contents of the main storage device and the compression of processing capacity as much as possible. Specifically, the duplex control device is provided for the function test of each channel control device, and the stored contents of the main memory device of the active system are transferred to the pseudo input / output device having the direct memory access (DMA) function. The memory copy command receiving means for receiving and identifying the memory copy command for requesting copying to the main storage device of the system, and the memory copy command receiving means when the memory copy command receiving means receives the memory copy command from the active central controller. The unit data stored in each address of the main storage device is sequentially extracted, and the data copying operation to store in the same address of the other main storage device is continuously executed for all the storage areas of the main storage device And a memory copy operation control means for notifying the active central controller of completion of execution of the memory copy operation.
さらに例えば特開2007−233543号公報には、正サイトと副サイト間のネットワークを狭帯域幅回線で構築しながらもデータベースの同期処理を現実的な時間で実現し、かつシステムの運用コストを抑制することができるデータベース管理システムが開示されている。具体的には、データベース管理システムは、データベースを格納するストレージ装置と、データベースの参照要求又は更新要求を受け付けて、ストレージ装置のデータベースを参照又は更新するデータベース管理サーバとから構成され、データベース管理サーバは、更新要求に基づいてストレージ装置のデータベースを読み込んでデータを更新する更新実行部と、更新を行ったデータ内の未使用領域を予め設定した文字又は値で連続的に上書きする不要情報除去部と、データをストレージ装置へ書き込む書込部とを備える。また、ストレージ装置は、ネットワークを介してデータベースの複製を格納する第2のストレージ装置に接続され、データベースを第2のストレージ装置へ転送するリモートコピー部を備える。そして、ストレージ装置のデータベースをネットワーク装置を介して転送する際に、当該ネットワーク装置において、連続した値を圧縮してデータベースを転送するようになっている。 Further, for example, in Japanese Patent Application Laid-Open No. 2007-233543, the database synchronization processing is realized in a realistic time while the network between the primary site and the secondary site is constructed with a narrow bandwidth line, and the operation cost of the system is suppressed. A database management system that can do this is disclosed. Specifically, the database management system includes a storage device that stores a database, and a database management server that receives a database reference request or update request and refers to or updates the database of the storage device. An update execution unit that reads the database of the storage device based on the update request and updates the data, and an unnecessary information removal unit that continuously overwrites unused areas in the updated data with preset characters or values; And a writing unit for writing data to the storage device. In addition, the storage device includes a remote copy unit that is connected to a second storage device that stores a copy of the database via the network and transfers the database to the second storage device. When the database of the storage device is transferred via the network device, the network device is configured to transfer the database by compressing continuous values.
しかしながら、これらの公報に記載された技術は、いずれもがデータのバックアップに関する技術であって、複数のデータベースの各々が更新されるような場合については一切考慮されていない。 However, the techniques described in these publications are all related to data backup, and no consideration is given to the case where each of a plurality of databases is updated.
なお、拠点毎にデータベースが設置され、各々のデータベースが更新されるような場合、例えば広帯域回線を用いて拠点間を常時接続して、ある拠点のデータベースを更新する場合には、他の拠点のデータベースを排他制御するなどして、拠点間で同期させる技術が従来から存在している。
しかしながら、常時接続サービスが利用できない地域(例えば電話局から離れた地域など)もあり、上記のような従来技術を採用することができない場合がある。また、このような地域において常時接続サービスを利用するためには、例えば専用線を導入する必要があり、設備投資及び通信料などのコストがかかってしまう。 However, there are areas where the always-on service cannot be used (for example, areas away from the telephone office), and there are cases where the above-described conventional technology cannot be employed. Further, in order to use the always-on service in such an area, it is necessary to introduce a dedicated line, for example, and costs such as capital investment and communication charges are required.
従って、本発明の目的は、拠点毎にデータベースが設置され、各々のデータベースが更新されるシステムにおいて、常時接続サービスが利用できない地域に拠点を有する場合であっても、コストを抑えつつ、拠点間のデータベースの同期を取るための技術を提供することである。 Accordingly, an object of the present invention is to provide a system in which a database is installed at each site and each database is updated. Is to provide technology for database synchronization.
また、本発明の他の目的は、データベースの更新漏れを防止するための技術を提供することである。 Another object of the present invention is to provide a technique for preventing omission of database update.
本発明に係るレプリ処理方法は、狭帯域回線を用いて拠点間の通信を行う場合におけるレプリ処理方法であって、ユーザからデータベースの更新指示を受け付けた場合、当該更新指示に従ってデータベースを更新すると共に、少なくとも更新対象の領域を示す更新アドレスと更新後のデータとを第1の更新アドレステーブルに格納する第1更新ステップと、所定のタイミングにて、他拠点と接続して、他拠点における更新に係る更新アドレスと更新後のデータとを格納している第2の更新アドレステーブルを取得し、他拠点との接続を終了する取得ステップと、第1の更新アドレステーブル及び第2の更新アドレステーブルに同一の更新アドレスが格納されている場合、所定のルールに従って、当該更新アドレスに対応し且つ第1の更新アドレステーブル及び第2の更新アドレステーブルに格納される更新後のデータのいずれかを、当該更新アドレスに示され且つデータベース内の該当する領域に反映すべきデータとして特定するステップと、反映すべきデータとして第2の更新アドレステーブルに格納された更新後のデータが特定された場合、当該更新後のデータでデータベース内の該当する領域を更新する第2更新ステップとを含む。 The replication processing method according to the present invention is a replication processing method in the case of performing communication between bases using a narrowband line. When a database update instruction is received from a user, the database is updated according to the update instruction. A first update step of storing at least an update address indicating an area to be updated and updated data in the first update address table; and connecting to another base at a predetermined timing to update at another base The second update address table storing the update address and the updated data is acquired, the acquisition step of ending the connection with another base, the first update address table, and the second update address table When the same update address is stored, the first update address corresponding to the update address and corresponding to the first update address is determined according to a predetermined rule. Specifying any of the updated data stored in the stable table and the second update address table as data to be reflected in the corresponding area in the database indicated by the update address, and the data to be reflected When the data after update stored in the second update address table is specified, a second update step of updating the corresponding area in the database with the data after update is included.
このようにすれば、常時接続サービスが利用できない地域に拠点を有する場合であっても、例えばISDN(Integrated Services Digital Network)回線などの狭帯域回線を利用して拠点間のデータベースの同期を取ることができるようになる。また、例えば従量制の回線であれば、通信コストを最小限に抑えることができる。 In this way, even if the base is located in an area where the always-on service cannot be used, the database between the bases is synchronized using a narrowband line such as an ISDN (Integrated Services Digital Network) line. Will be able to. In addition, for example, in the case of a pay-as-you-go system, communication costs can be minimized.
また、第2更新ステップによりデータベース内の該当する領域の更新がなされた場合、データベース内の該当する領域の更新を指示したユーザに更新データの破棄を通知するステップをさらに含むようにしてもよい。 Further, when the corresponding area in the database is updated by the second update step, a step of notifying the user who has instructed to update the corresponding area in the database of discarding the update data may be further included.
このようにすれば、自拠点と他拠点とにおいて同一箇所が更新され、他拠点のデータがデータベースに反映された場合には、ユーザに通知がなされるので、ユーザは再度更新することが可能となり、更新漏れを防止することができる。 In this way, when the same location is updated in the local site and the other site, and the data of the other site is reflected in the database, the user is notified, so the user can update again. , Can prevent omission of update.
また、所定のルールが、更新回数の多い拠点を優先するルール、更新対象数の多い拠点を優先するルール、更新日時の遅い拠点を優先するルール、更新アドレスの差分の小さい拠点を優先するルール、又は、予め設定された優先度の高い拠点を優先するルールである場合もある。 In addition, a predetermined rule gives priority to a base with a large number of updates, a rule to give priority to a base with a large number of updates, a rule to give priority to a base with a late update date, a rule to give priority to a base with a small update address difference, Or it may be a rule which gives priority to a base with high priority set up beforehand.
例えば、更新回数の多い拠点を優先するルール又は更新対象数の多い拠点を優先するルールに従って処理することで、更新頻度の多い拠点のデータを優先することができるようになる。また、更新日時の遅い拠点を優先するルールに従って処理することで、現状に近いデータをデータベースに反映することができるようになる。例えばデータベースに格納されているのが測定データであれば、最後に更新されたデータが現状に最も近いためである。さらに、更新アドレスの差分の小さい拠点を優先するルールに従って処理することで、複数領域に渡る更新を一連の更新としてデータベースに反映することができるようになる。例えば更新アドレスの差分が小さいほど連続して更新している可能性が高く、一連の更新としてデータベースに反映させた方がよいためである。また、予め設定された優先度の高い拠点を優先するルールに従って処理することで、例えば本社のデータを優先することができるようになる。 For example, by performing processing according to a rule that prioritizes a base with a large number of updates or a rule that prioritizes a base with a large number of updates, data at a base with a high update frequency can be prioritized. In addition, by processing according to the rule that prioritizes the base with the latest update date and time, data close to the current state can be reflected in the database. For example, if the measurement data is stored in the database, the last updated data is closest to the current state. Furthermore, by processing according to a rule that gives priority to a base having a small difference in update address, it becomes possible to reflect an update over a plurality of areas in the database as a series of updates. For example, the smaller the difference between the update addresses, the higher the possibility of updating continuously, and it is better to reflect it in the database as a series of updates. In addition, by performing processing according to a rule that prioritizes a high priority base set in advance, for example, data of the head office can be prioritized.
また、予め設定されたスケジュールに従って取得ステップ以降のステップを実行する場合もある。さらに、狭帯域回線が従量制の回線である場合もある。例えば、システムの運用状況に応じて、更新頻度が高い場合には実行間隔を短くし、更新頻度が低い場合には実行間隔を高くするようなスケジュールを設定すればよい。 In some cases, the steps after the acquisition step are executed according to a preset schedule. Further, the narrowband line may be a metered line. For example, a schedule that shortens the execution interval when the update frequency is high and sets the execution interval high when the update frequency is low may be set according to the operation status of the system.
なお、本発明に係るレプリ処理方法をコンピュータに実行させるためのプログラムを作成することができ、当該プログラムは、例えばフレキシブル・ディスク、CD−ROM、光磁気ディスク、半導体メモリ、ハードディスク等の記憶媒体又は記憶装置に格納される。また、ネットワークを介してディジタル信号にて頒布される場合もある。なお、処理途中のデータについては、コンピュータのメモリ等の記憶装置に一時保管される。 Note that a program for causing a computer to execute the replication processing method according to the present invention can be created, and the program is, for example, a storage medium such as a flexible disk, a CD-ROM, a magneto-optical disk, a semiconductor memory, a hard disk, or the like. It is stored in a storage device. In some cases, digital signals are distributed over a network. Note that data being processed is temporarily stored in a storage device such as a computer memory.
本発明によれば、拠点毎にデータベースが設置され、各々のデータベースが更新されるシステムにおいて、常時接続サービスが利用できない地域に拠点を有する場合であっても、コストを抑えつつ、拠点間のデータベースの同期を取ることができるようになる。 According to the present invention, in a system in which a database is installed for each base and each database is updated, even when the base is located in an area where the always-on service cannot be used, the database between the bases is suppressed while reducing costs. Will be able to synchronize.
本発明の他の側面によれば、データベースの更新漏れを防止することができるようになる。 According to another aspect of the present invention, it is possible to prevent omission of database update.
図1に本発明の一実施の形態に係るシステム概要を示す。図1の例では、拠点Aと、拠点Bと、拠点Cとが、例えばISDN回線などの狭帯域回線により公衆回線網1に接続される。なお、ここでは、拠点Aと拠点B及び拠点Cの少なくともいずれかが、電話局から遠く離れた地域に所在し、例えばADSL(Asymmetric Digital Subscriber Line)などの常時接続ができないか、あるいは経済的理由により常時接続を選択できないものとする。 FIG. 1 shows an outline of a system according to an embodiment of the present invention. In the example of FIG. 1, the base A, the base B, and the base C are connected to the public line network 1 by a narrow band line such as an ISDN line. In this case, at least one of the base A, the base B, and the base C is located in an area far away from the telephone station and, for example, ADSL (Asymmetric Digital Subscriber Line) or the like cannot be always connected, or for economic reasons. It is assumed that the continuous connection cannot be selected.
また、拠点Aには、ISDN回線に接続される管理装置3と、同期の対象となるデータを格納するデータベース5と、ユーザ情報(例えば、ユーザID、ユーザ名及びメールアドレス)を格納するユーザ情報格納部7と、データベース5を他拠点と同期させるためのレプリ処理に関する情報(例えば、スケジュール及び処理モード)を格納するレプリ情報格納部9と、後で説明する更新アドレス表を格納する更新アドレス表格納部11とが含まれる。データベース5、ユーザ情報格納部7、レプリ情報格納部9及び更新アドレス表格納部11は、管理装置3により管理される。
In addition, the base A has a
管理装置3は、ユーザからのデータ更新指示又はユーザ情報などの入力を受け付ける入力部31と、公衆回線網1を介して他拠点とデータのやりとりをする通信部33と、レプリ情報格納部9及び更新アドレス表格納部11に格納されたデータに基づきレプリ処理を実施するレプリ制御部35とを有する。さらにレプリ制御部35は、レプリ情報格納部9に格納されたスケジュールを参照し、レプリ処理の実施時間に達したか判断するスケジュール管理部351と、他拠点の更新アドレス表を取得する更新アドレス表取得部352と、更新アドレス表格納部11に格納された更新アドレス表と他拠点の更新アドレス表とに基づき、更新回数などを集計する集計処理部353と、レプリ情報格納部9に格納された処理モード及び集計処理部353の集計結果に基づき、優先すべき拠点を判定する判定部354と、ユーザからのデータ更新指示に従ってデータベース5を更新するDB更新処理部355と、ユーザ情報格納部7に格納されたメールアドレスに基づき、更新破棄通知を送信する更新破棄通知部356とを含む。
The
なお、図1の例では図示していないが、拠点B及び拠点Cは、拠点Aと同じ構成を有する。また、図1では、拠点A、拠点B及び拠点Cの3つの例を示しているが、拠点の数は3つに限定されない。以降では、拠点数が2つの場合を基本として説明する。 Although not shown in the example of FIG. 1, the base B and the base C have the same configuration as the base A. Further, although FIG. 1 shows three examples of the base A, the base B, and the base C, the number of bases is not limited to three. Hereinafter, the case where the number of bases is two will be basically described.
図2に、ユーザ情報格納部7に格納されるデータの一例を示す。図2の例では、ユーザ情報格納部7には、ユーザIDの列と、ユーザ名の列と、メールアドレスの列とが含まれる。 FIG. 2 shows an example of data stored in the user information storage unit 7. In the example of FIG. 2, the user information storage unit 7 includes a user ID column, a user name column, and a mail address column.
また、図3に、更新アドレス表格納部に格納される更新アドレス表の一例を示す。図3の例では、更新アドレス表には、更新アドレスの列と、操作内容の列と、旧データの列と、新データの列とが含まれる。更新アドレスの列には、更新対象の領域を指すアドレスが設定される。また、旧データの列には、更新前のデータが設定され、新データの列には、更新後のデータが設定される。なお、新データの列における「−」は、その領域のデータが削除されたことを表す。 FIG. 3 shows an example of an update address table stored in the update address table storage unit. In the example of FIG. 3, the update address table includes an update address column, an operation content column, an old data column, and a new data column. An address indicating an update target area is set in the update address column. In addition, data before update is set in the old data column, and data after update is set in the new data column. Note that “-” in the column of new data indicates that the data in the area has been deleted.
次に、図4乃至図14を用いて、図1に示したシステムの処理について説明する。まず、図4を用いて、処理に必要なデータを登録する際の処理について説明する。例えば、ユーザは、管理装置3の表示装置に表示されたユーザ登録画面(図示せず)において、キーボードやマウスを操作して、ユーザ名及びメールアドレスを入力する。そして、管理装置3の入力部31は、ユーザ名及びメールアドレスの入力を受け付け、ユーザ情報格納部7に登録する(図4:ステップS1)。このとき、管理装置3は、所定の規則によりユーザIDを付与し、ユーザ名及びメールアドレスに対応付けてユーザ情報格納部7に登録する。なお、既に登録済みのユーザの場合には、本ステップをスキップする。
Next, processing of the system shown in FIG. 1 will be described with reference to FIGS. First, a process when registering data necessary for the process will be described with reference to FIG. For example, the user operates a keyboard and a mouse on a user registration screen (not shown) displayed on the display device of the
また、ユーザは、管理装置3の表示装置に表示されたスケジュール設定画面(図示せず)において、キーボードやマウスを操作して、レプリ処理のスケジュール(例えば、処理間隔など)を入力する。なお、レプリ処理のスケジュールについては、事前に、拠点間での合意が取れているものとする。そして、入力部31は、レプリ処理のスケジュールの入力を受け付け、レプリ情報格納部9に登録する(ステップS3)。なお、レプリ処理のスケジュールが既に設定済みであり、変更がなければ、本ステップをスキップする。
Further, the user operates a keyboard and a mouse on a schedule setting screen (not shown) displayed on the display device of the
さらに、ユーザは、管理装置3の表示装置に表示された処理モード選択画面(図示せず)において、キーボードやマウスを操作して、予め用意された処理モードのうち、いずれかを選択する。なお、処理モードの詳細については、以下で説明する。また、いずれの処理モードを選択するかについても、事前に、拠点間での合意が取れているものとする。そして、入力部31は、処理モードの選択入力を受け付け、レプリ情報格納部9に格納する(ステップS5)。すなわち、各拠点において、レプリ処理のスケジュール及び処理モードについては、同一の設定がなされる。なお、ステップS1乃至ステップS5において、ユーザが、管理装置3に接続されるユーザ端末を操作して、入力及び選択を行う場合もある。この場合には、ユーザ情報、スケジュール及び処理モードなどが、ユーザ端末から管理装置3に送信される。
Furthermore, the user operates a keyboard or mouse on a processing mode selection screen (not shown) displayed on the display device of the
次に、図5を用いて、データベース5を更新する際の処理について説明する。まず、ユーザは、管理装置3の表示装置に表示されたDB編集画面(図示せず)において、キーボードやマウスを操作して、データベース5のデータ更新を指示する。なお、既にログインなどが完了して、ユーザID等のデータを管理装置3が保持しているものとする。そして、管理装置3の入力部31は、データ更新指示を受け付け、一旦記憶装置に格納する(図5:ステップS11)。そして、入力部31は、記憶装置に格納されたデータ更新指示に従ってデータベース5を更新する(ステップS13)。この際、入力部31は、更新前のデータを一旦記憶装置に格納する。また、入力部31は、更新対象の領域を指すアドレスと、更新前のデータと、更新後のデータと、当該更新を指示したユーザのユーザIDと、更新日時とを含むレコードを生成し、更新アドレス表格納部11に追加する(ステップS15)。更新日時には現在日時を設定する。なお、DB編集画面において、複数の領域の更新が指示された場合には、領域毎にレコードを生成する。また、ステップS11において、ユーザが、管理装置3に接続されるユーザ端末を操作して、データ更新を指示する場合もある。この場合には、データ更新指示が、ユーザ端末から管理装置3に送信される。
Next, a process for updating the
図5のような処理を実施することにより、自拠点におけるデータ更新に関する情報を更新アドレス表格納部11に登録することができる。 By performing the processing as shown in FIG. 5, it is possible to register information related to data update at the local site in the update address table storage unit 11.
次に、図6乃至図14を用いて、本実施の形態におけるレプリ処理を説明する。具体的な処理フローを説明する前に、処理モードについて詳細に説明する。本実施の形態では、図6に示すような5つのモード(モード1乃至モード5)が用意され、レプリ処理において複数の拠点で同一領域を更新していると判断された場合、選択された処理モードに定義された優先条件に従って、どの拠点の更新内容を優先するかが決定される。以下、各処理モードについて説明する。 Next, the replication process according to the present embodiment will be described with reference to FIGS. Before describing the specific processing flow, the processing mode will be described in detail. In this embodiment, five modes (mode 1 to mode 5) as shown in FIG. 6 are prepared, and when it is determined that the same area is updated at a plurality of bases in the replication process, the selected process is performed. In accordance with the priority conditions defined in the mode, it is determined which update contents of which base are prioritized. Hereinafter, each processing mode will be described.
モード1は、前回のレプリ処理から今回のレプリ処理までの間において、更新回数の多い方を優先するモードである。例えば、図7に示すように、拠点Aにおいてアドレスα及びアドレスγの領域が更新(更新回数:3)され、拠点Bにおいてアドレスα及びアドレスβの領域が更新(更新回数:2)された場合、両拠点において更新がなされたアドレスαの領域については、更新回数の多い拠点Aの更新内容を優先する。なお、アドレスβ及びアドレスγの領域は、一方の拠点においてのみ更新がなされているので、その更新内容を反映すればよい。すなわち、拠点A及び拠点Bの各々において、アドレスα及びアドレスγの領域には、拠点Aの更新内容を反映し(アドレスγの領域については2回目の更新内容)、アドレスβの領域には、拠点Bの更新内容を反映することにより、データベース5の同期が取られる。なお、一方の拠点においてのみ更新がなされている領域については、他のモードでも同じである。
Mode 1 is a mode in which priority is given to the one with the highest number of updates during the period from the previous replication process to the current replication process. For example, as illustrated in FIG. 7, the areas of the address α and the address γ are updated at the base A (update count: 3), and the areas of the address α and the address β are updated at the base B (update count: 2). For the area of the address α updated at both bases, priority is given to the update contents of the base A with a large number of updates. Note that the areas of the address β and the address γ are updated only at one of the bases, so that the updated contents need only be reflected. That is, in each of the base A and the base B, the update contents of the base A are reflected in the areas of the address α and the address γ (the second update contents for the area of the address γ), and the areas of the address β are By reflecting the updated contents of the base B, the
モード2は、前回のレプリ処理から今回のレプリ処理までの間において、更新対象数の多い方を優先するモードである。例えば、図8に示すように、拠点Aにおいてアドレスα及びアドレスγの領域が更新(更新対象数:2)され、拠点Bにおいてアドレスα、アドレスβ及びアドレスδの領域が更新(更新対象数:3)された場合、両拠点において更新がなされたアドレスαの領域については、更新対象数の多い拠点Bの更新内容を優先する。すなわち、拠点A及び拠点Bの各々において、アドレスγの領域には、拠点Aの更新内容を反映し(2回目の更新内容)、アドレスα、アドレスβ及びアドレスδの領域には、拠点Bの更新内容を反映することにより、データベース5の同期が取られる。
モード3は、更新日時を比較し、更新時間の遅い方を優先するモードである。例えば、図9に示すように、拠点Aにおいてアドレスα及びアドレスβの領域が更新され、拠点Bにおいてアドレスα及びアドレスγの領域が更新された場合、両拠点において更新がなされたアドレスαの領域については、更新日時の遅い拠点Bの更新内容を優先する。すなわち、拠点A及び拠点Bの各々において、アドレスβの領域には、拠点Aの更新内容を反映し、アドレスα及びアドレスγの領域には、拠点Bの更新内容を反映することにより(アドレスγの領域については2回目の更新内容)、データベース5の同期が取られる。
モード4は、更新アドレスの差分を比較し、更新アドレスの差分の小さい方を優先するモードである。例えば、図10に示すように、拠点Aにおいてアドレスα及びアドレスβの領域が更新(更新アドレスの差分=|アドレスα−アドレスβ|)され、拠点Bにおいてアドレスα及びアドレスγの領域が更新(更新アドレスの差分=|アドレスα−アドレスγ|)された場合、両拠点において更新がなされたアドレスαの領域については、更新アドレスの差分の小さい拠点Aの更新内容を優先する。なお、ここでは、アドレスα<アドレスβ<アドレスγとする。すなわち、拠点A及び拠点Bの各々において、アドレスα及びアドレスβの領域には、拠点Aの更新内容を反映し、アドレスγの領域には、拠点Bの更新内容を反映することにより、データベース5の同期が取られる。
モード5は、本社となる方(もしくは、拠点毎に設定された優先度の高い方)を優先するモードである。例えば、図11に示すように、拠点A(本社)においてアドレスα及びアドレスβの領域が更新され、拠点Bにおいてアドレスα及びアドレスγの領域が更新された場合、両拠点において更新がなされたアドレスαの領域については、拠点A(本社)の更新内容を優先する。すなわち、拠点A及び拠点Bの各々において、アドレスα及びアドレスβの領域には、拠点Aの更新内容を反映し、アドレスγの領域には、拠点Bの更新内容を反映することにより、データベース5の同期が取られる。
次に、図12乃至図14を用いて、本実施の形態におけるレプリ処理の具体的な処理フローを説明する。なお、ここでは、拠点Aと拠点Bとでデータベース5を同期させる場合に、拠点Aにおいて実施されるレプリ処理を例として説明する(以下、拠点Aを自拠点と呼ぶ)。まず、レプリ制御部35のスケジュール管理部351が、レプリ情報格納部9に格納されたスケジュールを参照し、レプリ処理の実施時間に達したか判断する。そして、レプリ処理の実施時間に達したと判断された場合、管理装置3は、図12に示すような処理を実施する。なお、スケジュールについては、拠点間で合意が取れているため、他拠点においても同時にレプリ処理が開始される。
Next, a specific processing flow of the replication processing according to the present embodiment will be described with reference to FIGS. Here, when the
まず、通信部33が、例えばダイヤルアップ接続などの通信接続処理を実施し、公衆回線網を介して他拠点と接続する(図12:ステップS21)。そして、レプリ制御部35の更新アドレス表取得部352が、他拠点の更新アドレス表格納部11から更新アドレス表を取得し、記憶装置に格納する(ステップS23)。この際、他拠点の更新アドレス表に格納された旧データ、操作内容、更新者情報を除いたデータ(すなわち、更新アドレス、新データ及び更新日時)を取得するようにしてもよい。また、選択された処理モードに応じて必要なデータを取得するようにしてもよい。その後、通信部33は、通信切断処理を実施し、他拠点との接続を終了する(ステップS25)。なお、拠点B(他拠点)においては、拠点A(自拠点)から更新アドレス表を取得することになるが、各々の拠点において、相手拠点の更新アドレス表の取得が完了した後に接続を終了する。通信接続及び通信切断処理については、従来の処理と変わらないため、これ以上述べない。
First, the
そして、レプリ制御部35の判定部354は、自拠点の更新アドレス表及び他拠点の更新アドレス表に同一の更新アドレスが含まれるか判断する(ステップS27)。自拠点の更新アドレス表及び他拠点の更新アドレス表に同一の更新アドレスが含まれると判断された場合(ステップS27:Yesルート)、すなわち、自拠点及び他拠点において同一領域を更新している場合、管理装置3は、同一アドレス更新処理を実施する(ステップS29)。なお、ここでは、自拠点の更新アドレス表及び他拠点の更新アドレス表の両方に含まれる更新アドレスを「同一アドレス」と呼ぶ。
Then, the
同一アドレス更新処理については図13及び図14を用いて説明する。まず、レプリ制御部35の集計処理部353は、自拠点及び他拠点の更新アドレス表を基に集計処理を実施する(図13:ステップS41)。具体的には、各拠点について、更新アドレスをキーとして更新アドレス表に含まれるレコードをソートし、更新回数及び更新対象数を集計し、集計結果を記憶装置に格納する。
The same address update process will be described with reference to FIGS. First, the
そして、レプリ制御部35の判定部354は、レプリ情報格納部9から処理モードを取得し(ステップS43)、処理モードが「モード1」に設定されているか判断する(ステップS45)。処理モードが「モード1」に設定されている場合(ステップS45:Yesルート)、判定部354は、記憶装置に格納された、自拠点及び他拠点の各々の更新回数を抽出し、比較する(ステップS47)。
Then, the
自拠点の更新回数が他拠点の更新回数より多い場合(ステップS49:Yesルート)、以下で説明するステップS51乃至ステップS55の処理をスキップし、元の処理に戻る。すなわち、自拠点の更新内容をデータベース5に反映することになるが、上で説明したステップS13(図5)の処理においてデータベース5を既に更新しているため、ここでは特に処理は行わない。
When the number of updates at the local site is greater than the number of updates at the other site (step S49: Yes route), the processing of steps S51 to S55 described below is skipped and the processing returns to the original processing. That is, the update contents of the local site are reflected in the
一方、自拠点の更新回数が他拠点の更新回数以下の場合(ステップS49:Noルート)、レプリ制御部35のDB更新処理部355は、記憶装置に格納された他拠点の更新アドレス表に基づき、データベース5を更新する(ステップS51)。すなわち、データベース5内の同一アドレスの指す領域に、他拠点の更新内容を反映する。また、レプリ制御部35の更新破棄通知部356は、更新アドレス表格納部11を参照し、自拠点において同一アドレスを更新したユーザを特定する(ステップS53)。そして、レプリ制御部35の更新破棄通知部356は、特定ユーザに対応するメールアドレスをユーザ情報格納部7から取得し、特定ユーザによる更新内容が破棄された旨のメールを特定ユーザ宛てに送信する(ステップS55)。なお、更新対象を特定するための情報や更新日時などをメールに含めるようにしてもよい。そして、元の処理に戻る。
On the other hand, when the update count of the local site is less than or equal to the update count of the other site (step S49: No route), the DB
一方、ステップS45において、処理モードが「モード1」に設定されていなければ(ステップS45:Noルート)、レプリ制御部35の判定部354は、処理モードが「モード2」に設定されているか判断する(ステップS57)。処理モードが「モード2」に設定されている場合(ステップS57:Yesルート)、レプリ制御部35の判定部354は、記憶装置に格納された、自拠点及び他拠点の各々の更新対象数を抽出し、比較する(ステップS59)。
On the other hand, if the processing mode is not set to “mode 1” in step S45 (step S45: No route), the
自拠点の更新対象数が他拠点の更新対象数より多い場合(ステップS61:Yesルート)、レプリ制御部35のDB更新処理部355は、上で説明したステップS51乃至ステップS55の処理をスキップし、元の処理に戻る。すなわち、自拠点の更新内容をデータベース5に反映することになるが、上で説明したステップS13(図5)の処理においてデータベース5を既に更新しているため、ここでは特に処理は行わない。
When the update target number of the local base is larger than the update target number of the other base (step S61: Yes route), the DB
一方、自拠点の更新対象数が他拠点の更新対象数以下の場合(ステップS61:Noルート)、レプリ制御部35のDB更新処理部355は、上で説明したステップS51乃至ステップS55の処理を実施する。なお、ステップS51乃至ステップS55の処理は、上で説明した処理と変わらないため、ここでは説明を省略する。そして、元の処理に戻る。
On the other hand, when the update target number of the local base is less than or equal to the update target number of the other base (step S61: No route), the DB
一方、ステップS57において、処理モードが「モード2」に設定されていなければ(ステップS57:Noルート)、端子Aを介してステップS63(図14)の処理に移行する。
On the other hand, if the processing mode is not set to “
図14の処理の説明に移行して、端子Aの後、レプリ制御部35の判定部354は、処理モードが「モード3」に設定されているか判断する(図14:ステップS63)。処理モードが「モード3」に設定されている場合(ステップS63:Yesルート)、レプリ制御部35の判定部354は、自拠点及び他拠点の更新アドレス表に基づき、同一アドレスのデータを最後に更新したのが自拠点であるか判断する(ステップS65)。
Shifting to the description of the processing in FIG. 14, after the terminal A, the
同一アドレスのデータを最後に更新したのが自拠点である場合(ステップS65:Yesルート)、端子Bを介して図13の処理に戻り、上で説明したステップS51乃至ステップS55の処理をスキップして、元の処理に戻る。すなわち、自拠点の更新内容をデータベース5に反映することになるが、上で説明したステップS13(図5)の処理においてデータベース5を既に更新しているため、ここでは特に処理は行わない。
If it is the local site that last updated the data of the same address (step S65: Yes route), the process returns to the process of FIG. 13 via the terminal B, and the processes of steps S51 to S55 described above are skipped. To return to the original process. That is, the update contents of the local site are reflected in the
一方、同一アドレスのデータを最後に更新したのが他拠点である場合(ステップS65:Noルート)、端子Cを介して図13の処理に戻り、上で説明したステップS51乃至ステップS55の処理を実施する。なお、同一アドレスが複数存在する場合には、各同一アドレスについて、ステップS65の処理と、ステップ51乃至ステップ55の処理(端子Cを介して図13に戻った場合のみ)とを実施する。ステップS51乃至ステップS55の処理は、上で説明した処理と変わらないため、ここでは説明を省略する。そして、元の処理に戻る。
On the other hand, when the data of the same address was last updated at another base (step S65: No route), the process returns to the process of FIG. 13 via the terminal C, and the processes of steps S51 to S55 described above are performed. carry out. If there are a plurality of the same addresses, the process of step S65 and the processes of
一方、ステップS63において、処理モードが「モード3」に設定されていなければ(ステップS63:Noルート)、レプリ制御部35の判定部354は、処理モードが「モード4」に設定されているか判断する(ステップS67)。処理モードが「モード4」に設定されている場合(ステップS67:Yesルート)、レプリ制御部35の判定部354は、自拠点及び他拠点の各々について、同一アドレスと他の更新アドレスとの差分を算出し、差分同士を比較する(ステップS69)。この際、差分が複数算出された場合には、自拠点において最も小さい差分と他拠点において最も小さい差分とを比較する。
On the other hand, if the processing mode is not set to “
自拠点における差分が他拠点における差分より小さい場合(ステップS71:Yesルート)、端子Bを介して図13の処理に戻り、上で説明したステップS51乃至ステップS55の処理をスキップして、元の処理に戻る。すなわち、自拠点の更新内容をデータベース5に反映することになるが、上で説明したステップS13(図5)の処理においてデータベース5を既に更新しているため、ここでは特に処理は行わない。
When the difference at the local site is smaller than the difference at the other site (step S71: Yes route), the process returns to the process of FIG. 13 via the terminal B, skips the processes of steps S51 to S55 described above, Return to processing. That is, the update contents of the local site are reflected in the
一方、自拠点における差分が他拠点における差分以上の場合(ステップS71:Noルート)、端子Cを介して図13の処理に戻り、上で説明したステップS51乃至ステップS55の処理を実施する。なお、同一アドレスが複数存在する場合には、各同一アドレスについて、ステップS69及びステップS71の処理と、ステップ51乃至ステップ55の処理(端子Cを介して図13に戻った場合のみ)とを実施する。ステップS51乃至ステップS55の処理は、上で説明した処理と変わらないため、ここでは説明を省略する。そして、元の処理に戻る。
On the other hand, when the difference at the local site is greater than or equal to the difference at the other site (step S71: No route), the process returns to the process of FIG. 13 via the terminal C, and the processes of steps S51 to S55 described above are performed. If there are a plurality of the same addresses, the processes of steps S69 and S71 and the processes of
一方、ステップS67において、処理モードが「モード4」に設定されていなければ(ステップS67:Noルート)、すなわち処理モードが「モード5」に設定されている場合には、レプリ制御部35の判定部354は、自拠点が本社であるか判断する(ステップS73)。なお、拠点毎に優先度が設定されている場合には、優先度を比較し、自拠点の優先度が他拠点の優先度より高いか判断する場合もある。
On the other hand, if the processing mode is not set to “
自拠点が本社である場合(ステップS73:Yesルート)、端子Bを介して図13の処理に戻り、上で説明したステップS51乃至ステップS55の処理をスキップして、元の処理に戻る。すなわち、自拠点の更新内容をデータベース5に反映することになるが、上で説明したステップS13(図5)の処理においてデータベース5を既に更新しているため、ここでは特に処理は行わない。
If the base is the head office (step S73: Yes route), the process returns to the process of FIG. 13 via the terminal B, skips the processes of steps S51 to S55 described above, and returns to the original process. That is, the update contents of the local site are reflected in the
一方、自拠点が本社でない場合(ステップS73:Noルート)、端子Cを介して図13の処理に戻り、上で説明したステップS51乃至ステップS55の処理を実施する。なお、ステップS51乃至ステップS55の処理は、上で説明した処理と変わらないため、ここでは説明を省略する。そして、元の処理に戻る。 On the other hand, when the base is not the head office (step S73: No route), the process returns to the process of FIG. 13 via the terminal C, and the processes of steps S51 to S55 described above are performed. In addition, since the process of step S51 thru | or step S55 is not different from the process demonstrated above, description is abbreviate | omitted here. Then, the process returns to the original process.
図12の説明に戻って、ステップS27において、自拠点の更新アドレス表及び他拠点の更新アドレス表に同一の更新アドレスが含まれないと判断された場合(ステップS27:Noルート)、ステップS29の処理をスキップする。 Returning to the description of FIG. 12, if it is determined in step S27 that the same update address is not included in the update address table of the local site and the update address table of the other site (step S27: No route), the process proceeds to step S29. Skip processing.
そして、レプリ制御部35の判定部354は、他拠点の更新アドレス表にのみ含まれる更新アドレスが存在するか判断する(ステップS31)。他拠点の更新アドレス表にのみ含まれる更新アドレスが存在すると判断された場合(ステップS31:Yesルート)、レプリ制御部35のDB更新処理部355は、記憶装置に格納された他拠点の更新アドレス表に基づき、データベース5を更新する(ステップS33)。すなわち、他拠点の更新内容をデータベース5に反映する。
Then, the
なお、自拠点においてのみ更新がなされている領域については、上で説明したステップS13(図5)の処理において自拠点のデータベース5を既に更新しているため、ここでは特に処理は行わない。
It should be noted that the area that has been updated only at its own site has not been particularly processed here because the
一方、他拠点の更新アドレス表にのみ含まれる更新アドレスが存在しなければ、ステップS33の処理をスキップする。そして、レプリ制御部35は、更新アドレス表格納部11に格納された自拠点の更新アドレス表をリセットする(ステップS35)。そして、本処理を終了する。
On the other hand, if there is no update address included only in the update address table of the other base, the process of step S33 is skipped. Then, the
以上のような処理を実施することにより、拠点毎にデータベースが設置され、各々のデータベースが更新されるシステムにおいて、常時接続サービスが利用できない地域に拠点を有する場合であっても、拠点間のデータベースの同期を取ることができる。また、公衆回線網1を利用するのは、他拠点の更新アドレス表を取得する間だけであるため、例えば従量制の回線であれば、通信コストを最小限に抑えることができる。さらに、自拠点と他拠点とで同一領域の更新がなされ、他拠点の更新内容をデータベース5に反映した場合には、自拠点において当該更新を指示したユーザに通知がなされるため、必要であれば、再度更新することが可能となる。
By carrying out the processing as described above, a database is set up for each base, and in a system in which each database is updated, even if the base is located in an area where the always-on service cannot be used, the database between the bases Can be synchronized. In addition, since the public line network 1 is used only while the update address table of another base is acquired, for example, if it is a pay-per-use line, the communication cost can be minimized. Furthermore, if the same area is updated at the local site and the other site, and the update content of the other site is reflected in the
以上本発明の一実施の形態について説明したが、本発明はこれに限定されるものではない。例えば、上で説明した機能ブロック図は必ずしも実際のプログラムモジュール構成に対応するものではない。管理装置3は、1台のコンピュータではなく複数台のコンピュータで実現するようにしても良い。
Although one embodiment of the present invention has been described above, the present invention is not limited to this. For example, the functional block diagram described above does not necessarily correspond to an actual program module configuration. The
また、上で説明した各テーブルの構成は一例であって、必ずしも上記のような構成でなければならないわけではない。さらに、処理フローにおいても、処理結果が変わらなければ処理の順番を入れ替えることも可能である。さらに、並列に実行させるようにしても良い。 Further, the configuration of each table described above is an example, and the configuration as described above is not necessarily required. Further, in the processing flow, the processing order can be changed if the processing result does not change. Further, it may be executed in parallel.
また、上では、5つの処理モードを説明したが、モードの数は5つに限定されるものではない。例えば、ユーザ毎に優先度を設定しておき、優先度の高いユーザの更新内容を優先するようなモードを用意してもよい。 In the above, five processing modes have been described, but the number of modes is not limited to five. For example, a mode may be prepared in which priority is set for each user and priority is given to the update contents of the user with high priority.
また、上では、拠点Aと拠点Bとでデータベース5を同期させる例を説明したが、拠点数が3以上の場合もある。この場合、基本的な処理フローは変わらないが、2以上の他拠点において同一領域の更新がなされている場合には、ステップS31とステップS33の間に、レプリ情報格納部9に格納された処理モードに従って、いずれの他拠点の更新内容を自拠点のデータベース5に反映するか判断する処理を追加し、判断結果に基づき、ステップS33の処理を実施するようにすればよい。
Moreover, although the example which synchronized the
なお、管理装置3は、図15のようなコンピュータ装置であって、メモリ2501(記憶装置)とCPU2503(処理装置)とハードディスク・ドライブ(HDD)2505と表示装置2509に接続される表示制御部2507とリムーバブル・ディスク2511用のドライブ装置2513と入力装置2515とネットワークに接続するための通信制御部2517とがバス2519で接続されている。オペレーティング・システム(OS:Operating System)及び本実施の形態における処理を実施するためのアプリケーション・プログラムは、HDD2505に格納されており、CPU2503により実行される際にはHDD2505からメモリ2501に読み出される。必要に応じてCPU2503は、表示制御部2507、通信制御部2517、ドライブ装置2513を制御して、必要な動作を行わせる。また、処理途中のデータについては、メモリ2501に格納され、必要があればHDD2505に格納される。本発明の実施の形態では、上で述べた処理を実施するためのアプリケーション・プログラムはリムーバブル・ディスク2511に格納されて頒布され、ドライブ装置2513からHDD2505にインストールされる。インターネットなどのネットワーク及び通信制御部2517を経由して、HDD2505にインストールされる場合もある。このようなコンピュータ装置は、上で述べたCPU2503、メモリ2501などのハードウエアとOS及び必要なアプリケーション・プログラムとが有機的に協働することにより、上で述べたような各種機能を実現する。
The
Claims (7)
ユーザからデータベースの更新指示を受け付けた場合、当該更新指示に従って前記データベースを更新すると共に、少なくとも更新対象の領域を示す更新アドレスと更新後のデータとを第1の更新アドレステーブルに格納する第1更新ステップと、
所定のタイミングにて、他拠点と接続して、前記他拠点における更新に係る更新アドレスと更新後のデータとを格納している第2の更新アドレステーブルを取得し、前記他拠点との接続を終了する取得ステップと、
前記第1の更新アドレステーブル及び前記第2の更新アドレステーブルに同一の前記更新アドレスが格納されている場合、所定のルールに従って、当該更新アドレスに対応し且つ前記第1の更新アドレステーブル及び前記第2の更新アドレステーブルに格納される前記更新後のデータのいずれかを、当該更新アドレスに示され且つ前記データベース内の該当する領域に反映すべきデータとして特定するステップと、
前記反映すべきデータとして前記第2の更新アドレステーブルに格納された前記更新後のデータが特定された場合、当該更新後のデータで前記データベース内の該当する領域を更新する第2更新ステップと、
を含み、コンピュータにより実行されるレプリ処理方法。A replication processing method in the case of performing communication between bases using a narrowband line,
When a database update instruction is received from a user, the database is updated according to the update instruction, and at least an update address indicating an area to be updated and updated data are stored in a first update address table Steps,
At a predetermined timing, connect to another base, obtain a second update address table storing an update address related to update at the other base and updated data, and connect to the other base. An acquisition step to end;
When the same update address is stored in the first update address table and the second update address table, the first update address table and the first update address table correspond to the update address according to a predetermined rule. Identifying any of the updated data stored in the update address table of 2 as data to be reflected in a corresponding area in the database indicated by the update address;
A second update step of updating a corresponding area in the database with the updated data when the updated data stored in the second update address table is specified as the data to be reflected;
A replication processing method executed by a computer.
をさらに含む請求項1記載のレプリ処理方法。2. The method according to claim 1, further comprising a step of notifying the user who has instructed to update the corresponding area in the database of discarding the update data when the corresponding area in the database is updated by the second update step. Replica processing method.
更新回数の多い拠点を優先するルール、更新対象数の多い拠点を優先するルール、更新日時の遅い拠点を優先するルール、更新アドレスの差分の小さい拠点を優先するルール、又は、予め設定された優先度の高い拠点を優先するルールである
ことを特徴とする請求項1記載のレプリ処理方法。The predetermined rule is:
Rules that prioritize sites with a large number of updates, rules that prioritize sites with a large number of updates, rules that prioritize sites with a late update date, rules that prioritize sites with small differences in update addresses, or preset priorities The replication processing method according to claim 1, wherein the rule gives priority to a base having a high degree.
ユーザからデータベースの更新指示を受け付けた場合、当該更新指示に従って前記データベースを更新すると共に、少なくとも更新対象の領域を示す更新アドレスと更新後のデータとを第1の更新アドレステーブルに格納する第1更新ステップと、
所定のタイミングにて、他拠点と接続して、前記他拠点における更新に係る更新アドレスと更新後のデータとを格納している第2の更新アドレステーブルを取得し、前記他拠点との接続を終了する取得ステップと、
前記第1の更新アドレステーブル及び前記第2の更新アドレステーブルに同一の前記更新アドレスが格納されている場合、所定のルールに従って、当該更新アドレスに対応し且つ前記第1の更新アドレステーブル及び前記第2の更新アドレステーブルに格納される前記更新後のデータのいずれかを、当該更新アドレスに示され且つ前記データベース内の該当する領域に反映すべきデータとして特定するステップと、
前記反映すべきデータとして前記第2の更新アドレステーブルに格納された前記更新後のデータが特定された場合、当該更新後のデータで前記データベース内の該当する領域を更新する第2更新ステップと、
をコンピュータに実行させるためのレプリ処理プログラム。A program for synchronizing databases between sites using a narrowband line,
When a database update instruction is received from a user, the database is updated according to the update instruction, and at least an update address indicating an area to be updated and updated data are stored in a first update address table Steps,
At a predetermined timing, connect to another base, obtain a second update address table storing an update address related to update at the other base and updated data, and connect to the other base. An acquisition step to end;
When the same update address is stored in the first update address table and the second update address table, the first update address table and the first update address table correspond to the update address according to a predetermined rule. Identifying any of the updated data stored in the update address table of 2 as data to be reflected in a corresponding area in the database indicated by the update address;
A second update step of updating a corresponding area in the database with the updated data when the updated data stored in the second update address table is specified as the data to be reflected;
A replication processing program for causing a computer to execute.
ユーザからデータベースの更新指示を受け付けた場合、当該更新指示に従って前記データベースを更新すると共に、少なくとも更新対象の領域を示す更新アドレスと更新後のデータとを第1の更新アドレステーブルに格納する第1更新手段と、
所定のタイミングにて、他拠点と接続して、前記他拠点における更新に係る更新アドレスと更新後のデータとを格納している第2の更新アドレステーブルを取得し、前記他拠点との接続を終了する取得手段と、
前記第1の更新アドレステーブル及び前記第2の更新アドレステーブルに同一の前記更新アドレスが格納されている場合、所定のルールに従って、当該更新アドレスに対応し且つ前記第1の更新アドレステーブル及び前記第2の更新アドレステーブルに格納される前記更新後のデータのいずれかを、当該更新アドレスに示され且つ前記データベース内の該当する領域に反映すべきデータとして特定する手段と、
前記反映すべきデータとして前記第2の更新アドレステーブルに格納された前記更新後のデータが特定された場合、当該更新後のデータで前記データベース内の該当する領域を更新する第2更新手段と、
を有する管理装置。A management device for synchronizing databases between bases using a narrowband line,
When a database update instruction is received from a user, the database is updated according to the update instruction, and at least an update address indicating an area to be updated and updated data are stored in a first update address table Means,
At a predetermined timing, connect to another base, obtain a second update address table storing an update address related to update at the other base and updated data, and connect to the other base. An acquisition means to terminate;
When the same update address is stored in the first update address table and the second update address table, the first update address table and the first update address table correspond to the update address according to a predetermined rule. Means for specifying any of the updated data stored in the update address table of 2 as data to be reflected in a corresponding area in the database indicated by the update address;
When the updated data stored in the second update address table as the data to be reflected is specified, second update means for updating a corresponding area in the database with the updated data;
A management device.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/JP2008/053140 WO2009107184A1 (en) | 2008-02-25 | 2008-02-25 | Method for processing replication, program for processing replication, and device for processing replication |
Publications (2)
Publication Number | Publication Date |
---|---|
JPWO2009107184A1 true JPWO2009107184A1 (en) | 2011-06-30 |
JP5080636B2 JP5080636B2 (en) | 2012-11-21 |
Family
ID=41015598
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010500461A Expired - Fee Related JP5080636B2 (en) | 2008-02-25 | 2008-02-25 | Replica processing method, program and apparatus |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP5080636B2 (en) |
WO (1) | WO2009107184A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6236888B2 (en) * | 2013-06-05 | 2017-11-29 | 富士通株式会社 | Program, data synchronization method, and data synchronization apparatus |
CN112288362B (en) * | 2020-10-28 | 2024-05-28 | 上海寻梦信息技术有限公司 | Parcel re-delivery method, parcel delivery method and related equipment |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63278155A (en) * | 1987-05-11 | 1988-11-15 | Fujitsu Ltd | Management processing system for decentralized data base |
JP4072834B2 (en) * | 1996-11-19 | 2008-04-09 | シャープ株式会社 | Database management device |
JP2001198378A (en) * | 1999-11-10 | 2001-07-24 | Otani Kk | Hemmer sewing machine |
JP4025475B2 (en) * | 1999-11-10 | 2007-12-19 | 日本電気株式会社 | Database exchange system |
-
2008
- 2008-02-25 JP JP2010500461A patent/JP5080636B2/en not_active Expired - Fee Related
- 2008-02-25 WO PCT/JP2008/053140 patent/WO2009107184A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
WO2009107184A1 (en) | 2009-09-03 |
JP5080636B2 (en) | 2012-11-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019237586A1 (en) | Method and apparatus for managing scheduled tasks, computer device and storage medium | |
US8255893B2 (en) | Software management process, software management apparatus, and computer-readable medium storing software management program | |
US7519664B2 (en) | Presentation supporting device and related programs | |
JP2010086083A (en) | Editing apparatus, editing program and editing method | |
JPH11232226A (en) | Cooperative work aiding system and storage medium | |
US20150227605A1 (en) | Information processing terminal, synchronization control method, and computer-readable recording medium | |
US20120191649A1 (en) | Data Transfer Method and Server Computer System | |
CN105100144B (en) | Update the method and device of application | |
US20170034477A1 (en) | Information processing apparatus, image display method, and communications system | |
US20130223424A1 (en) | Management methods and related electronic devices and machine-readable storage mediums using the same | |
JP2002334006A (en) | Device and program for information management, and recording medium where the same program is recorded | |
JP5080636B2 (en) | Replica processing method, program and apparatus | |
JPH11284683A (en) | Data transfer device, data transfer method and information processing system | |
CN110113495A (en) | Long-range control method, device, electronic equipment and the system of APP | |
JP2014229088A (en) | Data processing system, data processing device, and storage medium | |
JP2002140213A (en) | Information managing device and method, information managing system, and computer-readable recording medium with program to be installed in information managing device recorded thereon | |
CN110489483A (en) | Method of data synchronization, device, computer equipment and storage medium | |
JPH11312154A (en) | Cooperative work aiding system and recording medium thereof | |
JP4829368B1 (en) | File processing program, apparatus and method | |
JP2005284395A (en) | Communication equipment, method for synchronizing information of communication system, control program for communication equipment, and recording medium | |
JP2002351761A (en) | Network communication system, network communication connection selecting device, information processor, network communication connection selecting method, recording medium, and program | |
CN105933155B (en) | The device and method of control server upgrading | |
JP5811799B2 (en) | Information processing apparatus and schedule management program | |
JP2001075850A (en) | Method for processing data cache, and cache device | |
JP2015041146A (en) | Server device, client device, system, information processing method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120619 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120726 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20120828 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120830 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150907 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |