JPH10312385A - Database system, information retrieval method, and recording medium - Google Patents

Database system, information retrieval method, and recording medium

Info

Publication number
JPH10312385A
JPH10312385A JP9121125A JP12112597A JPH10312385A JP H10312385 A JPH10312385 A JP H10312385A JP 9121125 A JP9121125 A JP 9121125A JP 12112597 A JP12112597 A JP 12112597A JP H10312385 A JPH10312385 A JP H10312385A
Authority
JP
Japan
Prior art keywords
search
records
database
lower limit
condition expression
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
JP9121125A
Other languages
Japanese (ja)
Inventor
Kazutoshi Yokoyama
和俊 横山
Masanori Sudo
昌徳 須藤
Ushio Inoue
潮 井上
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.)
N T T DATA KK
NTT Data Group Corp
Original Assignee
N T T DATA KK
NTT Data 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 N T T DATA KK, NTT Data Corp filed Critical N T T DATA KK
Priority to JP9121125A priority Critical patent/JPH10312385A/en
Publication of JPH10312385A publication Critical patent/JPH10312385A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】 【課題】 検索対象となるデータベース(DB)を自動
的に変更して検索処理の継続実行を行うことを可能とす
るDBシステムを提供する。 【解決手段】 利用者からの検索要求(検索条件式、取
得レコードの下限値、指定DB)をインタフェース・モ
ジュール10を通じて受領し、検索管理モジュール20
の継続実行基準表221に記録する。検索管理モジュー
ル20は、検索要求に対応する検索命令(コマンド)を
該当するDBモジュール301〜30nに発行して検索
処理を行わせ、検索結果のレコード数が、継続実行基準
表221内の取得レコード数の下限値に満たない場合
は、未検索のDBを検出して指定DBを未検索DBに自
動的に変更して上記検索条件式による検索の継続実行を
行う。未検索のDBの検出は、検索状態表222に基づ
いて行い、検索処理完了毎に当該検索状態表222の更
新を行う。
(57) [Summary] [PROBLEMS] To provide a DB system capable of automatically changing a database (DB) to be searched and performing continuous search processing. SOLUTION: A search request (a search condition expression, a lower limit value of an acquired record, a designated DB) from a user is received through an interface module 10 and a search management module 20 is received.
Is recorded in the continuation execution reference table 221. The search management module 20 issues a search command (command) corresponding to the search request to the corresponding DB module 301 to 30n to perform the search processing, and the number of records of the search result becomes the acquired record in the continuous execution reference table 221. When the number is less than the lower limit, the unsearched DB is detected, the designated DB is automatically changed to the unsearched DB, and the search is continuously executed by the search condition expression. The unsearched DB is detected based on the search status table 222, and the search status table 222 is updated each time the search processing is completed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、例えば分散型のデ
ータベース(以下、単にDBと略称する)システムのよ
うに、複数のDBから所望の情報を効率良く検索する情
報検索手法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information retrieval method for efficiently retrieving desired information from a plurality of DBs, for example, as in a distributed database (hereinafter simply referred to as a DB) system.

【0002】[0002]

【従来の技術】各々独自の情報が蓄積された複数のDB
を管理する場合の一形態として、分散型のDBシステム
が知られている。この種のDBシステムでは、それぞれ
独自の情報を蓄積した複数のDBを含んで成るコンピュ
ータ・ネットワーク上で、DBを物理的に分散して配置
し、データを共有することを目的としてシステムの構築
が行われている。このようなDBシステムにおいて所望
の情報を検索する場合は、まず、検索対象となるDBを
指定し、指定したDBに対して所定の検索条件式による
検索処理を実行する。この場合のDBの指定方式として
は、以下のいずれかの方式が採用される。第1の方式
は、利用者が検索処理毎にDBを指定する方式であり、
第2の方式は、システム・パラメータの設定値等に基づ
き、システムが自動的にDB選択を行う方式である。
2. Description of the Related Art A plurality of DBs each storing unique information.
As a form of managing the database, a distributed DB system is known. In this type of DB system, a system is constructed for the purpose of physically distributing and arranging DBs on a computer network including a plurality of DBs each storing unique information and sharing data. Is being done. When searching for desired information in such a DB system, first, a DB to be searched is specified, and a search process is performed on the specified DB using a predetermined search condition expression. In this case, any one of the following methods is adopted as the method of designating the DB. The first method is a method in which a user specifies a DB for each search process,
The second method is a method in which the system automatically selects a DB based on the set values of system parameters and the like.

【0003】以下、図7〜図10を参照して従来技術の
概要を説明をする。図7は、第1の方式を採用したDB
システムの構成図である。この分散型DBシステム2
は、利用者との間の入出力インタフェースとなるインタ
ーフェース・モジュール10と、複数のDBモジュール
301〜30nと、検索実行モジュール40とを具備し
て成る。各モジュールは、コンピュータ装置が所定のプ
ログラムを読み込んで実行することにより形成される。
DBモジュール301〜30nは、それぞれ検索処理部
311〜31nと、各々独自の情報を格納したレコード
を蓄積して成るDB321〜32nとを有し、検索実行
モジュール40からの検索命令(コマンド)に基づいて
該当するレコードを検索して出力する。なお、複数のD
Bモジュール301〜30nのうち不特定のものについ
ては符号30、検索処理部311〜31nは符号31、
DB321〜32nは符号32を付して説明する。
[0003] An outline of the prior art will be described below with reference to FIGS. 7 to 10. FIG. 7 shows a DB adopting the first method.
It is a block diagram of a system. This distributed DB system 2
Comprises an interface module 10 serving as an input / output interface with a user, a plurality of DB modules 301 to 30n, and a search execution module 40. Each module is formed by a computer device reading and executing a predetermined program.
The DB modules 301 to 30n have search processing units 311 to 31n and DBs 321 to 32n respectively storing records each storing unique information, and are based on a search command (command) from the search execution module 40. Search and output the corresponding record. Note that a plurality of D
Reference numeral 30 denotes an unspecified one of the B modules 301 to 30n, and reference numeral 31 denotes a search processing unit 311 to 31n.
The DBs 321-32n will be described with reference numeral 32.

【0004】検索実行モジュール40は、インターフェ
ース・モジュール10を通じて受領した検索要求に基づ
いて該当するDBモジュール30に検索命令(コマン
ド)を発行する検索命令部41と、この検索命令の発行
によってDBモジュール30で得られた検索結果を統合
する結果統合部42とを備えて構成される。
A search execution module 40 issues a search command (command) to a corresponding DB module 30 based on a search request received through the interface module 10, and issues a search command (command) to the DB module 30 by issuing the search command. And a result integration unit 42 that integrates the search results obtained in the above.

【0005】図9は、上記DBシステム2における検索
処理の手順説明図である。まず、インタフェース・モジ
ュール10を通じて利用者からの検索要求、すなわち検
索したいレコードを特定するための検索条件式と、検索
対象となるDB32の指定(DB名)とを受領する(ス
テップS201)。この検索要求は、検索実行モジュー
ル40の検索命令部41に入力され、指定されたDB3
2を具備するDBモジュール30に渡される。検索命令
を受信したDBモジュール30は、検索処理部31を通
じてDB32から検索条件式に適合するレコードを検索
し、その検索結果を検索実行モジュール40に返す(ス
テップS202)。検索実行モジュール40は、結果統
合部42において検索結果を統合し(ステップS20
3)、それをインタフェース・モジュール10を通じて
利用者に提示させる(ステップS204)。利用者にと
って満足な検索結果が得られた場合は検索処理を終了す
る(ステップS205、Yes)。一方、満足な検索結
果が得られなかった場合はステップS201に戻り、イ
ンターフェース・モジュール10より検索要求を再受領
する(ステップS205:No)。
FIG. 9 is an explanatory diagram of a procedure of a search process in the DB system 2. First, a search request from a user, that is, a search condition expression for specifying a record to be searched for and a designation (DB name) of the DB 32 to be searched are received through the interface module 10 (step S201). This search request is input to the search command unit 41 of the search execution module 40, and the specified DB3
2 is passed to the DB module 30 including The DB module 30 that has received the search command searches the DB 32 through the search processing unit 31 for a record that satisfies the search condition expression, and returns the search result to the search execution module 40 (Step S202). The search execution module 40 integrates the search results in the result integration unit 42 (step S20).
3), and present it to the user through the interface module 10 (step S204). When a search result that is satisfactory for the user is obtained, the search processing ends (step S205, Yes). On the other hand, if a satisfactory search result is not obtained, the process returns to step S201, and the search request is received again from the interface module 10 (step S205: No).

【0006】図8は、第2の方式を採用したDBシステ
ムの構成図であり、図7に示したものと同一構成要素に
ついては同一符号を付してある。この分散型DBシステ
ム3は、インターフェース・モジュール10と、DB選
択実行モジュール50と、複数のDBモジュール30と
を具備して成る。DB選択実行モジュール50は、シス
テム・パラメータの設定値等に基づいて検索対象となる
DBを指定するDB選択部51と、インターフェース・
モジュール10を通じて受領した検索要求に基づいて該
当するDBモジュール30に検索要求を発行する検索命
令部52と、DBモジュール30から得られた検索結果
を統合する結果統合部53とを有している。
FIG. 8 is a configuration diagram of a DB system adopting the second system, and the same components as those shown in FIG. 7 are denoted by the same reference numerals. The distributed DB system 3 includes an interface module 10, a DB selection execution module 50, and a plurality of DB modules 30. The DB selection execution module 50 includes: a DB selection unit 51 that specifies a DB to be searched based on system parameter setting values and the like;
It has a search command unit 52 that issues a search request to a corresponding DB module 30 based on a search request received through the module 10, and a result integration unit 53 that integrates search results obtained from the DB module 30.

【0007】図10は、上記DBシステム3における検
索処理の手順説明図である。まず、インタフェース・モ
ジュール10を通じて利用者からの検索要求、すなわち
検索したいレコードの特定を行うための検索条件式を受
領する(ステップS301)。この検索要求は、DB選
択実行モジュール50に入力される。DB選択実行モジ
ュール50は、DB選択部51で検索対象となるDB3
2を指定するとともに(ステップS302)、指定され
たDBモジュール30に対して検索命令部52から検索
命令を発行する。検索命令を受信したDBモジュール3
0は、検索処理部31を通じてDB32から検索条件式
に適合するレコードを検索し(ステップS303)、そ
の検索結果をDB選択実行モジュール50に渡す。DB
選択実行モジュール50は、結果統合部53において検
索結果を統合し(ステップS304)、インタフェース
・モジュール10を通じて利用者へ提示させる(ステッ
プS305)。利用者にとって満足な検索結果が得られ
た場合は処理を終了する(ステップS306、Ye
s)。一方、満足な検索結果が得られなかった場合は
(ステップS306:No)、利用者からインタフェー
ス・モジュール10を通じて検索対象DBの再指定を受
領し(ステップS307)、ステップS303に戻っ
て、指定し直されたDBの検索処理を行う。
FIG. 10 is an explanatory diagram of a procedure of a search process in the DB system 3. First, a search request from a user, that is, a search condition expression for specifying a record to be searched is received through the interface module 10 (step S301). This search request is input to the DB selection execution module 50. The DB selection execution module 50 searches the DB3 to be searched by the DB selection unit 51.
2 (step S302), and a search command is issued from the search command unit 52 to the specified DB module 30. DB module 3 that received the search command
0 searches the DB 32 for a record that satisfies the search condition expression through the search processing unit 31 (step S303), and passes the search result to the DB selection execution module 50. DB
The selection execution module 50 integrates the search results in the result integration unit 53 (step S304), and presents the search results to the user through the interface module 10 (step S305). If a search result that is satisfactory for the user is obtained, the process ends (step S306, Yes).
s). On the other hand, if a satisfactory search result is not obtained (step S306: No), re-designation of the search target DB is received from the user through the interface module 10 (step S307), and the process returns to step S303 to perform the designation. The search processing of the corrected DB is performed.

【0008】DB3の検索結果レコード数が20件だっ
た場合の検索状態表222の内容例を図6に示す。図6
の結果では、検索結果 上記各方式については、L.G
ravano,H.Garcia−Molina,A.
Tomasicによる、”The Effectiveness of GIOSS
for the Text Database Discovery Problem”( Pr
oc.of ACM SIGMOD,pp.126−1
37,1994)の記載を参考にすることができる。
FIG. 6 shows an example of the contents of the search state table 222 in the case where the number of search result records in the DB 3 is 20. FIG.
In the results of the above, the search results are described in L. G
ravano, H .; Garcia-Molina, A .;
"The Effectiveness of GIOSS by Thomas
for the Text Database Discovery Problem ”(Pr
oc. of ACM SIGMOD, pp. 126-1
37, 1994).

【0009】[0009]

【発明が解決しようとする課題】しかしながら、上記の
各方式には、以下に示すような問題があった。すなわ
ち、第1の方式では、利用者にとって満足する検索結果
が得られなかった場合は、再度、別のDB32を検索対
象DBとして指定し直して何回も検索要求の入力及び検
索処理を逐次繰り返さなければならず、煩雑であった。
また、検索したDB32の履歴情報を利用者が記憶して
おく必要があるために、利用者の負担も大きかった。
However, each of the above methods has the following problems. That is, in the first method, when a search result satisfying the user is not obtained, another DB 32 is designated again as a search target DB, and the input of the search request and the search process are repeatedly repeated many times. It had to be complicated.
Further, since the user needs to store the history information of the searched DB 32, the burden on the user is large.

【0010】また、第2の方式では、利用者の検索要求
に対応するDB32がシステム・パラメータの設定値等
に基づいて指定されるので、利用者が満足する検索結果
を得る確率は第1の方式よりは高くなるが、パラメータ
等を厳密に設定しなければならないため、設定処理に時
間を要する。また、利用者からの1回の検索要求により
満足する検索結果を得たい場合には、DBシステム側で
すべてのDBについて検索処理を行なわなければなら
ず、システムの負荷が増大する。
In the second method, since the DB 32 corresponding to the user's search request is specified based on the set values of the system parameters, the probability that the user obtains a satisfactory search result is the first. Although it is higher than the method, the setting process requires time since parameters and the like must be strictly set. In addition, when it is desired to obtain a satisfactory search result by a single search request from a user, the DB system must perform a search process for all DBs, which increases the load on the system.

【0011】そこで本発明の課題は、検索したDBの履
歴情報を記憶しておく必要がなく、しかも利用者からの
1回の検索要求により必要な検索結果を得ることができ
る、改良されたDBシステムを提供することにある。本
発明の他の課題は、上記DBシステムによる情報検索方
法、及びDBシステムを汎用のコンピュータ装置で実現
するための記録媒体を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide an improved DB which does not require storing history information of a searched DB and can obtain a required search result by a single search request from a user. It is to provide a system. Another object of the present invention is to provide an information search method using the above DB system and a recording medium for realizing the DB system with a general-purpose computer device.

【0012】[0012]

【課題を解決するための手段】上記課題を解決する本発
明のDBシステムは、所定の検索命令に基づいて該当す
るDBからレコードの検索を行う複数のDBモジュール
と、所要のレコードを取得するための検索条件式、一意
に設定された取得レコード数の下限値、及び検索対象D
Bの指定を含んで成る検索要求を受領して、前記検索条
件式に基づく検索命令を前記検索対象DBに対応するD
Bモジュールに発行して該当するレコードを取得すると
ともに、取得したレコードの総数と前記下限値とを比較
して前記検索命令の発行を継続するかどうかの判定を行
う手段を有する検索管理モジュールと、を備えて成る。
According to the present invention, there is provided a DB system for solving the above-mentioned problems, comprising: a plurality of DB modules for searching records from a corresponding DB based on a predetermined search command; Search condition expression, uniquely set lower limit of the number of acquired records, and search target D
B. Upon receiving a search request including the designation of B, a search command based on the search condition expression is sent to the D corresponding to the search target DB.
A search management module having means for issuing a corresponding record by issuing to the B module and comparing the total number of obtained records with the lower limit to determine whether to continue issuing the search instruction; It comprises.

【0013】前記検索管理モジュールは、例えば、前記
検索要求について未検索のときと検索終了のときとで異
なる状態値となる検索フラグをDBモジュール毎に記録
した検索状態テーブルを有し、前記レコードの総数が前
記下限値に満たない場合は前記検索状態テーブルを参照
して未検索DBを特定し、前記検索対象DBを、前記特
定した未検索DBに変更して前記検索条件式による検索
命令を発行するように構成される。また、前記レコード
の総数が前記取得レコード数の下限値より多くなった時
点で前記検索命令の発行を終了する。
The search management module has, for example, a search status table in which search flags having different status values are obtained for each DB module when the search request is not yet searched and when the search is completed. If the total number is less than the lower limit value, an unsearched DB is specified by referring to the search state table, the search target DB is changed to the specified unsearched DB, and a search instruction based on the search condition expression is issued. It is configured to Further, when the total number of records becomes larger than the lower limit of the number of acquired records, the issuance of the search instruction is terminated.

【0014】また、上記他の課題を解決する情報検索方
法は、各々レコードが蓄積された複数のDBから所要の
レコードを取得するための検索条件式、一意に設定され
た取得レコード数の下限値、及び、検索対象DBの指定
を含んで成る検索要求を外部から受領し、この検索要求
で指定された検索対象DBから前記検索条件式に適合す
るすべてのレコードを検索するとともに検索により得ら
れたレコード総数と前記下限値とを比較する過程とを有
し、前記レコード総数が前記下限値に満たない場合は前
記検索対象DBを未検索DBに変更して前記検索条件式
による検索を継続実行し、一方、前記レコード総数が前
記下限値より多い場合は当該検索条件式による検索を終
了することを特徴とする。
[0014] Further, an information retrieval method for solving the above-mentioned other problems includes a retrieval condition formula for acquiring a required record from a plurality of DBs in which records are stored, and a lower limit value of a uniquely set number of acquired records. , And a search request including the designation of a search target DB is received from the outside, and all records that satisfy the search condition expression are searched from the search target DB specified by the search request, and obtained by the search. Comparing the total number of records with the lower limit value, and when the total number of records is less than the lower limit value, changes the search target DB to an unsearched DB and continuously executes the search by the search condition expression. On the other hand, when the total number of records is larger than the lower limit, the search based on the search condition expression is terminated.

【0015】さらに、上記他の課題を解決する本発明の
記録媒体は、複数のデータベースから所要のレコードを
取得するための検索条件式、一意に設定された取得レコ
ード数の下限値、検索対象データベース名を含んで成る
検索要求を受領する処理と、前記検索要求で指定された
検索対象データベースから前記検索条件式に適合するす
べてのレコードを検索するとともに検索により得られた
レコード総数と前記下限値とを比較する処理と、前記レ
コードの総数が前記下限値に満たない場合は未検索デー
タベースを検出するとともに前記検索対象データベース
名を未検索のデータベース名に変更して前記検索条件式
による検索を継続実行し、一方、取得したレコードの総
数が前記下限値より多い場合は前記検索要求に基づく検
索を終了する処理と、をコンピュータ装置に実行させる
ためのプログラムを当該コンピュータ装置が読み取り可
能な形態で記録して成る。
Further, a recording medium according to the present invention for solving the above-mentioned other problems has a retrieval condition formula for acquiring a required record from a plurality of databases, a lower limit of the number of acquired records uniquely set, a retrieval target database, Receiving a search request including the first name, searching for all records that satisfy the search condition expression from the search target database specified in the search request, and the total number of records obtained by the search and the lower limit value; And, if the total number of records is less than the lower limit, detect an unsearched database, change the search target database name to an unsearched database name, and continuously execute a search using the search condition expression On the other hand, when the total number of acquired records is larger than the lower limit, a process of ending the search based on the search request , And recorded in a form readable is the computer system a program for causing a computer to execute the device.

【0016】[0016]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態を詳細に説明する。図1は、本発明のDBシス
テムの一実施形態を表す機能ブロック図であり、図7及
び図8に示した従来型システムと同一構成要素について
は同一符号を付してある。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a functional block diagram showing an embodiment of a DB system according to the present invention. In FIG. 1, the same components as those in the conventional system shown in FIGS. 7 and 8 are denoted by the same reference numerals.

【0017】この実施形態のDBシステム1は、インタ
フェース・モジュール10、検索管理モジュール20、
及び複数のDBモジュール30を具備して成る。各モジ
ュール10,20,30は、コンピュータ装置が所定の
プログラムを読み込んで実行することにより形成され
る。上記プログラムは、通常、コンピュータ装置に内蔵
される記憶手段に格納されて使用されるが、コンピュー
タ装置とは分離した形態で取り引きされる記録媒体、例
えばCD−ROM等に格納され、使用時にコンピュータ
装置に読み取られて上記記憶手段にインストールされる
ものであってもよい。また、DBモジュール30につい
ては、インタフェース・モジュール10や検索管理モジ
ュール20とは別のプログラムによって形成されるよう
にしてもよい。
The DB system 1 of this embodiment includes an interface module 10, a search management module 20,
And a plurality of DB modules 30. Each of the modules 10, 20, 30 is formed by a computer device reading and executing a predetermined program. The above-mentioned program is usually stored and used in a storage means built in the computer device, but is stored in a recording medium, such as a CD-ROM, which is dealt with separately from the computer device. May be read and installed in the storage means. Further, the DB module 30 may be formed by a program different from the interface module 10 and the search management module 20.

【0018】本実施形態のDBシステム1では、利用者
から受領する検索要求として、所要のレコードを取得す
るための検索条件式、一意に設定された取得レコード数
の下限値、及び、検索対象DBの指定を含むものを用い
る。
In the DB system 1 of the present embodiment, as a search request received from a user, a search condition formula for obtaining a required record, a lower limit value of the number of obtained records uniquely set, and a search target DB Use the one that includes the specification.

【0019】検索管理モジュール20は、検索実行部2
1と継続実行制御部22とを有している。検索実行部2
1は、検索対象DBの自動指定を行うDB選択部21
1、上記検索条件式に基づく検索命令を発行する検索命
令部212、及び検索結果であるレコードの内容を統合
して一時保管する結果統合部213を具備し、一方、継
続実行制御部22は、継続実行基準テーブル221、検
索状態テーブル222、及び検索処理を継続実行するか
どうかを判定する継続実行判定部223を備えて構成さ
れる。なお、検索実行部21と継続実行制御部22との
間は、相互にデータ授受を行えるようになっている。
The search management module 20 includes a search execution unit 2
1 and a continuous execution control unit 22. Search execution unit 2
1 is a DB selection unit 21 for automatically specifying a search target DB
1. A search command unit 212 that issues a search command based on the above search condition expression, and a result integration unit 213 that integrates and temporarily stores the contents of records as search results, while the continuous execution control unit 22 It is configured to include a continuation execution reference table 221, a search state table 222, and a continuation execution determination unit 223 that determines whether to continue the search process. The search execution unit 21 and the continuous execution control unit 22 can exchange data with each other.

【0020】継続実行基準テーブル221は、利用者よ
り受領した検索要求を格納しておくためのテーブルであ
り、継続実行をするかどうかの判定の際に随時参照でき
るように構成されている。その内容は図3に例示すると
おりであり、検索したいレコードの特定を行う検索条件
式、取得レコード数の下限値、及び、指定された検索対
象DB名が更新自在に格納される。なお、上記下限値及
び検索対象DB名についてはシステム・パラメータの設
定値等に基づいて予め決定しておき、利用者からの入力
を省略できるようにしてもよい。この場合は、システム
・パラメータの設定値等が継続実行基準テーブル221
のデフォルトの情報となるように設定する。
The continuation execution reference table 221 is a table for storing a search request received from a user, and is configured to be referred to at any time when determining whether or not to continue execution. The contents are as illustrated in FIG. 3, and a search condition expression for specifying a record to be searched, a lower limit value of the number of acquired records, and a designated search target DB name are stored in an updatable manner. The lower limit value and the search target DB name may be determined in advance based on the set values of the system parameters, and the input from the user may be omitted. In this case, the set values of the system parameters are stored in the continuous execution reference table 221.
Set to be the default information of.

【0021】検索状態テーブル222は、DB30の検
索状態または未検索状態を区別するための検索フラグと
検索処理が完了された際の検索結果のレコード数とを一
時的に格納しておくためのテーブルであり、未検索DB
の特定の際に随時参照できるように構成されている。こ
の検索状態テーブル222の格納情報は、後述するよう
に、検索処理完了毎に随時更新されるようになってい
る。なお、本実施形態では、複数のDB30と検索管理
モジュール20とが直接接続されているものとして説明
するが、両者は通信回線等で接続されて遠隔地等に物理
的に分散配置されていてもよい。この場合の通信制御等
に関する処理は、既存の技術を用いることができる。
The search state table 222 is a table for temporarily storing a search flag for distinguishing a search state or a non-search state of the DB 30 and the number of records of a search result when the search processing is completed. And unsearched DB
It is configured so that it can be referred to at any time at the time of specifying. As will be described later, the storage information of the search state table 222 is updated whenever the search processing is completed. In this embodiment, a plurality of DBs 30 and the search management module 20 will be described as being directly connected. However, both may be connected by a communication line or the like and physically distributed and arranged in a remote place or the like. Good. In this case, an existing technique can be used for processing related to communication control and the like.

【0022】以下、図2を参照して本実施形態のDBシ
ステム1の動作を具体的に説明する。まず、インタフェ
ース・モジュール10を通じて利用者から検索要求を受
領する(ステップS101)。この検索要求は、検索管
理モジュール20に転送される。検索管理モジュール2
0は、継続実行制御部21において継続実行基準テーブ
ル221を作成するとともに、検索状態テーブル222
の内容を初期化する(ステップS102)。検索管理モ
ジュール20は、また、検索対象DB名をDB選択部2
11に入力するとともに、検索条件式及び検索対象DB
名を検索実行部21の検索命令部212に入力する。検
索命令部212は、入力された検索条件式及び検索対象
DB名に基づいて検索命令を作成し、これを該当するD
B32を具備したDBモジュール30に向けて発行する
(ステップS103)。DBモジュール30は、検索命
令部212より発行された検索命令に基づいて検索処理
を実行する。具体的には検索処理部31でDB32を検
索し、該当するレコードを検索管理モジュール20に返
す(ステップS104)。この検索結果を受領した検索
管理モジュール20は、検索処理を継続実行するかどう
かを判定する(ステップS105,S106)。
Hereinafter, the operation of the DB system 1 according to the present embodiment will be specifically described with reference to FIG. First, a search request is received from a user through the interface module 10 (step S101). This search request is transferred to the search management module 20. Search management module 2
0 indicates that the continuation execution control unit 21 creates the continuation execution reference table 221 and the search state table 222
Is initialized (step S102). The search management module 20 also stores the search target DB name in the DB selection unit 2.
11 and the search condition formula and search target DB
The name is input to the search command unit 212 of the search execution unit 21. The search command unit 212 creates a search command based on the input search condition expression and search target DB name, and
It is issued to the DB module 30 including B32 (step S103). The DB module 30 executes a search process based on a search command issued from the search command unit 212. Specifically, the search processing unit 31 searches the DB 32 and returns a corresponding record to the search management module 20 (step S104). The search management module 20 that has received the search result determines whether or not to continue the search process (steps S105 and S106).

【0023】検索管理モジュール20による継続実行の
判定は、以下のようにして行われる。まず、検索結果で
あるレコードの総数と継続実行基準テーブル221中の
下限値とを継続実行判定部223において比較する。比
較の結果、レコード総数が下限値より多い場合は(ステ
ップS106、No)、DBモジュール30からのレコ
ード検索を終了する。一方、レコード総数が下限値に満
たない場合は(ステップS106,Yes)、検索状態
テーブル221から未検索状態にあるDBを検出し、検
索対象DB名の指定を、検出したDBに変更する(ステ
ップS107)。このとき、継続実行制御部22は検索
実行部21に継続実行の通知を行う。処理はステップS
103に戻り、変更された検索対象DBと、ステップ1
01において受領した検索条件式に基づき検索処理の継
続実行を行う。これをレコード総数が下限値よりも多く
なるまで繰り返す。レコード検索が終了したときは、検
索結果統合部213でレコード内容を統合し(ステップ
S108)、これをインタフェース・モジュール10を
通じて利用者に提示する(ステップS109)。
The determination of continuous execution by the search management module 20 is performed as follows. First, the continuation execution determination unit 223 compares the total number of records as search results with the lower limit in the continuation execution reference table 221. As a result of the comparison, if the total number of records is larger than the lower limit (step S106, No), the record search from the DB module 30 ends. On the other hand, if the total number of records is less than the lower limit (step S106, Yes), a DB in an unsearched state is detected from the search state table 221 and the search target DB name is changed to the detected DB (step S106). S107). At this time, the continuation execution control unit 22 notifies the search execution unit 21 of the continuation execution. Processing is step S
Returning to 103, the changed search target DB and step 1
In step 01, the search processing is continuously executed based on the search condition expression received. This is repeated until the total number of records exceeds the lower limit. When the record search is completed, the record contents are integrated by the search result integration unit 213 (step S108), and this is presented to the user through the interface module 10 (step S109).

【0024】次に、上記一連の検索処理において検索状
態テーブル222の内容が変遷する過程を、図4〜図6
を参照して説明する。また、この説明では下限値の値が
30件に設定されているものとする。図4は初期化状態
を表す図であり、インタフェース・モジュール10を通
じて検索要求が検索管理モジュール20に入力されたと
きに、継続実行制御部22が、検索状態テーブル222
に登録されているすべてのDBの検索フラグを未検索状
態に更新するとともに、各DBについてのすべてのレコ
ード数を“0”に更新する。この処理は、ステップS1
01ないしステップS102の際に行われる。検索対象
DB1,DB2が指定され、ステップS103〜S10
5の処理によりDBモジュール30から該当レコードが
得られた場合の検索状態テーブル222の内容の変化を
示したのが図5である。すなわち、継続実行制御部22
は、検索状態テーブル222中のDB1,DB2の検索
フラグを検索状態に更新し、また、検索結果であるレコ
ードが得られる毎に対応するDB1,DB2についての
レコードの総数をそれぞれ10件、5件のように更新す
る。この場合のレコード総数は15件であり、下限値
(30件)に満たないので、継続実行制御部22は、未
検索状態のDB3を検索対象DBとして指定し、継続実
行基準テーブル221中の検索条件式に基づいた検索処
理の継続実行を行う。
Next, the process of changing the contents of the search state table 222 in the above-described series of search processing will be described with reference to FIGS.
This will be described with reference to FIG. In this description, it is assumed that the lower limit value is set to 30. FIG. 4 is a diagram showing an initialization state. When a search request is input to the search management module 20 through the interface module 10, the continuous execution control unit 22 executes the search state table 222.
, The search flags of all the DBs registered in the DB are updated to the unsearched state, and the number of all records of each DB is updated to “0”. This processing is performed in step S1.
01 to S102. Search target DB1 and DB2 are specified, and steps S103 to S10
FIG. 5 shows a change in the contents of the search state table 222 when the corresponding record is obtained from the DB module 30 by the process of FIG. That is, the continuous execution control unit 22
Updates the search flags of DB1 and DB2 in the search state table 222 to the search state, and every time a record as a search result is obtained, the total number of records for DB1 and DB2 corresponding to 10 and 5 respectively Update as follows. In this case, the total number of records is 15, which is smaller than the lower limit (30). The search process is continuously executed based on the conditional expression.

【0025】図6は、未検索DB3についての検索処理
が継続実行された場合の検索状態テーブル222の変化
を示した図である。図6の例では、DB3についての検
索結果は20件であり、レコード総数が35件となって
下限値(30件)より多くなったため、検索管理モジュ
ール20は、以降の検索処理の継続実行を行わず、検索
処理を終了する。このとき、検索管理モジュール20
は、インタフェース・モジュール10を通じて、利用者
に設定された下限値よりも多いレコードが獲得されたと
いう旨のメッセージを通知する。そして、必要に応じ
て、すべてのレコードの内容を統合したものを提示す
る。
FIG. 6 is a diagram showing a change in the search state table 222 when the search process for the unsearched DB 3 is continuously executed. In the example of FIG. 6, the search result for DB3 is 20, and the total number of records is 35, which is larger than the lower limit (30). Therefore, the search management module 20 executes the subsequent search processing continuously. The search process ends without performing the search. At this time, the search management module 20
Notifies the user via the interface module 10 that the user has acquired more records than the set lower limit. Then, if necessary, an integrated version of the contents of all records is presented.

【0026】このように、本実施形態のDBシステム1
では、複数のDBモジュール30から検索条件に適合す
るレコードを取得する際に、予め指定したDBのみでは
必要な数のレコードが得られない場合は検索管理モジュ
ール20が自動的に未検索DBを指定して上記検索条件
のもとでの検索処理を継続実行するので、従来型システ
ムのように、検索要求を設定し直して検索処理を再実行
する必要がなくなり、迅速な検索処理が可能になる。ま
た、複数のDBモジュール30の検索処理を網羅的に行
うことが容易になるので、例えば分散型のDBシステム
を構築した場合の検索能力を従来よりも格段に高めるこ
とができる。
As described above, the DB system 1 of the present embodiment
Then, when acquiring records matching the search conditions from the plurality of DB modules 30, if the required number of records cannot be obtained only with the previously designated DB, the search management module 20 automatically designates an unsearched DB. Then, the search process is continuously executed under the above search conditions, so that it is not necessary to set a search request and re-execute the search process as in the conventional system, thereby enabling a quick search process. . In addition, since it becomes easy to comprehensively perform the search processing of the plurality of DB modules 30, for example, the search capability when a distributed DB system is constructed can be significantly improved compared to the related art.

【0027】[0027]

【発明の効果】以上の説明から明らかなように、本発明
によれば、利用者の要求を満たすまで検索対象となるD
Bが自動的に変更されて検索処理が繰り返されるので、
利用者は1回の検索要求を入力するだけで所望の検索結
果を得ることが可能となり、また、システム側の負荷も
軽減される効果がある。また、検索を完了したDBの履
歴情報を記憶する必要がなくなるので、利用者の負担が
大幅に軽減される効果もある。
As is apparent from the above description, according to the present invention, the search target D is satisfied until the user's request is satisfied.
Since B is automatically changed and the search process is repeated,
The user can obtain a desired search result only by inputting a single search request, and the load on the system is reduced. In addition, since it is not necessary to store the history information of the DB for which the search has been completed, there is also an effect that the burden on the user is greatly reduced.

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

【図1】本発明の一実施形態に係るDB(データベー
ス)システムの機能ブロック図。
FIG. 1 is a functional block diagram of a DB (database) system according to an embodiment of the present invention.

【図2】本実施形態のDBシステムにおける検索処理の
手順説明図。
FIG. 2 is an explanatory diagram of a procedure of a search process in the DB system according to the embodiment.

【図3】本実施形態による継続実行基準表の内容例を示
す説明図。
FIG. 3 is an explanatory diagram showing an example of the contents of a continuous execution reference table according to the embodiment;

【図4】本実施形態による検索状態表の内容例(初期化
状態)を示す説明図。
FIG. 4 is an explanatory diagram showing a content example (initialized state) of a search state table according to the embodiment;

【図5】検索状態表の変化例を示す説明図。FIG. 5 is an explanatory diagram showing a change example of a search state table.

【図6】検索状態表の変化例を示す説明図。FIG. 6 is an explanatory diagram showing a change example of a search state table.

【図7】従来のDBシステムの機能ブロック図。FIG. 7 is a functional block diagram of a conventional DB system.

【図8】従来の他のDBシステムの機能ブロック図。FIG. 8 is a functional block diagram of another conventional DB system.

【図9】図7に示したDBシステムにおける検索処理の
手順説明図。
FIG. 9 is an explanatory diagram of a procedure of a search process in the DB system shown in FIG. 7;

【図10】図8に示したDBシステムにおける検索処理
の手順説明図。
FIG. 10 is an explanatory diagram of a procedure of a search process in the DB system shown in FIG. 8;

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

1 DB(データベース)システム 10 インタフェース・モジュール 20 検索管理モジュール 21 検索実行部 22 継続実行制御部 211 DB選択部 212 検索命令部 213 結果統合部 221 継続実行基準表 222 検索状態表 223 継続実行判定部 30,301〜30n DBモジュール 31,311〜31n 検索処理部 32,321〜32n DB(データベース) Reference Signs List 1 DB (database) system 10 interface module 20 search management module 21 search execution unit 22 continuation execution control unit 211 DB selection unit 212 search command unit 213 result integration unit 221 continuation execution reference table 222 search state table 223 continuation execution determination unit 30 , 301 to 30n DB module 31, 311 to 31n Search processing unit 32, 321 to 32n DB (database)

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 所定の検索命令に基づいて該当するデー
タベースからレコードの検索を行う複数のデータベース
モジュールと、 所要のレコードを取得するための検索条件式、一意に設
定された取得レコード数の下限値、及び検索対象データ
ベースの指定を含んで成る検索要求を受領して、前記検
索条件式に基づく検索命令を前記検索対象データベース
に対応するデータベースモジュールに発行して該当する
レコードを取得するとともに、取得したレコードの総数
と前記下限値とを比較して前記検索命令の発行を継続す
るかどうかの判定を行う手段を有する検索管理モジュー
ルと、 を備えて成るデータベースシステム。
1. A plurality of database modules for retrieving records from a corresponding database based on a predetermined retrieval command, a retrieval condition expression for retrieving a required record, and a uniquely set lower limit of the number of retrieved records And a search request including the designation of a search target database is received, and a search command based on the search condition expression is issued to a database module corresponding to the search target database to obtain a corresponding record. A search management module having means for comparing the total number of records with the lower limit to determine whether to continue issuing the search instruction.
【請求項2】 前記検索管理モジュールは、前記検索要
求について未検索のときと検索終了のときとで異なる状
態値となる検索フラグをデータベースモジュール毎に記
録した検索状態テーブルを有し、前記レコードの総数が
前記下限値に満たない場合は前記検索状態テーブルを参
照して未検索データベースを特定し、前記検索対象デー
タベースを、前記特定した未検索のデータベースに変更
して前記検索条件式による検索命令を発行するように構
成されていることを特徴とする請求項1記載のデータベ
ースシステム。
2. The search management module according to claim 1, wherein the search management module has a search status table in which search flags each having a different status value when the search request is not yet searched and when the search is completed are stored for each database module. When the total number is less than the lower limit value, an unsearched database is specified by referring to the search state table, the search target database is changed to the specified unsearched database, and a search command based on the search condition expression is issued. 2. The database system according to claim 1, wherein the database system is configured to issue.
【請求項3】 前記検索管理モジュールは、前記レコー
ドの総数が前記取得レコード数の下限値より多くなった
時点で前記検索命令の発行を終了することを特徴とする
請求項1または2記載のデータベースシステム。
3. The database according to claim 1, wherein the search management module terminates issuing the search command when the total number of records becomes greater than a lower limit of the number of acquired records. system.
【請求項4】 各々レコードが蓄積された複数のデータ
ベースから所要のレコードを取得するための検索条件
式、一意に設定された取得レコード数の下限値、及び、
検索対象データベースの指定を含んで成る検索要求を外
部から受領し、この検索要求で指定された検索対象デー
タベースから前記検索条件式に適合するすべてのレコー
ドを検索するとともに検索により得られたレコード総数
と前記下限値とを比較する過程とを有し、 前記レコード総数が前記下限値に満たない場合は前記検
索対象データベースを未検索のデータベースに変更して
前記検索条件式による検索を継続実行し、一方、前記レ
コード総数が前記下限値より多い場合は当該検索条件式
による検索を終了することを特徴とする、データベース
システムにおける情報検索方法。
4. A search condition expression for acquiring a required record from a plurality of databases in which records are stored, a uniquely set lower limit of the number of acquired records, and
A search request including the specification of a search target database is externally received, and all records that satisfy the search condition expression are searched from the search target database specified by the search request, and the total number of records obtained by the search is Comparing the lower limit value with the lower limit value, and when the total number of records is less than the lower limit value, changes the search target database to an unsearched database and continuously executes the search by the search condition expression. An information retrieval method in the database system, wherein when the total number of records is larger than the lower limit, the retrieval by the retrieval condition expression is terminated.
【請求項5】 個々の検索要求について未検索のときと
検索終了のときとで異なる状態値となる検索フラグをデ
ータベース毎に記録しておき、前記検索フラグの状態値
に基づいて前記未検索データベースを特定することを特
徴とする請求項4記載の情報検索方法。
5. A search flag having a different status value for each search request when the search is not performed and when the search is completed is recorded for each database, and based on the status value of the search flag, the unsearched database is stored. 5. The information retrieval method according to claim 4, wherein the information retrieval is specified.
【請求項6】 複数のデータベースから所要のレコード
を取得するための検索条件式、一意に設定された取得レ
コード数の下限値、検索対象データベース名を含んで成
る検索要求を受領する処理と、 前記検索要求で指定された検索対象データベースから前
記検索条件式に適合するすべてのレコードを検索すると
ともに検索により得られたレコード総数と前記下限値と
を比較する処理と、 前記レコードの総数が前記下限値に満たない場合は未検
索データベースを検出するとともに前記検索対象データ
ベースを未検索のデータベースに変更して前記検索条件
式による検索を継続実行し、一方、取得したレコードの
総数が前記下限値より多い場合は前記検索要求に基づく
検索を終了する処理と、 をコンピュータ装置に実行させるためのプログラムを当
該コンピュータ装置が読み取り可能な形態で記録して成
る記録媒体。
6. A process for receiving a search request including a search condition expression for obtaining required records from a plurality of databases, a lower limit value of the number of uniquely obtained records, and a search target database name; A process of searching all records that satisfy the search condition expression from the search target database specified in the search request and comparing the total number of records obtained by the search with the lower limit; If the number is less than the number of unacquired databases is detected and the search target database is changed to an unsearched database and the search is continuously executed by the search condition expression, while the total number of acquired records is greater than the lower limit value Is a process for terminating a search based on the search request, and a program for causing a computer device to execute A recording medium recorded in a form readable by the computer device.
JP9121125A 1997-05-12 1997-05-12 Database system, information retrieval method, and recording medium Pending JPH10312385A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9121125A JPH10312385A (en) 1997-05-12 1997-05-12 Database system, information retrieval method, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9121125A JPH10312385A (en) 1997-05-12 1997-05-12 Database system, information retrieval method, and recording medium

Publications (1)

Publication Number Publication Date
JPH10312385A true JPH10312385A (en) 1998-11-24

Family

ID=14803509

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9121125A Pending JPH10312385A (en) 1997-05-12 1997-05-12 Database system, information retrieval method, and recording medium

Country Status (1)

Country Link
JP (1) JPH10312385A (en)

Similar Documents

Publication Publication Date Title
US5884310A (en) Distributed data integration method and system
US5903887A (en) Method and apparatus for caching result sets from queries to a remote database in a heterogeneous database system
US6105017A (en) Method and apparatus for deferring large object retrievals from a remote database in a heterogeneous database system
US6754648B1 (en) Method for storing and managing data
EP1566753A2 (en) Searchable archive
US5625771A (en) Method for making cursor form
US20120227055A1 (en) Workflow Processing System and Method with Database System Support
JP2008310634A (en) Database search apparatus and database search program
US5956727A (en) Heterogeneous database system with data source extensibility and alteration of database functions
JPH04349574A (en) Map data managing system
JPH10289134A (en) Access control method in database
JPH10111821A (en) Client server system
JPH10312385A (en) Database system, information retrieval method, and recording medium
US20130006921A1 (en) Method For Transferring Data into Database Systems
JPH09305622A (en) Database management method and system having document retrieval function
US11556515B2 (en) Artificially-intelligent, continuously-updating, centralized-database-identifier repository system
US7010552B2 (en) Optimizing command execution in database systems that provide support for updatable scrollable cursors
JP2870308B2 (en) Database management system
JPH07295868A (en) Database integrity constraint management method
JP4228267B2 (en) Collective attribute search system, collective attribute search method, and collective attribute search program
JP3298935B2 (en) File management device
JPH1091503A (en) Information resource management control method and system
JPH0340043A (en) Database generation management method
JPS63196956A (en) File exclusion system
JPH0560143B2 (en)