JP2007179122A - Data delivery system and data delivery method - Google Patents

Data delivery system and data delivery method Download PDF

Info

Publication number
JP2007179122A
JP2007179122A JP2005373795A JP2005373795A JP2007179122A JP 2007179122 A JP2007179122 A JP 2007179122A JP 2005373795 A JP2005373795 A JP 2005373795A JP 2005373795 A JP2005373795 A JP 2005373795A JP 2007179122 A JP2007179122 A JP 2007179122A
Authority
JP
Japan
Prior art keywords
server
database
file
processing
data
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.)
Withdrawn
Application number
JP2005373795A
Other languages
Japanese (ja)
Inventor
Minoru Terayama
実 寺山
Kenji Kakurai
健志 加倉井
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 Information Systems Ltd
Original Assignee
Hitachi Information 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 Hitachi Information Systems Ltd filed Critical Hitachi Information Systems Ltd
Priority to JP2005373795A priority Critical patent/JP2007179122A/en
Publication of JP2007179122A publication Critical patent/JP2007179122A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide a technique that implements efficient database synchronization without adding new equipment to a data delivery system and requiring high load processing. <P>SOLUTION: A maintenance server 10 and one or more operating servers 20 all networked are provided with respective databases, and data is delivered from the database 11 of the maintenance server to the databases 24 of the operating servers. The maintenance server 10 comprises an output means 12 for outputting an export file 100 storing a data region of the database and a command file 101 for restoring it, and a transferring means 13 for transferring each file to the operating servers. The operating servers 20 each comprise a receiving means 21 for receiving each file, an analyzing means 23 for analyzing the command file 201 to acquire database restoration information, and an updating means 22 for updating the database 24 with the export file 200 according to the analysis result. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、データベースを備えたサーバ間でデータを配信するデータ配信システム及びデータ配信方法に係り、特に効率よくデータベース内容を同期する技術に関するものである。   The present invention relates to a data distribution system and a data distribution method for distributing data between servers provided with a database, and particularly to a technique for efficiently synchronizing the contents of a database.

従来のサーバ間データベース同期調整は、保守サーバから複数台ある運用サーバ個々のデータベースに対し、保守サーバから順次データベースの直接接続を行い、保守サーバのCPUにてSQL文によるデータベース更新処理を行いデータベースの同期調整行う仕組みである。このため運用サーバ数が多い環境においてはデータベースの同期調整には相応の処理時間が必要となり、また、データベース管理が煩雑化することから、管理を自動化する技術が知られている。   The conventional database synchronization adjustment between servers performs direct database connection from the maintenance server to the database of each of the plurality of operation servers from the maintenance server, and the database of the database is updated by the SQL of the maintenance server CPU. It is a mechanism to perform synchronous adjustment. For this reason, in an environment where there are a large number of operation servers, a corresponding processing time is required for the synchronization adjustment of the database, and since the database management becomes complicated, a technique for automating the management is known.

例えば、特許文献1では、ネットワークに接続された送信局ホストと複数台の受信局ホストのデータベース同期調整技術が記載されている。これは送信サーバである保守サーバと運用サーバの中間に送信局と受信局を介在させるという階層構造を持つサーバ構成とすることで、処理の分散化を行い、サーバ個々の処理負荷を軽減する手法である。   For example, Patent Document 1 describes a database synchronization adjustment technique for a transmitting station host and a plurality of receiving station hosts connected to a network. This is a server configuration that has a hierarchical structure in which a transmitting station and a receiving station are interposed between a maintenance server that is a transmission server and an operation server, thereby distributing processing and reducing the processing load on each server. It is.

このような従来の方法は、送信サーバである保守サーバのCPUを主体的に活用し、受信サーバである複数の運用サーバにあるデータベースとの同期調整を、データベースの直接接続により行う手法である。本手法は、データベースの同期調整にかかるほとんどの処理を送信サーバである保守サーバが受け持つ内容である。このためデータベースの同期調整処理は送信サーバの性能および、運用サーバの台数に比例するものとなっている。この処理時間の軽減に対しては、送信サーバは、本来の業務保守に必要となる性能に、データベースの同期調整に掛かる性能を加味した高性能なサーバの配置が必要となる。   Such a conventional method is a method in which the CPU of a maintenance server that is a transmission server is actively used to perform synchronization adjustment with databases in a plurality of operation servers that are reception servers by direct connection of the databases. In this method, most of the processing related to database synchronization adjustment is handled by the maintenance server, which is the transmission server. Therefore, the database synchronization adjustment processing is proportional to the performance of the transmission server and the number of operation servers. In order to reduce the processing time, the transmission server needs to have a high-performance server arrangement that takes into account the performance required for the original business maintenance and the performance required for database synchronization adjustment.

他の方法として、データベースの同期調整を専用で受け持つサーバを追加することが考えられるが、これは本来システム化された業務のために用意すべき業務用サーバの他、データベース同期調整を目的としたサーバを配置することに繋がり、余分なランニングコストを必要とすることが課題である。   Another method is to add a dedicated server for database synchronization adjustment, but this is intended for database synchronization adjustment in addition to the business server that should be prepared for the systemized business. The problem is that it leads to the arrangement of servers and requires extra running costs.

特許文献1に記載された技術は、ネットワーク上で接続されたデータベースの同期調整の効率化を図る技術ではあるが、局という中継サーバを配置する方式は送信側サーバを増強するか、送信を受け持つサーバ台数を増加させる手法であるため、設置するサーバ台数の増加からランニングコスト低減に向けた手法ではない。   Although the technique described in Patent Document 1 is a technique for improving the efficiency of synchronization adjustment of databases connected on a network, the method of arranging a relay server called a station increases the transmission side server or handles transmission. Since this is a technique for increasing the number of servers, it is not a technique for reducing running costs due to the increase in the number of servers installed.

特開2000−105744号公報JP 2000-105744 A

本発明は、上記従来技術が有する問題点に鑑みて創出されたものであり、データ配信システムに新たな機器の追加を行ったり、高負荷な処理を要することなく、効率的にデータベースの同期調整を実現する技術の提供を目的とする。   The present invention was created in view of the above-described problems of the prior art, and efficiently adjusts the synchronization of a database without adding a new device to the data distribution system or requiring high-load processing. The purpose is to provide technology that realizes.

前記目的を達成するために本発明は、次のような手段を提供する。
すなわち、請求項1に記載の発明は、ネットワークを介して接続された保守サーバと、少なくとも1基の運用サーバとがそれぞれデータベースを備え、該保守サーバのデータベースから該運用サーバのデータベースに向けてデータを配信可能なデータ配信システムを提供する。
In order to achieve the above object, the present invention provides the following means.
That is, according to the first aspect of the present invention, a maintenance server and at least one operation server connected via a network each have a database, and data is transferred from the maintenance server database to the operation server database. A data distribution system capable of distributing

そして、保守サーバは、該データベースのデータ部分を格納したエクスポートファイルと、少なくとも該エクスポートファイルを読み込む時に元のデータベースに復元するために必要な復元情報を格納したコマンドファイルとを出力する出力処理手段と、該エクスポートファイル及び該コマンドファイルを共に運用サーバに向けて転送する転送処理手段とを備える。   And an output processing means for outputting an export file storing the data portion of the database and a command file storing at least restoration information necessary for restoring to the original database when the export file is read. Transfer processing means for transferring both the export file and the command file to the operation server.

一方、運用サーバは、ネットワークから該エクスポートファイル及び該コマンドファイルを受信する受付処理手段と、その受信したコマンドファイルを解析して該データベースの復元情報を取得する解析処理手段と、解析処理手段の解析結果に従って、該受信したエクスポートファイルを用いて運用サーバのデータベースを更新処理する更新処理手段とを備える。
本構成をとることにより本発明のデータ配信システムはデータベースの配信更新処理を行う。
On the other hand, the operation server includes an acceptance processing unit that receives the export file and the command file from the network, an analysis processing unit that analyzes the received command file and obtains restoration information of the database, and an analysis by the analysis processing unit Update processing means for updating the database of the operation server using the received export file according to the result.
By adopting this configuration, the data distribution system of the present invention performs database distribution update processing.

請求項2に記載の発明は、前記データ配信システムにおいて、運用サーバが、上記の更新処理手段による更新処理結果に係るログデータを生成し、ネットワークを介して前記保守サーバに送信する回答処理手段を備える一方、保守サーバが、ログデータを受信し、少なくとも更新処理結果が正常終了である場合には、当該運用サーバに対する更新処理が完了したことを配信サーバ定義テーブルに格納する終了処理手段を備える。
さらに、上記転送処理手段は配信サーバ定義テーブルを参照して更新処理が完了していない運用サーバに対して該転送処理するものである。
The invention according to claim 2 is characterized in that in the data distribution system, the operation server generates log data related to an update processing result by the update processing unit and transmits the log data to the maintenance server via a network. On the other hand, when the maintenance server receives the log data and at least the update processing result is a normal end, the maintenance server includes an end processing means for storing in the distribution server definition table that the update processing for the operation server has been completed.
Further, the transfer processing means refers to the distribution server definition table and performs the transfer processing on the operation server that has not been updated.

本発明は、データ配信方法として提供することもできる。すなわち請求項3に記載の発明は、ネットワークを介して接続された保守サーバと、少なくとも1基の運用サーバとがそれぞれデータベースを備え、該保守サーバのデータベースから該運用サーバのデータベースに向けてデータを配信可能なデータ配信システムにおけるデータ配信方法である。   The present invention can also be provided as a data distribution method. That is, according to the third aspect of the present invention, a maintenance server and at least one operation server connected via a network each have a database, and data is transferred from the maintenance server database to the operation server database. This is a data distribution method in a distributable data distribution system.

該方法において、該保守サーバの出力処理手段が、該データベースのデータ部分を格納したエクスポートファイルと、少なくとも該エクスポートファイルを読み込む時に元のデータベースに復元するために必要な復元情報を格納したコマンドファイルとを出力する出力処理工程、保守サーバの転送処理手段が、該エクスポートファイル及び該コマンドファイルを共に運用サーバに向けて転送する転送処理工程、運用サーバの受付処理手段が、ネットワークから該エクスポートファイル及び該コマンドファイルを受信する受付処理工程を有する。   In the method, the output processing means of the maintenance server includes an export file storing the data portion of the database, and a command file storing at least restoration information necessary for restoring the original database when the export file is read. An output processing step for outputting, a transfer processing unit for the maintenance server, a transfer processing step for transferring both the export file and the command file to the operation server, and a reception processing unit for the operation server, which transmits the export file and the command file from the network. A reception processing step of receiving a command file;

また、運用サーバの解析処理手段が、該受信したコマンドファイルを解析して該データベースの復元情報を取得する解析処理工程、解析処理工程の解析結果に従って、該運用サーバの更新処理手段が、該受信したエクスポートファイルを用いて運用サーバのデータベースを更新処理する更新処理工程を有する。
以上の各工程によりデータベースの配信更新処理を行うことを特徴とする。
Further, the analysis processing means of the operation server analyzes the received command file and acquires the restoration information of the database, and the update processing means of the operation server performs the reception according to the analysis result of the analysis processing process. An update processing step of updating the database of the operation server using the exported file.
The database distribution update process is performed by the above steps.

請求項4に記載のデータ配信方法は、運用サーバの回答処理手段が、更新処理工程の後、更新処理結果に係るログデータを生成し、ネットワークを介して前記保守サーバに送信する回答処理工程を有し、さらに保守サーバの終了処理手段が、該ログデータを受信し、少なくとも更新処理結果が正常終了である場合には、当該運用サーバに対する更新処理が完了したことを配信サーバ定義テーブルに格納する終了処理工程を有し、転送処理工程において、配信サーバ定義テーブルを参照して更新処理が完了していない運用サーバに対して該転送処理することを特徴とする。   According to a fourth aspect of the present invention, there is provided a data distribution method comprising: a reply processing step in which the reply processing means of the operation server generates log data related to the update processing result after the update processing step and transmits the log data to the maintenance server via the network. And the maintenance server end processing means receives the log data and, at least if the update processing result is normal end, stores in the distribution server definition table that the update processing for the operation server has been completed. An end processing step, and the transfer processing step refers to the distribution server definition table and performs the transfer processing on an operation server that has not been updated.

本発明の請求項1に記載の発明によれば、通常のデータベースに備えられたバックアップ機能を用いてデータベースの同期調整を行うことができる。これにより、新たなサーバ等の機器を用いることなくデータ転送を実現する。本方法は各サーバへの負荷が少なく、高速な処理にも寄与する。   According to the first aspect of the present invention, it is possible to perform synchronization adjustment of a database by using a backup function provided in a normal database. This realizes data transfer without using a new device such as a server. This method reduces the load on each server and contributes to high-speed processing.

請求項2に記載の発明によれば、完了結果の確認を保守サーバ側で行うことができる。また、必要な時にデータベースの同期調整を行うため、トラフィックの軽減、処理の低減に寄与する。   According to the second aspect of the present invention, the completion result can be confirmed on the maintenance server side. In addition, database synchronization adjustment is performed when necessary, which contributes to traffic reduction and processing reduction.

このように本発明は、オペレータがコマンドファイルと配信先サーバを設定した後、配信処理を開始することにより、一連の自動動作としてデータベースの同期調整を行い、完了結果確認も保守サーバへ戻されたログファイルによって行う仕組みである。処理時間を要する取込み処理は各運用サーバ側で行うことから、保守サーバが配信処理を順次行っている間に並行して、転送完了した運用サーバが取込み処理をそれぞれ行うことが実現出来るため、サーバ全体の処理としては負荷分散と処理時間の短縮を可能とする。
なお、本発明は業務サーバの運用においても必要となるバックアップ処理と復元処理を一連の自動動作として実現する仕組みであるため、業務運用上で必要となるサーバ性能を超えることなく、また、データベース同期調整や管理のための追加サーバを必要とせず実現し効率化を図る手法である。
As described above, according to the present invention, after the operator sets the command file and the delivery destination server, the delivery process is started, thereby performing the database synchronization adjustment as a series of automatic operations, and the completion result confirmation is also returned to the maintenance server. It is a mechanism that uses log files. Since the acquisition process that requires processing time is performed on each operation server side, it is possible to realize that each operation server that has completed transfer can execute the acquisition process in parallel while the maintenance server sequentially performs distribution processing. As a whole process, load distribution and processing time can be shortened.
Note that the present invention is a mechanism that implements a series of automatic operations for backup processing and restoration processing that are also required in the operation of business servers, so that it does not exceed the server performance required for business operations, and database synchronization This is a technique that achieves efficiency without requiring an additional server for coordination and management.

以下、本発明の実施例を図面により詳細に説明する。図1は、本発明に関するシステム構成である。
本システムは、保守サーバである送信サーバ10と少なくとも1基の運用サーバである受信サーバ20とこれらを結ぶネットワークから構成されており、送信サーバ10には保守データベース11を備える。送信サーバ10は公知のパーソナルコンピュータ等によって形成されるものであり、周知のように各種の処理を司るCPUの他、メモリやハードディスクなどの記憶手段、キーボード、マウスなどの入力手段からなる。
受信サーバにおいても同様である。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 shows a system configuration relating to the present invention.
This system is composed of a transmission server 10 that is a maintenance server, a reception server 20 that is at least one operation server, and a network connecting them, and the transmission server 10 includes a maintenance database 11. The transmission server 10 is formed by a known personal computer or the like, and includes a CPU that performs various processes as well known, a storage means such as a memory and a hard disk, and an input means such as a keyboard and a mouse.
The same applies to the receiving server.

そして、送信サーバ10には保守データベース11と共に出力処理手段である出力処理部12、転送処理手段である転送処理部13、終了処理手段である終了処理部14の各処理部が設けられ、これらは上記CPU等の協働作用により実現されている。
保守データベース11は外部のユーザから直接アクセスを受ける構成でもよいが、通常は運用サーバのデータベース(運用データベース24)のデータベースを同期調整するための基となるマスターデータベースである。
The transmission server 10 includes a maintenance database 11 and an output processing unit 12 as an output processing unit, a transfer processing unit 13 as a transfer processing unit, and an end processing unit 14 as an end processing unit. This is realized by the cooperative action of the CPU and the like.
The maintenance database 11 may be configured to receive direct access from an external user, but is usually a master database serving as a basis for synchronously adjusting the database of the operation server database (operation database 24).

また、受信サーバに20には受付処理手段である受付処理部21、更新処理手段である更新処理部22、解析処理手段である解析処理部23、回答処理手段である回答処理部25の各処理部と運用データベース24を備えている。運用データベース24は外部の端末装置からのアクセスを受けてデータを提供する機能がある。   The receiving server 20 includes a reception processing unit 21 that is a reception processing unit, an update processing unit 22 that is an update processing unit, an analysis processing unit 23 that is an analysis processing unit, and an answer processing unit 25 that is an answer processing unit. Department and an operation database 24. The operation database 24 has a function of receiving data from an external terminal device and providing data.

以上の各処理部の処理フローは図2の通りであり、まず送信サーバにおいて配信処理開始ボタンが押下(S1)されると、配信処理機構C1の処理が開始する。すなわち、出力処理部12による処理、転送処理部13による処理を経て、次配信判定S2の分岐処理にて次配信する先の受信サーバ20がある限りは転送処理部13の処理を繰り返す。   The processing flow of each processing unit described above is as shown in FIG. 2. First, when the distribution processing start button is pressed (S1) in the transmission server, the processing of the distribution processing mechanism C1 starts. That is, the process of the transfer processing unit 13 is repeated as long as there is a receiving server 20 that is the next distribution destination in the branch process of the next distribution determination S2 through the process by the output processing unit 12 and the process by the transfer processing unit 13.

また、配信処理機構C1の転送処理部13からの送信があると、受信サーバ20の受付処理部21がこれを受理する。そして、取り込み処理機構C2の各処理を実行する。すなわち解析処理部23による処理、更新処理部22による処理である。最後に回答処理部25が結果を配信処理機構C1の終了処理部(14)に送信する。以上の各処理が終了した後、配信完了ボタンを押下することで終了する。   Further, when there is a transmission from the transfer processing unit 13 of the distribution processing mechanism C1, the reception processing unit 21 of the receiving server 20 accepts this. Then, each process of the capture processing mechanism C2 is executed. That is, the processing by the analysis processing unit 23 and the processing by the update processing unit 22. Finally, the answer processing unit 25 transmits the result to the end processing unit (14) of the distribution processing mechanism C1. After the above processes are completed, the process is completed by pressing a distribution completion button.

まず送信サーバ10では前述した通り配信処理を開始する開始ボタンと、配信処理を完了する完了ボタンとを設けており、それらは送信サーバ10に備えたモニタ上に表示し、マウス等によって押下するように構成する。   First, the transmission server 10 is provided with a start button for starting the distribution process and a completion button for completing the distribution process as described above, and these buttons are displayed on the monitor provided in the transmission server 10 and pressed with a mouse or the like. Configure.

そして開始ボタンが押下されると、出力処理部12がデータベースの内容をDBMS(DataBase Management System)によりエクスポートファイル100を生成する。その際、エクスポートファイル100から元のデータベースに復元するために必要なコマンドファイル101も生成する。
そして、転送処理部13はエクスポートファイル100とコマンドファイル101とをネットワークを介して受信サーバ20に向けて送出する。
When the start button is pressed, the output processing unit 12 generates the export file 100 with the contents of the database by DBMS (DataBase Management System). At this time, a command file 101 necessary for restoring from the export file 100 to the original database is also generated.
Then, the transfer processing unit 13 sends the export file 100 and the command file 101 to the receiving server 20 via the network.

転送処理部13の処理フロー図を図3に示す。転送処理部13はまず配信サーバ定義ファイル103を読み込み(S10)、定義ファイル中のデータが無い(更新済みのフラグが全て1)の時には回答待ちを行うアイドリング(S14)に戻り、データが有る(更新済みフラグが0のものがある)時には(S11)、転送対象ファイルを配信(S12)する。
その際、受信サーバ20のIPアドレスに向けてファイル転送を行う。受信サーバ20では受付処理部21が受理(S13)する。
A processing flowchart of the transfer processing unit 13 is shown in FIG. First, the transfer processing unit 13 reads the distribution server definition file 103 (S10), and when there is no data in the definition file (all the updated flags are 1), the process returns to idling (S14) for waiting for an answer, and there is data ( When there is an update flag of 0 (S11), the transfer target file is distributed (S12).
At that time, file transfer is performed toward the IP address of the receiving server 20. In the reception server 20, the reception processing unit 21 receives (S13).

一方、受信サーバ20の回答処理部25からは後述するように更新処理結果をログファイル102として受信し、終了処理部14が図3下段の処理を行う。すなわち、配信サーバ定義ファイル103を配信サーバテーブルのデータ更新・読み込み処理(S15)において更新し、複数の受信サーバがあるときには未回答のものが無くなるまで(S16)はアイドリング(S17)し、未回答のものが無くなったら終了メッセージを表示(S18)して終了する。   On the other hand, as will be described later, the update processing result is received as the log file 102 from the answer processing unit 25 of the receiving server 20, and the end processing unit 14 performs the processing in the lower part of FIG. That is, the distribution server definition file 103 is updated in the data update / read processing (S15) of the distribution server table, and when there are a plurality of receiving servers, idling (S17) is performed until there are no unanswered ones (S16). When there are no more items, an end message is displayed (S18) and the process ends.

ここで、図6には配信サーバ定義ファイル103の構成を示す。該ファイル103には、受信サーバの受信サーバの順(配信順)、配信サーバの名称(名称)、配信サーバのIPアドレス(配信IPアドレス)、転送するファイル名(エクスポートファイル)を示す転送対象ファイル、転送するファイル名(コマンドファイル)を示すコマンドファイル、さらに配信完了フラグを格納している。
配信サーバ定義ファイル103は配信処理機構に取り込まれて転送処理部13で利用される。
Here, FIG. 6 shows the configuration of the distribution server definition file 103. The file 103 includes a transfer target file indicating the order of the receiving server of the receiving server (distribution order), the name of the distribution server (name), the IP address of the distribution server (distribution IP address), and the name of the file to be transferred (export file). A command file indicating the name of the file to be transferred (command file), and a delivery completion flag are stored.
The distribution server definition file 103 is taken into the distribution processing mechanism and used by the transfer processing unit 13.

受信サーバ20の受付処理部21で受信したコマンドファイル201は、解析処理部23で解析処理する。該処理について図4に処理フロー図を示す。
すなわち、受付処理部21が受信すると解析処理部23を起動し、コマンドファイル201を開く(S20)。
そして未処理のコマンドが有る(S21)限り、未処理の処理順のうち、先頭の処理区分をメモリに登録(S22)する。
The command file 201 received by the reception processing unit 21 of the reception server 20 is analyzed by the analysis processing unit 23. FIG. 4 shows a process flow diagram for this process.
That is, when the reception processing unit 21 receives, the analysis processing unit 23 is activated and the command file 201 is opened (S20).
As long as there is an unprocessed command (S21), the first processing section in the unprocessed processing order is registered in the memory (S22).

さらに処理コマンド実行パスをメモリに登録(S23)し、ログファイル名をメモリに登録(S24)する。これが完了すると更新処理部(22)を起動する。その後、再び未処理のコマンドの有無を確認し、有る限りにおいて(S21)〜(S25)の処理を繰り返す。
未処理のコマンドが無くなったら、回答処理部25を起動(S26)し、ログファイル202を送信サーバ10にファイル転送(S27)する。
Further, the processing command execution path is registered in the memory (S23), and the log file name is registered in the memory (S24). When this is completed, the update processing unit (22) is activated. Thereafter, the presence / absence of an unprocessed command is confirmed again, and the processes of (S21) to (S25) are repeated as long as there are.
When there is no unprocessed command, the response processing unit 25 is activated (S26), and the log file 202 is transferred to the transmission server 10 (S27).

一方、更新処理部起動(S25)で起動される更新処理部22は図5に示す処理フロー図の通りに処理を行う。
まず実行コマンドを読み込み(S30)、処理区分を順に確認する。まずバックアップであるか(S31)、トランケートであるか(S32)、インポートであるか(S33)、リターンであるか(S34)、確認する。
On the other hand, the update processing unit 22 activated by the activation of the update processing unit (S25) performs processing according to the processing flowchart shown in FIG.
First, the execution command is read (S30), and the processing divisions are confirmed in order. First, it is confirmed whether it is backup (S31), truncation (S32), import (S33), or return (S34).

ここで、処理区分のうちバックアップは、DBMS標準ツール「エクスポート」にてDB情報(オブジェクト定義や表データなど)をダンプファイルに抽出してバックアップファイルとする処理である。
また、トランケートは、DBMS標準ツール「トランケート」にて処理取消用保留情報(ロールバック)を取得しないで実行される、表中全データの高速削除処理である。
インポートは、DBMS標準ツール「インポート」にてダンプファイルの情報を利用してDBに情報を移行する処理である。
リターンは上記3処理が終了したことを応答する処理である。
Here, backup among the processing categories is processing in which DB information (object definition, table data, etc.) is extracted into a dump file by the DBMS standard tool “export” and used as a backup file.
The truncation is a high-speed deletion process for all data in the table, which is executed without acquiring the processing cancellation hold information (rollback) by the DBMS standard tool “Truncate”.
The import is a process of migrating information to the DB using the information of the dump file by the DBMS standard tool “import”.
Return is a process of responding that the above three processes have been completed.

そして、処理区分がバックアップのときには受信サーバ20の運用DB24を読み出して所定のアプリケーションを実行(S35)し、バックアップファイル203とログファイル202をハードディスクに生成する。
また、処理区分がトランケートのときには、所定のアプリケーションを実行(S36)し、運用DB24内のデータの削除処理と、ログファイル202の生成を行う。
処理区分がインポートのときには、所定のアプリケーションを実行(S37)し、データベースエクスポート200を読み出して運用DB24にデータを保存(更新)すると共に、ログファイル202の生成を行う。
When the processing category is backup, the operation DB 24 of the receiving server 20 is read and a predetermined application is executed (S35), and the backup file 203 and the log file 202 are generated on the hard disk.
When the processing category is truncation, a predetermined application is executed (S36), and the data in the operation DB 24 is deleted and the log file 202 is generated.
When the processing category is import, a predetermined application is executed (S37), the database export 200 is read, the data is saved (updated) in the operation DB 24, and the log file 202 is generated.

処理区分がリターンのときには所定のアプリケーションを実行(S38)し、未処理無し応答(S39)を得て、解析処理部へ応答(S40)する。
また、全ての処理区分において所定のアプリケーションを実行した後には、同様に解析処理部へ応答(S40)する。
When the processing category is return, a predetermined application is executed (S38), an unprocessed no response (S39) is obtained, and a response is made to the analysis processing unit (S40).
In addition, after executing a predetermined application in all the processing sections, a response is similarly made to the analysis processing unit (S40).

コマンドファイル201は図7に示すような構造をとる。すなわち、処理順に従って処理区分が規定され、その際の処理コマンド(所定のアプリケーションを規定する)、その実行時のパラメータパス、さらに生成するログファイル名が格納されている。
コマンドファイル201は取り込み処理機構の解析処理部23で用いられると共に、その解析結果が更新処理部22で処理される。
The command file 201 has a structure as shown in FIG. That is, the processing classification is defined in accordance with the processing order, and processing commands (specifying a predetermined application) at that time, a parameter path at the time of execution, and a log file name to be generated are stored.
The command file 201 is used by the analysis processing unit 23 of the import processing mechanism, and the analysis result is processed by the update processing unit 22.

配信した全受信サーバからのログファイル転送の完了後、オペレータに対する終了メッセージとして配信処理完了を表示する。オペレータにより配信処理完了ボタンの押下により処理を終了する。   After the log file transfer from all the distributed receiving servers is completed, the distribution processing completion is displayed as an end message to the operator. The processing is terminated when the operator presses the distribution processing completion button.

本発明は、インターネットなどで接続されたサーバ間でデータの同期を簡便迅速に実現させる技術であり、積算システムで参照する単価・基準データベースの同期、名簿データベースの同期など様々なデータベースの同期方法として用いることができる。   The present invention is a technology for easily and quickly realizing data synchronization between servers connected via the Internet and the like, and as a synchronization method of various databases such as unit price / reference database synchronization and name list database synchronization that are referred to in an integration system. Can be used.

本発明のシステム構成図である。It is a system configuration diagram of the present invention. 本発明における各サーバの処理のフロー図である。It is a flowchart of the process of each server in this invention. 本発明による配信処理に係るフロー図である。It is a flowchart which concerns on the delivery process by this invention. 本発明による解析処理から回答処理に係るフロー図である。It is a flowchart which concerns on an answer process from the analysis process by this invention. 本発明による更新処理に係るフロー図である。It is a flowchart which concerns on the update process by this invention. 本発明による配信サーバ定義テーブルの概要を示す説明図である。It is explanatory drawing which shows the outline | summary of the delivery server definition table by this invention. 本発明によるコマンドファイルの概要を示す説明図である。It is explanatory drawing which shows the outline | summary of the command file by this invention.

符号の説明Explanation of symbols

10:送信サーバ、11:保守データベース、12:出力処理部、13:転送処理部、14:終了処理部、20:受信サーバ、21:受付処理部、22:更新処理部、 23:解析処理部、24:運用データベース、25:回答処理部、100:エクスポートファイル、101:コマンドファイル、102:ログファイル、103:配信サーバ定義ファイル、200:エクスポートファイル、201:コマンドファイル、202:ログファイル。 10: transmission server, 11: maintenance database, 12: output processing unit, 13: transfer processing unit, 14: end processing unit, 20: receiving server, 21: reception processing unit, 22: update processing unit, 23: analysis processing unit 24: Operation database 25: Answer processing unit 100: Export file 101: Command file 102: Log file 103: Distribution server definition file 200: Export file 201: Command file 202: Log file

Claims (4)

ネットワークを介して接続された保守サーバと、少なくとも1基の運用サーバとがそれぞれデータベースを備え、該保守サーバのデータベースから該運用サーバのデータベースに向けてデータを配信可能なデータ配信システムであって、
該保守サーバが、
該データベースのデータ部分を格納したエクスポートファイルと、少なくとも該エクスポートファイルを読み込む時に元のデータベースに復元するために必要な復元情報を格納したコマンドファイルとを出力する出力処理手段と、
該エクスポートファイル及び該コマンドファイルを共に運用サーバに向けて転送する転送処理手段と
を備える一方、
該運用サーバが、
ネットワークから該エクスポートファイル及び該コマンドファイルを受信する受付処理手段と、
該受信したコマンドファイルを解析して該データベースの復元情報を取得する解析処理手段と、
該解析処理手段の解析結果に従って、該受信したエクスポートファイルを用いて運用サーバのデータベースを更新処理する更新処理手段と
を備えてデータベースの配信更新処理を行うことを特徴とするデータ配信システム。
A maintenance server connected via a network and at least one operation server each have a database, and a data distribution system capable of distributing data from the maintenance server database to the operation server database,
The maintenance server
Output processing means for outputting an export file storing the data portion of the database, and a command file storing at least restoration information necessary for restoring the original database when the export file is read;
A transfer processing means for transferring both the export file and the command file to the operation server,
The operation server is
Reception processing means for receiving the export file and the command file from the network;
Analysis processing means for analyzing the received command file and obtaining restoration information of the database;
A data distribution system comprising: update processing means for updating the database of the operation server using the received export file according to the analysis result of the analysis processing means, and performing database distribution update processing.
前記データ配信システムにおいて、前記運用サーバが、
前記更新処理手段による更新処理結果に係るログデータを生成し、ネットワークを介して前記保守サーバに送信する回答処理手段を備える一方、
前記保守サーバが、
該ログデータを受信し、少なくとも更新処理結果が正常終了である場合には、当該運用サーバに対する更新処理が完了したことを配信サーバ定義テーブルに格納する終了処理手段を備えると共に、
前記転送処理手段は該配信サーバ定義テーブルを参照して更新処理が完了していない運用サーバに対して該転送処理することを特徴とする
請求項1に記載のデータ配信システム。
In the data distribution system, the operation server includes:
While providing log processing data related to the update processing result by the update processing means and sending to the maintenance server via a network,
The maintenance server is
The log data is received, and at least when the update processing result is a normal end, the log server includes an end processing means for storing in the distribution server definition table that the update processing for the operation server has been completed,
The data distribution system according to claim 1, wherein the transfer processing unit performs the transfer process with respect to an operation server that has not been updated by referring to the distribution server definition table.
ネットワークを介して接続された保守サーバと、少なくとも1基の運用サーバとがそれぞれデータベースを備え、該保守サーバのデータベースから該運用サーバのデータベースに向けてデータを配信可能なデータ配信システムにおけるデータ配信方法であって、
該保守サーバの出力処理手段が、該データベースのデータ部分を格納したエクスポートファイルと、少なくとも該エクスポートファイルを読み込む時に元のデータベースに復元するために必要な復元情報を格納したコマンドファイルとを出力する出力処理工程、
該保守サーバの転送処理手段が、該エクスポートファイル及び該コマンドファイルを共に運用サーバに向けて転送する転送処理工程、
該運用サーバの受付処理手段が、ネットワークから該エクスポートファイル及び該コマンドファイルを受信する受付処理工程、
該運用サーバの解析処理手段が、該受信したコマンドファイルを解析して該データベースの復元情報を取得する解析処理工程、
該解析処理工程の解析結果に従って、該運用サーバの更新処理手段が、該受信したエクスポートファイルを用いて運用サーバのデータベースを更新処理する更新処理工程
を有してデータベースの配信更新処理を行うことを特徴とするデータ配信方法。
A data distribution method in a data distribution system in which a maintenance server and at least one operation server connected via a network each have a database, and data can be distributed from the database of the maintenance server to the database of the operation server Because
Output for outputting an export file storing the data portion of the database and a command file storing at least restoration information necessary for restoring to the original database when the export file is read by the output processing means of the maintenance server Processing steps,
A transfer processing step in which the transfer processing means of the maintenance server transfers both the export file and the command file to the operation server;
A reception processing step in which the reception processing means of the operation server receives the export file and the command file from the network;
An analysis processing step in which the analysis processing means of the operational server analyzes the received command file and acquires restoration information of the database;
In accordance with the analysis result of the analysis processing step, the update processing means of the operation server has an update processing step of updating the operation server database using the received export file, and performs database distribution update processing. A characteristic data distribution method.
前記データ配信方法において、
前記運用サーバの回答処理手段が、前記更新処理工程の後、更新処理結果に係るログデータを生成し、ネットワークを介して前記保守サーバに送信する回答処理工程、
前記保守サーバの終了処理手段が、該ログデータを受信し、少なくとも更新処理結果が正常終了である場合には、当該運用サーバに対する更新処理が完了したことを配信サーバ定義テーブルに格納する終了処理工程を有し、
前記転送処理工程において、配信サーバ定義テーブルを参照して更新処理が完了していない運用サーバに対して該転送処理することを特徴とする
請求項3に記載のデータ配信方法。
In the data distribution method,
The response processing means of the operation server generates the log data related to the update processing result after the update processing step, and transmits the log data to the maintenance server via the network,
An end processing step in which the end processing means of the maintenance server receives the log data and stores in the distribution server definition table that the update processing for the operation server has been completed at least when the update processing result is normal end Have
The data distribution method according to claim 3, wherein, in the transfer processing step, the transfer processing is performed for an operation server that has not been updated by referring to the distribution server definition table.
JP2005373795A 2005-12-27 2005-12-27 Data delivery system and data delivery method Withdrawn JP2007179122A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005373795A JP2007179122A (en) 2005-12-27 2005-12-27 Data delivery system and data delivery method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005373795A JP2007179122A (en) 2005-12-27 2005-12-27 Data delivery system and data delivery method

Publications (1)

Publication Number Publication Date
JP2007179122A true JP2007179122A (en) 2007-07-12

Family

ID=38304279

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005373795A Withdrawn JP2007179122A (en) 2005-12-27 2005-12-27 Data delivery system and data delivery method

Country Status (1)

Country Link
JP (1) JP2007179122A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009091536A (en) * 2007-09-19 2009-04-30 Mitsubishi Chemicals Corp Organic electroluminescent element, material and composition for the same, and organic el display
JP2010257284A (en) * 2009-04-27 2010-11-11 Hitachi Ltd Data processing method, computer, and data processing program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009091536A (en) * 2007-09-19 2009-04-30 Mitsubishi Chemicals Corp Organic electroluminescent element, material and composition for the same, and organic el display
JP2010257284A (en) * 2009-04-27 2010-11-11 Hitachi Ltd Data processing method, computer, and data processing program

Similar Documents

Publication Publication Date Title
US10402424B1 (en) Dynamic tree determination for data processing
CN110032604B (en) Data storage device, translation device and database access method
US9400703B2 (en) Method and system for transforming input data streams
US7225231B2 (en) System and method for transmitting workspace elements across a network
EP2048586B1 (en) System and method for using a workspace data manager to access, manipulate and synchronize network data
US8316386B2 (en) Multiple application integration
US10476936B1 (en) Plugin-based file transfer systems and/or methods
US10516791B2 (en) Information processing system, information processing apparatus, and information processing method for executing an iteration of one or more processes
JP4336363B2 (en) Business process execution method, business process execution system, and program
US7464081B2 (en) Web based dynamic data translation service and method
US20060074996A1 (en) System and method for synchronizing data
US20170004152A1 (en) System and method for dynamic data archival and purging
CN114090672A (en) Business data import and export method, system, computer equipment and medium
US20050102429A1 (en) Portal cluster manager
JP2007179122A (en) Data delivery system and data delivery method
CN112988879B (en) Method, system, device, storage medium and processor for accessing database
JP5351746B2 (en) Data processing apparatus and method
CN111782157A (en) Express bill printing management method, device and system
JP2003242127A (en) Business integrated system
JP5247622B2 (en) Database server, data distribution method and server system
JPH11327989A (en) Data base management device and recording medium having recorded program thereof
JP2004240890A (en) Middleware transparent distributed application access system
CN112181937A (en) Data transmission method and device
CN113377371A (en) Multi-scene configuration method, system, device and medium
US20060015511A1 (en) Method and system for providing an interface to a computer system

Legal Events

Date Code Title Description
RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20081208

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20081208

A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20090303