JP2008299450A - Database system and data management method - Google Patents

Database system and data management method Download PDF

Info

Publication number
JP2008299450A
JP2008299450A JP2007142659A JP2007142659A JP2008299450A JP 2008299450 A JP2008299450 A JP 2008299450A JP 2007142659 A JP2007142659 A JP 2007142659A JP 2007142659 A JP2007142659 A JP 2007142659A JP 2008299450 A JP2008299450 A JP 2008299450A
Authority
JP
Japan
Prior art keywords
data
data server
servers
client terminal
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2007142659A
Other languages
Japanese (ja)
Inventor
Satoshi Tanaka
聡 田中
Hiroaki Tanaka
宏明 田中
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2007142659A priority Critical patent/JP2008299450A/en
Publication of JP2008299450A publication Critical patent/JP2008299450A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a database system and a data management method for reducing a transmission load to a communication network by dispensing with data matching among a plurality of data servers while maintaining the backup of data by the data servers. <P>SOLUTION: For managing data records having a plurality of fields while making into a database, data servers are installed corresponding to the field values of at least two fields so that a data server group can be configured. In the case of registering data records from a client terminal, the data records are registered in all the data servers in the data server group corresponding to the field values of the data records, and one data server is selected as the object of retrieval based on a predetermined priority order from among the data servers, and retrieval is performed in the case of retrieval. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、データベースシステム及びデータ管理方法に係り、特に、複数のデータサーバとこれらに共通にネットワーク接続されたクライアント端末を用いたデータベースシステム及びデータ管理方法に関する。   The present invention relates to a database system and a data management method, and more particularly, to a database system and a data management method using a plurality of data servers and client terminals commonly connected to these data servers.

データサーバ及びクライアント端末間を通信ネットワークにより相互に接続し、特定のテーマに沿ったデータをデータサーバに構造的に蓄積管理してクライアント端末からの検索や抽出等の再利用を容易にしたデータベースシステムが広く用いられるようになった。従来より、この種のシステムにおいては1台のデータサーバで全体のデータを蓄積管理しながら、複数台のクライアント端末によりデータの登録や検索を行なうように構成されることが多い。   A database system in which a data server and a client terminal are connected to each other by a communication network, and data according to a specific theme is structurally stored and managed in the data server to facilitate the reuse and retrieval from the client terminal. Became widely used. Conventionally, this type of system is often configured to register and search data by a plurality of client terminals while storing and managing the entire data with one data server.

一方、複数台のデータサーバを使用する場合、例えば2台のデータサーバを用いて可用性を高める場合等では、1台はマスター用、また他の1台はバックアップ用とし、マスター用のデータサーバが使用できなくなった場合には、バックアップ用のサーバはその機能を引き継いで動作できるように、マスター用のデータサーバからすべてのデータをコピーするなどして、両データサーバ間のデータ整合が絶え間なく行なわれる。このため、データサーバ間の接続を含む通信ネットワーク全体も、瞬時の伝送負荷に耐える十分な容量を確保する必要がある。   On the other hand, when using a plurality of data servers, for example, when using two data servers to increase availability, one is for the master and the other is for backup, and the master data server is If it becomes unusable, the backup server can continuously take over its functions, and all data is copied from the master data server, for example. It is. For this reason, the entire communication network including the connection between the data servers needs to secure a sufficient capacity to withstand the instantaneous transmission load.

また、データサーバの処理負荷や通信ネットワーク内での特にデータサーバ周辺へのトラフィックの集中等を分散させるために、複数台のデータサーバを使用する場合もある。この場合には、例えばデータサーバ数やクライアント端末数の増大等に伴ってシステム全体が大規模化するにつれ、処理負荷の観点からすべてのデータサーバの内容を同一に整合することは難しくなり、不整合を生じる可能性も高くなる。このため、複数台のデータサーバにデータを分散してそれぞれに異なるデータを管理する手法も採用される。   In some cases, a plurality of data servers are used in order to distribute the processing load of the data server and the concentration of traffic especially around the data server in the communication network. In this case, for example, as the entire system becomes larger with an increase in the number of data servers and client terminals, it becomes difficult to match the contents of all the data servers from the viewpoint of processing load. There is also a high probability of matching. For this reason, a method of distributing data to a plurality of data servers and managing different data for each is also adopted.

例えば、インターネット上でドメイン名とIPアドレスとの対応付けを管理しているDNS(Domain Name System)においては、例えばkaisha.co.jpの様なドメイン名に対して、ルートを管理するサーバ、jpを管理するサーバ、co.jpを管理するサーバ、及びkaisha.co.jpを管理するサーバといった、階層化されたサーバ構成の中にデータを分散している。そして、ドメイン名からIPアドレスを得るべくDNSを検索する際は、検索キーとしてドメイン名(例えばkaisha.co.jp)を指定すれば、データが複数台のサーバに分散していても、対象データを蓄積管理しているサーバを特定することができる。   For example, in the DNS (Domain Name System) that manages the association between domain names and IP addresses on the Internet, for example, kaisha. co. For a domain name such as jp, a server that manages the route, a server that manages jp, co. jp managing server, and kaisha. co. Data is distributed in a hierarchical server configuration such as a server that manages jp. When searching for a DNS to obtain an IP address from a domain name, if the domain name (for example, kaisha.co.jp) is specified as a search key, the target data can be obtained even if the data is distributed to a plurality of servers. Can be identified.

なお、複数台のデータサーバ間におけるデータの整合性の維持については、例えば、特許文献1に述べられている。
特開平11−249943号公報(第8ページ、図1)
Note that the maintenance of data consistency among a plurality of data servers is described in Patent Document 1, for example.
Japanese Patent Laid-Open No. 11-249943 (page 8, FIG. 1)

ところで、データサーバ内にデータベース化されて蓄積管理されるデータの1件分は、例えばデータレコードと呼ばれ、一般には複数のフィールドから構成される。フィールドはそれぞれに特定の属性を有し、その属性に応じて種々のフィールド値を持つ。例えば、作業員の活動位置情報を管理する事例では、1件のデータレコードを一人の作業員に対応させ、作業員名、所属組織、活動地域(都道府県名)、詳細情報等のフィールドにより構成される。そしてデータベースを検索する際には、検索条件としてこれらフィールドを検索キーにしてそのフィールド値を指定し、検索を実行する。このときに1台のデータサーバ、あるいは整合のとれた複数台のデータサーバによりデータが蓄積管理されていれば、既定の1台のデータサーバを対象に検索を実行すればよい。   By the way, one piece of data stored and managed in a database in the data server is called, for example, a data record and is generally composed of a plurality of fields. Each field has a specific attribute, and has various field values depending on the attribute. For example, in the case of managing the activity position information of a worker, one data record corresponds to one worker and consists of fields such as worker name, organization, activity area (prefecture name), and detailed information. Is done. When searching the database, these fields are used as search keys as search conditions, the field values are designated, and the search is executed. At this time, if the data is stored and managed by one data server or a plurality of matched data servers, the search may be executed for one predetermined data server.

しかしながら、複数台のデータサーバに分散させてデータ蓄積管理する場合には、次のような問題を生じることがある。すなわち、上述したDNSのように検索キーとしてのフィールドが単一(ドメイン名)であれば、対象のデータを蓄積管理しているデータサーバを特定できるが、検索キーとなり得るフィールドを複数有する場合には、どのデータがどのデータサーバに蓄積されているかを把握するのが困難になる場合があった。   However, the following problems may occur when data is stored and managed in a plurality of data servers. That is, if the field as a search key is a single (domain name) as in the above-described DNS, the data server that stores and manages the target data can be specified, but there are a plurality of fields that can serve as the search key. In some cases, it is difficult to know which data is stored in which data server.

例えば、上記事例では、作業員の活動位置情報を、活動地域フィールドをキーにしてそのフィールド値である各都道府県毎に対応させて分散配置したデータサーバで蓄積管理する場合、東京都内に位置する作業員の詳細情報を検索するには、東京都のデータを管理するデータサーバを対象に検索を実行すればよい。これに対して、特定の所属組織の作業員の詳細情報を検索するには、その組織の作業員が特定の都道府県内のみで活動しているとは限らないので、検索対象のデータサーバを特定することができない。確実な検索のためには、すべてのデータサーバを対象に検索する必要があり、通信ネットワークに対する伝送負荷も増大させることになる。   For example, in the above example, when the activity location information of workers is stored and managed by a data server distributed and arranged corresponding to each prefecture, which is the field value, using the activity region field as a key, it is located in Tokyo In order to search for the detailed information of the worker, the search should be executed for the data server that manages the data in Tokyo. On the other hand, in order to search for detailed information on workers in a specific organization, workers in that organization are not necessarily active only in specific prefectures. It cannot be specified. In order to perform a reliable search, it is necessary to search all data servers, and the transmission load on the communication network also increases.

本発明は上述の事情を考慮してなされたものであり、複数台のデータサーバによりデータのバックアップを維持しつつ、これらデータサーバ間でのデータ整合を不要として通信ネットワークに対する伝送負荷を軽減したデータベースシステム及びデータ管理方法を提供することを目的とする。   The present invention has been made in consideration of the above-described circumstances, and maintains a data backup by a plurality of data servers, and does not require data matching between these data servers, thereby reducing a transmission load on a communication network. It is an object to provide a system and a data management method.

上記目的を達成するために、本発明のデータベースシステムは、複数のフィールドを有するデータレコードをデータサーバ内にデータベース化して管理するデータベースシステムであって、前記データレコードの少なくとも2以上のフィールドに対してそのフィールド値のそれぞれに対応させて設けた複数台のデータサーバと、これらデータサーバに共通に通信路を介してネットワーク接続され、前記データレコードを前記データサーバに登録するとともに登録されたデータレコードを検索するクライアント端末とを備え、前記データレコードを登録する際は、前記クライアント端末は前記複数台のデータサーバの中で登録するデータレコードのフィールド値が対応しているすべてのデータサーバにこのデータレコードを登録し、前記データレコードを検索する際は、前記クライアント端末は検索条件に指定されたフィールド値に対応する前記複数台のデータサーバの中から所定の優先順位に基づき選択したデータサーバを対象に検索を実行することを特徴とする。   In order to achieve the above object, a database system according to the present invention is a database system that manages a data record having a plurality of fields in a data server by managing the data record in at least two or more fields of the data record. A plurality of data servers provided corresponding to each of the field values, and a network connection to these data servers via a common communication path, registering the data records in the data server and registering the registered data records A client terminal for searching, and when registering the data record, the client terminal sends the data record to all data servers corresponding to field values of the data record to be registered among the plurality of data servers. And register the data When searching for a code, the client terminal performs a search for a data server selected based on a predetermined priority from the plurality of data servers corresponding to a field value specified in a search condition. Features.

また、本発明のデータ管理方法は、複数のフィールドを有するデータレコードを、このデータレコードの少なくとも2以上のフィールドに対してそのフィールド値のそれぞれに対応させて設けた複数台のデータサーバと、これらデータサーバに共通に通信路を介してネットワーク接続され、前記データレコードを前記データサーバに登録するとともに登録されたデータレコードを検索するクライアント端末とを備えたデータベースシステムにおけるデータ管理方法であって、前記データサーバに前記データレコードを登録する際は、前記クライアント端末は前記複数台のデータサーバの中で登録するデータレコードのフィールド値が対応しているすべてのデータサーバにこのデータレコードを登録し、前記データサーバに登録された前記データレコードを検索する際は、検索条件に指定されたフィールド値に対応する前記複数台のデータサーバの中から所定の優先順位に基づき選択したデータサーバを対象に検索を実行することを特徴とする。   Further, the data management method of the present invention includes a plurality of data servers in which data records having a plurality of fields are provided corresponding to each of the field values for at least two or more fields of the data records, and A data management method in a database system, which is connected to a network via a communication path in common with a data server and includes a client terminal that registers the data record in the data server and retrieves the registered data record, When registering the data record in the data server, the client terminal registers the data record in all the data servers corresponding to the field values of the data record to be registered in the plurality of data servers, The data registered in the data server When searching for records, and executes a search target selected data server based on a predetermined priority from among the plurality data server corresponding to the field value specified in the search criteria.

本発明によれば、複数のデータサーバによりデータのバックアップを維持しつつ、これらデータサーバ間でデータの整合を不要とすることができるとともに、通信ネットワークに対する伝送負荷を軽減することのできるデータベースシステム及びデータ管理方法を得ることができる。   According to the present invention, a database system capable of maintaining data backup by a plurality of data servers, eliminating the need for data matching between the data servers, and reducing the transmission load on the communication network, and A data management method can be obtained.

以下に、本発明に係るデータベースシステム及びデータ管理方法を実施するための最良の形態について、図1乃至図7を参照して説明する。   The best mode for carrying out the database system and the data management method according to the present invention will be described below with reference to FIGS.

図1は、本発明に係るデータベースシステムの一実施例を示す構成図である。また図2は、この図1に例示したデータベースシステムで取扱うデータの構成の一例を示す図である。まず、図2を参照して、データについて説明する。図2の事例では、1件分のデータに相当するひとつのデータレコードは、フィールド1〜フィールド5の5つのフィールドを有している。各フィールドは情報の種類を表し、例えばこの事例では、それぞれ作業員名、所属組織、活動地域、車種、及び詳細情報に対応している。そして、それぞれのフィールドはその属性に対応したフィールド値をとり得る。例えば、フィールド2の所属組織はAまたはB、フィールド3の活動地域はTK、KN、CBのいずれか1つ、フィールド4の車種はTまたはNといったフィールド値を有している。   FIG. 1 is a block diagram showing an embodiment of a database system according to the present invention. FIG. 2 is a diagram showing an example of the configuration of data handled by the database system illustrated in FIG. First, data will be described with reference to FIG. In the case of FIG. 2, one data record corresponding to one data has five fields, field 1 to field 5. Each field represents a type of information. For example, in this case, each field corresponds to a worker name, a belonging organization, an activity area, a vehicle type, and detailed information. Each field can take a field value corresponding to the attribute. For example, the organization to which field 2 belongs has a field value such as A or B, the active region of field 3 has one of TK, KN, or CB, and the vehicle type of field 4 has a field value of T or N.

図1は、一例としてこの図2に例示したフィールド2、フィールド3、及びフィールド4の3つのフィールドに対して、そのフィールド値のそれぞれに対応させてデータサーバを設けた場合の構成を示す構成図である。この図1に例示したデータベースシステムは、フィールド2データサーバ群10、フィールド3データサーバ群20、フィールド4データサーバ群30、n台のクライアント端末41〜4n、及びこれらの間を相互に接続する通信ネットワーク50から構成されている。   FIG. 1 is a configuration diagram showing a configuration when a data server is provided corresponding to each of the field values for the three fields, field 2, field 3, and field 4 illustrated in FIG. 2 as an example. It is. The database system illustrated in FIG. 1 includes a field 2 data server group 10, a field 3 data server group 20, a field 4 data server group 30, n client terminals 41 to 4n, and communication for interconnecting them. The network 50 is configured.

フィールド2データサーバ群10は、図2に例示したデータのフィールド2のフィールド値に対応させて設けられたデータサーバ群であり、Aデータサーバ11、及びBデータサーバ12から構成されている。Aデータサーバ11、及びBデータサーバ12は、後述するクライアント端末41〜4nから通信ネットワーク50を経由して送られてくる、フィールド2のフィールド値がそれぞれのデータサーバに対応しているデータレコードをデータベース化し記憶・管理する。すなわち、図2の事例では、Aデータサーバ11は所属組織がAであるデータレコードを記憶・管理する。また、Bデータサーバ12は所属組織がBであるデータレコードを記憶・管理する。   The field 2 data server group 10 is a data server group provided corresponding to the field value of the field 2 of the data illustrated in FIG. 2, and includes an A data server 11 and a B data server 12. The A data server 11 and the B data server 12 send data records whose field values corresponding to the respective data servers are sent from the client terminals 41 to 4n, which will be described later, via the communication network 50. Store and manage database. In other words, in the case of FIG. 2, the A data server 11 stores and manages data records whose organization is A. Also, the B data server 12 stores and manages data records whose organization is B.

同様に、フィールド3データサーバ群20は、フィールド3のフィールド値に対応させて設けられたデータサーバ群であり、TKデータサーバ21、KNデータサーバ22、及びCBデータサーバ23から構成されている。TKデータサーバ21は、フィールド3、すなわち活動地域がTKであるデータレコードを、KNデータサーバ22は、活動地域がKNであるデータレコードを、また、CBデータサーバ23は、活動地域がCBであるデータレコードをそれぞれデータベース化して記憶・管理する。フィールド4データサーバ群30も、フィールド4のフィールド値に対応させて設けられたデータサーバ群であり、Tデータサーバ31、及びNデータサーバ32から構成されている。Tデータサーバ31は、フィールド4、すなわち車種がTであるデータレコードを、また、Nデータサーバ32は、車種がNであるデータレコードをそれぞれデータベース化して記憶・管理する。   Similarly, the field 3 data server group 20 is a data server group provided corresponding to the field value of the field 3, and includes a TK data server 21, a KN data server 22, and a CB data server 23. The TK data server 21 has a field 3, that is, a data record in which the active region is TK, the KN data server 22 has a data record in which the active region is KN, and the CB data server 23 has an active region that is CB. Each data record is stored in a database and managed. The field 4 data server group 30 is also a data server group provided corresponding to the field value of the field 4, and includes a T data server 31 and an N data server 32. The T data server 31 stores and manages the data record of the field 4, that is, the data record whose vehicle type is T, and the N data server 32 stores the data record whose vehicle type is N as a database.

n台のクライアント端末41〜4nは、上記したデータサーバ群及びデータサーバに通信ネットワーク50を介して接続され、図2に例示したデータレコードを、それぞれにそのフィールド値に基づき対応するデータサーバに送出して登録を要求するとともに、検索条件に基づき所定のデータサーバにデータレコードの検索要求を送出しその結果を受けとる。通信ネットワーク50は、上述したこれらデータサーバ及びクライアント端末間を接続する通信路であり、例えば、有線LANや無線LANにより構成される。   The n client terminals 41 to 4n are connected to the above-described data server group and data server via the communication network 50, and send the data records illustrated in FIG. 2 to the corresponding data servers based on their field values, respectively. In addition to requesting registration, a search request for a data record is sent to a predetermined data server based on the search condition, and the result is received. The communication network 50 is a communication path that connects the above-described data server and client terminal, and is configured by, for example, a wired LAN or a wireless LAN.

次に、前出の図1及び図2、ならびに図3乃至図7の構成図及び説明図を参照して、上述のように構成された本実施例のデータベースシステムの動作について説明する。なお、はじめに説明を簡単化するため、図3に例示したように、2つのフィールド、すなわち、フィールド2の所属組織、及びフィールド3の活動地域に対して、そのフィールド値のそれぞれに対応させてデータサーバを設け、またクライアント端末は4台としたモデルについて説明する。また、図4は、この図3の事例でデータレコードの登録及び検索時の情報の流れを説明するための説明図である。   Next, the operation of the database system of the present embodiment configured as described above will be described with reference to the configuration diagrams and the explanatory diagrams of FIGS. 1 and 2 and FIGS. In order to simplify the description, as illustrated in FIG. 3, data corresponding to each of the field values for two fields, that is, the organization to which field 2 belongs and the active region of field 3 are illustrated. A model with a server and four client terminals will be described. FIG. 4 is an explanatory diagram for explaining the flow of information at the time of data record registration and search in the case of FIG.

まず、クライアント端末41は、所属組織Aに所属する作業員1により操作されるものとする。このクライアント端末41が活動地域TK内で活動中に、図2のデータ#1に例示した1つのデータレコードを登録する場合、所属組織がAであるデータレコードを記憶・管理するAデータサーバ11、及び活動地域がTKであるデータレコードを記憶・管理するTKデータサーバ21の両方にこのデータレコードを送出する。この時に、送出先のデータサーバを個別に識別するためのアドレス情報については、例えば、図5に示すように、あらかじめ各クライアント端末内に共通に設けられた、各フィールド値とそれに対応するデータサーバのアドレス情報のテーブルを参照することにより把握する。そして、それぞれのデータサーバ11及び21は、このデータレコードを受けとって記憶・管理する。(図4のS401及びS402)。   First, it is assumed that the client terminal 41 is operated by the worker 1 belonging to the organization A. When the client terminal 41 is active in the activity area TK and registers one data record exemplified in the data # 1 of FIG. 2, the A data server 11 that stores and manages the data record whose organization is A, The data record is sent to both the TK data server 21 that stores and manages the data record whose activity area is TK. At this time, for the address information for individually identifying the destination data server, for example, as shown in FIG. 5, each field value provided in advance in each client terminal and the corresponding data server are provided. By referring to the address information table. Each data server 11 and 21 receives and stores and manages this data record. (S401 and S402 in FIG. 4).

また、クライアント端末42は、所属組織Bに所属する作業員2により操作されるものとし、このクライアント端末42が活動地域KN内で活動中に図2のデータ#2に例示したデータレコードを登録する場合は、その送出先は、所属組織がBであるデータレコードを記憶管理するBデータサーバ12、及び活動地域がKNであるデータレコードを記憶・管理するKNデータサーバ22の両方となる。そして、このデータレコードはこれら2つのデータサーバ12及び22で記憶・管理される(図4のS403及びS404)。   Further, the client terminal 42 is operated by the worker 2 belonging to the organization B, and the data record illustrated in the data # 2 of FIG. 2 is registered while the client terminal 42 is active in the activity area KN. In this case, the transmission destination is both the B data server 12 that stores and manages data records whose organization is B, and the KN data server 22 that stores and manages data records whose activity area is KN. This data record is stored and managed by these two data servers 12 and 22 (S403 and S404 in FIG. 4).

このように、クライアント端末からのデータレコードを、2台のデータサーバ、すなわち、そのフィールド値に対応して設けられた、2つのデータサーバ群10及び20内のそれぞれ該当するデータサーバに登録することによって、データレコードのバックアップを維持しつつ、各データサーバ間でのデータ整合を不要とすることができる。   As described above, the data record from the client terminal is registered in the two data servers, that is, in the corresponding data servers in the two data server groups 10 and 20 provided corresponding to the field values. Thus, it is possible to eliminate the need for data matching between the data servers while maintaining the backup of the data record.

一方、検索時の動作は次のようになる。検索条件の検索キーとしては、データサーバ群を設けた2つのフィールド、すなわち所属組織と活動地域のどちらか一方を指定できるものとすると、例えばクライアント端末43から、所属組織Aに所属する作業員3が、所属組織が同一のAであるデータレコードを検索する場合、クライアント端末43は、図5に例示したデータサーバのアドレス情報のテーブルにより、所属組織がAであるデータサーバはAデータサーバ11であることを把握しており、このデータサーバ11を対象に検索を行なって所定の検索結果を得る(図4のS405)。   On the other hand, the search operation is as follows. As the search key of the search condition, if one of the two fields provided with the data server group, that is, either the affiliated organization or the active region can be designated, for example, the worker 3 belonging to the affiliated organization A from the client terminal 43 However, when searching for data records having the same belonging organization A, the client terminal 43 uses the data server address information table illustrated in FIG. The data server 11 is searched for and a predetermined search result is obtained (S405 in FIG. 4).

同様に、作業員4がクライアント端末44から活動地域がKNであるデータレコードを検索する場合にも、クライアント端末44は、自端末内にあるデータサーバのアドレス情報のテーブルに基づき、活動地域がKNであるKNデータサーバ22に対して検索を実行することにより、例えば図2のデータ#2のデータレコードが抽出され、所属組織Bの作業員2についての詳細情報を確認することができる(図4のS406)。このように、データレコードを複数のデータサーバに分散し記憶・管理しているので、通信トラフィックも特定のデータサーバに集中せずに分散させることができ、通信ネットワークに対する伝送負荷を軽減することができる。   Similarly, when the worker 4 searches the client terminal 44 for a data record in which the active area is KN, the client terminal 44 determines that the active area is KN based on the address information table of the data server in the terminal. 2 is extracted, for example, the data record of data # 2 in FIG. 2 is extracted, and detailed information about the worker 2 of the organization B can be confirmed (FIG. 4). S406). As described above, since data records are distributed and stored and managed in a plurality of data servers, communication traffic can be distributed without being concentrated on a specific data server, and the transmission load on the communication network can be reduced. it can.

以上は、2つのフィールドのフィールド値に対応させてデータサーバを設けた事例についてであるが、次に、図1のように3つのフィールドのフィールド値に対応させてデータサーバを設けた事例について説明する。なお、クライアント端末の台数は、図3の事例と同様にクライアント端末41〜44の4台とする。図6は、この事例でデータレコードの登録及び検索時の情報の流れを説明するための説明図である。   The above is the case where the data server is provided corresponding to the field values of the two fields. Next, the case where the data server is provided corresponding to the field values of the three fields as shown in FIG. 1 will be described. To do. Note that the number of client terminals is four client terminals 41 to 44 as in the case of FIG. FIG. 6 is an explanatory diagram for explaining the flow of information during registration and retrieval of data records in this case.

まず、例えばクライアント端末41は、所属組織Aに所属する作業員1により操作されるものとする。このクライアント端末41が活動地域TK内で車種Tを使用して活動中に、その詳細情報を含む、図2中のデータ#1に例示したデータレコードを登録する場合、クライアント端末41からは、所属組織がAであるデータレコードを記憶・管理するAデータサーバ11、活動地域がTKであるデータレコードを記憶・管理するTKデータサーバ21、及び車種がTであるデータレコードを記憶・管理するTデータサーバ31の3つのデータサーバに対して、図5に例示したようなデータサーバのアドレス情報のテーブルに基づきそれぞれのデータサーバのアドレス情報を得ながら、このデータレコードを送出する。そして、それぞれのデータサーバ11、21、及び31は、このデータレコードを受けとって記憶・管理する(図6のS601〜S603)。   First, for example, the client terminal 41 is operated by the worker 1 who belongs to the organization A. When the client terminal 41 is active using the vehicle type T in the activity region TK and registers the data record illustrated in the data # 1 in FIG. 2 including the detailed information, the client terminal 41 A data server 11 that stores and manages data records whose organization is A, TK data server 21 that stores and manages data records whose activity region is TK, and T data that stores and manages data records whose vehicle type is T This data record is sent to the three data servers of the server 31 while obtaining the address information of each data server based on the address information table of the data server as illustrated in FIG. Each data server 11, 21, and 31 receives and stores and manages this data record (S601 to S603 in FIG. 6).

また、クライアント端末42から図2中のデータ#2に例示したデータレコードを登録する場合には、このデータレコードの送出先は、所属組織がBであるデータレコードを記憶・管理するBデータサーバ12、活動地域がKNであるデータレコードを記憶・管理するKNデータサーバ22、及び車種がNであるデータレコードを記憶・管理するNデータサーバ32の3つとなる。そして、このデータレコードは、これら3つのデータサーバ12、22、32でそれぞれに記憶・管理される(S604〜S606)。   2 is registered from the client terminal 42, the data record is sent to the B data server 12 which stores and manages the data record whose organization is B. The KN data server 22 stores and manages data records whose activity area is KN, and the N data server 32 stores and manages data records whose vehicle type is N. This data record is stored and managed in each of these three data servers 12, 22, 32 (S604 to S606).

一方、検索時には、ひとつのデータレコードが上記したように3つのデータサーバで記憶・管理されることにより、これらの中から検索対象のデータサーバをひとつ選定した上で検索を進める。この選定にあたっては、本実施例においては、それぞれのクライアント端末41〜44内に、例えば図7に示したように、データサーバを設けた3つのフィールドの中で検索キーとして用いられるフィールドに対して、あらかじめデータサーバ選定の優先順位を設定した優先順位テーブルを設けている。この事例では、3つのフィールドのいずれも検索キーとして用いられるものとし、その優先順位を、活動地域、所属組織、車種の順に設定している。   On the other hand, at the time of retrieval, one data record is stored and managed by the three data servers as described above, and the retrieval is performed after selecting one retrieval target data server from these. In this selection, in this embodiment, for each of the client terminals 41 to 44, for example, as shown in FIG. A priority table in which priorities for data server selection are set in advance is provided. In this example, all three fields are used as search keys, and their priorities are set in the order of activity area, organization belonging, and vehicle type.

検索時の動作は次のようになる。例えば作業員3が操作するクライアント端末43から所属組織がA、かつ活動地域がKN、かつ車種がNであるデータレコードを検索する場合、該当するデータレコードは、登録済みであれば次の3つのデータサーバのいずれにおいても記憶・管理されている。すなわち、所属組織がAであるデータレコードを記憶・管理するAデータサーバ11、活動地域がKNであるデータレコードを記憶・管理するKNデータサーバ22、及び車種がNであるデータレコードを記憶・管理するNデータサーバ32の3つのデータサーバである。ここで、クライアント端末43は、自端末内にあらかじめ設けられた、図7に例示した優先順位テーブルを参照すると、このテーブルでは第1優先を活動地域のデータサーバとしているので、検索対象のデータサーバをKNデータサーバ22とする。そして、クライアント端末43は、図5に例示したデータサーバのアドレス情報のテーブルに基づきそのアドレス情報を把握し、KNデータサーバ22を対象に残りのフィールド値を上記のように指定した検索条件で検索を行なって所定の結果を得る(図6のS607)。   The search operation is as follows. For example, when searching for a data record in which the affiliated organization is A, the activity region is KN, and the vehicle type is N from the client terminal 43 operated by the worker 3, if the corresponding data record has been registered, It is stored and managed in any data server. That is, the A data server 11 for storing / managing data records whose organization is A, the KN data server 22 for storing / managing data records whose activity region is KN, and the data records whose vehicle type is N are stored / managed. N data servers 32 are three data servers. Here, the client terminal 43 refers to the priority order table illustrated in FIG. 7 provided in advance in its own terminal. In this table, since the first priority is the data server of the active area, the data server to be searched Is the KN data server 22. Then, the client terminal 43 grasps the address information based on the data server address information table illustrated in FIG. 5 and searches the remaining field values for the KN data server 22 using the search conditions specified as described above. To obtain a predetermined result (S607 in FIG. 6).

また、検索条件として1つのフィールドだけを検索キーとして指定する場合、例えば作業員4が操作するクライアント端末44から車種がTであるデータレコードを検索する場合には、クライアント端末44は、図7に例示した優先順位テーブルを参照する必要は特になく、車種がTであるデータサーバ32を対象に検索を実行する(図6のS608)。   Further, when only one field is designated as a search key as a search condition, for example, when searching for a data record whose vehicle type is T from the client terminal 44 operated by the worker 4, the client terminal 44 is shown in FIG. There is no particular need to refer to the exemplified priority order table, and the search is executed for the data server 32 whose vehicle type is T (S608 in FIG. 6).

なお、この事例では、複数のデータサーバの中から検索対象とするデータサーバを選定する際に、図7に例示したようにあらかじめ優先順位を設定しているが、例えば、それぞれのクライアント端末が過去に各データサーバと通信を行なったときの応答時間を保持しておき、この応答時間に基づいて優先順位を動的に設定するなどの手法も適用することができる。   In this example, when selecting a data server to be searched from a plurality of data servers, priorities are set in advance as illustrated in FIG. It is also possible to apply a method of holding response times when communicating with each data server and dynamically setting priorities based on the response times.

以上説明したように、上述したこれら実施例においては、複数のフィールドを有するデータレコードをデータベース化して管理するにあたって、少なくとも2以上のフィールドに対してそのフィールド値に対応させてデータサーバを設けてそれぞれデータサーバ群を構成している。そして、クライアント端末からデータレコードを登録する際は、そのデータレコードのフィールド値に対応するすべてのデータサーバ群内のデータサーバに登録している。これにより、データレコードは複数台のデータサーバに同時に登録されるので、データレコードのバックアップを維持しつつ、データレコードの登録されたデータサーバ間でのデータ整合を不要とすることができる。   As described above, in these embodiments described above, when data records having a plurality of fields are managed in a database, a data server is provided corresponding to the field values for at least two or more fields, respectively. It constitutes a data server group. And when registering a data record from a client terminal, it registers with the data server in all the data server groups corresponding to the field value of the data record. As a result, since the data records are simultaneously registered in a plurality of data servers, it is possible to eliminate the need for data matching between the data servers in which the data records are registered while maintaining the backup of the data records.

また、データレコードを複数のデータサーバに分散し記憶・管理しているので、検索の際にはその中から優先順位に基づき1つのデータサーバを検索の対象として選択することによって、通信トラフィックも特定のデータサーバに集中せずに分散させることができ、通信ネットワークに対する伝送負荷を軽減することができる。加えて、本実施例では、例えば活動地域に対応したデータサーバ群のデータサーバのそれぞれを、その対象地域に配置することによってその活動地域内のクライアント端末との通信ネットワーク上での物理的な距離を近づけるなど、特定のデータサーバと特定のクライアント端末との通信ネットワーク上での相互配置の自由度を利用することによってさらに通信トラフィックを分散させることができるので、通信ネットワークの伝送容量が限られる様な場合にも、良好な処理レスポンスを維持することができる。   In addition, since data records are distributed and stored in multiple data servers, communication traffic is also identified by selecting one data server as a search target based on the priority order. Can be distributed without concentrating on the data server, and the transmission load on the communication network can be reduced. In addition, in this embodiment, for example, by arranging each data server of the data server group corresponding to the active area in the target area, the physical distance on the communication network with the client terminal in the active area Communication traffic can be further distributed by using the degree of freedom of mutual arrangement of a specific data server and a specific client terminal on the communication network, such as close to the network, so that the transmission capacity of the communication network is limited. Even in such a case, a good processing response can be maintained.

なお、この発明は、上記した実施例そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、上記実施例に開示されている複数の構成要素の適宜な組み合せにより種々の発明を形成できる。例えば、実施例に示される全構成要素から幾つかの構成要素を削除してもよい。さらに、異なる実施例に亘る構成要素を適宜組み合せてもよい。   Note that the present invention is not limited to the above-described embodiments as they are, and can be embodied by modifying the components without departing from the scope of the invention in the implementation stage. Further, various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the above embodiments. For example, some components may be deleted from all the components shown in the embodiments. Furthermore, the constituent elements in different embodiments may be appropriately combined.

本発明に係るデータベースシステムの一実施例を示す構成図。The block diagram which shows one Example of the database system which concerns on this invention. 図1に例示したデータベースシステムで取扱うデータの構成の一例を示す説明図。Explanatory drawing which shows an example of a structure of the data handled with the database system illustrated in FIG. 2つのデータサーバ群と4台のクライアント端末により構成したデータベースシステムの一例を示す構成図。The block diagram which shows an example of the database system comprised by two data server groups and four client terminals. 図3に例示したデータベースシステムにおけるデータレコードの登録及び検索時の情報の流れを説明するための説明図。FIG. 4 is an explanatory diagram for explaining a flow of information at the time of data record registration and search in the database system illustrated in FIG. 3. データサーバのアドレス情報のテーブルの一例を示す説明図。Explanatory drawing which shows an example of the table of the address information of a data server. 図1に例示したデータベースシステムにおけるデータレコードの登録及び検索時の情報の流れを説明するための説明図。Explanatory drawing for demonstrating the flow of the information at the time of registration and search of the data record in the database system illustrated in FIG. 優先順位テーブルの一例を示す説明図。Explanatory drawing which shows an example of a priority table.

符号の説明Explanation of symbols

10 フィールド2データサーバ群
11 Aデータサーバ
12 Bデータサーバ
20 フィールド3データサーバ群
21 TKデータサーバ
22 KNデータサーバ
23 CBデータサーバ
30 フィールド4データサーバ群
31 Tデータサーバ
32 Nデータサーバ
41〜4n クライアント端末
50 通信ネットワーク
10 Field 2 Data Server Group 11 A Data Server 12 B Data Server 20 Field 3 Data Server Group 21 TK Data Server 22 KN Data Server 23 CB Data Server 30 Field 4 Data Server Group 31 T Data Server 32 N Data Servers 41 to 4n Client Terminal 50 communication network

Claims (4)

複数のフィールドを有するデータレコードをデータサーバ内にデータベース化して管理するデータベースシステムであって、
前記データレコードの少なくとも2以上のフィールドに対してそのフィールド値のそれぞれに対応させて設けた複数台のデータサーバと、
これらデータサーバに共通に通信路を介してネットワーク接続され、前記データレコードを前記データサーバに登録するとともに登録されたデータレコードを検索するクライアント端末とを備え、
前記データレコードを登録する際は、前記クライアント端末は前記複数台のデータサーバの中で登録するデータレコードのフィールド値が対応しているすべてのデータサーバにこのデータレコードを登録し、
前記データレコードを検索する際は、前記クライアント端末は検索条件に指定されたフィールド値に対応する前記複数台のデータサーバの中から所定の優先順位に基づき選択したデータサーバを対象に検索を実行することを特徴とするデータベースシステム。
A database system for managing data records having a plurality of fields in a data server as a database,
A plurality of data servers provided corresponding to each of the field values for at least two or more fields of the data record;
These data servers are connected to a network through a communication path in common, and include a client terminal that registers the data records in the data server and searches for the registered data records.
When registering the data record, the client terminal registers the data record in all the data servers corresponding to the field values of the data record to be registered among the plurality of data servers,
When searching for the data record, the client terminal executes a search for a data server selected based on a predetermined priority from the plurality of data servers corresponding to the field value specified in the search condition. A database system characterized by that.
前記検索の際に前記クライアント端末がその対象に選択する前記データサーバの前記所定の優先順位は、このクライアント端末内に設けられた、前記フィールドが検索条件に指定された場合のこれらフィールド間での優先順位をあらかじめ設定した優先順位テーブルに基づくことを特徴とする請求項1に記載のデータベースシステム。   The predetermined priority order of the data server selected by the client terminal as the target at the time of the search is provided in the client terminal, and the field between these fields when the field is specified as a search condition. The database system according to claim 1, wherein the database system is based on a priority table in which priorities are set in advance. 複数のフィールドを有するデータレコードを、このデータレコードの少なくとも2以上のフィールドに対してそのフィールド値のそれぞれに対応させて設けた複数台のデータサーバと、
これらデータサーバに共通に通信路を介してネットワーク接続され、前記データレコードを前記データサーバに登録するとともに登録されたデータレコードを検索するクライアント端末とを備えたデータベースシステムにおけるデータ管理方法であって、
前記データサーバに前記データレコードを登録する際は、前記クライアント端末は前記複数台のデータサーバの中で登録するデータレコードのフィールド値が対応しているすべてのデータサーバにこのデータレコードを登録し、
前記データサーバに登録された前記データレコードを検索する際は、検索条件に指定されたフィールド値に対応する前記複数台のデータサーバの中から所定の優先順位に基づき選択したデータサーバを対象に検索を実行することを特徴とするデータ管理方法。
A plurality of data servers each provided with a data record having a plurality of fields corresponding to each of the field values for at least two or more fields of the data record;
A data management method in a database system that is connected to a network via a communication path in common with these data servers, and includes a client terminal that registers the data records in the data server and retrieves the registered data records,
When registering the data record in the data server, the client terminal registers the data record in all the data servers corresponding to the field values of the data record to be registered in the plurality of data servers,
When searching for the data record registered in the data server, the search is performed for the data server selected based on a predetermined priority from the plurality of data servers corresponding to the field value specified in the search condition. The data management method characterized by performing.
前記検索の際に前記クライアント端末がその対象に選択する前記データサーバの前記所定の優先順位は、このクライアント端末内に設けられた、前記フィールドが検索条件に指定された場合のこれらフィールド間での優先順位をあらかじめ設定した優先順位テーブルに基づくことを特徴とする請求項3に記載のデータ管理方法。   The predetermined priority order of the data server selected by the client terminal as the target at the time of the search is provided in the client terminal, and the field between these fields when the field is specified as a search condition. 4. The data management method according to claim 3, wherein the data management method is based on a priority table in which priorities are set in advance.
JP2007142659A 2007-05-29 2007-05-29 Database system and data management method Pending JP2008299450A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007142659A JP2008299450A (en) 2007-05-29 2007-05-29 Database system and data management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007142659A JP2008299450A (en) 2007-05-29 2007-05-29 Database system and data management method

Publications (1)

Publication Number Publication Date
JP2008299450A true JP2008299450A (en) 2008-12-11

Family

ID=40172949

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007142659A Pending JP2008299450A (en) 2007-05-29 2007-05-29 Database system and data management method

Country Status (1)

Country Link
JP (1) JP2008299450A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012053619A (en) * 2010-08-31 2012-03-15 Fujitsu Ltd Information retrieval device, information retrieval program, and information retrieval method
CN104504164A (en) * 2015-01-21 2015-04-08 冯山泉 Storing method and system for KTV data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012053619A (en) * 2010-08-31 2012-03-15 Fujitsu Ltd Information retrieval device, information retrieval program, and information retrieval method
CN104504164A (en) * 2015-01-21 2015-04-08 冯山泉 Storing method and system for KTV data

Similar Documents

Publication Publication Date Title
US10701011B2 (en) Re-routing incoming email for a multi-tenant database system
RU2431184C2 (en) Inter-proximity communication within rendezvous federation
US7984127B2 (en) Data matrix method and system for distribution of data
US8472311B2 (en) Systems, methods, and computer readable media for providing instantaneous failover of packet processing elements in a network
CN107733670A (en) A kind of forwarding strategy collocation method and device
US10956501B2 (en) Network-wide, location-independent object identifiers for high-performance distributed graph databases
CN107277086A (en) Transaction processing system, method for processing business and service updating method
WO2019233061A1 (en) Routing resource control method and system for layer 3 switch
CN108259218A (en) A kind of IP address distribution method and device
US20110252275A1 (en) Method and system for partitioning data files for efficient processing
CN103139314B (en) Based on distributed Web services discover method and the system thereof of P2P
US7126909B2 (en) Centralized management technique of call control data
JP2008299450A (en) Database system and data management method
CN100596087C (en) FTN matching management method
CN116996585A (en) Multicast communication method, device, system, computer equipment and storage medium
CN108733477A (en) The method, apparatus and equipment of data clusterization processing
JP2006270781A (en) Resource management apparatus, resource management system and method
CN108829709A (en) Distributed database management method, apparatus, storage medium and processor
CN102271144A (en) P2P (point to point) overlay network, data resource operating method and new node adding method
CN103886075B (en) Distributed network perception information stores and inquiry system
WO2019218469A1 (en) Configuration update method, method for responding to configuration update, server and system
JP4583252B2 (en) Line search system and method
CN113364825B (en) Distributed resource integration system
JP5255993B2 (en) Gateway and routing destination determination method
WO2011093492A1 (en) Event distribution system, event distribution network, event distribution node, event distribution method, and computer-readable storage medium