JP2001022627A - System and method for synchronizing data bases between plural devices - Google Patents

System and method for synchronizing data bases between plural devices

Info

Publication number
JP2001022627A
JP2001022627A JP11191993A JP19199399A JP2001022627A JP 2001022627 A JP2001022627 A JP 2001022627A JP 11191993 A JP11191993 A JP 11191993A JP 19199399 A JP19199399 A JP 19199399A JP 2001022627 A JP2001022627 A JP 2001022627A
Authority
JP
Japan
Prior art keywords
database
update
log file
devices
message
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
JP11191993A
Other languages
Japanese (ja)
Inventor
Takanao Sennen
孝尚 千年
Katsunori Nishimura
勝徳 西村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Communication Systems Ltd
Original Assignee
NEC Communication Systems Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Communication Systems Ltd filed Critical NEC Communication Systems Ltd
Priority to JP11191993A priority Critical patent/JP2001022627A/en
Publication of JP2001022627A publication Critical patent/JP2001022627A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Debugging And Monitoring (AREA)
  • Multi Processors (AREA)

Abstract

PROBLEM TO BE SOLVED: To update a data base by easily extracting non-updated information at high speed in the order of time sequence through utilizing a log file in a FIFO form. SOLUTION: This system has a log file 14 for storing a syntax described in a data base language, an updating processing part 111 for replacing received update data with an SQL language when there is the updating request of a data base 13 from anywhere except for a network 4 to a device 1, updating the data base 13 of the present device by executing that syntax described in the SQL language and preserving that syntax in the log file 14 in the order of updating as updated information and a synchronous processing part 112 for periodically retrieving whether the updated information is preserved in the log file 14 or not and sending the updated information stored in the log file 14 to a device 2 so as to update a data base 23 of the device 2 when the updated information is preserved.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、複数のデータベー
ス同期方式および方法に関し、特にログファイルを用い
て更新を行う複数装置間でのデータベース同期方式およ
び方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and a method for synchronizing a plurality of databases, and more particularly to a method and a method for synchronizing a database between a plurality of apparatuses that perform updates using log files.

【0002】[0002]

【従来の技術】従来、インテリジェントネットワークに
おけるSCP(サービス制御ノード)を用いたプリペイ
ドカードサービスの実現方法がある。本サービスでは、
プリペイドカードの残高をSCP上のデータベースに保
持するため、加入者が本サービスを利用した後に、各S
CP上のデータベースの残高を更新する機能が必要とな
る。この場合の従来の方式を図8に示す。図8を参照す
ると、装置6はデータベースの更新を行う更新処理部6
1を有し、装置間には、これらを接続する通信リンク8
を有する。データベース更新要求を受信した装置1の更
新処理部61がデータベース62を、ネットワーク8を
介して装置7のデータベース71をそれぞれを更新す
る。
2. Description of the Related Art Conventionally, there is a method for realizing a prepaid card service using an SCP (service control node) in an intelligent network. In this service,
In order to keep the balance of the prepaid card in the database on the SCP, after the subscriber uses this service,
A function of updating the balance of the database on the CP is required. FIG. 8 shows a conventional method in this case. Referring to FIG. 8, the device 6 includes an update processing unit 6 for updating the database.
And a communication link 8 connecting them between the devices.
Having. The update processing unit 61 of the device 1 that has received the database update request updates the database 62 and the database 71 of the device 7 via the network 8.

【0003】また、特開平10−074157号公報に
は、分散配置された複数のデータベース拠点間の整合を
行なう方法として、各拠点に於いて変更履歴の作成、管
理(シーケンシャルな番号を付与)、及び記憶し、互いの
拠点間でこの変更履歴を参照し合う事により、差分デー
タを抽出することが記載されている。
Japanese Patent Application Laid-Open No. 10-07157 discloses a method of matching between a plurality of database sites that are distributed and arranged, creating and managing change histories (assigning sequential numbers) at each site, It is described that the difference data is extracted by referring to and storing the change history between the bases.

【0004】また、特開平10−111825号公報に
は、複数SCP上のデータベースの差分を管理する方法
として差分管理データベースを設け、該当差分管理デー
タベース中の各レコードに時間情報を持たせる事で、複
数データベース間の差分管理を行なうことが記載されて
いる。
Japanese Patent Laid-Open Publication No. Hei 10-111825 discloses a method of managing a difference between databases on a plurality of SCPs by providing a difference management database and assigning time information to each record in the difference management database. It describes that difference management between a plurality of databases is performed.

【0005】[0005]

【発明が解決しようとする課題】従来の一般的なこの種
の方式では、図8に示すように、ネットワーク8の障害
や装置7の障害が発生した場合、データベース62は更
新されるが、データベース71は更新禁止となる。その
後、障害が復旧した際に、どこまで装置8が更新された
かどうかわからないため、手動でデータベースのコピー
を行わなければならないと言う問題点が生じる。更に、
手動でコピーを行う間にコピー元となるデータベース6
2が更新されてしまうと、データベース62とデータベ
ース71の同期が保証されなくなるため、この間のデー
タベース62への更新は禁止する必要があり、手動で同
期を行う間はサービス提供が行えない状態となり、運用
上問題点が発生する。
In a conventional general system of this type, as shown in FIG. 8, when a failure of the network 8 or a failure of the device 7 occurs, the database 62 is updated. Reference numeral 71 indicates that updating is prohibited. Thereafter, when the failure is recovered, it is not known to what extent the device 8 has been updated, so that a problem arises in that the database must be manually copied. Furthermore,
Database 6 that is the copy source during manual copying
2 is updated, the synchronization between the database 62 and the database 71 cannot be guaranteed. Therefore, it is necessary to prohibit the update to the database 62 during this time, and the service cannot be provided during manual synchronization. Operational problems occur.

【0006】また、特開平10−074157には、こ
の場合、変更履歴の各データにシーケンシャルな番号を
付与する事で、時間情報と同等の意味を持たせる事が可
能であるが、この番号の付与を全てのデータに対して行
なう必要があり、また、これを基とし差分データを抽出
しなければならないことから、処理速度の高速化を図る
ことが困難であるという問題点が生じる。
[0006] In this case, Japanese Patent Laid-Open No. 10-07157 discloses that, in this case, a sequential number is assigned to each data of the change history so that the data has the same meaning as the time information. Since it is necessary to add the data to all the data, and it is necessary to extract the difference data based on the data, it is difficult to increase the processing speed.

【0007】また、特開平10−111825には、こ
の場合、差分管理情報格納にデータベースを使用してい
る為、処理速度の高速化を図るのが困難であるという問
題点が生じる。
In this case, Japanese Patent Application Laid-Open No. Hei 10-111825 has a problem that it is difficult to increase the processing speed because a database is used for storing the difference management information.

【0008】本発明の目的は、上記の問題点を鑑み、F
IFO形式のログファイルを利用することにより、未更
新の情報を簡潔、かつ高速に時系列順に取り出せること
によりデータベースを更新することにある。
An object of the present invention is to solve the above-mentioned problems, and
An object of the present invention is to update a database by using a log file in the IFO format so that unupdated information can be extracted in a simple and high-speed chronological order.

【0009】[0009]

【課題を解決するための手段】上記の目的を達成するた
めに、本発明の複数装置間でのデータベース同期方式
は、データベースを有する複数の装置をネットワークで
接続し、それぞれの装置が自装置のデータベースと他装
置のデータベースを更新を行う複数装置間でのデータベ
ース同期方式において、データベース言語で記述された
構文を格納するFIFO形式のログファイルを備え、前
記ネットワーク以外から自装置にデータベースの更新要
求があると受信した更新データをデータベース言語に置
き換えそのデータベース言語で記述された構文を実行す
ることにより自装置のデータベースを更新しその構文を
更新情報として更新順に前記ログファイルに保存する更
新処理手段と、定期的に前記ログファイルに前記更新情
報が保存されているかを検索し保存されていると前記複
数の装置のうち自装置以外の装置のデータベースを更新
するように前記ログファイルに格納されている前記更新
情報を前記自装置以外の装置に送出する同期処理手段と
を有することを特徴としている。
In order to achieve the above object, a database synchronization method between a plurality of devices according to the present invention connects a plurality of devices having a database via a network, and each device has its own device. In a database synchronization method between a plurality of devices that update a database and a database of another device, a log file in a FIFO format that stores a syntax described in a database language is provided, and a request to update the database to the own device from outside the network is provided. Update processing means for replacing the received update data with a database language, executing a syntax described in the database language, updating the database of the own device, and storing the syntax in the log file in the update order as update information, The update information is periodically stored in the log file Synchronization processing means for sending the update information stored in the log file to the devices other than the own device so as to update the database of the devices other than the own device among the plurality of devices when the device is searched and stored. And characterized in that:

【0010】更に、前記同期処理手段により前記更新情
報を受信した装置は、前記更新情報である前記データベ
ース言語で記述された構文を実行することにより自装置
のデータベースを更新することを特徴としている。
Further, the apparatus receiving the update information by the synchronization processing means updates its own database by executing a syntax described in the database language, which is the update information.

【0011】更に、前記同期処理手段は、前記更新情報
を前記自装置以外の装置に送出した後に送出先の装置に
障害があることを検出すると装置毎に格納できるFIF
O形式の障害ログファイルに前記更新情報を保存するこ
とを特徴としている。
Further, the synchronous processing means transmits the update information to a device other than the own device, and then detects that there is a failure in the destination device.
The update information is stored in an O-type failure log file.

【0012】更に、前記同期処理手段は、前記複数の装
置の稼働状況を定期的に監視し管理することを特徴とし
ている。
Further, the synchronous processing means periodically monitors and manages the operation status of the plurality of devices.

【0013】更に、前記同期処理手段は、障害のあった
装置から障害復旧の通知を受信した場合に前記障害のあ
った装置のデータベースを更新するように前記障害ログ
ファイルに格納された前記更新情報を前記障害のあった
装置に送出することを特徴としている。
[0013] Further, the synchronization processing means may be configured to update the database of the failed device when the notification of failure recovery is received from the failed device. Is transmitted to the failed device.

【0014】また、本発明の複数装置間でのデータベー
ス同期方法は、データベースを有する複数の装置をネッ
トワークで接続され、それぞれの装置が自装置のデータ
ベースと他装置のデータベースを更新を行うデータベー
ス同期方法であって、前記複数の装置が、第1のタイマ
と、第2のタイマと、FIFO形式のログファイルと、
装置毎に稼働状態を示す状態語とを用いて、一定間隔に
割込をかける前記第1のタイマおよび前記第2のタイマ
を起動させ、自装置にデータベースの更新要求あると、
更新データをデータベース言語で記述された構文に変換
しその構文を実行することにより自装置のデータベース
を更新し、前記構文を更新情報として更新順に前記ログ
ファイルに格納し、前記第1のタイマの割込があると、
対象装置を決め、稼働状態確認メッセージを前記対象装
置に送出することにより確認し、前記稼働状態確認メッ
セージ送出後に前記対象装置の障害を検出すると前記状
態語に前記対象装置に障害が起こったことを記憶し、前
記第2のタイマの割込があると、前記ログファイルの内
容を検索し、ログファイルに内容があることを検出する
と送出先の更新装置を決め、前記状態語から前記更新装
置の稼働状態を検索し正常であれば前記ログファイルか
ら読み取った前記更新情報を前記更新装置に更新メッセ
ージで送出することを特徴としている。
A method of synchronizing a database between a plurality of apparatuses according to the present invention is a method for synchronizing a plurality of apparatuses having a database by a network, wherein each apparatus updates a database of its own apparatus and a database of another apparatus. Wherein the plurality of devices comprises: a first timer, a second timer, a log file in FIFO format,
Using a status word indicating an operating state for each device, the first timer and the second timer that interrupt at regular intervals are started, and when the own device receives a database update request,
By updating the update data into a syntax described in a database language and executing the syntax, the database of the own device is updated, the syntax is stored as update information in the update file in the log file, and the first timer Include
Determine the target device, confirm by sending an operation status confirmation message to the target device, and when the failure of the target device is detected after sending the operation status confirmation message, the status word indicates that the failure has occurred in the target device. When there is an interruption of the second timer, the content of the log file is searched, and when the presence of the content is detected in the log file, the update device of the transmission destination is determined, and the update device of the update device is determined from the status word. The operation status is searched, and if normal, the update information read from the log file is sent to the update device as an update message.

【0015】更に、上記の複数装置間でのデータベース
同期方法において、前記複数の装置が、前記更新メッセ
ージを受信すると前記更新メッセージから更新情報であ
る前記データベース言語で記述された構文を実行するこ
とにより自装置のデータベースを更新することを特徴と
している。
Further, in the above-mentioned method of synchronizing a database between a plurality of devices, when the plurality of devices receive the update message, the plurality of devices execute a syntax described in the database language as update information from the update message. It is characterized by updating its own database.

【0016】更に、上記の複数装置間でのデータベース
同期方法において、前記複数の装置が、装置毎にFIF
O形式の履歴ファイルを有する障害ログファイルを用い
て、前記更新メッセージ送出後に前記更新装置に障害が
あることを検出すると障害のあった装置の履歴ファイル
に前記更新情報を保存することを特徴としている。
Further, in the above-mentioned method for synchronizing a database between a plurality of devices, the plurality of devices may be connected to the
When a failure log file having an O-format history file is used and the update device is detected to have a failure after sending the update message, the update information is stored in a history file of the failed device. .

【0017】更に、上記の複数装置間でのデータベース
同期方法において、前記複数の装置が、障害のあった装
置から障害復旧を示す復旧メッセージを受信した場合に
前記障害のあった装置のデータベースを更新するように
前記障害のあった装置の履歴ファイルに格納された前記
更新情報を前記障害のあった装置に更新メッセージで送
出することを特徴としている。
Further, in the above-mentioned method of synchronizing a database between a plurality of devices, the plurality of devices update the database of the failed device when receiving a recovery message indicating failure recovery from the failed device. In this case, the update information stored in the history file of the failed device is transmitted to the failed device as an update message.

【0018】更に、前記複数の装置は、交換網のインテ
リジェントネットワーク接続されたサービス制御ノード
(SCP)であることを特徴としている。
Further, the plurality of devices are service control nodes (SCPs) connected to an intelligent network of a switching network.

【0019】[0019]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して説明する。図1を参照すると、本発明
の実施の形態を示すシステムズブロック図であり、装置
1と、複数の装置2(例えば、装置2A,2B,2C,
2D)と、装置1と複数の装置2との間を通信接続する
ネットワーク4とを備えている。装置1および複数の装
置2は、サービス制御ノード(SCP)に相当するもの
であって、装置1,各装置2のそれぞれは、図示されて
いないインテリジェントネットワーク対応交換機に接続
されている。ネットワーク3は、LANまたはWANで
構成されている。なお、本発明の説明上、装置1と装置
2が同じ機能を持つにも係わらず説明上分けたにすぎな
い。すなわち、本発明の実施の形態例では、説明上、図
示されていない自装置に接続されているインテリジェン
トネットワーク対応交換機からくるデータベースの更新
データを更新要求として最初に受け付けるSCPを装置
1にし、装置1から他のSCPのデータベースを更新す
ることになるが、その時の他のSCPを装置2にする。
Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a system block diagram illustrating an embodiment of the present invention, in which an apparatus 1 and a plurality of apparatuses 2 (for example, apparatuses 2A, 2B, 2C,
2D) and a network 4 for communication connection between the device 1 and the plurality of devices 2. The device 1 and the plurality of devices 2 correspond to a service control node (SCP), and each of the device 1 and each device 2 is connected to an intelligent network compatible switch (not shown). The network 3 is configured by a LAN or a WAN. In the description of the present invention, the devices 1 and 2 have the same function but are merely separated for the description. That is, in the embodiment of the present invention, for the sake of explanation, the SCP that first receives as a request for updating the database update data coming from an intelligent network compatible exchange connected to its own device (not shown) is set as the device 1, and the device 1 Will update the database of the other SCP, but the other SCP at that time will be the device 2.

【0020】装置1は、プロセッサによるプログラム制
御により動作する制御部11と、ネットワーク4を介し
て複数の装置2との送受信を行う送受信部12と、記憶
媒体(例えば、ディスク)に格納されているデータベー
ス13と、不揮発性のメモリに格納されているログファ
イル14と、同じく不揮発性のメモリに格納されている
障害ログファイル15とから構成される。なお、ログフ
ァイル14および障害ログファイル15を揮発性メモリ
としたが、ディスク等の記録媒体でもよい。
The apparatus 1 is stored in a control unit 11 that operates under program control by a processor, a transmitting and receiving unit 12 that performs transmission and reception with a plurality of apparatuses 2 via a network 4, and a storage medium (for example, a disk). It comprises a database 13, a log file 14 stored in a non-volatile memory, and a fault log file 15 also stored in a non-volatile memory. Although the log file 14 and the failure log file 15 are volatile memories, they may be recording media such as disks.

【0021】制御部11は、更新処理部111と同期処
理部112とから構成される。
The control section 11 comprises an update processing section 111 and a synchronization processing section 112.

【0022】更新処理部111は、データベース13の
内容の更新が発生すると、予め更新処理部111内に設
定されている更新に必要な初期化パラメータを利用し
て、交換機からの更新データをSQL構文に置き換え
る。更に、更処理部111は、このSQL構文を実行す
ることによりデータベース13の更新を行い、その更新
情報(SQL構文で書かれたデータ)をログファイル1
4に格納する。ログファイル14には、データベース1
3の更新した順番(1構文ずつ)に、更新情報を格納し
ていく。ログファイル14の格納方法は、FIFO(F
irst In First Out)形式になってお
り、一端読み出すと、ログファイルには、その読み出さ
れた内容は残らない。なお、初期化パラメータとは、デ
ータベースにアクセスに必要な情報(例えば、テーブル
名、キーフィールド名、フィールド名、処理)であり、
このパラメータに交換機から送られた更新データを当て
はめることによりSQL構文に変換するためのパラメー
タである。
When the update of the contents of the database 13 occurs, the update processing unit 111 uses the initialization parameters necessary for the update set in advance in the update processing unit 111 to convert the update data from the exchange into an SQL syntax. Replace with Further, the further processing unit 111 updates the database 13 by executing the SQL syntax, and stores the updated information (data written in the SQL syntax) in the log file 1.
4 is stored. The log file 14 contains the database 1
The update information is stored in the order of update (one syntax at a time). The storage method of the log file 14 is FIFO (F
It is in the format of "first in first out", and once read, the read contents do not remain in the log file. The initialization parameter is information necessary for accessing the database (for example, table name, key field name, field name, processing),
This is a parameter for converting to an SQL syntax by applying the update data sent from the exchange to this parameter.

【0023】同期処理部112は、定期的に、データベ
ースの更新結果(ログファイル14の内容を見て判断)
を監視し、更に、定期的に、装置1と複数の装置2との
間をネットワーク4を介して張られた通信リンク、およ
び複数の装置2の稼動状況を監視(ヘルスチェック)し
ている。なお、同期処理部112は、更新結果を見に行
く動作とヘルスチェックを行う動作とは別々に動作して
いる。
The synchronization processing unit 112 periodically updates the database (determines by looking at the contents of the log file 14).
Furthermore, a communication link established between the device 1 and the plurality of devices 2 via the network 4 and the operation status of the plurality of devices 2 are periodically monitored (health check). Note that the synchronization processing unit 112 operates separately from the operation of checking the update result and the operation of performing a health check.

【0024】障害ログファイル15は、各装置2毎に障
害対応の履歴ファイルを持っており、装置2の障害を検
出した場合、更新情報を復旧するまで格納する。障害ロ
グファイル15の各装置の履歴ファイルの格納方法は、
FIFO形式になっており、更新情報を更新順(SQL
構文の実行順)に格納していく。一端読み出すと、履歴
ファイルには、その読み出された内容は残らない。
The failure log file 15 has a history file corresponding to the failure of each device 2, and when a failure of the device 2 is detected, updates are stored until the update information is restored. The storage method of the history file of each device in the failure log file 15 is as follows.
It is in FIFO format and the update information is updated in the order of update (SQL
Syntax execution order). Once read, the read contents do not remain in the history file.

【0025】装置2は、プロセッサによるプログラム制
御により動作する制御部21と、ネットワーク4を介し
て装置1および他の装置2との送受信を行う送受信部2
2と、ディスクの媒体に格納されているデータベース2
3、ログファイル24と、障害ログファイル25とから
構成される。なお、装置2は、装置2A、装置2B、装
置2C、装置2Dの4台あるとする。
The device 2 includes a control unit 21 which operates under program control by a processor, and a transmission / reception unit 2 which transmits and receives the device 1 and other devices 2 via the network 4.
2 and database 2 stored on a disk medium
3. It is composed of a log file 24 and a failure log file 25. It is assumed that there are four devices 2, that is, device 2A, device 2B, device 2C, and device 2D.

【0026】制御部21は、更新処理部211と、同期
処理部212とから構成される。
The control section 21 comprises an update processing section 211 and a synchronization processing section 212.

【0027】なお、図1における各装置間でデータベー
スの更新、稼働状態の確認に使用されるメッセージのプ
ロトコルは、予め、システム設定時に取り決めされてい
る。
Note that the protocol of the message used for updating the database and confirming the operating state among the devices in FIG. 1 is determined in advance at the time of setting the system.

【0028】図2は、装置1および装置2の図示してい
ないメモリに格納されている状態語のフォーマットであ
り、装置2A,装置2B,・・・装置Nの稼働状態を示
す。装置が2A〜2Dの4台であれば、図2の状態語
は、装置2A〜2Dの4つのエリアを持つ。図2におい
て、論理値「1」であれば、障害中を示し、論理値
「0」であれば正常稼働中であることを示す。
FIG. 2 shows the format of status words stored in memories (not shown) of the devices 1 and 2, and shows the operating status of the devices 2A, 2B,. If there are four devices 2A to 2D, the status word in FIG. 2 has four areas of devices 2A to 2D. In FIG. 2, if the logical value is “1”, it indicates that a fault has occurred, and if the logical value is “0”, it indicates that normal operation is in progress.

【0029】データベース13およびデータベース23
は、本実施の形態例として、国際標準リレーショナルデ
ータベース言語であるSQL言語に基づき作成されたデ
ータベースであるとする。また、負荷分散のために複数
のSCPを設けてあるために、データベース13の更新
があるとデータベース23も同じように更新される。
Database 13 and database 23
Is a database created based on the SQL language, which is an international standard relational database language, as an example of the present embodiment. Further, since a plurality of SCPs are provided for load distribution, when the database 13 is updated, the database 23 is similarly updated.

【0030】図3は、装置1の更新処理部111および
装置2の更新処理部211が更新メッセージを受信した
ときの動作を示すフロ−チャートである。
FIG. 3 is a flowchart showing the operation when the update processing unit 111 of the device 1 and the update processing unit 211 of the device 2 receive the update message.

【0031】図4は、装置1の同期処理部112および
装置2の同期処理部212が他装置のヘルスチェックを
行うときの動作を示すフローチャートである。
FIG. 4 is a flowchart showing the operation when the synchronization processing unit 112 of the device 1 and the synchronization processing unit 212 of the device 2 perform a health check of another device.

【0032】図5は、装置1の同期処理部112および
装置2の同期処理部212が他装置の更新情報の監視を
行うときの動作を示すフローチャートである。
FIG. 5 is a flowchart showing an operation when the synchronization processing unit 112 of the device 1 and the synchronization processing unit 212 of the device 2 monitor update information of another device.

【0033】図6は、装置1の同期処理部112および
装置2の同期処理部212が復旧メッセージを受信した
ときの動作を示すフローチャートである。
FIG. 6 is a flowchart showing the operation when the synchronization processing unit 112 of the device 1 and the synchronization processing unit 212 of the device 2 receive the recovery message.

【0034】次に、図1〜図6を参照して本実施の形態
の動作について説明する。今、図1の図示していない装
置1に接続されているインテリジェントネットワーク対
応交換機からデータベース13の更新データの入ったメ
ッセージ(この中には更新データも入っている)が、入
ってきた場合、装置1の送受信部12がこのメッセージ
を受信し、制御部11にメッセージを渡す。すると、制
御部11は、受信したメッセージを解析し、交換機から
のメッセージでかつ更新データの内容から更新メッセー
ジとして認識し、更新処理部11に制御を渡す。その更
新処理部111が更に更新メッセージを解析する(図3
のステップS1)。このとき、更新処理部111は、更
新メッセージをデータベースの更新で交換機からの要求
だと判断すると、そのメッセージに入った更新データを
SQL構文に変換し、SQL構文を実行することにより
データベース13の内容を更新する(ステップS3,S
4,S5)。更に、更新処理部111は、ログファイル
14にSQL構文を更新情報として書き込みを行い、正
常終了を示す更新応答メッセージを送受信部12を介し
て送信先(交換機側)に返信する。なお、ログファイル
14には、SQL構文のまま格納される(ステップS
6,S7)。更新処理部111が、更新メッセージがデ
ータベースの更新でないと判断した場合は、データベー
スの更新と違う別の処理(更新メッセージで指示された
処理)を行う(ステップS10)。
Next, the operation of this embodiment will be described with reference to FIGS. Now, when a message containing update data of the database 13 (including update data) from the intelligent network compatible exchange connected to the device 1 (not shown) in FIG. The first transmission / reception unit 12 receives this message and passes the message to the control unit 11. Then, the control unit 11 analyzes the received message, recognizes the message from the exchange as an update message from the content of the update data, and passes control to the update processing unit 11. The update processing unit 111 further analyzes the update message (FIG.
Step S1). At this time, when the update processing unit 111 determines that the update message is a request from the exchange in updating the database, the update processing unit 111 converts the update data contained in the message into an SQL syntax, and executes the SQL syntax to thereby update the contents of the database 13. Is updated (steps S3, S
4, S5). Further, the update processing unit 111 writes the SQL syntax into the log file 14 as update information, and returns an update response message indicating normal termination to the transmission destination (switch side) via the transmission / reception unit 12. The SQL file is stored in the log file 14 as it is (step S
6, S7). When the update processing unit 111 determines that the update message is not an update of the database, another process different from the update of the database (the process instructed by the update message) is performed (step S10).

【0035】一方、装置1は、各装置2の更新情報の監
視を一定間隔で行うために、タイマ割込による処理を行
っている。この監視用のタイマは、各装置が立ち上がる
ときに起動される。更新情報の監視用のタイマがタイム
アウトになりタイマ割込が発生すると、装置1の同期処
理部112は、ログファイル14の内容を見に行き、ロ
グファイル14に更新情報が格納されていると、各装置
2のデータベース23の内容を更新する動作に移る(図
5のステップS21,S22)。すると、同期処理部1
12は、先ず更新する装置を予め決められた順(例で
は、2A、2B、2C、2Dの順)に設定された装置2
Aを決める(ステップS23)。続いて同期処理部11
2は、ログファイル14からデータベースの更新情報を
全て読み込み一端装置1のメモリ(図1に図示していな
い)に格納し、装置1のメモリに格納されている状態語
を見に行く(ステップS24)。なお、状態語の送信す
べき装置2Aのエリアには、論理値「0」がセットされ
ているめ、同期処理部112は、正常稼働していると判
断し、更新メッセージにメモリから読んだ更新情報を載
せ、送受信部12およびネットワーク4を介してまず最
初の装置2Aに更新メッセージを送信する(ステップS
25,S26)。更新メッセージを受信した装置2の送
受信部22は、制御部21に更新メッセージを渡す。そ
の制御部21は、受信したメッセージを解析し、更新メ
ッセージであると判断すると、更新処理部211に制御
を渡す。更新処理部211は、更新メッセージを解析
し、データベース23の更新で装置1からの要求だと判
断すると、その更新メッセージに入った更新情報(SQ
L構文)を実行することによりデータベース23を更新
する(図3のステップS1,S2,S3,S8)。更新
処理部211は、データベース23の更新処理を終了す
ると、正常終了を示す更新応答メッセージを送受信部2
2を介して装置1に返信する(ステップS9)。装置1
の制御部11は、更新応答メッセージを送受信部12を
介して受信すると、メッセージを解析し、更新応答メッ
セージと判断すると、同期処理部112に制御を渡す。
同期処理部112は、更新応答メッセージを解析するこ
とにより正常終了したと判断し、次の装置2Bへの処理
に移る。このようにして装置2Dまで処理を繰り返す
(図5のステップS27,S30)。
On the other hand, the apparatus 1 performs processing by timer interruption in order to monitor the update information of each apparatus 2 at regular intervals. The monitoring timer is started when each device starts up. When the timer for monitoring the update information times out and a timer interrupt occurs, the synchronization processing unit 112 of the device 1 goes to look at the contents of the log file 14, and when the update information is stored in the log file 14, The operation proceeds to the operation of updating the contents of the database 23 of each device 2 (steps S21 and S22 in FIG. 5). Then, the synchronization processing unit 1
Reference numeral 12 denotes a device 2 in which devices to be updated are set in a predetermined order (in the example, 2A, 2B, 2C, and 2D).
A is determined (step S23). Subsequently, the synchronization processing unit 11
2 reads all the update information of the database from the log file 14, stores it in the memory (not shown in FIG. 1) of the device 1, and goes to the state word stored in the memory of the device 1 (step S24). ). Since the logical value “0” is set in the area of the device 2A to which the status word is to be transmitted, the synchronization processing unit 112 determines that the operation is normal and the update message read from the memory is included in the update message. Information is transmitted, and an update message is transmitted to the first device 2A via the transmission / reception unit 12 and the network 4 (step S).
25, S26). The transmission / reception unit 22 of the device 2 that has received the update message passes the update message to the control unit 21. The control unit 21 analyzes the received message and, when determining that the message is an update message, passes control to the update processing unit 211. The update processing unit 211 analyzes the update message, and if it determines that the update of the database 23 is a request from the device 1, the update information (SQ
The database 23 is updated by executing the L syntax (steps S1, S2, S3, and S8 in FIG. 3). When the update processing unit 211 finishes the update processing of the database 23, the update processing unit 211 sends an update response message indicating a normal end to the transmission / reception unit 2.
2 is returned to the device 1 (step S9). Apparatus 1
When the control unit 11 receives the update response message via the transmission / reception unit 12, the control unit 11 analyzes the message, and when it determines that the message is the update response message, passes control to the synchronization processing unit 112.
The synchronization processing unit 112 analyzes the update response message to determine that the processing has been completed normally, and proceeds to processing for the next device 2B. Thus, the process is repeated up to the device 2D (steps S27 and S30 in FIG. 5).

【0036】ステップS27において、装置1の同期処
理部112が障害を検出した場合(装置2の更新処理部
211が異常終了を示す更新応答メッセージの場合、ま
たは無応答の場合)は、状態語の障害検出した装置のエ
リアに「1」をセットし、障害ログファイル15の中の
障害検出した装置の履歴ファイルに更新情報を格納する
(S27,S28,S29)。この後、同期処理部11
2は、全装置に対する更新処理の動作が終了するまでス
テップS23から動作を繰り返す(S30)。
In step S27, when the synchronization processing unit 112 of the device 1 detects a failure (when the update processing unit 211 of the device 2 is an update response message indicating abnormal termination, or when there is no response), the status word “1” is set in the area of the device where the failure is detected, and the update information is stored in the history file of the device where the failure is detected in the failure log file 15 (S27, S28, S29). Thereafter, the synchronization processing unit 11
2 repeats the operation from step S23 until the operation of the update processing for all devices is completed (S30).

【0037】次に装置1の同期処理部112は、装置2
Bのデータベース23の更新を行うが、同期処理部11
2の更新動作は、装置2Aと同じように動作する。この
ように、同期処理部112は、装置2C,2Dのデータ
ベース23の更新処理も装置2Aと同じように処理を行
うことにより、一連の処理を終了し、次の監視時間(監
視用タイマによる割込)がくるまで処理を待つ(ステッ
プS30)。
Next, the synchronization processing unit 112 of the device 1
B updates the database 23, but the synchronization processing unit 11
2 operates in the same manner as the device 2A. As described above, the synchronization processing unit 112 finishes a series of processing by updating the database 23 of the devices 2C and 2D in the same manner as the device 2A, and ends the next monitoring time (by the monitoring timer). (Step S30).

【0038】更に、装置1は、各装置2のヘルスチェッ
クを一定間隔で行うために、タイマ割込による処理を行
っている。ヘルスチェック(稼働状態監視)用のタイマ
は、各装置の立ち上げ時に起動をかけられる。ヘルスチ
ェック用のタイマがタイムアウトになりタイマ割込が発
生すると、同期処理部112は、各装置2のヘルスチェ
ックを行うことになるが、先ず、対象装置を予め決めら
れた順番(例では、2A、2B、2C、2Dの順)の最
初である装置2Aを決定する(図4のステップS1
1)。同期処理部112は、装置2Aの稼動状態が正常
であるかをチェックするために、稼働状態確認メッセー
ジをネットワーク4を介して先ず装置2Aに送信する
(ステップS12)。すると、装置2Aの送受信部22
が稼働状態確認メッセージを受信し、制御部21に稼働
状態確認メッセージを渡す。メッセージを受信した制御
部21は、メッセージを解析することにより稼働状態確
認メッセージであると判断すると、正常稼働中であるた
め正常稼働を示す稼働状態確認応答メッセージを送受信
部22およびネットワーク4を介して装置1に返送す
る。装置1の同期処理部112が、その稼働状態確認応
答メッセージを送受信部12を介して受信し、正常であ
ると判断すると、装置2Aのヘルスチェックを終える
(ステップS13,S14,S15,S16)。同期処
理部112は、次の装置2Bのヘルスチェックを上記の
装置2Aと同じように動作する。このように同期処理部
112は、装置2C,2Dも装置2Aと同じ処理を行う
ことにより、一連の処理を終了し、次の監視時間(ヘル
スチェック用タイマの割込)がくるまで処理を待つ(ス
テップS17)。
Further, the device 1 performs a process by means of a timer interrupt in order to check the health of each device 2 at regular intervals. A timer for health check (operating state monitoring) can be started when each device is started. When the timer for the health check times out and a timer interrupt occurs, the synchronization processing unit 112 performs a health check on each device 2. First, the synchronization device 112 places the target devices in a predetermined order (2A in the example). , 2B, 2C, and 2D (in the order of step S1 in FIG. 4).
1). The synchronization processing unit 112 first transmits an operation status confirmation message to the device 2A via the network 4 in order to check whether the operation status of the device 2A is normal (Step S12). Then, the transmission / reception unit 22 of the device 2A
Receives the operation status confirmation message, and passes the operation status confirmation message to the control unit 21. The control unit 21 that has received the message determines that the message is an operation status confirmation message by analyzing the message, and transmits an operation status confirmation response message indicating normal operation to the transmission / reception unit 22 and the network 4 because the operation is normal. Return to device 1. When the synchronization processing unit 112 of the device 1 receives the operation status confirmation response message via the transmission / reception unit 12 and determines that it is normal, the health check of the device 2A is completed (steps S13, S14, S15, S16). The synchronization processing unit 112 operates the health check of the next device 2B in the same manner as the device 2A. As described above, the synchronization processing unit 112 ends the series of processing by performing the same processing as the apparatus 2A in the apparatuses 2C and 2D, and waits for the processing until the next monitoring time (interruption of the health check timer) comes. (Step S17).

【0039】以上説明したように、同期処理部112は
時系列順にデータ更新を行うため、装置2のデータベー
ス23の更新処理中でも、更新処理部111のデータベ
ース13への更新を禁止する必要がない。
As described above, since the synchronization processing unit 112 updates data in chronological order, it is not necessary to prohibit the update processing unit 111 from updating the database 13 even during the update processing of the database 23 of the device 2.

【0040】また、相手装置の稼動状態が正常であれ
ば、FIFO形式のログファイルに入った更新情報(管
理情報を含まない)を一定間隔に読み込み、この更新情
報に応じて相手装置のデータベースの更新を行う同期処
理部を有しているので、未更新の情報を簡潔にかつ高速
に時系列順に処理することができるという効果がある。
If the operating state of the partner device is normal, the update information (not including the management information) contained in the log file in the FIFO format is read at regular intervals, and the database of the partner device is read in accordance with the update information. Since there is a synchronous processing unit for updating, there is an effect that information that has not been updated can be processed simply and at high speed in chronological order.

【0041】次に、装置2Aに、障害が発生した場合に
ついて説明する。装置1の同期処理部112が障害が発
生した装置2Aに対し稼働状態確認メッセージを送信す
ることによりヘルスチェックにいく(図4のステップS
11,S12)と、装置2Aの制御部21は、正常稼働
でないことを示す稼働状態確認応答メッセージを装置1
に返す。すると、装置1の同期処理部112は受信した
メッセージを解析することにより装置2に障害が発生し
たこを認識し、装置1のメモリにある状態語の装置2A
のエリアに障害中を示す論理値「1」を書き込む(ステ
ップS13,S14,S15)。なお、ステップS13
において装置2が受信できない状態であれば、装置1の
同期処理部112は、応答の時間監視することにより、
障害を検出(タイムアウトで検出)し、同じく障害中を
示す論理値「1」を状態語の装置2Aのエリアに書き込
む(ステップS13,S16)。
Next, a case where a failure occurs in the device 2A will be described. The synchronization processing unit 112 of the device 1 starts a health check by transmitting an operation status confirmation message to the failed device 2A (step S in FIG. 4).
11, S12), and the control unit 21 of the device 2A transmits an operation status confirmation response message indicating that the device is not operating normally.
To return. Then, the synchronization processing unit 112 of the device 1 analyzes the received message, recognizes that a failure has occurred in the device 2, and recognizes the status word in the memory of the device 1 in the device 2A.
The logical value "1" indicating that a fault has occurred is written in the area (steps S13, S14, S15). Step S13
In the case where the device 2 cannot receive the data in, the synchronization processing unit 112 of the device 1 monitors the response time,
A failure is detected (detected by timeout), and a logical value "1" indicating that the failure is also occurring is written in the area of the status word device 2A (steps S13 and S16).

【0042】一方、装置1の同期処理部112は、一定
時間毎に、ログファイル14の内容を見に行き、ログフ
ァイル14に更新情報が格納されていると、各装置2の
データベース23の内容を更新する動作に移る(図5の
ステップS21,S22)。すると、同期処理部112
は、ログファイル14からデータベースの更新情報を全
て読み込み、送信する装置2の稼働状態をチェックする
ために、装置1のメモリに格納されている状態語を見に
行く(ステップS23,S24)。状態語の送信すべき
装置2Aのエリアには、論理値「1」がセットされてい
るために、同期処理部112は、障害があったこと認識
し、障害ログファイル15の装置2Aの履歴ファイルに
更新情報をSQL構文のまま格納する(ステップS2
5,S29)。他の装置2B,2C,および2Dは、状
態語に論理値1にセットされていないために、各装置2
のデータベース23を更新される。
On the other hand, the synchronization processing section 112 of the device 1 goes to the contents of the log file 14 at regular intervals, and if the update information is stored in the log file 14, the contents of the database 23 of each device 2 (Steps S21 and S22 in FIG. 5). Then, the synchronization processing unit 112
Reads all the update information of the database from the log file 14 and goes to a status word stored in the memory of the device 1 to check the operation status of the device 2 that transmits the information (steps S23 and S24). Since the logical value “1” is set in the area of the device 2A to which the status word is to be transmitted, the synchronization processing unit 112 recognizes that a failure has occurred, and stores the failure log file 15 in the history file of the device 2A. The update information is stored in SQL syntax (step S2).
5, S29). The other devices 2B, 2C, and 2D have each device 2B because the status word is not set to logical one.
Is updated.

【0043】この後、障害のあった装置2Aから装置1
に障害が復旧したという復旧メッセージがくると、装置
1の制御部11は、受信したメッセージを解析し、復旧
メッセージであることを認識すると同期処理部112に
制御を渡す。すると、同期処理部112は、装置1のメ
モリにある状態語の装置Aのエリアを「0」にリセット
し、障害ログファイル15の装置Aの履歴ファイルから
更新情報を読み出し、更新メッセージに読み出した更新
情報を載せ、送受信部12およびネットワーク4を介し
て装置2Aに更新メッセージを送信する。更新メッセー
ジを受信した装置2の送受信部22は制御部21に更新
メッセージを渡す(図6のステップS31,S32)。
更新メッセージを受信した制御部21は、メッセージを
解析することにより更新メッセージだと判断すると更新
処理部211に制御を渡す。その更新処理部211は、
受信した更新メッセージを解析し、データベース23の
更新でかつ装置1からの要求であると判断すると、更新
メッセージ内の更新情報(SQL構文)を実行すること
によりデータベース23を更新する(図3のステップS
1,S2,S3,S8)。更新処理部211は、更新処
理を終えると正常終了を示す更新応答メッセージを送信
先に送信する(ステップS9)。
Thereafter, the faulty device 2A is switched to the device 1
When a recovery message is received indicating that the failure has been recovered, the control unit 11 of the device 1 analyzes the received message, and passes control to the synchronization processing unit 112 when recognizing that the message is a recovery message. Then, the synchronization processing unit 112 resets the area of the device A of the status word in the memory of the device 1 to “0”, reads out the update information from the history file of the device A in the failure log file 15, and reads out the update message. The update information is loaded and an update message is transmitted to the device 2A via the transmission / reception unit 12 and the network 4. The transmitting / receiving unit 22 of the device 2 that has received the update message passes the update message to the control unit 21 (Steps S31 and S32 in FIG. 6).
Upon receiving the update message, the control unit 21 analyzes the message and determines that the message is an update message, and passes control to the update processing unit 211. The update processing unit 211
The received update message is analyzed, and when it is determined that the update of the database 23 is a request from the device 1, the database 23 is updated by executing the update information (SQL syntax) in the update message (step in FIG. 3). S
1, S2, S3, S8). Upon completion of the update processing, the update processing unit 211 transmits an update response message indicating a normal end to the transmission destination (step S9).

【0044】以上説明したように、同期処理部112
は、相手装置の稼動状況監視(ヘルスチェック)および
更新状況を監視(障害ログファイルで対処)しているた
め、障害発生時は即座に処理を中断し、障害復旧時に
は、中断時点からの更新情報を時系列順(古い順)に読み
込み、正常運用時と同様に相手装置のデータベースの更
新を行うことができるという効果がある。すなわち、相
手装置の障害発生時のデータベースの同期化復旧作業を
自動的に行うことが可能となり、自装置のデータベース
の更新を禁止して呼処理を中断するなど、運用上の問題
点を回避することが可能となる。
As described above, the synchronization processing unit 112
Monitors the operating status (health check) and the update status of the remote device (repairs with the error log file), so if a failure occurs, the process is immediately interrupted. Are read in chronological order (oldest first), and the database of the partner device can be updated in the same manner as in normal operation. In other words, it is possible to automatically perform a database synchronization recovery operation when a failure occurs in the partner apparatus, and to avoid operational problems such as prohibiting updating of the database of the own apparatus and interrupting call processing. It becomes possible.

【0045】また、障害に関係なく、更新情報をただ単
純に更新発生順にログファイルに格納しているため、一
切の管理情報を時系列的にログファイルに格納する必要
がなく、処理が簡単になるという効果がある。
Further, since the update information is simply stored in the log file in the order of the update occurrence irrespective of the failure, there is no need to store all the management information in the log file in time series, and the processing is simplified. It has the effect of becoming.

【0046】次に、プリペイドカードサービスで利用さ
れるデータベースについて、具体的な例として説明す
る。図1のデータベース13,23には、加入者の登録
番号毎に残高が登録されている加入者登録テーブルがあ
るものとする。すなわち、データベ−スには、テーブル
名に加入者情報登録テーブル、キーフィールド名に発信
番号、フィールド名に残高で構成されている。そのた
め、更新処理部11および211には、予め初期化パラ
メータとしてテーブル名(=加入者情報登録テーブ
ル)、キーフィールド名(=発信番号)、フィールド名
(=残高)、処理(=UPDATE、INSERT、ま
たはDELETE)が設定されている。この状態でプリ
メイドカードサービスは、加入者がサービスを利用した
後、発信番号をキーとして加入者のレコードを特定し、
該当レコードの残高を更新することになっている。
Next, a database used in the prepaid card service will be described as a specific example. It is assumed that the databases 13 and 23 in FIG. 1 have a subscriber registration table in which the balance is registered for each subscriber registration number. That is, the database includes a subscriber information registration table as a table name, a calling number as a key field name, and a balance as a field name. Therefore, in the update processing units 11 and 211, table names (= subscriber information registration table), key field names (= calling number), field names (= balance), processes (= UPDATE, INSERT, Or DELETE) is set. In this state, the pre-made card service, after the subscriber uses the service, identifies the subscriber's record using the calling number as a key,
The balance of the record is to be updated.

【0047】今、図1の装置1に接続されてるインテリ
ジェントネットワーク対応の交換機配下にある端末の発
信番号471857234の加入者の残高が100であ
ったとする。この加入者が本サービスを利用した後、残
高が80になった場合、更新要求は「加入者情報登録テ
ーブル上の発信番号が471857234の加入者の残
高を80に更新(UPDATE)する」となる。従っ
て、この交換機からくる更新要求のメッセージには、更
新情報として、発信番号の値(=471857234)
と残高の値(=80)とが入っている。すると、装置1
の更新処理部111は、図3のフロ−チャートに従っ
て、処理を行う。この場合、ステップS4における処理
は、図7のように、SQL構文に変換される。このSQ
L構文が更新情報としてステップS6,S7処理を行う
ことになる。この処理が終わると、ログファイル14に
更新情報が入っているので、図4の同期処理部112の
更新情報の監視のフローチャートに従って、ステップS
26で図7のSQL構文である更新情報を装置2に送る
ことになる。すると、装置2の更新処理部211は、図
3のフローチャートに従って処理を行う。この場合、更
新処理部212のステップS8における処理は、図7の
SQL構文を実行することによりデータベース23を更
新する。
Now, it is assumed that the balance of the subscriber having the transmission number 471857234 of the terminal under the exchange corresponding to the intelligent network connected to the apparatus 1 of FIG. 1 is 100. If the balance becomes 80 after this subscriber uses this service, the update request is "update (UPDATE) the balance of the subscriber whose calling number on the subscriber information registration table is 471857234 to 80". . Therefore, the update request message from this exchange includes, as the update information, the value of the transmission number (= 47187234)
And the value of the balance (= 80). Then, device 1
Update processing unit 111 performs processing according to the flowchart of FIG. In this case, the processing in step S4 is converted into an SQL syntax as shown in FIG. This SQ
Steps S6 and S7 are performed with the L syntax as update information. When this processing is completed, the log file 14 contains the update information, and therefore, according to the update information monitoring flowchart of the synchronization processing unit 112 in FIG.
At 26, the update information in the SQL syntax of FIG. Then, the update processing unit 211 of the device 2 performs processing according to the flowchart of FIG. In this case, the processing in step S8 of the update processing unit 212 updates the database 23 by executing the SQL syntax of FIG.

【0048】具体的な例で説明したように、生の更新デ
ータ(交換機から送られてくる更新データ)をそのまま
保持する形式では、この更新データを基としてSQL構
文を作成する処理を再度行なう必要があるが、本発明で
は1度SQL構文に作成した更新情報をそのままログフ
ァイルに保持する事で、無駄な処理を省くことができ
る。
As described in the specific example, in the format in which raw update data (update data sent from the exchange) is held as it is, it is necessary to repeat the process of creating an SQL syntax based on this update data. However, in the present invention, useless processing can be omitted by retaining the update information once created in the SQL syntax in the log file as it is.

【0049】また、図7で示すようにSQL構文の形で
保持する事で、保持する手段も簡潔になる。これは、生
の更新データをそのまま保持する形式では、どの情報と
どの情報が対をなすかを合わせて保持する必要がなくな
るからである(本発明では、テーブル名が加入者情報登
録テーブル、キーフィールド名が発信番号で値が471
857234、フィールド名が残高で値が80、処理が
UPDATEという形で関連付けて保持する必要がな
い)。
Further, as shown in FIG. 7, by holding in the form of SQL syntax, the means for holding is simplified. This is because, in the format in which the raw update data is retained as it is, it is not necessary to retain the information and the information that form a pair (in the present invention, the table name is the subscriber information registration table, the key Field name is calling number and value is 471
857234, the field name is a balance, the value is 80, and the processing does not need to be associated and stored in the form of UPDATE).

【0050】なお、上記説明では、データベース言語と
してSQL言語を使用しているが、SQL言語以外のデ
ータベース言語で作成した構文でも、やり方はSQL構
文の場合と全く同じであるため、本発明に含まれること
は言うまでもない。
In the above description, the SQL language is used as the database language. However, the syntax created in a database language other than the SQL language is exactly the same as that in the case of the SQL syntax, and is included in the present invention. Needless to say,

【0051】[0051]

【発明の効果】以上説明したように、本発明は、データ
ベース言語で作成された構文を更新情報としてログファ
イルに格納する手段を有しているため、簡潔に保存がで
き、過去のデータベース更新情報の参照が可能となる。
As described above, the present invention has a means for storing the syntax created in the database language as update information in the log file, so that it can be saved simply, and the past database update information can be saved. Can be referenced.

【0052】また、本発明は、他装置の稼動状況および
データベース更新処理状況を監視する手段を有している
ため、これらに障害が発生してデータベースの更新が正
常に行われなかった場合、これを認識し、データベース
の更新結果を保持することが可能となる。
Further, since the present invention has means for monitoring the operation status of other devices and the database update processing status, if a failure occurs in these devices and the database is not updated normally, , And the result of updating the database can be held.

【0053】また、上記効果により、他装置の障害が復
旧した場合に、データベースの更新結果を元とし、自動
的に他装置のデータベースを更新することが可能とな
る。
According to the above effects, when the failure of the other device is recovered, the database of the other device can be automatically updated based on the update result of the database.

【0054】更に、時系列順にデータの更新を行う手段
を有しているため、相手装置のデータベースの同期化中
でも、自装置のデータベースの更新処理を稼動させた状
態での運用が可能となる。
Further, since there is a means for updating data in chronological order, it is possible to operate the apparatus while updating the database of the own apparatus while synchronizing the database of the other apparatus.

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

【図1】本発明の実施の形態例を示すシステムのブロッ
ク図である。
FIG. 1 is a block diagram of a system showing an embodiment of the present invention.

【図2】図1の装置1が持つ各装置の稼働状態を示す状
態語のフォーマット図である。
FIG. 2 is a format diagram of a state word indicating an operation state of each device of the device 1 of FIG.

【図3】図1の更新処理部が更新メッセージを受信した
ときの動作を示すフロ−チャートである。
FIG. 3 is a flowchart showing an operation when the update processing unit of FIG. 1 receives an update message.

【図4】図1の同期処理部が他装置のヘルスチェックを
行うときの動作を示すフローチャートである。
FIG. 4 is a flowchart illustrating an operation when the synchronization processing unit in FIG. 1 performs a health check of another device.

【図5】図1の同期処理部が他装置の更新情報の監視を
行うときの動作を示すフローチャートである。
FIG. 5 is a flowchart showing an operation when the synchronization processing unit of FIG. 1 monitors update information of another device.

【図6】図1の同期処理部が復旧メッセージを受信した
ときの動作を示すフローチャートである。
FIG. 6 is a flowchart illustrating an operation when the synchronization processing unit in FIG. 1 receives a restoration message.

【図7】本発明の実施の形態の具体例として使用される
SQL言語で記述されたSQL構文である。
FIG. 7 shows an SQL syntax described in an SQL language used as a specific example of the embodiment of the present invention.

【図8】従来のデータベース同期方式のブロック図であ
る。
FIG. 8 is a block diagram of a conventional database synchronization method.

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

1,2,6,7 装置 4,8 ネットワーク 11,21 制御部 12,22 送受信部 13,23,62,71 データベース 14,24 ログファイル 15,25 障害ログファイル 61,111,211 更新処理部 112,212 同期処理部 1, 2, 6, 7 device 4, 8 network 11, 21, control unit 12, 22, transmission / reception unit 13, 23, 62, 71 database 14, 24 log file 15, 25 failure log file 61, 111, 211 update processing unit 112 , 212 Synchronization processing unit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) G06F 15/16 620 G06F 15/16 620H 15/177 672 15/177 672G 672H 682 682J Fターム(参考) 5B042 GA12 GB03 GB09 GC08 HH20 JJ08 JJ15 KK06 LA20 MA08 MC09 MC15 5B045 AA03 BB13 BB28 BB35 BB47 BB49 DD16 DD17 DD18 JJ07 JJ13 JJ48 5B082 DB02 DC06 DC09 DD07 GA14 GB06 HA03 ──────────────────────────────────────────────────の Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) G06F 15/16 620 G06F 15/16 620H 15/177 672 15/177 672G 672H 682 682J F term (Reference) 5B042 GA12 GB03 GB09 GC08 HH20 JJ08 JJ15 KK06 LA20 MA08 MC09 MC15 5B045 AA03 BB13 BB28 BB35 BB47 BB49 DD16 DD17 DD18 JJ07 JJ13 JJ48 5B082 DB02 DC06 DC09 DD07 GA14 GB06 HA03

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 データベースを有する複数の装置をネッ
トワークで接続し、それぞれの装置が自装置のデータベ
ースと他装置のデータベースを更新を行う複数装置間で
のデータベース同期方式において、データベース言語で
記述された構文を格納するFIFO形式のログファイル
を備え、前記ネットワーク以外から自装置にデータベー
スの更新要求があると受信した更新データをデータベー
ス言語に置き換えそのデータベース言語で記述された構
文を実行することにより自装置のデータベースを更新し
その構文を更新情報として更新順に前記ログファイルに
保存する更新処理手段と、定期的に前記ログファイルに
前記更新情報が保存されているかを検索し保存されてい
ると前記複数の装置のうち自装置以外の装置のデータベ
ースを更新するように前記ログファイルに格納されてい
る前記更新情報を前記自装置以外の装置に送出する同期
処理手段とを有することを特徴とする複数装置間でのデ
ータベース同期方式。
1. A database synchronization method in which a plurality of devices having a database are connected via a network, and each device updates a database of its own device and a database of another device. A log file in a FIFO format for storing the syntax, and when there is a request for updating the database from a device other than the network, the received update data is replaced with a database language, and the syntax described in the database language is executed to execute the syntax described in the database language. Update processing means for updating the database and storing the syntax in the log file in the order of update as update information, and periodically searching for whether the update information is stored in the log file, and Update database of devices other than own device A synchronization processing means for transmitting the update information stored in the log file to a device other than the own device.
【請求項2】 前記同期処理手段により前記更新情報を
受信した装置は、前記更新情報である前記データベース
言語で記述された構文を実行することにより自装置のデ
ータベースを更新することを特徴とする請求項1記載の
複数装置間でのデータベース同期方式。
2. The apparatus which receives the update information by the synchronization processing means updates a database of the apparatus itself by executing a syntax described in the database language as the update information. Item 2. A database synchronization method between a plurality of devices according to Item 1.
【請求項3】 前記同期処理手段は、前記更新情報を前
記自装置以外の装置に送出した後に送出先の装置に障害
があることを検出すると装置毎に格納できるFIFO形
式の障害ログファイルに前記更新情報を保存することを
特徴とする請求項1記載の複数装置間でのデータベース
同期方式。
3. The synchronous processing means transmits the update information to a device other than the own device, and then detects a failure in the destination device, and stores the update information in a FIFO log file which can be stored for each device. 2. The database synchronization method according to claim 1, wherein update information is stored.
【請求項4】 前記同期処理手段は、前記複数の装置の
稼働状況を定期的に監視し管理することを特徴とする請
求項1記載の複数装置間でのデータベース同期方式。
4. The system according to claim 1, wherein said synchronization processing means periodically monitors and manages the operation status of said plurality of devices.
【請求項5】 前記同期処理手段は、障害のあった装置
から障害復旧の通知を受信した場合に前記障害のあった
装置のデータベースを更新するように前記障害ログファ
イルに格納された前記更新情報を前記障害のあった装置
に送出することを特徴とする請求項3記載の複数装置間
でのデータベース同期方式。
5. The update information stored in the failure log file to update a database of the failed device when a notification of failure recovery is received from the failed device. 4. A database synchronization method between a plurality of devices according to claim 3, wherein the database is sent to the failed device.
【請求項6】 データベースを有する複数の装置をネッ
トワークで接続され、それぞれの装置が自装置のデータ
ベースと他装置のデータベースを更新を行うデータベー
ス同期方法であって、前記複数の装置が、第1のタイマ
と、第2のタイマと、FIFO形式のログファイルと、
装置毎に稼働状態を示す状態語とを用いて、一定間隔に
割込をかける前記第1のタイマおよび前記第2のタイマ
を起動させ、自装置にデータベースの更新要求あると、
更新データをデータベース言語で記述された構文に変換
しその構文を実行することにより自装置のデータベース
を更新し、前記構文を更新情報として更新順に前記ログ
ファイルに格納し、前記第1のタイマの割込があると、
対象装置を決め、稼働状態確認メッセージを前記対象装
置に送出することにより確認し、前記稼働状態確認メッ
セージ送出後に前記対象装置の障害を検出すると前記状
態語に前記対象装置に障害が起こったことを記憶し、前
記第2のタイマの割込があると、前記ログファイルの内
容を検索し、ログファイルに内容があることを検出する
と送出先の更新装置を決め、前記状態語から前記更新装
置の稼働状態を検索し正常であれば前記ログファイルか
ら読み取った前記更新情報を前記更新装置に更新メッセ
ージで送出することを特徴とする複数装置間でのデータ
ベース同期方法。
6. A database synchronization method in which a plurality of devices having a database are connected via a network, and each device updates a database of its own device and a database of another device, wherein the plurality of devices include a first device. A timer, a second timer, a log file in FIFO format,
Using a status word indicating an operating state for each device, the first timer and the second timer that interrupt at regular intervals are started, and when the own device receives a database update request,
By updating the update data into a syntax described in a database language and executing the syntax, the database of the own device is updated, the syntax is stored as update information in the update file in the log file, and the first timer Include
Determine the target device, confirm by sending an operation status confirmation message to the target device, and when the failure of the target device is detected after sending the operation status confirmation message, the status word indicates that the failure has occurred in the target device. When there is an interruption of the second timer, the content of the log file is searched, and when the presence of the content is detected in the log file, the update device of the transmission destination is determined, and the update device of the update device is determined from the status word. A method of synchronizing a database between a plurality of devices, wherein an operation status is searched, and if normal, the update information read from the log file is transmitted to the update device as an update message.
【請求項7】 前記複数の装置が、前記更新メッセージ
を受信すると前記更新メッセージから更新情報である前
記データベース言語で記述された構文を実行することに
より自装置のデータベースを更新することを特徴とする
請求項6記載の複数装置間でのデータベース同期方法。
7. The plurality of devices, when receiving the update message, update a database of the own device by executing a syntax described in the database language as update information from the update message. The method for synchronizing a database between a plurality of devices according to claim 6.
【請求項8】 前記複数の装置が、装置毎にFIFO形
式の履歴ファイルを有する障害ログファイルを用いて、
前記更新メッセージ送出後に前記更新装置に障害がある
ことを検出すると障害のあった装置の履歴ファイルに前
記更新情報を保存することを特徴とする請求項6記載の
複数装置間でのデータベース同期方法。
8. The apparatus according to claim 1, wherein the plurality of devices use a failure log file having a history file in a FIFO format for each device,
7. The database synchronization method according to claim 6, wherein when the update device detects a failure in the update device after sending the update message, the update information is stored in a history file of the failed device.
【請求項9】 前記複数の装置が、障害のあった装置か
ら障害復旧を示す復旧メッセージを受信した場合に前記
障害のあった装置のデータベースを更新するように前記
障害のあった装置の履歴ファイルに格納された前記更新
情報を前記障害のあった装置に更新メッセージで送出す
ることを特徴とする請求項6記載の複数装置間でのデー
タベース同期方法。
9. The history file of the failed device so that the plurality of devices update a database of the failed device when receiving a recovery message indicating failure recovery from the failed device. 7. The database synchronization method according to claim 6, wherein the update information stored in the database is sent to the failed device as an update message.
【請求項10】 前記複数の装置は、交換網のインテリ
ジェントネットワーク接続されたサービス制御ノード
(SCP)であることを特徴とする請求項1記載の複数
装置間でのデータベース同期方式。
10. The database synchronization method according to claim 1, wherein the plurality of devices are service control nodes (SCPs) connected to an intelligent network of a switching network.
【請求項11】 前記複数の装置が、交換網のインテリ
ジェントネットワーク接続されたサービス制御ノード
(SCP)であることを特徴とする請求項6記載の複数
装置間でのデータベース同期方法。
11. The method according to claim 6, wherein the plurality of devices are service control nodes (SCPs) connected to an intelligent network of a switching network.
JP11191993A 1999-07-06 1999-07-06 System and method for synchronizing data bases between plural devices Pending JP2001022627A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11191993A JP2001022627A (en) 1999-07-06 1999-07-06 System and method for synchronizing data bases between plural devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11191993A JP2001022627A (en) 1999-07-06 1999-07-06 System and method for synchronizing data bases between plural devices

Publications (1)

Publication Number Publication Date
JP2001022627A true JP2001022627A (en) 2001-01-26

Family

ID=16283841

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11191993A Pending JP2001022627A (en) 1999-07-06 1999-07-06 System and method for synchronizing data bases between plural devices

Country Status (1)

Country Link
JP (1) JP2001022627A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040040938A (en) * 2002-11-08 2004-05-13 에스케이 텔레콤주식회사 The method of synchronizing the information of the client
WO2004097648A1 (en) * 2003-04-25 2004-11-11 Fujitsu Limited Database control method
US8005799B2 (en) 2008-07-30 2011-08-23 Fujitsu Limited Information management system
JP2012510094A (en) * 2008-10-21 2012-04-26 グーグル インコーポレイテッド Always ready client / server synchronization
JP2012510652A (en) * 2008-10-21 2012-05-10 グーグル インコーポレイテッド Searchbase specification for data synchronization
US8965954B2 (en) 2008-10-21 2015-02-24 Google Inc. Always ready client/server data synchronization
US9542468B2 (en) 2014-03-24 2017-01-10 Hitachi, Ltd. Database management system and method for controlling synchronization between databases
CN109359005A (en) * 2018-09-14 2019-02-19 厦门天锐科技股份有限公司 A kind of data acquisition treatment method of striding course
CN110659256A (en) * 2019-09-30 2020-01-07 掌阅科技股份有限公司 Multi-computer room synchronization method, computing device and computer storage medium
JP2020119173A (en) * 2019-01-23 2020-08-06 Necプラットフォームズ株式会社 Information processing device, control method for information processing device, and control program for information processing device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040040938A (en) * 2002-11-08 2004-05-13 에스케이 텔레콤주식회사 The method of synchronizing the information of the client
WO2004097648A1 (en) * 2003-04-25 2004-11-11 Fujitsu Limited Database control method
US8005799B2 (en) 2008-07-30 2011-08-23 Fujitsu Limited Information management system
US9367599B2 (en) 2008-10-21 2016-06-14 Google Inc. Search based specification for data synchronization
JP2012510652A (en) * 2008-10-21 2012-05-10 グーグル インコーポレイテッド Searchbase specification for data synchronization
US8965954B2 (en) 2008-10-21 2015-02-24 Google Inc. Always ready client/server data synchronization
JP2012510094A (en) * 2008-10-21 2012-04-26 グーグル インコーポレイテッド Always ready client / server synchronization
US9542468B2 (en) 2014-03-24 2017-01-10 Hitachi, Ltd. Database management system and method for controlling synchronization between databases
CN109359005A (en) * 2018-09-14 2019-02-19 厦门天锐科技股份有限公司 A kind of data acquisition treatment method of striding course
CN109359005B (en) * 2018-09-14 2022-04-19 厦门天锐科技股份有限公司 Cross-process data acquisition and processing method
JP2020119173A (en) * 2019-01-23 2020-08-06 Necプラットフォームズ株式会社 Information processing device, control method for information processing device, and control program for information processing device
CN110659256A (en) * 2019-09-30 2020-01-07 掌阅科技股份有限公司 Multi-computer room synchronization method, computing device and computer storage medium
CN110659256B (en) * 2019-09-30 2021-02-26 掌阅科技股份有限公司 Multi-computer room synchronization method, computing device and computer storage medium

Similar Documents

Publication Publication Date Title
US6438563B1 (en) Method and device for synchronizing databases in a network management system
US7016957B2 (en) Distributed data processing system and error analysis information saving method appropriate therefor
US6134671A (en) System and method for dynamically generating restoration routes within a communications network
US6941327B2 (en) Apparatus and method for database synchronization in a duplex system
US6457050B1 (en) System and method for dynamically restoring communications within a network
US20070088763A1 (en) Methods and systems for validating accessibility and currency of replicated data
CN112506702B (en) Disaster recovery method, device, equipment and storage medium for data center
US8868527B1 (en) Tracking switch transactions in a communications-networking environment
JP2001022627A (en) System and method for synchronizing data bases between plural devices
CN108509296B (en) Method and system for processing equipment fault
WO2000072514A1 (en) Method and apparatus for displaying information in a fault management system
CN114356711A (en) Database fault self-healing method, system and related device
WO2002001347A2 (en) Method and system for automatic re-assignment of software components of a failed host
US6363498B1 (en) Method and apparatus to automatically back up switching system files
WO2007028249A1 (en) Method and apparatus for sequencing transactions globally in a distributed database cluster with collision monitoring
JPH0879370A (en) Operation system for exchange
JP3691272B2 (en) Distributed processing system and failure analysis information storage method
JPH06119182A (en) Information communication network system with down-load control function
JPH11312111A (en) Method for restoring data base and data base management system thereof
JP3564485B2 (en) Information processing method and system
KR20030058144A (en) Process obstacle lookout method and recovery method for information communication
JPH10215271A (en) Information acquisition system of node
CN116248478A (en) Alarm information processing method and device
US7343376B2 (en) Management information notification to a manager in a management system
KR100526221B1 (en) Method and System for Restoring Database Synchronization in Independent Mated Pair System

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20031028