JP2000047918A - Replication system and replication control method - Google Patents

Replication system and replication control method

Info

Publication number
JP2000047918A
JP2000047918A JP10215929A JP21592998A JP2000047918A JP 2000047918 A JP2000047918 A JP 2000047918A JP 10215929 A JP10215929 A JP 10215929A JP 21592998 A JP21592998 A JP 21592998A JP 2000047918 A JP2000047918 A JP 2000047918A
Authority
JP
Japan
Prior art keywords
event
replication
information
replica
update information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP10215929A
Other languages
Japanese (ja)
Inventor
Akihiro Shirakawa
明洋 白川
Jinichi Shikawa
甚一 志川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP10215929A priority Critical patent/JP2000047918A/en
Publication of JP2000047918A publication Critical patent/JP2000047918A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PROBLEM TO BE SOLVED: To make exactly performably operating manipulations on the side of a replica data base(DB) on a reflected side synchronously with the updating condition of a master DB. SOLUTION: When the update of a master DB is detected and the update information is extracted and stored in an update information file 6 by a replication extracting function part 7, a replication reflection control function part 8 inputs the update information from the update information file 6 and makes the update information reflect in the replica DB or replica DB 4 of a replica server 3. Similarly, the replication reflection control function part 8 extracts manipulation information from an event information table 12 in which the manipulations are previously registered corresponding to events by making the update information as a key and successively executes the stipulated manipulations.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、レプリケーション
システム及びレプリケーション制御方法に係り、特に、
マスタデータベースが更新されるとレプリカデータベー
スも自動更新されるレプリケーションシステム及びレプ
リケーション制御方法に関する。
The present invention relates to a replication system and a replication control method, and more particularly, to a replication system and a replication control method.
The present invention relates to a replication system and a replication control method in which a replica database is automatically updated when a master database is updated.

【0002】[0002]

【従来の技術】トランザクション処理等によりマスタデ
ータベースが更新されたときレプリカデータベースも自
動更新されるレプリケーションシステムは、マスタデー
タベースの情報の更新が行われたとき、その更新情報を
レプリカデータベースに反映させると共に、マスタデー
タベースの更新に伴うイベントによる操作を行う必要が
あるが、従来技術によるレプリケーションシステムは、
マスタデータベースの更新情報のレプリカデータベース
への反映と、マスタデータベースの更新に伴うイベント
による操作とがそれぞれ独立して非同期で実行されるも
のである。
2. Description of the Related Art When a master database is updated by transaction processing or the like, a replica database is automatically updated. When a master database is updated, the update information is reflected in the replica database. It is necessary to perform operations based on events that accompany the update of the master database.
The reflection of the update information of the master database to the replica database and the operation by the event accompanying the update of the master database are independently and asynchronously executed.

【0003】なお、この種のレプリケーションシステム
に関する従来技術として、例えば、「日経エレクトロニ
クス 1994.6.6(No.609) 中村 正弘著
第101頁〜第110頁」等に記載された技術が知ら
れている。
[0003] As a conventional technique relating to this type of replication system, for example, a technique described in "Nikkei Electronics 1994.6.6 (No.609), Masahiro Nakamura, pp. 101-110" is known. ing.

【0004】[0004]

【発明が解決しようとする課題】前述した従来技術は、
マスタデータベースの更新条件と同期した反映側のレプ
リカデータベース側での各種運用操作という点について
考慮されておらず、マスタデータベースの更新条件と同
期して、反映側のレプリカデータベース側での運用操作
を行うことができず、反映側であるレプリカデータベー
ス側で、マスタデータベース側におけるマスタデータベ
ース更新の区切り等の運用状況を知ることができず、的
確なレプリカデータベースの運用ができないという問題
点を有している。
The prior art described above is
Various operation operations on the replica database on the reflection side synchronized with the update conditions of the master database are not taken into account, and the operation on the replica database on the reflection side is performed in synchronization with the update conditions on the master database However, there is a problem that the replica database, which is the reflection side, cannot know the operation status of the master database, such as a break in updating the master database, and cannot operate the replica database accurately. .

【0005】本発明の目的は、前述した従来技術の問題
点を解決し、マスタデータベースの更新条件と同期して
反映側のレプリカデータベース側での運用操作を的確に
行うことを可能としたレプリケーションシステム及び及
びレプリケーション制御方法を提供することにある。
An object of the present invention is to provide a replication system which solves the above-mentioned problems of the prior art, and which allows an operation operation on a replica database on a reflection side to be performed accurately in synchronization with an update condition of a master database. And a replication control method.

【0006】[0006]

【課題を解決するための手段】本発明によれば前記目的
は、マスタデータベースが更新されるとその複製のデー
タベースであるレプリカデータベースを更新するレプリ
ケーションシステムにおいて、レプリカデータベース更
新のためマスタデータベースの更新情報の読み込み時、
イベント発生条件として定義した更新情報を検出し、イ
ベントの検出報告をするイベント検出手段と、前記イベ
ント検出手段から報告されたイベント情報をキーとして
イベント発生時の操作が予め登録されているイベント情
報ファイルから操作情報を読み込んで実行するイベント
制御手段とを備えたことにより達成される。
According to the present invention, an object of the present invention is to provide a replication system for updating a replica database which is a duplicate database of a master database when the master database is updated. When loading
An event detection means for detecting update information defined as an event occurrence condition and reporting an event detection; and an event information file in which operations at the time of event occurrence are registered in advance using the event information reported from the event detection means as a key. And an event control means for reading and executing the operation information from the computer.

【0007】また、前記目的は、マスタデータベースが
更新されるとその複製のデータベースであるレプリカデ
ータベースを更新するレプリケーション制御方法におい
て、レプリカデータベース更新のためマスタデータベー
スの更新情報の読み込み時、イベント発生条件として定
義した更新情報を検出し、前記検出されたイベント情報
をキーとしてイベント発生時の操作が予め登録されてい
るイベント情報ファイルから操作情報を読み込んで実行
することにより達成される。
In addition, the above object is to provide a replication control method for updating a replica database which is a replica database when a master database is updated, wherein an event occurrence condition is set when reading update information of the master database for updating the replica database. The defined update information is detected, and the operation at the time of event occurrence is achieved by reading and executing the operation information from a previously registered event information file using the detected event information as a key.

【0008】[0008]

【発明の実施の形態】以下、本発明によるレプリケーシ
ョンシステムの一実施形態を図面により詳細に説明す
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an embodiment of a replication system according to the present invention will be described in detail with reference to the drawings.

【0009】図1は本発明の一実施形態によるレプリケ
ーションシステムの構成を示すブロック図、図2はイベ
ント起動定義ファイルのデータ構成を説明する図、図3
はイベント情報ファイルのデータ構成を説明する図、図
4はレプリケーション制御プログラムの処理動作を説明
するフローチャート、図5はレプリケーション抽出機能
部の処理動作を説明するフローチャート、図6はレプリ
ケーション反映制御機能部の処理動作を説明するフロー
チャート、図7は更新情報反映機能部の処理動作を説明
するフローチャートである。図1〜図3において、1は
マスタサーバ、2はマスタデータベース(マスタD
B)、3はレプリカサーバ、4、21はレプリカデータ
ベース(レプリカDB)、5、13はレプリケーション
制御プログラム、6、14は更新情報ファイル、7はレ
プリケーション抽出機能部、8、16はレプリケーショ
ン反映制御機能部、9、17はイベント起動定義ファイ
ル、10、18はイベント起動定義テーブル、11、1
9はイベント情報ファイル、12、20はイベント情報
テーブル、15はレプリケーション受信機能部である。
FIG. 1 is a block diagram showing the configuration of a replication system according to an embodiment of the present invention. FIG. 2 is a diagram for explaining the data configuration of an event activation definition file.
FIG. 4 is a diagram illustrating a data configuration of an event information file, FIG. 4 is a flowchart illustrating a processing operation of a replication control program, FIG. 5 is a flowchart illustrating a processing operation of a replication extraction function unit, and FIG. FIG. 7 is a flowchart illustrating the processing operation, and FIG. 7 is a flowchart illustrating the processing operation of the update information reflection function unit. 1 to 3, 1 is a master server, 2 is a master database (master D).
B), 3 is a replica server, 4 and 21 are replica databases (replica DBs), 5 and 13 are replication control programs, 6 and 14 are update information files, 7 is a replication extraction function unit, and 8 and 16 are replication reflection control functions. , 9 and 17 are event activation definition files, 10 and 18 are event activation definition tables, 11, 1
9 is an event information file, 12 and 20 are event information tables, and 15 is a replication reception function unit.

【0010】本発明の一実施形態によるレプリケーショ
ンシステムは、図1に示すように、マスタサーバ1とレ
プリカサーバ3とにより構成されている。マスタサーバ
1は、マスタDB2と、マスタDB2の複製DBであり
サーバ側で使用するレプリカDB21と、レプリケーシ
ョンを制御するレプリケーション制御プログラム5と、
更新情報ファイル6と、レプリケーション制御プログラ
ム5により制御されマスタDB2の更新情報を更新情報
ファイル6に出力するレプリケーション抽出機能部7
と、前記更新情報ファイル6からマスタDB2の更新情
報を取り出し、編集し、レプリカDB21に反映し、ま
たは、レプリカサーバ3に送信するレプリケーション反
映制御機能部8と、イベント番号毎にイベント発生項
目、イベント発生条件を記述したイベント起動定義ファ
イル9と、レプリケーション起動時、イベント起動定義
ファイル9の情報をメモリ上に格納して作成するイベン
ト起動定義テーブル10と、イベント番号毎の操作コー
ド、実行内容、操作タイミングを記述したイベント情報
を格納するイベント情報ファイル11と、レプリケーシ
ョン起動時、イベント情報ファイル11のイベント情報
をメモリ上に格納して作成するイベント情報テーブル1
2とから構成される。
A replication system according to one embodiment of the present invention comprises a master server 1 and a replica server 3, as shown in FIG. The master server 1 includes a master DB 2, a replica DB 21 that is a duplicate DB of the master DB 2 and is used on the server side, a replication control program 5 that controls replication,
An update information file 6 and a replication extraction function unit 7 which is controlled by the replication control program 5 and outputs update information of the master DB 2 to the update information file 6
A replication reflection control function unit 8 that extracts update information of the master DB 2 from the update information file 6, edits the updated information, and reflects the updated information on the replica DB 21 or transmits the updated information to the replica server 3; An event start definition file 9 describing the occurrence conditions, an event start definition table 10 that is created by storing the information of the event start definition file 9 in the memory when the replication is started, an operation code for each event number, an execution content, and an operation An event information file 11 for storing event information describing timing, and an event information table 1 for storing and creating event information of the event information file 11 in a memory at the time of starting replication.
And 2.

【0011】また、レプリカサーバ3は、マスタDB2
の複製DBであるレプリカDB4と、レプリカ側のレプ
リケーションを制御するレプリケーション制御プログラ
ム13と、更新情報ファイル14と、レプリケーション
制御プログラム13に制御され他サーバからのデータベ
ースの更新情報を受け取りレプリカサーバ上の更新情報
ファイル14に出力するレプリケーション受信機能部1
5と、マスタサーバ上のレプリケーション反映制御機能
部8と同様に更新ファイル14から更新情報を読み出
し、編集し、レプリカDB4を更新または他レプリカサ
ーバへ送信するレプリケーション反映制御機能部16
と、レプリカサーバ側のイベント起動定義ファイル17
と、イベント起動定義テーブル18と、イベント情報フ
ァイル19と、イベント情報テーブル20とから構成さ
れる。
The replica server 3 has a master DB 2
A replica DB 4 that is a replication DB of the server, a replication control program 13 that controls replication on the replica side, an update information file 14, and receives update information of a database from another server under the control of the replication control program 13 and updates the replica server. Replication reception function unit 1 that outputs to information file 14
5, a replication reflection control function unit 16 that reads and edits update information from the update file 14 in the same manner as the replication reflection control function unit 8 on the master server, updates the replica DB 4, or transmits the replica DB 4 to another replica server.
And the event activation definition file 17 on the replica server side
, An event start definition table 18, an event information file 19, and an event information table 20.

【0012】イベント起動定義ファイル9は、図2にそ
のデータ構成を示すように、イベント番号200に対し
てイベント発生項目201、イベント発生条件式202
を指定するものである。また、イベント情報ファイル1
1は、図3にそのデータ構成を示すように、イベント番
号300に対して操作コード301、実行内容302、
操作タイミング303を指定したものである。
As shown in FIG. 2, the event start definition file 9 has an event occurrence item 201 and an event occurrence condition expression 202 corresponding to an event number 200.
Is specified. Event information file 1
1 shows an operation code 301, an execution content 302, an event number 300, as shown in FIG.
The operation timing 303 is specified.

【0013】図3に示す操作コード301のそれぞれ
は、 UAP:UAP起動 REP:レプリケーション操作 MES:メッセージ出力 ETV:他サーバへのイベント情報発行 TIM:タイマWAIT NON:何もしない という意味を持つ。
Each of the operation codes 301 shown in FIG. 3 has the meaning of UAP: UAP activation REP: replication operation MES: message output ETV: event information issuance to another server TIM: timer WAIT NON: do nothing

【0014】また、実行内容302は、操作コード30
1に対応する動作を記述するものであり、例えば、操作
コードUAPに対してはUAP名称を、操作コードME
Sに対しては出力メッセージ内容を、操作コードREP
に対してはレプリケーション操作内容(停止、再開始
等)を、また、操作コードTIMに対してはWAIT時
間を記述している。なお、操作コードNONに対しては
何も記述することができない。
The execution content 302 includes the operation code 30
1 describes the operation corresponding to the operation code UAP.
For S, output message contents
Describes the contents of the replication operation (stop, restart, etc.), and the operation code TIM describes the WAIT time. Nothing can be described for the operation code NON.

【0015】さらに、操作タイミング303は、その操
作コードに対する実行内容の実行タイミングを規定する
もので、BEFOREは、更新情報反映の直前にその操
作を実行(実行順序は記述順)することを規定し、AF
TERは、更新情報反映の直後にその操作を実行(実行
順序は記述順)することを規定している。
Further, the operation timing 303 specifies the execution timing of the execution content for the operation code, and the BEFORE specifies that the operation is executed immediately before the update information is reflected (the execution order is the description order). , AF
The TER specifies that the operation is performed immediately after the update information is reflected (the execution order is the description order).

【0016】次に、図4〜7に示すフローを参照して、
レプリケーション制御プログラムの処理動作、レプリケ
ーション抽出機能部の処理動作、反映制御機能部の処理
動作、反映制御機能部により起動される更新情報反映機
能部の処理動作を説明する。図4〜図7に示すフロー
は、全体が連携して処理を行うものであるので、以下で
は、図4〜図7の処理を一連のものとして説明する。
Next, referring to the flowcharts shown in FIGS.
The processing operation of the replication control program, the processing operation of the replication extraction function unit, the processing operation of the reflection control function unit, and the processing operation of the update information reflection function unit started by the reflection control function unit will be described. Since the flow shown in FIG. 4 to FIG. 7 performs processing in cooperation as a whole, the processing of FIG. 4 to FIG. 7 will be described below as a series of processing.

【0017】(1)レプリケーション制御プログラムが
起動され、処理が開始されると、レプリケーション抽出
機能部7を実現する抽出タスク、及び、レプリケーショ
ン反映制御機能部8を実現する反映タスクが起動される
(ステップ401、402)。
(1) When the replication control program is started and the processing is started, an extraction task for realizing the replication extraction function unit 7 and a reflection task for realizing the replication reflection control function unit 8 are started (step). 401, 402).

【0018】(2)レプリケーション制御プログラム
は、ステップ401、402によりタスクを起動した
後、各タスクからの応答待ち状態となり、各タスクから
の応答の有無を検出する(ステップ403)。
(2) After activating the tasks in steps 401 and 402, the replication control program waits for a response from each task, and detects the presence or absence of a response from each task (step 403).

【0019】(3)起動された抽出タスクは、マスタD
B2を監視し、マスタDB2に更新情報が発生したか否
かをチェックし、更新情報があればマスタDB2の更新
情報を更新情報ファイル6に格納する(ステップ41
1、412)。
(3) The activated extraction task is the master D
B2 is monitored to check whether update information has been generated in the master DB2, and if there is update information, the update information in the master DB2 is stored in the update information file 6 (step 41).
1, 412).

【0020】(4)反映タスクは、起動された後、更新
情報ファイル6から更新情報を入力して、その入力情報
がマスタDB2の更新情報であるか否かを判定する(ス
テップ501、502)。
(4) After being started, the reflection task inputs update information from the update information file 6 and determines whether or not the input information is update information of the master DB 2 (steps 501 and 502). .

【0021】(5)ステップ502の判定で、入力情報
がマスタDB2の更新情報であると判定した場合、その
更新情報がイベント起動定義テーブル10の条件に合う
か否かを判定する(ステップ503)。
(5) If it is determined in step 502 that the input information is update information of the master DB 2, it is determined whether the update information satisfies the condition of the event activation definition table 10 (step 503). .

【0022】(6)ステップ503の判定で、更新情報
がイベント起動定義テーブル10の条件に合わないと判
定した場合、更新情報反映機能部を起動し、更新情報反
映のため更新情報を編集し、更新情報の出力指定が反映
であるか送信であるかをチェックする(ステップ51
1、512)。
(6) If it is determined in step 503 that the update information does not meet the conditions of the event activation definition table 10, the update information reflection function unit is started, and the update information is edited to reflect the update information. It is checked whether the output specification of the update information is reflected or transmitted (step 51).
1, 512).

【0023】(7)ステップ512で、出力指定が反映
であると判定した場合、SQLを組み立て、編集した更
新情報をレプリカDB21に反映させ、また、出力指定
が送信であると判定した場合、編集した更新情報をレプ
リカサーバ3に送信する(ステップ513、514)。
(7) If it is determined in step 512 that the output specification is to be reflected, the SQL is assembled, the edited update information is reflected in the replica DB 21, and if the output specification is determined to be transmission, the editing is performed. The updated information is transmitted to the replica server 3 (steps 513 and 514).

【0024】(8)ステップ502の判定で、入力情報
がマスタDB2の更新情報でないと判定した場合、及
び、ステップ513、514の処理後、反映タスクは、
一定時間待ち状態になる。反映タスクは、その後、時間
待ちが終了すれば、ステップ501に戻って前述の処理
を繰り返す(ステップ510)。
(8) If it is determined in step 502 that the input information is not the update information of the master DB 2, and after the processing in steps 513 and 514, the reflection task
Wait for a certain time. After that, when the waiting for the time ends, the reflection task returns to step 501 and repeats the above-described processing (step 510).

【0025】(9)ステップ503の判定で、更新情報
ファイル6からの入力情報がマスタDB2の更新情報で
ありかつイベント起動定義テーブル10に指定された条
件に合う情報であると判定すると、反映タスクは、レプ
リケーション制御プログラム5にイベント情報認識、イ
ベント番号200と操作ポジション情報(BEFOR
E)を報告し、レプリケーション制御プログラム5から
の連絡待ち状態となる(ステップ505、506)。
(9) If it is determined in step 503 that the input information from the update information file 6 is the update information of the master DB 2 and the information meets the conditions specified in the event activation definition table 10, the reflection task Indicates that the replication control program 5 has event information recognition, event number 200 and operation position information (BEFOR).
E) is reported, and the system waits for a communication from the replication control program 5 (steps 505 and 506).

【0026】(10)前述のステップ403でタスクから
の応答を監視していたレプリケーション制御プログラム
5は、タスクからの応答が検出されたとき、その応答が
反映タスクからイベント情報の認識の連絡であるか否か
をチェックし、イベント情報の認識の連絡である場合、
イベント番号200をキーとしてイベント情報テーブル
12を検索し操作ポジションと同じ操作タイミングの操
作内容を取得する(ステップ404、405)。
(10) When the response from the task is detected in the above-mentioned step 403, the replication control program 5 detects the response from the task, and the response is the notification of the recognition of the event information from the reflection task. Check if it is a notification of recognition of event information,
The event information table 12 is searched using the event number 200 as a key, and operation contents at the same operation timing as the operation position are obtained (steps 404 and 405).

【0027】(11)レプリケーション制御プログラム5
は、その後、取得した各種操作を記述順に実行し、反映
タスクにイベント操作の終了を報告する(ステップ40
6、407)。
(11) Replication control program 5
Executes the acquired operations in the order described, and reports the end of the event operation to the reflection task (step 40).
6, 407).

【0028】(12)ステップ506でレプリケーション
制御プログラム5からの連絡待ちとなっていた反映タス
クは、ステップ407のレプリケーション制御プログラ
ム5の処理で、イベント操作終了の報告を受けると、更
新情報反映機能部による前述で説明したステップ511
〜514の処理を実行させる(ステップ507)。
(12) When the reflection task waiting for communication from the replication control program 5 in step 506 receives a report of the end of the event operation in the processing of the replication control program 5 in step 407, the update information reflection function unit Step 511 described above by
514 are executed (step 507).

【0029】(13)反映タスクは、再度レプリケーショ
ン制御プログラム5にイベント情報認識、イベント番号
200と操作ポジション情報(AFTER)を報告し、
レプリケーション制御プログラム5からの連絡待ち状態
となる(ステップ508、509)。
(13) The reflection task reports the event information to the replication control program 5 again, and reports the event number 200 and the operation position information (AFTER).
It is in a state of waiting for communication from the replication control program 5 (steps 508 and 509).

【0030】(14)前述のステップ403で再度タスク
からの応答を監視していたレプリケーション制御プログ
ラム5は、タスクからの応答が反映タスクからイベント
情報の認識の連絡であるか否かをチェックし、イベント
情報の認識の連絡である場合、イベント番号200をキ
ーとしてイベント情報テーブル12を検索し操作ポジシ
ョンと同じ操作タイミングの操作内容を取得する(ステ
ップ404、405)。
(14) The replication control program 5, which has been monitoring the response from the task again in step 403, checks whether the response from the task is a notification of recognition of event information from the reflection task, and If it is a notification of recognition of event information, the event information table 12 is searched using the event number 200 as a key, and operation contents at the same operation timing as the operation position are obtained (steps 404 and 405).

【0031】(15)レプリケーション制御プログラム5
は、その後、取得した各種操作を記述順に実行し、反映
タスクにイベント操作の終了を報告する(ステップ40
6、407)。
(15) Replication control program 5
Executes the acquired operations in the order described, and reports the end of the event operation to the reflection task (step 40).
6, 407).

【0032】前述した本発明の一実施形態によれば、レ
プリカDBへの更新情報の反映時に、マスタデータDB
の更新情報を格納する更新情報ファイル6から更新情報
を入力して、イベント発生条件の更新情報を検出したと
き、予めイベント対応に操作を登録したイベント情報テ
ーブル12から操作を取り出して、その操作を指示に従
って順次実行させるようにしているので、マスタDBの
更新情報がレプリカDBに反映されるタイミングでマス
タデータベースの更新条件と同期をとった反映側のレプ
リカDB側での運用操作が可能となる。
According to the above-described embodiment of the present invention, when the update information is reflected in the replica DB, the master data DB
When the update information is input from the update information file 6 that stores the update information of the event and the update information of the event occurrence condition is detected, the operation is taken out from the event information table 12 in which the operation is registered in advance in correspondence with the event, and the operation is Since the execution is sequentially performed according to the instruction, the operation operation on the replica DB on the reflection side synchronized with the update condition of the master database becomes possible at the timing when the update information of the master DB is reflected on the replica DB.

【0033】[0033]

【発明の効果】以上説明したように本発明によれば、マ
スタDBの更新情報がレプリカDBに反映されるタイミ
ングでマスタデータベースの更新条件と同期をとった反
映側のレプリカDBでの運用操作が可能となり、システ
ム管理者の運用負担を軽減することができる。
As described above, according to the present invention, the operation operation on the replica DB on the reflection side synchronized with the update condition of the master database at the timing when the update information of the master DB is reflected on the replica DB is realized. This makes it possible to reduce the operational burden on the system administrator.

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

【図1】本発明の一実施形態によるレプリケーションシ
ステムの構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a replication system according to an embodiment of the present invention.

【図2】イベント起動定義ファイルのデータ構成を説明
する図である。
FIG. 2 is a diagram illustrating a data configuration of an event activation definition file.

【図3】イベント情報ファイルのデータ構成を説明する
図である。
FIG. 3 is a diagram illustrating a data configuration of an event information file.

【図4】レプリケーション制御プログラムの処理動作を
説明するフローチャートである。
FIG. 4 is a flowchart illustrating a processing operation of a replication control program.

【図5】レプリケーション抽出機能部の処理動作を説明
するフローチャートである。
FIG. 5 is a flowchart illustrating a processing operation of a replication extraction function unit.

【図6】レプリケーション反映制御機能部の処理動作を
説明するフローチャートである。
FIG. 6 is a flowchart illustrating a processing operation of a replication reflection control function unit.

【図7】更新情報反映機能部の処理動作を説明するフロ
ーチャートである。
FIG. 7 is a flowchart illustrating a processing operation of an update information reflection function unit.

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

1 マスタサーバ 2 マスタDB 3 レプリカサーバ 4、21 レプリカDB 5、13 レプリケーション制御プログラム 6、14 更新情報ファイル 7 レプリケーション抽出機能部 8、16 レプリケーション反映制御機能部 9、17 イベント起動定義ファイル 10、18 イベント起動定義テーブル 11、19 イベント情報ファイル 12、20 イベント情報テーブル 15 レプリケーション受信機能部 DESCRIPTION OF SYMBOLS 1 Master server 2 Master DB 3 Replica server 4, 21 Replica DB 5, 13 Replication control program 6, 14 Update information file 7 Replication extraction function part 8, 16 Replication reflection control function part 9, 17 Event start definition file 10, 18 Event Startup definition table 11, 19 Event information file 12, 20 Event information table 15 Replication reception function unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 マスタデータベースが更新されるとその
複製のデータベースであるレプリカデータベースを更新
するレプリケーションシステムにおいて、レプリカデー
タベース更新のためマスタデータベースの更新情報の読
み込み時、イベント発生条件として定義した更新情報を
検出し、イベントの検出報告をするイベント検出手段
と、前記イベント検出手段から報告されたイベント情報
をキーとしてイベント発生時の操作が予め登録されてい
るイベント情報ファイルから操作情報を読み込んで実行
するイベント制御手段とを備えたことを特徴とするレプ
リケーションシステム。
When a master database is updated, a replication system that updates a replica database, which is a replica database of the master database, updates information defined as an event generation condition when reading update information of the master database for updating the replica database. An event detecting means for detecting and reporting an event detection; and an event for reading and executing operation information from an event information file in which an operation at the time of event occurrence is registered in advance using the event information reported from the event detection means as a key. A replication system comprising control means.
【請求項2】 マスタデータベースが更新されるとその
複製のデータベースであるレプリカデータベースを更新
するレプリケーション制御方法において、レプリカデー
タベース更新のためマスタデータベースの更新情報の読
み込み時、イベント発生条件として定義した更新情報を
検出し、前記検出されたイベント情報をキーとしてイベ
ント発生時の操作が予め登録されているイベント情報フ
ァイルから操作情報を読み込んで実行することを特徴と
するレプリケーション制御方法。
2. A replication control method for updating a replica database, which is a replica database when a master database is updated, includes an update information defined as an event occurrence condition when reading the update information of the master database for updating the replica database. And performing an operation at the time of occurrence of an event by reading operation information from an event information file registered in advance using the detected event information as a key.
JP10215929A 1998-07-30 1998-07-30 Replication system and replication control method Pending JP2000047918A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10215929A JP2000047918A (en) 1998-07-30 1998-07-30 Replication system and replication control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10215929A JP2000047918A (en) 1998-07-30 1998-07-30 Replication system and replication control method

Publications (1)

Publication Number Publication Date
JP2000047918A true JP2000047918A (en) 2000-02-18

Family

ID=16680608

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10215929A Pending JP2000047918A (en) 1998-07-30 1998-07-30 Replication system and replication control method

Country Status (1)

Country Link
JP (1) JP2000047918A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020032665A (en) * 2000-10-25 2002-05-04 김종서 System and method for customization management service on-line account
KR100589437B1 (en) * 2005-06-22 2006-06-14 엔에이치엔(주) Dynamic initialization method and system of location server
US7191298B2 (en) 2002-08-02 2007-03-13 International Business Machines Corporation Flexible system and method for mirroring data
JP2012513632A (en) * 2008-12-22 2012-06-14 ノーテル ネットワークス リミテッド Selective database replication

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020032665A (en) * 2000-10-25 2002-05-04 김종서 System and method for customization management service on-line account
US7191298B2 (en) 2002-08-02 2007-03-13 International Business Machines Corporation Flexible system and method for mirroring data
KR100589437B1 (en) * 2005-06-22 2006-06-14 엔에이치엔(주) Dynamic initialization method and system of location server
WO2006137701A1 (en) * 2005-06-22 2006-12-28 Nhn Corporation Dynamic initialization method and system of location server
JP2008547104A (en) * 2005-06-22 2008-12-25 エヌエイチエヌ コーポレーション Dynamic server initialization method and system
US7945644B2 (en) 2005-06-22 2011-05-17 Nhn Corporation Dynamic initialization method and system of location server
JP4726955B2 (en) * 2005-06-22 2011-07-20 エヌエイチエヌ コーポレーション Dynamic server initialization method and system
JP2012513632A (en) * 2008-12-22 2012-06-14 ノーテル ネットワークス リミテッド Selective database replication
US9239767B2 (en) 2008-12-22 2016-01-19 Rpx Clearinghouse Llc Selective database replication

Similar Documents

Publication Publication Date Title
US5706509A (en) Application independent record level synchronization
US8689179B2 (en) Transportable refactoring object
KR20040024412A (en) Method for updating firmware
JP4497691B2 (en) Database management method and management system
JP2000047918A (en) Replication system and replication control method
CN113138794A (en) Management method and management system for code version
CN112925555A (en) Model management method, device, equipment and storage medium
CN100465911C (en) Backpu method
CN112765188B (en) Configuration information processing method, configuration management system, electronic device and storage medium
JP3487732B2 (en) Apparatus and method for avoiding duplicate database data inconsistency
JPH103418A (en) Data coincidence system between electronic computer systems
JPH08190474A (en) Computer system
JP2003015926A (en) Update difference extraction system, method and program
JP2000347779A (en) Picture constructing device for monitoring control system
CN114185578A (en) Method, device and equipment for smoothly upgrading database and readable storage medium
JPH1153239A (en) Rollback processing method for database and recording medium recorded with procedure thereof
JP2005078503A (en) Client/server system with master data reflecting means, master data reflection method and program
JP2003140933A (en) General purpose database built-in system
CN116339717A (en) Data execution method, device, equipment and medium
TWI220707B (en) Mainboard test program processing system and method
JP2000293377A (en) Coexistence environment structuring method and recording medium where coexistence environment structuring program is recorded
JPH06243062A (en) Computer system
CN114442947A (en) Cross-domain bucket deleting method, system, terminal and storage medium
CN115730007A (en) Data synchronization system and method for operation end and enterprise end
JPH04128911A (en) Automatic start switching system for electronic computer system