[go: up one dir, main page]

JP2011019161A - Database access program, data acquisition apparatus and database access method - Google Patents

Database access program, data acquisition apparatus and database access method Download PDF

Info

Publication number
JP2011019161A
JP2011019161A JP2009163680A JP2009163680A JP2011019161A JP 2011019161 A JP2011019161 A JP 2011019161A JP 2009163680 A JP2009163680 A JP 2009163680A JP 2009163680 A JP2009163680 A JP 2009163680A JP 2011019161 A JP2011019161 A JP 2011019161A
Authority
JP
Japan
Prior art keywords
data
database
update
transmission time
time stamp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2009163680A
Other languages
Japanese (ja)
Other versions
JP5321302B2 (en
Inventor
Hisaaki Goto
久明 後藤
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2009163680A priority Critical patent/JP5321302B2/en
Publication of JP2011019161A publication Critical patent/JP2011019161A/en
Application granted granted Critical
Publication of JP5321302B2 publication Critical patent/JP5321302B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

【課題】 無駄なデータベースサーバへのアクセスを低減するデータベースアクセスプログラムを提供する。
【解決手段】 コンピュータを、データ管理部22から受信した通知情報に含まれる、データベース部21のデータの更新時刻情報を共通タイムスタンプ記憶部314に記憶させる手段と、最後に監視端末40にデータを送信した送信時刻情報を記憶した端末別タイムスタンプ記憶部324に記憶した送信時刻情報と、共通タイムスタンプ記憶部314に記憶した更新時刻情報とを比較して、送信時刻よりも後にデータベース部21のデータ更新が行われているか否かを判定する手段と、送信時刻よりも後にデータベース部21のデータ更新が行われていると判定した場合に、データ管理部22にデータの取得要求を出力する手段として機能させる。
【選択図】 図7
PROBLEM TO BE SOLVED: To provide a database access program for reducing access to a useless database server.
SOLUTION: A means for storing update time information of data in a database unit 21 included in notification information received from a data management unit 22 in a common time stamp storage unit 314, and finally data in a monitoring terminal 40. The transmission time information stored in the terminal-specific time stamp storage unit 324 storing the transmitted transmission time information is compared with the update time information stored in the common time stamp storage unit 314. Means for determining whether or not data update is performed, and means for outputting a data acquisition request to the data management unit 22 when it is determined that data update of the database unit 21 is performed after the transmission time To function as.
[Selection] Figure 7

Description

本発明は、データベースアクセスプログラム、データ取得装置及びデータベースアクセス方法に関する。   The present invention relates to a database access program, a data acquisition device, and a database access method.

データベースサーバにアクセスし、データベースサーバからデータを取得する方式の一つとして、プル型と呼ばれるアクセス方式が知られている。このプル型のアクセス方式では、クライアント装置が定期的にデータベースサーバにアクセスして、ユーザによって事前に指定されたデータに更新があるか否かを問い合わせる。データに更新があった場合には、クライアント装置は、データベースサーバから更新されたデータを取得する。   As one of methods for accessing a database server and acquiring data from the database server, an access method called a pull type is known. In this pull-type access method, the client device periodically accesses the database server and inquires whether there is an update in data designated in advance by the user. When the data is updated, the client device acquires the updated data from the database server.

また、データベースサーバへの無駄なアクセスを低減する技術として、特許文献1が知られている。特許文献1は、ユーザの使用する移動体端末と、移動体端末と無線通信を行う基地局と、データベースサーバとしての情報提供装置とを備えたシステムにおいて、情報提供装置への無駄なアクセスを低減する技術を開示している。移動体端末からデータの取得要求を受けた基地局は、情報提供装置に接続して、移動体端末から要求されたデータの更新時刻を示す更新情報を取得する。そして、基地局は、自身の記憶部に記憶しているデータの更新情報と、情報提供装置から取得した更新情報とを比較する。基地局は、更新情報を比較して、記憶部に記憶しているデータが最新のデータであると判定すると、情報提供装置からデータを取得することなく、自身の記憶部に記憶しているデータを移動体端末に送信する。   Patent Document 1 is known as a technique for reducing useless access to a database server. Patent Document 1 reduces useless access to an information providing apparatus in a system including a mobile terminal used by a user, a base station that performs wireless communication with the mobile terminal, and an information providing apparatus as a database server. The technology to do is disclosed. The base station that has received the data acquisition request from the mobile terminal connects to the information providing apparatus and acquires update information indicating the update time of the data requested from the mobile terminal. And a base station compares the update information of the data memorize | stored in its memory | storage part, and the update information acquired from the information provision apparatus. When the base station compares the update information and determines that the data stored in the storage unit is the latest data, the data stored in the storage unit itself is not acquired from the information providing apparatus. To the mobile terminal.

特開平10−336352号公報Japanese Patent Laid-Open No. 10-336352

しかしながら、プル方式では、クライアント端末は、定期的にデータベースサーバにアクセスして、データに更新があったか否かを確認しなければならない。特許文献1も、基地局は、移動体端末から取得要求を受けると、記憶部に記憶したデータが最新のものであるか否かを判定するために情報提供装置に接続し、情報提供装置から更新情報を取得している。   However, in the pull method, the client terminal must periodically access the database server to check whether the data has been updated. In Patent Document 1, when the base station receives an acquisition request from the mobile terminal, the base station connects to the information providing apparatus to determine whether the data stored in the storage unit is the latest, and from the information providing apparatus. Update information is acquired.

本発明は上記事情に鑑みてなされたものであり、無駄なデータベースサーバへのアクセスを低減するデータベースアクセスプログラム、データ取得装置及びデータベースアクセス方法を提供することを目的とする。   The present invention has been made in view of the above circumstances, and an object thereof is to provide a database access program, a data acquisition device, and a database access method that reduce access to a useless database server.

本明細書に開示のデータベースアクセスプログラムは、コンピュータを、データベースからデータを取得して、端末に送信するデータベースアクセスシステムとして機能させるデータベースアクセスプログラムであって、前記コンピュータを、前記データベースを管理するデータベース管理装置から、前記データベースのデータ更新を通知する通知情報を受信する受信手段と、前記受信手段で受信した前記通知情報に含まれる、前記データベースのデータの更新時刻情報を第1記憶手段に記憶させる処理手段と、最後に端末にデータを送信した送信時刻情報を記憶した第2記憶手段に記憶した前記送信時刻情報と、前記第1記憶手段に記憶した前記更新時刻情報とを比較して、前記送信時刻よりも後に前記データベースのデータ更新が行われているか否かを判定する判定手段と、前記判定手段により、前記送信時刻よりも後に前記データベースのデータ更新が行われていると判定した場合に、前記データベース管理装置にデータの取得要求を出力する出力手段とを備える。
本明細書に開示のデータベースアクセスプログラムによれば、データベース管理装置から通知されるデータベースの更新時刻情報と、最後に端末にデータを送信した送信時刻情報とを比較して、送信時刻よりも後にデータベースのデータ更新が行われているか否かを判定する。そして、データベースのデータ更新が行われたと判定する場合に、データベースにデータの取得要求を出力する。従って、データベースへの無駄なアクセスの発生を低減することができる。
A database access program disclosed in the present specification is a database access program that causes a computer to function as a database access system that acquires data from a database and transmits the data to a terminal. The database management program manages the database. Receiving means for receiving notification information for notifying data update of the database from the device, and processing for storing the update time information of the database data included in the notification information received by the receiving means in the first storage means And the transmission time information stored in the second storage means storing the transmission time information last transmitted data to the terminal and the update time information stored in the first storage means, The database data is updated after the time. An output for outputting a data acquisition request to the database management apparatus when it is determined by the determination means that the data update of the database is performed after the transmission time. Means.
According to the database access program disclosed in the present specification, the database update time information notified from the database management device is compared with the transmission time information at which data was last transmitted to the terminal, and the database is later than the transmission time. It is determined whether or not data update is performed. And when it determines with the data update of a database having been performed, a data acquisition request is output to a database. Therefore, occurrence of useless access to the database can be reduced.

本明細書に開示のデータベースアクセスプログラムによれば、データベースへの無駄なアクセスの発生を低減することができる。   According to the database access program disclosed in this specification, it is possible to reduce the occurrence of useless access to the database.

システム構成の一例を示す図である。It is a figure which shows an example of a system configuration. データベースサーバの構成の一例を示す図である。It is a figure which shows an example of a structure of a database server. データベースサーバの記憶するテーブルの一例を示す図である。It is a figure which shows an example of the table which a database server memorize | stores. プログラム制御によって実現されるデータベースサーバの機能ブロックの一例を示す図である。It is a figure which shows an example of the functional block of the database server implement | achieved by program control. 処理サーバのハードウェア構成の一例を示す図である。It is a figure which shows an example of the hardware constitutions of a processing server. プログラム制御によって実現される処理サーバの機能ブロックの一例を示す図である。It is a figure which shows an example of the functional block of the processing server implement | achieved by program control. 図6に示す表示情報更新処理の詳細な構成の一例を示す図である。It is a figure which shows an example of a detailed structure of the display information update process shown in FIG. 処理サーバのRAMに記憶される表示管理情報の一例を示す図である。It is a figure which shows an example of the display management information memorize | stored in RAM of a processing server. 監視端末に表示される表示情報の一例を示す図である。It is a figure which shows an example of the display information displayed on a monitoring terminal. データベースサーバのデータ管理部の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence of the data management part of a database server. 実施例1の処理サーバの制御部の処理手順の一例を示すフローチャートである。3 is a flowchart illustrating an example of a processing procedure of a control unit of the processing server according to the first embodiment. 実施例2の動作概要を示す図である。FIG. 10 is a diagram illustrating an outline of operation according to the second embodiment. タイムスタンプの比較方法を説明するための図である。It is a figure for demonstrating the comparison method of a time stamp. (A)〜(C)は、データベースサーバに記憶されるテーブルの例を示し、(D)は、(A)〜(C)のテーブルのデータを結合したビュー表の構成の一例を示す図である。(A)-(C) show the example of the table memorize | stored in a database server, (D) is a figure which shows an example of the structure of the view table which combined the data of the table of (A)-(C). is there. 実施例2の処理サーバの制御部の処理手順の一例を示すフローチャートである。10 is a flowchart illustrating an example of a processing procedure of a control unit of the processing server according to the second embodiment. 実施例3の動作概要を示す図である。FIG. 10 is a diagram illustrating an outline of operation according to the third embodiment. 処理サーバのRAMに記憶される結合管理情報の一例を示す図である。It is a figure which shows an example of the joint management information memorize | stored in RAM of a processing server. 実施例3の処理サーバの制御部の処理手順の一例を示すフローチャートである。12 is a flowchart illustrating an example of a processing procedure of a control unit of the processing server according to the third embodiment.

以下、添付図面を参照しながら本発明の好適な実施例を説明する。   Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings.

まず、図1を参照しながら本実施例の構成について説明する。
本実施例は、複数の入力端末11a〜11n(nは任意の自然数)と、データベースサーバ20と、処理サーバ30と、複数の監視端末40a〜40m(mは任意の自然数)とをネットワークに接続したシステム構成を備える。なお、以下の説明では、各入力端末11a〜11mを区別する必要がない場合には、入力端末11と表記する。同様に、各監視端末40a〜40mを区別する必要がない場合には、監視端末40と表記する。
First, the configuration of the present embodiment will be described with reference to FIG.
In this embodiment, a plurality of input terminals 11a to 11n (n is an arbitrary natural number), a database server 20, a processing server 30, and a plurality of monitoring terminals 40a to 40m (m is an arbitrary natural number) are connected to a network. System configuration. In the following description, the input terminals 11a to 11m are referred to as input terminals 11 when it is not necessary to distinguish them. Similarly, when it is not necessary to distinguish each monitoring terminal 40a-40m, it describes with the monitoring terminal 40. FIG.

複数の入力端末11a〜11nは、コールセンタ10に設置される端末であり、顧客からの電話に応対するオペレータが使用する端末である。入力端末11a〜11nはLAN等の内部ネットワーク12にそれぞれ接続している。この内部ネットワーク12は、WAN(Wide Area Network)等の広域ネットワーク50に接続する。入力端末11a〜11nは、内部ネットワーク12、広域ネットワーク50を介してデータベースサーバ20等に接続可能である。   The plurality of input terminals 11a to 11n are terminals installed in the call center 10, and are terminals used by operators who respond to telephone calls from customers. The input terminals 11a to 11n are connected to an internal network 12 such as a LAN. The internal network 12 is connected to a wide area network 50 such as a WAN (Wide Area Network). The input terminals 11a to 11n can be connected to the database server 20 and the like via the internal network 12 and the wide area network 50.

コールセンタ10のオペレータは、顧客からの問いあわせを受け付けると、受け付けた問いあわせを入力端末11に入力する。入力端末11は、オペレータの入力した問いあわせ情報を、内部ネットワーク12と広域ネットワーク50とを介してデータベースサーバ20に送信する。なお、図1には、コールセンタ10を1つだけ示しているが、コールセンタ10の数は1つである必要はなく、複数あってもよい。また、1つのコールセンタ10内に設ける入力端末11a〜11mの数も任意である。   When the operator of the call center 10 receives an inquiry from a customer, the operator inputs the received inquiry to the input terminal 11. The input terminal 11 transmits inquiry information input by the operator to the database server 20 via the internal network 12 and the wide area network 50. In FIG. 1, only one call center 10 is shown, but the number of call centers 10 is not necessarily one, and there may be a plurality of call centers. The number of input terminals 11a to 11m provided in one call center 10 is also arbitrary.

データベースサーバ20と処理サーバ30とは、同一のネットワーク(以下、内部ネットワーク25と呼ぶ)に配置される。内部ネットワーク25も広域ネットワーク50に接続する。データベースサーバ20は、入力端末11と接続し、入力端末11から送られた問いあわせ情報を後述するデータベース部21に記憶する。また、処理サーバ30は、必要であると判定した場合に、データベースサーバ20と接続し、データベースサーバ20からデータを取得する。データベースサーバ20は、取得したデータを、監視端末40に送信する。なお、データベースサーバ20と、処理サーバ30の処理の詳細については後述する。   The database server 20 and the processing server 30 are arranged on the same network (hereinafter referred to as an internal network 25). The internal network 25 is also connected to the wide area network 50. The database server 20 is connected to the input terminal 11 and stores inquiry information sent from the input terminal 11 in the database unit 21 described later. Further, when it is determined that the processing server 30 is necessary, the processing server 30 connects to the database server 20 and acquires data from the database server 20. The database server 20 transmits the acquired data to the monitoring terminal 40. Details of the processing of the database server 20 and the processing server 30 will be described later.

監視端末40a〜40mは、複数のサービス拠点に設けられ、顧客にサービスを提供するサービス提供者によって使用される。監視端末40a〜40mも各サービス拠点に敷設された内部ネットワークに接続しており、この内部ネットワークは、広域ネットワーク50に接続する。監視端末40は、処理サーバ30から送信されたデータを受信し、受信したデータを表示部に表示する。サービス提供者は、表示部に表示されたデータを参照して、問いあわせのあった顧客にサービスを提供する。   The monitoring terminals 40a to 40m are provided at a plurality of service bases and used by service providers who provide services to customers. The monitoring terminals 40 a to 40 m are also connected to an internal network laid at each service base, and this internal network is connected to the wide area network 50. The monitoring terminal 40 receives the data transmitted from the processing server 30 and displays the received data on the display unit. The service provider refers to the data displayed on the display unit and provides the service to the customer who made the inquiry.

次に、図2を参照しながらデータベースサーバ20の構成の一例について説明する。
データベースサーバ20は、データを記憶するデータベース部21と、データベース部21に記憶したデータを管理するデータ管理部22とを備える。データ管理部22は、データベース部21にデータを記憶したり、データベース部21に既に記憶済みのデータに新たなデータを上書きして更新したり、データベース部21に記憶したデータを検索して読み出す処理を行う。なお、データ管理部22は、データベース管理システム(Database Management System)として一般的に知られた装置である。
Next, an example of the configuration of the database server 20 will be described with reference to FIG.
The database server 20 includes a database unit 21 that stores data, and a data management unit 22 that manages data stored in the database unit 21. The data management unit 22 stores data in the database unit 21, updates the data already stored in the database unit 21 by overwriting new data, or searches and reads data stored in the database unit 21 I do. The data management unit 22 is a device generally known as a database management system.

図3に、データベースサーバ20のデータベース部21に記憶するデータの一例を示す。データベース部21は、データ管理部22の制御によりデータをテーブルに登録する。データ管理部22は、データの検索が容易となるようにデータとデータの属性とを対応付けてテーブルに登録する。テーブルは、データを記憶するデータ記憶領域23と、データ記憶領域23のデータの属性を示す属性記憶領域24とを備える。例えば、図3に示すテーブルは、データの属性として、識別番号、受付日、状況、顧客コード、顧客名、住所、製品コード、製品名、バージョン情報、パッチ情報、メモ情報等を含む。また、図3に示すテーブルの同一行に登録されたデータが1件分のデータに該当する。   FIG. 3 shows an example of data stored in the database unit 21 of the database server 20. The database unit 21 registers data in the table under the control of the data management unit 22. The data management unit 22 registers the data and the data attributes in the table in association with each other so that the data can be easily searched. The table includes a data storage area 23 for storing data, and an attribute storage area 24 indicating data attributes of the data storage area 23. For example, the table shown in FIG. 3 includes an identification number, a reception date, a situation, a customer code, a customer name, an address, a product code, a product name, version information, patch information, memo information, and the like as data attributes. Further, data registered in the same row of the table shown in FIG. 3 corresponds to one data.

次に、図4を参照しながらプログラム制御によって実現されるデータ管理部22の機能ブロックについて説明する。機能ブロックとは、データ管理部22の備えるCPU(Central Processing Unit)、RAM(Random Access Memory)などのハードウェアと、ROM(Read Only Memory)に記憶したプログラムとの協働によって実現される処理を一定の機能ごとにまとめたブロックである。なお、データ管理部22のハードウエア構成については、一般的に知られた構成であるので図示を省略する。 データ管理部22は、通信処理221と、解析処理222と、データ処理223と、通知信号生成処理224とを機能ブロックとして備えている。   Next, functional blocks of the data management unit 22 realized by program control will be described with reference to FIG. A functional block is a process realized by the cooperation of hardware such as a CPU (Central Processing Unit) and RAM (Random Access Memory) provided in the data management unit 22 and a program stored in a ROM (Read Only Memory). It is a block that is grouped according to certain functions. Since the hardware configuration of the data management unit 22 is a generally known configuration, the illustration thereof is omitted. The data management unit 22 includes a communication process 221, an analysis process 222, a data process 223, and a notification signal generation process 224 as functional blocks.

通信処理221は、ネットワーク25、50を介して入力端末11や処理サーバ30から送信される信号を受信し、受信した信号を解析処理222に送る。
また、通信処理221は、データ処理223がデータベース部21から読み出したデータを含む信号や、通知信号生成処理224で生成した通知信号を内部ネットワーク25を介して処理サーバ30に送信する。
The communication process 221 receives signals transmitted from the input terminal 11 and the processing server 30 via the networks 25 and 50, and sends the received signals to the analysis process 222.
Further, the communication process 221 transmits a signal including data read from the database unit 21 by the data process 223 and a notification signal generated by the notification signal generation process 224 to the processing server 30 via the internal network 25.

解析処理222は、入力端末11a〜11nから送信され、通信処理221で受信した信号を入力する。同様に、解析処理222は、処理サーバ30から送信され、通信処理221で受信した信号を入力する。解析処理222は、入力した信号に含まれる処理要求やデータを取り出し、取り出した処理要求を解析する。そして、解析処理222は、解析結果に応じた処理をデータ処理223に要求する。例えば、入力端末11a〜11nから処理要求と共に送られたデータをデータベース部21に記憶する処理や、データをデータベース部21から読み出す処理などが含まれる。   The analysis process 222 inputs signals transmitted from the input terminals 11a to 11n and received by the communication process 221. Similarly, the analysis process 222 inputs a signal transmitted from the processing server 30 and received by the communication process 221. The analysis process 222 extracts a processing request and data included in the input signal and analyzes the extracted processing request. Then, the analysis process 222 requests the data process 223 to perform a process according to the analysis result. For example, the process which memorize | stores the data sent with the process request from the input terminals 11a-11n in the database part 21, the process which reads data from the database part 21, etc. are contained.

データ処理223は、解析処理222の要求に従って、データベース部21にデータを記憶したり、データベース部21からデータを読み出したりする。なお、データベース部21にデータを記憶する処理には、新規にデータを記憶する処理と、既に記憶しているデータに、更新されたデータを上書きする処理とが含まれる。これらの処理を以下では、データの更新処理と呼ぶ。また、データベース部21から読み出したデータは、データ処理223から通信処理221に送られ、通信処理221の制御により処理サーバ30に送信される。
また、データ処理223は、データベース部21のデータの更新処理を行うと、通知信号生成処理224に対して通知信号を生成するように要求する。
The data processing 223 stores data in the database unit 21 or reads data from the database unit 21 according to the request of the analysis processing 222. Note that the process of storing data in the database unit 21 includes a process of newly storing data and a process of overwriting updated data on already stored data. Hereinafter, these processes are referred to as data update processes. The data read from the database unit 21 is sent from the data processing 223 to the communication processing 221, and is transmitted to the processing server 30 under the control of the communication processing 221.
In addition, when the data processing 223 performs update processing of data in the database unit 21, the data processing 223 requests the notification signal generation processing 224 to generate a notification signal.

通知信号生成処理224は、データ処理223から通知信号の生成要求を受信すると、時計部225の計時する時刻を、データ更新が行われた時刻を示すタイムスタンプとして含む通知信号を生成する。通知信号生成処理224は、生成した通知信号を通信処理221に送る。通信処理221は、通知信号生成処理224から受信した通知信号を内部ネットワーク25を介して処理サーバ30に送信する。   When the notification signal generation process 224 receives the notification signal generation request from the data processing 223, the notification signal generation process 224 generates a notification signal including the time counted by the clock unit 225 as a time stamp indicating the time when the data update is performed. The notification signal generation process 224 sends the generated notification signal to the communication process 221. The communication process 221 transmits the notification signal received from the notification signal generation process 224 to the processing server 30 via the internal network 25.

次に、処理サーバ30について説明する。処理サーバ30は、監視端末40からの問いあわせに基づいて、データベースサーバ20のデータを取得するデータベースアクセスシステムとして機能する装置である。
まず、図5を参照しながら処理サーバ30のハードウェア構成の一例を説明する。処理サーバ30は、制御部31、通信インターフェース35、操作部36、入力インターフェース37、グラフィックインターフェース38、表示部39を備える。また、制御部31は、CPU32、ROM33、RAM34を備える。
Next, the processing server 30 will be described. The processing server 30 is a device that functions as a database access system that acquires data of the database server 20 based on an inquiry from the monitoring terminal 40.
First, an example of the hardware configuration of the processing server 30 will be described with reference to FIG. The processing server 30 includes a control unit 31, a communication interface 35, an operation unit 36, an input interface 37, a graphic interface 38, and a display unit 39. The control unit 31 includes a CPU 32, a ROM 33, and a RAM 34.

まず、制御部31について説明する。ROM33には、CPU32が制御に使用する制御プログラムが記録されており、CPU32は、起動すると、制御プログラムをROM33から読み出してRAM34に記憶させる。その後、CPU32は、RAM34に記憶したプログラムに従って処理を行う。RAM34は、CPU32のワークメモリとして使用され、CPU32が演算に使用するデータや、CPU32による演算後のデータ等が記憶される。CPU32、RAM34などのハードと、ROM33に記憶したプログラムとの協働によって実現される機能ブロックについては、図6、7を参照しながら説明する。なお、RAM34が本発明の第1記憶手段〜第4記憶手段に該当する。   First, the control unit 31 will be described. The ROM 33 stores a control program used by the CPU 32 for control. When the CPU 32 is activated, the CPU 32 reads the control program from the ROM 33 and stores it in the RAM 34. Thereafter, the CPU 32 performs processing according to a program stored in the RAM 34. The RAM 34 is used as a work memory for the CPU 32, and stores data used by the CPU 32 for computation, data after computation by the CPU 32, and the like. Functional blocks realized by cooperation of hardware such as the CPU 32 and RAM 34 and programs stored in the ROM 33 will be described with reference to FIGS. The RAM 34 corresponds to the first storage means to the fourth storage means of the present invention.

通信インターフェース35は、制御部31の制御に従って、内部ネットワーク25(広域ネットワーク50)に接続し、例えば、データベースサーバ20や監視端末40とデータ通信を行う。   The communication interface 35 is connected to the internal network 25 (wide area network 50) under the control of the control unit 31, and performs data communication with the database server 20 and the monitoring terminal 40, for example.

操作部36は、ユーザによって入力される操作情報を受け付ける受付部である。操作部36で受け付けた操作情報は、入力インターフェース37を介して制御部31に送られる。   The operation unit 36 is a reception unit that receives operation information input by a user. The operation information received by the operation unit 36 is sent to the control unit 31 via the input interface 37.

グラフィックインターフェース38は、制御部31で処理されたグラフィックデータを表示部39に表示させるためのインターフェースであり、表示部39に表示させるためにグラフィックデータを波形電気信号に変換する。   The graphic interface 38 is an interface for displaying the graphic data processed by the control unit 31 on the display unit 39, and converts the graphic data into a waveform electrical signal for display on the display unit 39.

次に、図6を参照しながらプログラム制御によって実現される処理サーバ30の機能ブロックについて説明する。処理サーバ30は、受信処理311と、解析処理312と、登録処理313と、送信処理315と、複数の表示情報更新処理316a、316b、・・・、316mとを備える。なお、図6に示す共通タイムスタンプ記憶部(本発明の第1記憶手段に該当する)314は、RAM34の記憶領域を使用した記憶部である。CPU32(登録処理313)の制御によって、データをRAM34(共通タイムスタンプ記憶部314)に記憶する。   Next, functional blocks of the processing server 30 realized by program control will be described with reference to FIG. The processing server 30 includes a reception process 311, an analysis process 312, a registration process 313, a transmission process 315, and a plurality of display information update processes 316 a, 316 b,. Note that the common time stamp storage unit (corresponding to the first storage unit of the present invention) 314 shown in FIG. 6 is a storage unit that uses the storage area of the RAM 34. Under the control of the CPU 32 (registration processing 313), the data is stored in the RAM 34 (common time stamp storage unit 314).

受信処理311は、通信インターフェース35で受信した信号を入力し、入力した信号を解析処理312に送る。   The reception process 311 inputs a signal received by the communication interface 35 and sends the input signal to the analysis process 312.

解析処理312は、受信処理311から送られた信号から処理要求やデータを取り出す。解析処理312は、取り出した処理要求を解析して、解析結果に応じた処理の実行を登録処理313や表示情報更新処理316a〜316mに要求する。
例えば、受信処理311で入力した信号が、データベースサーバ20から送信された通知信号であったとする。この場合、解析処理312は、通知信号に含まれるタイムスタンプと、タイムスタンプの登録要求を登録処理313に送る。また、受信処理311で入力した信号に、表示情報更新処理316がデータベースサーバ20に送信した未取得データの取得要求に応じて、データベースサーバ20が処理サーバ30に送信したデータが含まれているとする。この場合、解析処理312は、信号に含まれるデータを取り出して、データ取得要求を送信した表示情報更新処理316に送る。なお、未取得データとは、監視端末40a〜40mが未取得のデータである。
The analysis process 312 extracts a processing request and data from the signal sent from the reception process 311. The analysis process 312 analyzes the extracted process request and requests the registration process 313 and the display information update processes 316a to 316m to execute the process according to the analysis result.
For example, it is assumed that the signal input in the reception process 311 is a notification signal transmitted from the database server 20. In this case, the analysis process 312 sends the time stamp included in the notification signal and a time stamp registration request to the registration process 313. In addition, the signal input in the reception process 311 includes data transmitted from the database server 20 to the processing server 30 in response to an acquisition request for unacquired data transmitted from the display information update process 316 to the database server 20. To do. In this case, the analysis process 312 extracts the data included in the signal and sends it to the display information update process 316 that transmitted the data acquisition request. The unacquired data is data that has not been acquired by the monitoring terminals 40a to 40m.

登録処理313は、解析処理312の要求に従って、タイムスタンプを共通タイムスタンプ記憶部314に記憶する。なお、共通タイムスタンプ記憶部314に記憶したタイムスタンプは、すべての表示情報更新処理316a〜316mによって参照することができる。   The registration process 313 stores the time stamp in the common time stamp storage unit 314 according to the request of the analysis process 312. In addition, the time stamp memorize | stored in the common time stamp memory | storage part 314 can be referred by all the display information update processes 316a-316m.

送信処理315は、表示情報更新処理316a〜316mから送られた未取得データの取得要求や、監視端末40に表示する表示情報を通信インターフェース35に送信する。   The transmission process 315 transmits an acquisition request for unacquired data sent from the display information update processes 316 a to 316 m and display information displayed on the monitoring terminal 40 to the communication interface 35.

表示情報更新処理316a〜316mは、各監視端末40a〜40mに対応して、監視端末40a〜40mと同数設けられる。なお、以下の説明において、表示情報更新処理316a〜316mを区別する必要がない場合には、総称して表示情報更新処理316と表記する。
表示情報更新処理316a〜316mは、所定時間ごとに起動し、対応する監視端末40a〜40mが未取得のデータを、データベースサーバ20が記憶しているか否かを判定する。対応する監視端末40a〜40mが未取得のデータを、データベースサーバ20が記憶していると判定する場合、表示情報更新処理316a〜316mは、データベースサーバ20にデータの取得を要求する。なお、判定の詳細については図7を参照しながら説明する。
The same number of display information update processes 316a to 316m as the number of monitoring terminals 40a to 40m are provided corresponding to each of the monitoring terminals 40a to 40m. In the following description, when there is no need to distinguish between the display information update processes 316a to 316m, they are collectively referred to as a display information update process 316.
The display information update processing 316a to 316m is activated every predetermined time, and determines whether or not the database server 20 stores data not acquired by the corresponding monitoring terminals 40a to 40m. When the corresponding monitoring terminals 40a to 40m determine that the database server 20 stores data that has not been acquired, the display information update processing 316a to 316m requests the database server 20 to acquire data. Details of the determination will be described with reference to FIG.

図7には、表示情報更新処理316の詳細を示す。なお、表示情報更新処理316a〜316mはほぼ同一の処理を行うので、図7には、代表して表示情報更新処理316aの処理を示す。なお、表示情報更新処理316a〜316mは、連動して動作するわけではなく、それぞれが独立して処理を行う。
表示情報更新処理316aは、取得判定処理320aと、表示情報生成処理330aとを含む。また、取得判定処理320aは、判定処理321aと、タイマ処理322aと、要求出力処理323aとを含む。また、端末別タイムスタンプ記憶部(本発明の第2記憶手段に該当する)324aは、RAM34の記憶領域を使用した記憶部である。CPU32(判定処理321a)の制御によって、データをRAM34(端末別タイムスタンプ記憶部324a)に記憶する。なお、端末別タイムスタンプ記憶部324aは、各表示情報更新処理316aにだけ設けられるものではなく、各表示情報更新処理316a〜316mにそれぞれ設けられる。対応する各表示情報更新処理316a〜316mだけが、端末別タイムスタンプ記憶部324a〜324mの記憶情報を参照することができる。
FIG. 7 shows details of the display information update processing 316. Since the display information update processing 316a to 316m performs almost the same processing, FIG. 7 shows the processing of the display information update processing 316a as a representative. Note that the display information update processing 316a to 316m does not operate in conjunction with each other, and each performs processing independently.
The display information update process 316a includes an acquisition determination process 320a and a display information generation process 330a. The acquisition determination process 320a includes a determination process 321a, a timer process 322a, and a request output process 323a. The terminal-specific time stamp storage unit (corresponding to the second storage unit of the present invention) 324 a is a storage unit that uses the storage area of the RAM 34. Data is stored in the RAM 34 (terminal time stamp storage unit 324a) under the control of the CPU 32 (determination process 321a). Note that the terminal time stamp storage unit 324a is not provided only for each display information update process 316a, but is provided for each display information update process 316a to 316m. Only the corresponding display information update processing 316a to 316m can refer to the stored information in the time stamp storage units 324a to 324m for each terminal.

まず、取得判定処理320aについて説明する。タイマ処理322aは、時間を計時し、予め設定された時間を計時すると、判定処理321aに通知信号を送る。   First, the acquisition determination process 320a will be described. The timer process 322a measures the time, and sends a notification signal to the determination process 321a when measuring a preset time.

判定処理321aは、タイマ処理322aから通知信号を受信すると、端末別タイムスタンプ記憶部324aに記憶したタイムスタンプ(本発明の送信時刻情報に該当)と、共通タイムスタンプ記憶部314に記憶したタイムスタンプ(本発明の更新時刻情報に該当)とを比較する。
共通タイムスタンプ記憶部314に記憶するタイムスタンプは、データベースサーバ20の記憶するデータが更新されるごとに、データベースサーバ20から送信される通知信号に含まれるタイムスタンプである。すなわち、共通タイムスタンプ記憶部314に記憶するタイムスタンプは、データベースサーバ20のデータの最新の更新時刻を示す。
また、端末別タイムスタンプ記憶部324aの記憶するタイムスタンプは、前回、表示情報更新処理316aがデータベースサーバ20からデータを取得したときに、共通タイムスタンプ記憶部314に記憶していたタイムスタンプである。すなわち、データベースサーバ20から取得して監視端末40に送信済みのデータが、データベースサーバ20に記憶された時刻を示すタイムスタンプである。また、共通タイムスタンプ記憶部314の記憶するタイムスタンプは、最後に監視端末40にデータを送信した送信時刻も示している。
判定処理321aは、端末別タイムスタンプ記憶部324aに記憶したタイムスタンプの時刻よりも、共通タイムスタンプ記憶部314に記憶したタイムスタンプの時刻のほうが新しい場合に、要求出力処理323aに通知信号を送信する。
また、判定処理321aは、要求出力処理323aに通知信号を送信すると、共通タイムスタンプ記憶部314から取得したタイムスタンプを端末別タイムスタンプ記憶部324aに記憶させ、タイムスタンプの更新を行う。すなわち、端末別タイムスタンプ記憶部324aに記憶したタイムスタンプの時刻が、データベースサーバ20から取得し、監視端末40aに送信するデータの更新時刻となる。
When the determination process 321a receives the notification signal from the timer process 322a, the time stamp (corresponding to the transmission time information of the present invention) stored in the terminal time stamp storage unit 324a and the time stamp stored in the common time stamp storage unit 314 are received. (Corresponding to the update time information of the present invention).
The time stamp stored in the common time stamp storage unit 314 is a time stamp included in a notification signal transmitted from the database server 20 every time data stored in the database server 20 is updated. That is, the time stamp stored in the common time stamp storage unit 314 indicates the latest update time of data in the database server 20.
The time stamp stored in the terminal time stamp storage unit 324a is the time stamp stored in the common time stamp storage unit 314 when the display information update processing 316a acquired data from the database server 20 last time. . That is, the data acquired from the database server 20 and transmitted to the monitoring terminal 40 is a time stamp indicating the time stored in the database server 20. The time stamp stored in the common time stamp storage unit 314 also indicates the transmission time at which data was last transmitted to the monitoring terminal 40.
The determination process 321a transmits a notification signal to the request output process 323a when the time stamp stored in the common time stamp storage unit 314 is newer than the time stamp stored in the terminal-specific time stamp storage unit 324a. To do.
In addition, when the determination process 321a transmits a notification signal to the request output process 323a, the determination process 321a stores the time stamp acquired from the common time stamp storage unit 314 in the terminal time stamp storage unit 324a and updates the time stamp. That is, the time of the time stamp stored in the time stamp storage unit 324a for each terminal is the update time of data acquired from the database server 20 and transmitted to the monitoring terminal 40a.

要求出力処理323aは、判定処理321aから通知信号を受信すると、データベースサーバ20にデータの取得要求を送信する。データの取得要求を処理サーバ30から受信したデータベースサーバ20は、要求されたデータを処理サーバ30に送信する。   Upon receiving the notification signal from the determination process 321a, the request output process 323a transmits a data acquisition request to the database server 20. Upon receiving the data acquisition request from the processing server 30, the database server 20 transmits the requested data to the processing server 30.

処理サーバ30は、データベースサーバ20から送信されたデータを、通信インターフェース35で受信する。制御部31は、受信したデータを受信処理311で制御部31内に入力し、解析処理312で解析する。解析処理312は、解析の結果、表示情報更新処理316aに送るデータであると判定し、表示情報更新処理316aにデータを出力する。   The processing server 30 receives the data transmitted from the database server 20 through the communication interface 35. The control unit 31 inputs the received data into the control unit 31 in the reception process 311 and analyzes it in the analysis process 312. As a result of the analysis, the analysis process 312 determines that the data is to be sent to the display information update process 316a, and outputs the data to the display information update process 316a.

表示情報更新処理316aは、解析処理312から送られたデータを表示情報生成処理330aに入力する。表示情報生成処理330aは、表示管理情報記憶部331aに記憶した表示管理情報を参照して、データベースサーバ20から取得したデータのうち、監視端末40aに表示させるデータを選択する。なお、表示管理情報記憶部331aも、RAM34の記憶領域の一部を使用している。図8に、表示管理情報の一例を示す。表示管理情報は、データベースサーバ20から取得したデータのうち、監視端末40aに表示させるデータの属性を記憶した情報である。表示管理情報には、データの属性と、この属性のデータを監視端末40aに表示させるか否かを示すフラグ情報とを含む。例えば、監視端末40aに表示させるデータである場合には、「1」のフラグが記録され、監視端末40aに表示させないデータである場合には、「0」のフラグが記録される。
表示情報生成処理330aは、表示管理情報を参照して、監視端末40aに表示するデータを含む表示情報を生成し、送信処理315に送る。
The display information update process 316a inputs the data sent from the analysis process 312 to the display information generation process 330a. The display information generation process 330a refers to the display management information stored in the display management information storage unit 331a, and selects data to be displayed on the monitoring terminal 40a from the data acquired from the database server 20. The display management information storage unit 331a also uses a part of the storage area of the RAM 34. FIG. 8 shows an example of display management information. The display management information is information storing data attributes to be displayed on the monitoring terminal 40a among the data acquired from the database server 20. The display management information includes data attributes and flag information indicating whether or not to display the data with the attributes on the monitoring terminal 40a. For example, when the data is to be displayed on the monitoring terminal 40a, a flag “1” is recorded, and when the data is not to be displayed on the monitoring terminal 40a, a flag “0” is recorded.
The display information generation process 330a refers to the display management information, generates display information including data to be displayed on the monitoring terminal 40a, and sends the display information to the transmission process 315.

送信処理315は、表示情報生成処理330aから送られた表示情報を通信インターフェース35に送る。通信インターフェース35は、ネットワーク25(50)で通信可能な信号に変換して、監視端末40aに送信する。図9に、監視端末40aに表示される表示情報の一例を示す。   The transmission process 315 sends the display information sent from the display information generation process 330 a to the communication interface 35. The communication interface 35 converts the signal into a signal communicable with the network 25 (50) and transmits the signal to the monitoring terminal 40a. FIG. 9 shows an example of display information displayed on the monitoring terminal 40a.

次に、図10に示すフローチャートを参照しながら、データ管理部22の通知信号生成処理224の処理手順を説明する。
データ処理223は、データベース部21のデータの更新処理を行うと、通知信号生成処理224に通知信号を生成するように要求する。データ処理223の要求を受けた(ステップS1/YES)通知信号生成処理224は、まず、計時部225を参照して現在時刻を取得する(ステップS2)。次に、通知信号生成処理224は、取得した現在時刻をタイムスタンプとして含む通知信号を生成し、生成した通知信号を処理サーバ30に送信する(ステップS3)。
Next, the processing procedure of the notification signal generation processing 224 of the data management unit 22 will be described with reference to the flowchart shown in FIG.
When the data processing of the database unit 21 is performed, the data processing 223 requests the notification signal generation processing 224 to generate a notification signal. In response to the request for data processing 223 (step S1 / YES), the notification signal generation processing 224 first obtains the current time with reference to the timer 225 (step S2). Next, the notification signal generation process 224 generates a notification signal including the acquired current time as a time stamp, and transmits the generated notification signal to the processing server 30 (step S3).

次に、図11に示すフローチャートを参照しながら、処理サーバ30の制御部31の処理手順を説明する。なお、図7の説明は、表示情報更新処理316aを例にした説明であったが、以下では、表示情報更新処理316aに限定するものではないため、タイマ処理322、端末別タイムスタンプ記憶部324等、すべて符号aを削除して表記する。
制御部31は、タイマ処理322で予め設定された設定時間を計時すると(ステップS11/YES)、タイムスタンプの比較を行う。すなわち、制御部31は、共通タイムスタンプ記憶部314に記憶したタイムスタンプと、端末別タイムスタンプ記憶部324に記憶したタイムスタンプとが一致するか否かを判定する(ステップS12)。タイムスタンプが一致すると判定した場合(ステップS13/YES)、制御部31は、この処理を終了する。また、タイムスタンプが一致しないと判定した場合(ステップS13/NO)、制御部31は、データベースサーバ20に接続し、データベースサーバ20に記憶したデータを取得する(ステップS14)。データベースサーバ20からデータを取得すると、制御部31は、表示管理情報記憶部331に記憶した表示管理情報を参照して、取得したデータのうち、監視端末40に表示させるデータを選択する(ステップS15)。制御部31は、選択したデータを用いて、監視端末40に表示させる表示情報を生成する(ステップS15)。表示情報を生成すると、制御部31は、生成した表示情報を監視端末40に送信する(ステップS16)。また、制御部31は、共通タイムスタンプ記憶部314から取得したタイムスタンプを端末別タイムスタンプ記憶部324に記憶する(ステップS17)。また、ステップS13で、タイムスタンプが一致したと判定した場合(ステップS13/YES)、制御部31は、この処理を終了する。すなわち、制御部31は、データベースサーバ20に記憶したデータと、監視端末40に送信済みのデータとが一致していると判定して、処理を終了する。
Next, the processing procedure of the control unit 31 of the processing server 30 will be described with reference to the flowchart shown in FIG. 7 is an example of the display information update process 316a. However, the following description is not limited to the display information update process 316a. Therefore, the timer process 322 and the terminal-specific time stamp storage unit 324 are described below. Etc., all symbols a are deleted.
When the controller 31 measures the preset time set in the timer process 322 (step S11 / YES), it compares the time stamps. That is, the control unit 31 determines whether or not the time stamp stored in the common time stamp storage unit 314 matches the time stamp stored in the terminal time stamp storage unit 324 (step S12). If it is determined that the time stamps match (step S13 / YES), the control unit 31 ends this process. If it is determined that the time stamps do not match (step S13 / NO), the control unit 31 connects to the database server 20 and acquires data stored in the database server 20 (step S14). When the data is acquired from the database server 20, the control unit 31 refers to the display management information stored in the display management information storage unit 331, and selects the data to be displayed on the monitoring terminal 40 from the acquired data (step S15). ). The control part 31 produces | generates the display information displayed on the monitoring terminal 40 using the selected data (step S15). When the display information is generated, the control unit 31 transmits the generated display information to the monitoring terminal 40 (step S16). In addition, the control unit 31 stores the time stamp acquired from the common time stamp storage unit 314 in the terminal time stamp storage unit 324 (step S17). If it is determined in step S13 that the time stamps match (step S13 / YES), the control unit 31 ends this process. That is, the control unit 31 determines that the data stored in the database server 20 matches the data that has been transmitted to the monitoring terminal 40, and ends the process.

このように、処理サーバ30は、通知信号に含まれる、データベース部21のデータの更新時刻を示すタイムスタンプと、端末別タイムスタンプ記憶部323に記憶した、既に監視端末40に送信済みのデータのタイムスタンプとを比較する。そして、処理サーバ30は、今回、通知信号として通知されたタイムスタンプが、既に端末別タイムスタンプ記憶部323に記憶したタイムスタンプよりも新しい場合に、データベースサーバ20にアクセスして、データの取得を要求する。従って、処理サーバ30は、監視端末40に送信済みのデータが最新ではない場合にだけ、データベースサーバ20に接続するので、データベースサーバ20への無駄なアクセスの発生を低減することができる。   As described above, the processing server 30 includes the time stamp indicating the update time of the data in the database unit 21 included in the notification signal, and the data stored in the terminal time stamp storage unit 323 and already transmitted to the monitoring terminal 40. Compare the time stamp. Then, when the time stamp notified as the notification signal is newer than the time stamp already stored in the terminal time stamp storage unit 323, the processing server 30 accesses the database server 20 to acquire data. Request. Therefore, since the processing server 30 is connected to the database server 20 only when the data transmitted to the monitoring terminal 40 is not the latest, it is possible to reduce the occurrence of useless access to the database server 20.

添付図面を参照しながら実施例2について説明する。なお、実施例2の説明において、実施例1と共通する部分の説明は省略し、実施例1と相違する部分について説明する。
本実施例は、データベースサーバ20が複数のテーブルを記憶しており、データ管理部22は、テーブルごとにデータ更新を管理する。従って、データ管理部22は、データの更新処理を行ったテーブルがあると、このテーブルを識別する識別情報とタイムスタンプとを付加した通知信号を処理サーバ30に送信する。図12には、データベースサーバ20が、テーブル単位に通知信号を処理サーバ30に送信する様子を示す。
Embodiment 2 will be described with reference to the accompanying drawings. In the description of the second embodiment, the description of the parts common to the first embodiment will be omitted, and the parts different from the first embodiment will be described.
In this embodiment, the database server 20 stores a plurality of tables, and the data management unit 22 manages data update for each table. Accordingly, when there is a table for which data update processing has been performed, the data management unit 22 transmits a notification signal to which the identification information for identifying the table and a time stamp are added to the processing server 30. FIG. 12 shows a state in which the database server 20 transmits a notification signal to the processing server 30 in units of tables.

また、処理サーバ30は、データベースサーバ20から通知されるタイムスタンプをテーブル単位で管理する。共通タイムスタンプ記憶部314と端末別タイムスタンプ記憶部324の記憶領域は、図12に示すようにデータベースサーバ20の記憶するテーブル単位で分割されている。
共通タイムスタンプ記憶部314の記憶領域は、各テーブルを識別する識別番号と、各テーブルのデータが更新された更新時刻を示すタイムスタンプとを記憶する。また、端末別タイムスタンプ記憶部324の記憶領域は、各テーブルを識別する識別番号と、データの更新時刻を示すタイムスタンプとを記憶する。この更新時刻は、監視端末40に送信済みのデータであって、監視端末40への送信時刻が最も新しいデータがデータベースサーバ20にデータ更新処理で登録されたときの更新時刻を示す。
Further, the processing server 30 manages the time stamp notified from the database server 20 in units of tables. The storage areas of the common time stamp storage unit 314 and the terminal time stamp storage unit 324 are divided in units of tables stored in the database server 20 as shown in FIG.
The storage area of the common time stamp storage unit 314 stores an identification number for identifying each table and a time stamp indicating an update time when the data of each table is updated. The storage area of the time stamp storage unit 324 for each terminal stores an identification number for identifying each table and a time stamp indicating a data update time. This update time indicates the update time when data that has been transmitted to the monitoring terminal 40 and that has the latest transmission time to the monitoring terminal 40 is registered in the database server 20 in the data update process.

処理サーバ30は、予め設定された設定時間ごとに、端末別タイムスタンプ記憶部324に記憶したタイムスタンプと、共通タイムスタンプ記憶部314に記憶したスタンプとを比較する。共通タイムスタンプ記憶部314と端末別タイムスタンプ記憶部324は、データベースサーバ20の記憶するテーブル単位にタイムスタンプを記憶しているので、図12に示すように同じテーブル識別情報で登録したタイムスタンプ同士を比較する。
RAM34には、共通タイムスタンプ記憶部314と端末別タイムスタンプ記憶部324とのタイムスタンプの記憶場所を示す変数(以下、ポインタと呼ぶ)の記憶領域が用意される(図13参照)。タイムスタンプの比較の際には、図13に示すように、ポインタを使用して、同じテーブル識別情報で登録されたタイムスタンプ同士を比較する。図13には、ポインタの示す、共通タイムスタンプ記憶部314と端末別タイムスタンプ記憶部324とのテーブルBのタイムスタンプ同士を比較する様子を示す。
The processing server 30 compares the time stamp stored in the terminal time stamp storage unit 324 with the stamp stored in the common time stamp storage unit 314 for each set time set in advance. Since the common time stamp storage unit 314 and the terminal time stamp storage unit 324 store time stamps in units of tables stored in the database server 20, time stamps registered with the same table identification information as shown in FIG. Compare
In the RAM 34, a storage area for variables (hereinafter referred to as pointers) indicating the storage locations of the time stamps in the common time stamp storage unit 314 and the terminal time stamp storage unit 324 is prepared (see FIG. 13). When comparing the time stamps, as shown in FIG. 13, the time stamps registered with the same table identification information are compared using a pointer. FIG. 13 shows a state in which the time stamps of the table B in the common time stamp storage unit 314 and the terminal time stamp storage unit 324 indicated by the pointers are compared with each other.

また、データベースサーバ20は、複数のテーブルを記憶しているので、処理サーバ30にデータを送信する際に、複数のテーブルに記憶したデータを結合して1つの表にまとめたビュー表を生成し、処理サーバ30に送信してもよい。
具体的には、複数のテーブルの属性に注目し、異なるテーブルに同じ属性で登録され、さらにデータの値が同じものを結合してビュー表を生成する。図14に示す例では、テーブルAの顧客コードのデータ(図14(A)の[2610])とテーブルBの顧客コードのデータ(図14(B)の[2610])とが一致する。そこで、テーブルAの顧客コードのデータ[2610]と同じ行でテーブルAに登録したデータと、テーブルBの顧客コードのデータ[2610]と同じ行でテーブルBに登録したデータとを結合したビュー表を生成する。
同様に、図14に示す例では、テーブルAの製品コードのデータ(図14(A)の[J−6−13])と、テーブルCの製品コードのデータ(図14(C)の[J−6−13])とが一致する。そこで、テーブルAの製品コードのデータ[J−6−13]と同じ行でテーブルAに登録したデータと、テーブルCの製品コードのデータ[J−6−13]と同じ行でテーブルCに登録したデータとを結合したビュー表を生成する。
図14(D)に上述の結合によって生成されたしたビュー表の一例を示す。
Further, since the database server 20 stores a plurality of tables, when transmitting data to the processing server 30, the data stored in the plurality of tables are combined to generate a view table that is combined into one table. , It may be transmitted to the processing server 30.
Specifically, paying attention to the attributes of a plurality of tables, a view table is generated by combining those registered in different tables with the same attribute and having the same data value. In the example shown in FIG. 14, the customer code data in table A ([2610] in FIG. 14A) matches the customer code data in table B ([2610] in FIG. 14B). Therefore, a view table in which the data registered in the table A in the same row as the customer code data [2610] in the table A and the data registered in the table B in the same row as the customer code data [2610] in the table B are combined. Is generated.
Similarly, in the example shown in FIG. 14, the product code data in table A ([J-6-13] in FIG. 14A) and the product code data in table C ([J-6-13] in FIG. 14C). -6-13]). Therefore, the data registered in Table A on the same line as the product code data [J-6-13] in Table A and the data registered in Table C on the same line as the product code data [J-6-13] in Table C. Generate a view table that joins the processed data.
FIG. 14D shows an example of the view table generated by the above combination.

次に、図15に示すフローチャートを参照しながら実施例2の制御部31の処理手順を説明する。
制御部31は、予め設定された設定時間を経過する毎に(ステップS21/YES)、共通タイムスタンプ記憶部314と端末別タイムスタンプ記憶部324のタイムスタンプを比較する。まず、制御部31は、共通タイムスタンプ記憶部314のタイムスタンプの記憶場所を示すポインタと、端末別タイムスタンプ記憶部324のタイムスタンプの記憶場所を示すポインタとを0にリセットする(ステップS22)。
次に、制御部31は、ポインタの示す記憶場所がタイムスタンプの記憶場所を示しているかを判定する(ステップS23)。すなわち、共通タイムスタンプ記憶部314と、端末別タイムスタンプ記憶部324とのタイムスタンプを記憶した記憶範囲内の記憶場所をポインタが示しているかを判定する。
ポインタの示す記憶場所が、タイムスタンプを記憶した記憶範囲内の記憶場所であった場合(ステップS23/YES)、制御部31は、それぞれのポインタが示す記憶場所のタイムスタンプ同士を比較する(ステップS24)。すなわち、制御部31は、共通タイムスタンプ記憶部314のポインタが示す記憶場所に記憶したタイムスタンプと、端末別タイムスタンプ記憶部324のポインタが示す記憶場所に記憶したタイムスタンプとを比較する。両者が一致した場合には(ステップS25/YES)、制御部31は、それぞれのポインタを1インクリメントする。すなわち、共通タイムスタンプ記憶部314の記憶場所を示すポインタの値と、端末別タイムスタンプ記憶部324の記憶場所を示すポインタの値とを1インクリメントする(ステップS26)。その後、制御部31は、ステップS23からの処理を繰り返す。また、ステップS25で、タイムスタンプの値が不一致であると判定すると(ステップS25/NO)、制御部31は、データベースサーバ20に接続し、データの取得要求を送信する(ステップS27)。データベースサーバ20からデータを取得すると、制御部31は、表示管理情報を参照して、監視端末40に表示させる表示情報を生成する(ステップS28)。制御部31は、データベースサーバ20から取得したデータのうち、表示管理情報にフラグ[1]が記録された属性のデータを含む表示情報を生成する。表示情報を生成すると、制御部31は、生成した表示情報を監視端末40に表示する(ステップS29)。表示情報の送信が終了すると、制御部31は、共通タイムスタンプ記憶部314の記憶するタイムスタンプを取得し、取得したタイムスタンプを端末別タイムスタンプ記憶部324に記憶する(ステップS30)。このとき、制御部31は、ステップS25でタイムスタンプが不一致と判定したテーブルのタイムスタンプを共通タイムスタンプ記憶部314から取得する。そして、制御部31は、取得したタイムスタンプを、ステップS25で不一致と判定したテーブルのタイムスタンプを記憶する端末別タイムスタンプ記憶部324の記憶領域に記憶する。また、ステップS23で、ポインタの示す記憶場所がタイムスタンプの記憶場所を示していないと判定すると(ステップS23/NO)、制御部31は、この処理を終了する。すなわち、制御部31は、データベースサーバ20の各テーブルに登録したデータと、監視端末40に送信済みのデータとが一致していると判定して、処理を終了する。
Next, the processing procedure of the control unit 31 according to the second embodiment will be described with reference to the flowchart shown in FIG.
The control unit 31 compares the time stamps in the common time stamp storage unit 314 and the terminal time stamp storage unit 324 every time a preset set time elapses (step S21 / YES). First, the control unit 31 resets the pointer indicating the time stamp storage location of the common time stamp storage unit 314 and the pointer indicating the time stamp storage location of the terminal time stamp storage unit 324 to 0 (step S22). .
Next, the control unit 31 determines whether the storage location indicated by the pointer indicates the storage location of the time stamp (step S23). That is, it is determined whether the pointer indicates a storage location within the storage range in which the time stamps stored in the common time stamp storage unit 314 and the terminal time stamp storage unit 324 are stored.
When the storage location indicated by the pointer is a storage location within the storage range storing the time stamp (step S23 / YES), the control unit 31 compares the time stamps of the storage location indicated by the respective pointers (step S23). S24). That is, the control unit 31 compares the time stamp stored in the storage location indicated by the pointer of the common time stamp storage unit 314 with the time stamp stored in the storage location indicated by the pointer of the time stamp storage unit 324 for each terminal. If the two match (step S25 / YES), the control unit 31 increments each pointer by one. That is, the pointer value indicating the storage location of the common time stamp storage unit 314 and the pointer value indicating the storage location of the terminal time stamp storage unit 324 are incremented by 1 (step S26). Then, the control part 31 repeats the process from step S23. If it is determined in step S25 that the time stamp values do not match (step S25 / NO), the control unit 31 connects to the database server 20 and transmits a data acquisition request (step S27). If data is acquired from the database server 20, the control part 31 will produce | generate the display information displayed on the monitoring terminal 40 with reference to display management information (step S28). The control part 31 produces | generates the display information containing the data of the attribute by which flag [1] was recorded on display management information among the data acquired from the database server 20. FIG. When the display information is generated, the control unit 31 displays the generated display information on the monitoring terminal 40 (step S29). When the transmission of the display information is completed, the control unit 31 acquires the time stamp stored in the common time stamp storage unit 314, and stores the acquired time stamp in the terminal time stamp storage unit 324 (step S30). At this time, the control unit 31 acquires, from the common time stamp storage unit 314, the time stamp of the table that has been determined that the time stamps do not match in step S25. And the control part 31 memorize | stores the acquired time stamp in the memory | storage area | region of the time stamp memory | storage part 324 classified by terminal which memorize | stores the time stamp of the table determined to be inconsistent by step S25. If it is determined in step S23 that the storage location indicated by the pointer does not indicate the storage location of the time stamp (step S23 / NO), the control unit 31 ends this process. That is, the control unit 31 determines that the data registered in each table of the database server 20 matches the data already transmitted to the monitoring terminal 40, and ends the process.

このように、処理サーバ30は、今回、データベースサーバ20から通知されたタイムスタンプが、既に端末別タイムスタンプ記憶部323に記憶したタイムスタンプよりも新しい場合に、データベースサーバ20にアクセスして、データを取得する。従って、処理サーバ30は、監視端末40に送信済みのデータが最新のデータではない場合にだけ、データベースサーバ20に接続するので、データベースサーバ20への無駄なアクセスの発生を低減することができる。   In this way, the processing server 30 accesses the database server 20 when the time stamp notified from the database server 20 this time is newer than the time stamp already stored in the terminal time stamp storage unit 323, and To get. Therefore, since the processing server 30 is connected to the database server 20 only when the data transmitted to the monitoring terminal 40 is not the latest data, it is possible to reduce the occurrence of useless access to the database server 20.

添付図面を参照しながら実施例3について説明する。なお、実施例3の説明においては、実施例1と共通する部分の説明は省略し、実施例1と相違する部分について説明する。
本実施例は、テーブルに登録したデータの属性を単位として、データの更新を管理する。すなわち、データ管理部22は、同じテーブルに、同じ属性で記憶したデータに更新があると、タイムスタンプを含む通知信号を処理サーバ30に送信する。なお、通知信号には、タイムスタンプの他に、テーブルを識別するテーブル識別情報と、属性を識別する属性情報とが含まれる。
図16には、データベースサーバ20の記憶するテーブルA,Bと、処理サーバ30の共通タイムスタンプ記憶部314と端末別タイムスタンプ記憶部324とに記憶するデータの例を示す。図16に示すように処理サーバ30の共通タイムスタンプ記憶部314と端末別タイムスタンプ記憶部324との各記憶領域には、テーブルを識別するテーブル識別情報と、属性情報と、この属性でテーブルに登録したデータの更新時刻を示すタイムスタンプとが記憶される。
処理サーバ30は、共通タイムスタンプ記憶部314と端末別タイムスタンプ記憶部324とに同じテーブル識別情報と属性情報とで記憶したタイムスタンプ同士を比較して、その属性情報が示すデータベースサーバ20のデータに更新があるか否かを判定する。
なお、データベースサーバ20に記憶した全てのテーブルで属性を単位にデータ更新を管理しなくてもよい。例えば、テーブルAは、属性を単位にデータの更新を管理し、テーブルBは、実施例2のようにテーブル単位にデータの更新を管理してもよい。
Embodiment 3 will be described with reference to the accompanying drawings. In the description of the third embodiment, the description of the parts common to the first embodiment will be omitted, and the parts different from the first embodiment will be described.
In this embodiment, data update is managed in units of data attributes registered in the table. That is, when there is an update to data stored with the same attribute in the same table, the data management unit 22 transmits a notification signal including a time stamp to the processing server 30. In addition to the time stamp, the notification signal includes table identification information for identifying a table and attribute information for identifying an attribute.
FIG. 16 shows an example of data stored in the tables A and B stored in the database server 20, the common time stamp storage unit 314 and the terminal time stamp storage unit 324 of the processing server 30. As shown in FIG. 16, each storage area of the common time stamp storage unit 314 and the terminal time stamp storage unit 324 of the processing server 30 includes table identification information for identifying a table, attribute information, and this attribute. A time stamp indicating the update time of the registered data is stored.
The processing server 30 compares the time stamps stored in the common time stamp storage unit 314 and the terminal time stamp storage unit 324 with the same table identification information and attribute information, and the data of the database server 20 indicated by the attribute information It is determined whether or not there is an update.
In addition, it is not necessary to manage data update in units of attributes in all tables stored in the database server 20. For example, the table A may manage data update in units of attributes, and the table B may manage data updates in table units as in the second embodiment.

また、処理サーバ30のRAM34には、結合管理情報を記憶している。上述した実施例2のデータベースサーバ20は、複数のテーブルに登録したデータの属性に注目し、属性が同じであってさらにデータ自体も同じものを結合してビュー表を生成していた。本実施例は、データ同士を結合させる属性を記憶した結合管理情報を処理サーバ30のRAM34に記憶しておく。図17に結合管理情報の一例を示す。結合管理情報には、異なるテーブルに登録されたデータ同士を結合してビュー表を作成するときに、データ同士を結合するキーとなる属性(以下、結合属性という)が記録される。具体的には、図17に示すように各テーブルに登録された属性と、各属性が結合属性かそれ以外の属性であるかを示すフラグとが記録される。フラグとして[1]が記録された属性が、結合属性であることを示している。
処理サーバ30は、データベースサーバ20にデータの取得要求を送信するか否かを判定するときに、この結合管理情報を参照して、結合属性として登録されたデータに更新があるか否かを判定する。そして、処理サーバ30は、更新されたデータが、結合属性として結合管理情報に登録された属性のデータである場合には、データベースサーバ20にデータの取得要求を送信する。属性が結合属性のデータであった場合、ビュー表の構成自体が変更になるため、処理サーバ30は、データベースサーバ20にデータの取得を要求する。
Further, the management information is stored in the RAM 34 of the processing server 30. The database server 20 of the above-described second embodiment pays attention to the attributes of data registered in a plurality of tables, and generates a view table by combining the same attributes and the same data itself. In this embodiment, the combination management information storing the attribute for combining data is stored in the RAM 34 of the processing server 30. FIG. 17 shows an example of the combination management information. In the join management information, an attribute (hereinafter referred to as a join attribute) serving as a key for joining data when creating a view table by joining data registered in different tables is recorded. Specifically, as shown in FIG. 17, an attribute registered in each table and a flag indicating whether each attribute is a combined attribute or other attributes are recorded. The attribute recorded with [1] as a flag indicates that it is a combined attribute.
When determining whether or not to send a data acquisition request to the database server 20, the processing server 30 refers to this combination management information and determines whether or not the data registered as the combination attribute has been updated. To do. Then, when the updated data is data having an attribute registered in the combined management information as a combined attribute, the processing server 30 transmits a data acquisition request to the database server 20. If the attribute is combined attribute data, the configuration of the view table itself is changed, so the processing server 30 requests the database server 20 to acquire data.

さらに、本実施例は、監視端末40に表示情報として表示させるデータに更新があった場合にも、データベースサーバ20に接続して、データベースサーバ20にデータの取得を要求する。具体的には、制御部31は、データ更新されたデータの属性を検出し、図8に示す表示管理情報を参照して、検出した属性が表示管理情報に表示させる属性として登録された属性であるか否かを判定する。処理サーバ30は、更新されたデータが、監視端末40に表示するデータとして表示管理情報に登録されたデータであった場合に、データベースサーバ20にデータの取得を要求する。   Further, in this embodiment, even when data to be displayed as display information on the monitoring terminal 40 is updated, the database server 20 is connected to request acquisition of data from the database server 20. Specifically, the control unit 31 detects an attribute of the updated data, refers to the display management information shown in FIG. 8, and registers the detected attribute as an attribute to be displayed in the display management information. It is determined whether or not there is. If the updated data is data registered in the display management information as data to be displayed on the monitoring terminal 40, the processing server 30 requests the database server 20 to acquire data.

次に、図18に示すフローチャートを参照しながら実施例3の制御部31の処理手順を説明する。なお、ステップS35までの処理は、上述した実施例2と同一であるので説明を省略する。
制御部31は、ポインタの示す、共通タイムスタンプ記憶部314の記憶場所に記憶したタイムスタンプと、ポインタの示す、端末別タイムスタンプ記憶部324の記憶場所に記憶したタイムスタンプとを比較する(ステップS35)。両者が一致しなかった場合(ステップS35/NO)、制御部31は、タイムスタンプが不一致で更新があったと判定したデータの属性が、表示管理情報に、監視端末40に表示させる属性として登録された属性であるか否かを判定する(ステップS36)。更新されたデータの属性が、表示管理情報に、表示させる属性として登録されていた場合には(ステップS36/YES)、処理サーバ30は、データベースサーバ20に接続し、データの取得を要求する(ステップS39)。
Next, a processing procedure of the control unit 31 according to the third embodiment will be described with reference to a flowchart illustrated in FIG. Note that the processing up to step S35 is the same as that of the above-described second embodiment, and a description thereof will be omitted.
The control unit 31 compares the time stamp stored in the storage location of the common time stamp storage unit 314 indicated by the pointer with the time stamp stored in the storage location of the terminal-specific time stamp storage unit 324 indicated by the pointer (Step S31). S35). When the two do not match (step S35 / NO), the control unit 31 registers the attribute of the data determined to have been updated due to the time stamp mismatch as the attribute to be displayed on the monitoring terminal 40 in the display management information. It is determined whether or not the attribute is the same attribute (step S36). If the updated data attribute is registered as an attribute to be displayed in the display management information (step S36 / YES), the processing server 30 connects to the database server 20 and requests data acquisition ( Step S39).

また、タイムスタンプが不一致で更新があったと判定したデータの属性が、表示管理情報に、表示させる属性として登録されていなかった場合(ステップS36/NO)、制御部31は、次の判定に移行する。次の判定では、制御部31は、タイムスタンプが不一致で更新があったと判定したデータの属性が、結合管理情報に、結合属性として登録された属性であるか否かを判定する(ステップS37)。更新されたデータの属性が、結合管理情報に、結合属性として登録された属性として登録されていた場合には(ステップS37/YES)、処理サーバ30は、データベースサーバ20に接続し、データの取得を要求する(ステップS39)。また、更新されたデータの属性が、結合管理情報に、結合属性として登録されていなかった場合(ステップS37/NO)、制御部31は、それぞれのポインタを1インクリメントする。すなわち、制御部31は、共通タイムスタンプ記憶部314の記憶場所を示すポインタの値と、端末別タイムスタンプ記憶部324の記憶場所を示すポインタの値とを1インクリメントする(ステップS38)。その後、制御部31は、ステップS23からの処理を繰り返す。
なお、ステップS39でデータベースサーバ20に接続し、データベースサーバ20にデータの取得を要求した後の処理手順は、図15に示す手順と同一であるため説明を省略する。
If the attribute of the data determined to have been updated due to a mismatch in time stamp is not registered as an attribute to be displayed in the display management information (step S36 / NO), the control unit 31 proceeds to the next determination. To do. In the next determination, the control unit 31 determines whether or not the attribute of the data determined to have been updated because the time stamps do not match is an attribute registered as a combined attribute in the combined management information (step S37). . When the attribute of the updated data is registered as the attribute registered as the combination attribute in the combination management information (step S37 / YES), the processing server 30 connects to the database server 20 and acquires the data. Is requested (step S39). If the updated data attribute is not registered as a combined attribute in the combined management information (step S37 / NO), the control unit 31 increments each pointer by one. That is, the control unit 31 increments the pointer value indicating the storage location of the common time stamp storage unit 314 and the pointer value indicating the storage location of the terminal time stamp storage unit 324 by 1 (step S38). Then, the control part 31 repeats the process from step S23.
Note that the processing procedure after connecting to the database server 20 in step S39 and requesting the database server 20 to acquire data is the same as the procedure shown in FIG.

データベースサーバ20も、上述した結合管理情報をデータ管理部22に記憶している。データ管理部22は、結合管理情報に基づいて異なるテーブルに登録されたデータ同士を結合したビュー表を生成して、処理サーバ30に送信する。
なおビュー表の作成を、処理サーバ30で行ってもよい。例えば、処理サーバ30がSQL(Structured Query Language)文を生成してデータベースサーバ20に送信し、データベースサーバ20からビュー表の生成に必要なデータを取得する。処理サーバ30は、取得したデータを使用してビュー表を生成する。このような場合であっても、処理サーバ30は、結合属性のデータに更新があったとき、又は監視端末40に表示させる属性のデータに更新があったときだけデータベースサーバ20からデータを取得すればよいので、SQL文の発行回数を低減することができる。
The database server 20 also stores the above-described combination management information in the data management unit 22. The data management unit 22 generates a view table that combines data registered in different tables based on the combination management information, and transmits the view table to the processing server 30.
The view table may be created by the processing server 30. For example, the processing server 30 generates an SQL (Structured Query Language) statement and transmits it to the database server 20, and acquires data necessary for generating a view table from the database server 20. The processing server 30 generates a view table using the acquired data. Even in such a case, the processing server 30 acquires data from the database server 20 only when the data of the binding attribute is updated or when the data of the attribute displayed on the monitoring terminal 40 is updated. As a result, the number of SQL statements issued can be reduced.

このように本実施例は、データベースサーバ20の記憶するデータに更新があっても、更新されたデータが監視端末40に表示させるデータではなかった場合には、データベースサーバ20にデータの取得を要求しない。同様に、データベースサーバ20の記憶するデータに更新があっても、更新されたデータがビュー表を生成する際に結合するデータではなかった場合には、データベースサーバ20にデータの取得を要求しない。従って、処理サーバ30は、ビュー表として監視端末に表示させるデータ、又はビュー表の構成が変更されるデータがデータベースサーバ20で更新された場合にだけ、データベースサーバ20に接続する。このため、処理サーバ30がデータベースサーバ20に接続し、データベースサーバ20からデータを取得する回数をさらに低減することができる。   As described above, in this embodiment, even if the data stored in the database server 20 is updated, if the updated data is not the data to be displayed on the monitoring terminal 40, the database server 20 is requested to acquire the data. do not do. Similarly, even if the data stored in the database server 20 is updated, if the updated data is not data that is combined when the view table is generated, the database server 20 is not requested to acquire data. Accordingly, the processing server 30 connects to the database server 20 only when data to be displayed on the monitoring terminal as a view table or data in which the configuration of the view table is changed is updated in the database server 20. For this reason, the number of times that the processing server 30 connects to the database server 20 and acquires data from the database server 20 can be further reduced.

上述した実施例は、本発明の好適な実施の例である。但し、これに限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変形実施が可能である。例えば、上述した実施例1〜3では、データベースサーバ20のデータ更新をタイムスタンプに基づいて判定していたが、データの更新処理の度に値が1加算される番号をデータ管理部22で発行してもよい。処理サーバ30は、データベースサーバ20から通知信号として通知された番号と、既に端末別タイムスタンプ記憶部324に記憶している番号とを比較し、通知信号として通知された番号の方が大きい場合に、データの更新があったと判定する。   The embodiment described above is a preferred embodiment of the present invention. However, the present invention is not limited to this, and various modifications can be made without departing from the scope of the present invention. For example, in the first to third embodiments described above, the data update of the database server 20 is determined based on the time stamp. However, the data management unit 22 issues a number that is incremented by 1 every time the data is updated. May be. The processing server 30 compares the number notified as the notification signal from the database server 20 with the number already stored in the terminal-specific time stamp storage unit 324, and when the number notified as the notification signal is larger It is determined that the data has been updated.

なお、図11、15、18のフローチャートに示す処理は、プログラム制御されたコンピュータによって実現される。処理内容を記述したプログラムは、コンピュータで読み取り可能な記録媒体に記録しておくこともできる。すなわち、処理サーバ30の制御部31の機能を実現するためのソフトウェアのプログラムが記録されている記録媒体を、処理サーバ30に供給し、CPU32が記憶媒体に格納されたプログラムを読み出し実行することによっても、上記実施例と同様の効果を奏する。プログラムを供給するための記憶媒体としては、例えば、CD−ROM(Compact Disc Read Only Memory)、DVD(Digital Versatile Disc)、又はSD(Secure Digital memory card)カードなどがある。   The processes shown in the flowcharts of FIGS. 11, 15, and 18 are realized by a program-controlled computer. The program describing the processing contents can be recorded on a computer-readable recording medium. That is, a recording medium on which a software program for realizing the function of the control unit 31 of the processing server 30 is recorded is supplied to the processing server 30, and the CPU 32 reads and executes the program stored in the storage medium. Also, the same effects as in the above-described embodiment can be obtained. Examples of the storage medium for supplying the program include a CD-ROM (Compact Disc Read Only Memory), a DVD (Digital Versatile Disc), and an SD (Secure Digital memory card) card.

また、上述した実施例では、処理サーバ30が、データベースサーバ20でデータ更新が行われているか否かを判定し、データ更新が行われている場合に、データベースサーバ20からデータを取得して監視端末40に送信していた。
これ以外に、処理サーバ30は、監視端末40からの問いあわせを受信した場合に、データベースサーバ20でデータ更新が行われているか否かを判定するようにしてもよい。データ更新が行われていると判定した場合には、処理サーバ30は、データベースサーバ20に接続してデータを取得し、取得したデータを監視端末40に送信する。
Further, in the above-described embodiment, the processing server 30 determines whether or not the data update is performed in the database server 20, and acquires and monitors data from the database server 20 when the data update is performed. It was transmitted to the terminal 40.
In addition to this, the processing server 30 may determine whether or not the data update is performed in the database server 20 when an inquiry from the monitoring terminal 40 is received. If it is determined that data update is being performed, the processing server 30 connects to the database server 20 to acquire data, and transmits the acquired data to the monitoring terminal 40.

11 入力端末
20 データベースサーバ
21 データベース部
22 データ管理部
30 処理サーバ
40 監視端末
314 共通タイムスタンプ記憶部
321 判定処理
322 タイマ処理
323 要求出力処理
324 端末別タイムスタンプ記憶部
330 表示情報生成処理
331 表示管理情報記憶部
DESCRIPTION OF SYMBOLS 11 Input terminal 20 Database server 21 Database part 22 Data management part 30 Processing server 40 Monitoring terminal 314 Common time stamp memory | storage part 321 Judgment process 322 Timer process 323 Request output process 324 Terminal time stamp memory | storage part 330 Display information generation process 331 Display management Information storage unit

Claims (5)

コンピュータを、データベースからデータを取得して、端末に送信するデータベースアクセスシステムとして機能させるデータベースアクセスプログラムであって、
前記コンピュータを、
前記データベースを管理するデータベース管理装置から、前記データベースのデータ更新を通知する通知情報を受信する受信手段と、
前記受信手段で受信した前記通知情報に含まれる、前記データベースのデータの更新時刻情報を第1記憶手段に記憶させる処理手段と、
最後に端末にデータを送信した送信時刻情報を記憶した第2記憶手段に記憶した前記送信時刻情報と、前記第1記憶手段に記憶した前記更新時刻情報とを比較して、前記送信時刻よりも後に前記データベースのデータ更新が行われているか否かを判定する判定手段と、
前記判定手段により、前記送信時刻よりも後に前記データベースのデータ更新が行われていると判定した場合に、前記データベース管理装置にデータの取得要求を出力する出力手段として機能させる、データベースアクセスプログラム。
A database access program for causing a computer to function as a database access system that acquires data from a database and transmits the data to a terminal,
The computer,
Receiving means for receiving notification information for notifying data update of the database from a database management device for managing the database;
Processing means for storing update time information of data in the database included in the notification information received by the receiving means in a first storage means;
Finally, the transmission time information stored in the second storage means that stores the transmission time information that transmitted the data to the terminal is compared with the update time information stored in the first storage means, and the transmission time information Determination means for determining whether data update of the database is performed later;
A database access program that causes the database management device to function as an output unit that outputs a data acquisition request when it is determined by the determination unit that data update of the database is performed after the transmission time.
前記判定手段は、端末の表示部に表示させるデータを記憶した第3記憶手段を参照して、前記送信時刻よりも後に、前記表示部に表示させるデータのデータ更新が行われたか否かを判定し、
前記出力手段は、前記送信時刻よりも後に、前記表示部に表示させるデータのデータ更新が行われた場合に、前記データ管理装置にデータの取得要求を出力する、請求項1記載のデータベースアクセスプログラム。
The determination unit refers to a third storage unit that stores data to be displayed on the display unit of the terminal, and determines whether data to be displayed on the display unit has been updated after the transmission time. And
The database access program according to claim 1, wherein the output means outputs a data acquisition request to the data management device when data update of data to be displayed on the display unit is performed after the transmission time. .
前記処理手段は、データ更新が行われた場合に前記データベース管理装置から前記通知情報として通知される、前記データ更新で更新されたデータの属性を示す属性情報を前記第1記憶手段に記憶させ、
前記判定手段手段は、データを登録する複数のテーブルにそれぞれ登録された1件分のデータのうち、属性と値とが同一のデータ同士を結合して新たな1件分のデータを生成する結合処理の際に使用する、結合させるデータの属性を記憶した第4記憶手段を参照して、前記送信時刻よりも後に、前記結合させる属性のデータのデータ更新が行われたか否かを判定し、
前記出力手段は、前記送信時刻よりも後に、前記結合させる属性のデータのデータ更新が行われた場合に、前記データ管理装置にデータの取得要求を出力する、請求項1又は2記載のデータベースアクセスプログラム。
The processing means stores, in the first storage means, attribute information indicating an attribute of data updated by the data update, which is notified as the notification information from the database management apparatus when data update is performed,
The determination means is a combination that generates data for one new data by combining data having the same attribute and value among data for one data registered in a plurality of tables for registering data. Refer to the fourth storage means that stores the attribute of the data to be combined, which is used in the process, and determine whether or not the data update of the attribute data to be combined has been performed after the transmission time,
The database access according to claim 1 or 2, wherein the output means outputs a data acquisition request to the data management device when data of the attribute data to be combined is updated after the transmission time. program.
データベースを管理するデータベース管理装置から、前記データベースのデータ更新を通知する通知情報を受信する受信手段と、
前記受信手段で受信した前記通知情報に含まれる、前記データベースのデータの更新時刻情報を第1記憶手段に記憶させる処理手段と、
最後に端末にデータを送信した送信時刻情報を記憶した第2記憶手段に記憶した前記送信時刻情報と、前記第1記憶手段に記憶した前記更新時刻情報とを比較して、前記送信時刻よりも後に前記データベースのデータ更新が行われているか否かを判定する判定手段と、
前記判定手段により、前記送信時刻よりも後に前記データベースのデータ更新が行われていると判定した場合に、前記データベース管理装置にデータの取得要求を出力する出力手段とを備えるデータ取得装置。
Receiving means for receiving notification information for notifying data update of the database from a database management device for managing the database;
Processing means for storing update time information of data in the database included in the notification information received by the receiving means in a first storage means;
Finally, the transmission time information stored in the second storage means that stores the transmission time information that transmitted the data to the terminal is compared with the update time information stored in the first storage means, and the transmission time information Determination means for determining whether data update of the database is performed later;
A data acquisition apparatus comprising: output means for outputting a data acquisition request to the database management apparatus when the determination means determines that data update of the database is performed after the transmission time.
データベースからデータを取得して、端末に送信するデータ取得装置によって実行されるデータベースアクセス方法であって、
前記データベースを管理するデータベース管理装置から、前記データベースのデータ更新を通知する通知情報を受信する受信ステップと、
前記受信ステップで受信した前記通知情報に含まれる、前記データベースのデータの更新時刻情報を第1記憶手段に記憶させる処理ステップと、
最後に端末にデータを送信した送信時刻情報を記憶した第2記憶手段に記憶した前記送信時刻情報と、前記第1記憶手段に記憶した前記更新時刻情報とを比較して、前記送信時刻よりも後に前記データベースのデータ更新が行われているか否かを判定する判定ステップと、
前記判定ステップにより、前記送信時刻よりも後に前記データベースのデータ更新が行われていると判定した場合に、前記データベース管理装置にデータの取得要求を出力する出力ステップとを有するデータベースアクセス方法。
A database access method executed by a data acquisition device that acquires data from a database and transmits the data to a terminal,
Receiving step of receiving notification information for notifying data update of the database from a database management device that manages the database;
A processing step of storing update time information of data in the database included in the notification information received in the receiving step in a first storage unit;
Finally, the transmission time information stored in the second storage means that stores the transmission time information that transmitted the data to the terminal is compared with the update time information stored in the first storage means, and the transmission time information A determination step of determining whether data update of the database is performed later;
A database access method comprising: an output step of outputting a data acquisition request to the database management device when it is determined in the determination step that data update of the database is performed after the transmission time.
JP2009163680A 2009-07-10 2009-07-10 Database access program, data acquisition device, and database access method Expired - Fee Related JP5321302B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009163680A JP5321302B2 (en) 2009-07-10 2009-07-10 Database access program, data acquisition device, and database access method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009163680A JP5321302B2 (en) 2009-07-10 2009-07-10 Database access program, data acquisition device, and database access method

Publications (2)

Publication Number Publication Date
JP2011019161A true JP2011019161A (en) 2011-01-27
JP5321302B2 JP5321302B2 (en) 2013-10-23

Family

ID=43596601

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009163680A Expired - Fee Related JP5321302B2 (en) 2009-07-10 2009-07-10 Database access program, data acquisition device, and database access method

Country Status (1)

Country Link
JP (1) JP5321302B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017526249A (en) * 2014-07-07 2017-09-07 アセンシア・ディアベティス・ケア・ホールディングス・アーゲー Method and apparatus for improved low energy data communication
CN112818059A (en) * 2021-01-27 2021-05-18 百果园技术(新加坡)有限公司 Information real-time synchronization method and device based on container release platform
US11253175B2 (en) 2010-11-11 2022-02-22 Ascensia Diabetes Care Holdings Ag Apparatus, systems, and methods having common electronic architecture for communicating analyte data
US11361863B2 (en) 2015-04-29 2022-06-14 Ascensia Diabetes Care Holdings Ag Location-based wireless diabetes management systems, methods and apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10240605A (en) * 1997-02-26 1998-09-11 Mitsubishi Electric Corp Information communication system
JP2000112810A (en) * 1998-10-06 2000-04-21 Casio Comput Co Ltd Data terminal device, server device, and storage medium
JP2009059083A (en) * 2007-08-30 2009-03-19 Hitachi Ltd Automatic ticketing system
JP2009099007A (en) * 2007-10-18 2009-05-07 Fuji Xerox Co Ltd Service server, update information management server, service system, service program and update information management program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10240605A (en) * 1997-02-26 1998-09-11 Mitsubishi Electric Corp Information communication system
JP2000112810A (en) * 1998-10-06 2000-04-21 Casio Comput Co Ltd Data terminal device, server device, and storage medium
JP2009059083A (en) * 2007-08-30 2009-03-19 Hitachi Ltd Automatic ticketing system
JP2009099007A (en) * 2007-10-18 2009-05-07 Fuji Xerox Co Ltd Service server, update information management server, service system, service program and update information management program

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11253175B2 (en) 2010-11-11 2022-02-22 Ascensia Diabetes Care Holdings Ag Apparatus, systems, and methods having common electronic architecture for communicating analyte data
JP2017526249A (en) * 2014-07-07 2017-09-07 アセンシア・ディアベティス・ケア・ホールディングス・アーゲー Method and apparatus for improved low energy data communication
US10582361B2 (en) 2014-07-07 2020-03-03 Ascensia Diabetes Care Holdings Ag Device pairing taking into account at least one condition
JP2020205596A (en) * 2014-07-07 2020-12-24 アセンシア・ディアベティス・ケア・ホールディングス・アーゲー Methods and apparatus for improved low energy data communications
US11064334B2 (en) 2014-07-07 2021-07-13 Ascensia Diabetes Care Holdings Ag Device pairing with a dual use piezoelectric acoustic component and vibration sensor
US11399269B2 (en) 2014-07-07 2022-07-26 Ascensia Diabetes Care Holdings Ag Device pairing taking into account at least one condition
US11361863B2 (en) 2015-04-29 2022-06-14 Ascensia Diabetes Care Holdings Ag Location-based wireless diabetes management systems, methods and apparatus
CN112818059A (en) * 2021-01-27 2021-05-18 百果园技术(新加坡)有限公司 Information real-time synchronization method and device based on container release platform
CN112818059B (en) * 2021-01-27 2024-05-17 百果园技术(新加坡)有限公司 Information real-time synchronization method and device based on container release platform

Also Published As

Publication number Publication date
JP5321302B2 (en) 2013-10-23

Similar Documents

Publication Publication Date Title
RU2422882C2 (en) System, apparatus and method for dynamic setup and configuration of applications
US11288289B2 (en) Multi-tenant data integration
CN112699151B (en) Data processing method, device, equipment and medium
CN111666326A (en) ETL scheduling method and device
JP5321302B2 (en) Database access program, data acquisition device, and database access method
CN113658591B (en) Voice interaction adaptation system for intelligent home
CN114741396B (en) A data service processing method, device, electronic equipment, and storage medium
CN115114044B (en) Message pushing method, device, equipment and medium
CN107491463B (en) Optimization method and system for data query
CN105813102B (en) Automatic test system and method
CN103793247A (en) Diagnosis device software updating method and device
WO2003040961A1 (en) Method for registering and searching user’s position informationm and system thereof
CN106341449B (en) Method of data synchronization and device
US20150177015A1 (en) Information management system and information management program storage medium
JP2013033421A (en) Application providing system and application providing method
JP2002352025A (en) Method, system, and program for coping with repair of household electric appliances, recording medium with this program recorded, method, server, and program for accepting repair of them, recording medium with this program recorded, method and program for requesting repair of them, recording medium with this program recorded, method and program for registering allowable repair date, recording medium with this program recorded, domestic communication terminal, communication device for fault information of them, database for store, and communication terminal for store
JP2018133113A (en) Communication terminal, conversion measurement method and conversion measurement system
US20050132082A1 (en) System and method for resuming downloading from interruption points
JPH1196014A (en) Apparatus and method for delivering program parts
JP2001216235A (en) Distribution service method for map relating data
JP2004326039A (en) Facility information service system, and center and terminal device constituting the same system
US8359383B2 (en) Ubiquitous service framework system for supporting service in multiple domain and method thereof
CN113515305A (en) Configuration information determining method, configuration snapshot generating method and device
JP2004110241A (en) Sales support system
JP2006085283A (en) Knowledge delivery program, knowledge providing device, knowledge providing lan system, and knowledge providing system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120405

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130612

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130618

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130701

R150 Certificate of patent or registration of utility model

Ref document number: 5321302

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees