JPH0540677A - Index file opening control system - Google Patents

Index file opening control system

Info

Publication number
JPH0540677A
JPH0540677A JP3219172A JP21917291A JPH0540677A JP H0540677 A JPH0540677 A JP H0540677A JP 3219172 A JP3219172 A JP 3219172A JP 21917291 A JP21917291 A JP 21917291A JP H0540677 A JPH0540677 A JP H0540677A
Authority
JP
Japan
Prior art keywords
index file
instruction
index
open
database
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
JP3219172A
Other languages
Japanese (ja)
Inventor
Tomoko Miura
知子 三浦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Solution Innovators Ltd
Original Assignee
NEC Solution Innovators Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP3219172A priority Critical patent/JPH0540677A/en
Publication of JPH0540677A publication Critical patent/JPH0540677A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To open only an index file to be used by analyzing an instruction in a user program. CONSTITUTION:An instruction analysis means 2 analyzes the instruction for a data base 5 consisting of a data file d-1 and plural index files i-1 to i-n from a user program handling the data base 5. An index file use decision means 3 decides whether or not an anlyzed instruction is the one to use the index file, and an index fife opening decision means 4 decides whether or not the index file used in the instruction is opened when it is decided that the instruction is the one to use the index file. An index file opening means 6 opens the index file to be used when it is decided that the index file to be used is not opened.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は索引ファイルオープン制
御方式に関し、特にデータベースシステムにおいて、デ
ータファイルと複数の索引ファイルとで構成されている
データベースを扱うユーザプログラムから索引ファイル
を使用する場合の索引ファイルオープン制御方式に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an index file open control system, and more particularly, in a database system, an index file is used when a user program that handles a database composed of a data file and a plurality of index files uses the index file. Regarding open control system.

【0002】[0002]

【従来の技術】従来、データベースシステムでは、デー
タファイルと複数の索引ファイルとで構成されているデ
ータベースを扱うユーザプログラムの命令がデータベー
スを利用可能とするオープン命令のときには、指定した
データベースを構成するデータファイルとすべての索引
ファイルとをオープンしていた。
2. Description of the Related Art Conventionally, in a database system, when an instruction of a user program that handles a database composed of a data file and a plurality of index files is an open instruction that makes the database available, the data constituting the specified database is The file and all index files were open.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の索引フ
ァイルオープン制御方式では、データベースを扱うユー
ザプログラムに一部の索引ファイルを使用する命令また
は索引ファイルをまったく使用しない命令しか含まれて
いなくても、すべての索引ファイルをオープンしていた
ので、必要のない索引ファイルをオープンするための時
間がかかるという問題点があった。
In the conventional index file open control method described above, even if the user program that handles the database includes only an instruction that uses a part of the index file or an instruction that does not use the index file at all. Since all index files were opened, there was a problem that it took time to open unnecessary index files.

【0004】また、索引ファイルの1つに障害が発生し
た場合、障害のある索引ファイルを使用しないユーザプ
ログラムであっても、データベースを扱うことができ
ず、障害のある索引ファイルが復旧するまでデータベー
スを扱うことができなくなるという問題点があった。
Further, when a failure occurs in one of the index files, even a user program that does not use the failed index file cannot handle the database, and the database cannot be recovered until the failed index file is restored. There was a problem that could not handle.

【0005】本発明の目的は、上述の点に鑑み、ユーザ
プログラム中の命令を解析して使用する索引ファイルの
みをオープンするようにした索引ファイルオープン制御
方式を提供することにある。
In view of the above points, an object of the present invention is to provide an index file open control system in which an instruction in a user program is analyzed and only an index file to be used is opened.

【0006】[0006]

【課題を解決するための手段】本発明の索引ファイルオ
ープン制御方式は、データベースシステムにおいて、デ
ータファイルと複数の索引ファイルとで構成されている
データベースを扱うユーザプログラムから該データベー
スに対する命令を解析する命令解析手段と、この命令解
析手段によって解析された命令が索引ファイルを使用す
る命令か否かを判定する索引ファイル使用判定手段と、
この索引ファイル使用判定手段により索引ファイルを使
用する命令であると判定されたときに該命令で使用する
索引ファイルがオープンしているか否かを判定する索引
ファイルオープン判定手段と、この索引ファイルオープ
ン判定手段により使用する索引ファイルがオープンされ
ていないと判定されたときに該索引ファイルをオープン
する索引ファイルオープン手段とを有する。
According to the index file open control method of the present invention, in a database system, an instruction for analyzing an instruction to the database from a user program that handles a database composed of a data file and a plurality of index files. Analyzing means, and index file use determining means for determining whether or not the instruction analyzed by the instruction analyzing means is an instruction for using the index file,
Index file open determination means for determining whether the index file used by the instruction is open when the index file use determination means determines that the instruction uses the index file, and the index file open determination Index file opening means for opening the index file to be used when it is determined by the means that the index file to be used is not opened.

【0007】[0007]

【作用】本発明の索引ファイルオープン制御方式では、
命令解析手段がデータファイルと複数の索引ファイルと
で構成されているデータベースを扱うユーザプログラム
から該データベースに対する命令を解析し、索引ファイ
ル使用判定手段が命令解析手段によって解析された命令
が索引ファイルを使用する命令か否かを判定し、索引フ
ァイルオープン判定手段が索引ファイル使用判定手段に
より索引ファイルを使用する命令であると判定されたと
きに該命令で使用する索引ファイルがオープンしている
か否かを判定し、索引ファイルオープン手段が索引ファ
イルオープン判定手段により使用する索引ファイルがオ
ープンされていないと判定されたときに該索引ファイル
をオープンする。
In the index file open control system of the present invention,
The instruction analysis means analyzes an instruction for the database from a user program that handles a database composed of a data file and a plurality of index files, and the index file use determination means uses the index file for the instruction analyzed by the instruction analysis means. It is determined whether the index file open determination means is an instruction to use the index file by the index file use determination means and whether the index file used by the instruction is open or not. If the index file open means determines that the index file open determination means does not open the index file to be used, the index file open means opens the index file.

【0008】[0008]

【実施例】次に、本発明について図面を参照して詳細に
説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described in detail with reference to the drawings.

【0009】図1は、本発明の一実施例に係る索引ファ
イルオープン制御方式の構成を示すブロック図である。
本実施例の索引ファイルオープン制御方式は、ユーザプ
ログラム1と、命令解析手段2と、索引ファイル使用判
定手段3と、索引ファイルオープン判定手段4と、デー
タベース5と、索引ファイルオープン手段6とから構成
されている。
FIG. 1 is a block diagram showing the configuration of an index file open control system according to an embodiment of the present invention.
The index file open control system of this embodiment is composed of a user program 1, an instruction analysis unit 2, an index file use determination unit 3, an index file open determination unit 4, a database 5, and an index file open unit 6. Has been done.

【0010】ユーザプログラム1は、データベース5を
扱うユーザプログラムである。
The user program 1 is a user program that handles the database 5.

【0011】データベース5は、データファイルd−1
と、複数の索引ファイルi−1〜i−n(nは正整数)
とで構成されている。
The database 5 is a data file d-1.
And a plurality of index files i-1 to i-n (n is a positive integer)
It consists of and.

【0012】図2を参照すると、本実施例の索引ファイ
ルオープン制御方式の処理は、データベース命令判定ス
テップ20と、索引ファイル使用命令判定ステップ21
と、使用索引ファイルオープン判定ステップ22と、使
用索引ファイルオープンステップ23と、命令終了判定
ステップ24とからなる。
Referring to FIG. 2, the process of the index file open control method of this embodiment is performed by a database command determining step 20 and an index file use command determining step 21.
A use index file open determination step 22, a use index file open step 23, and an instruction end determination step 24.

【0013】次に、このように構成された本実施例の索
引ファイルオープン制御方式の動作について説明する。
Next, the operation of the index file open control system of the present embodiment thus constructed will be described.

【0014】まず、命令解析手段2は、ユーザプログラ
ム1内に記述してある命令を解析し、データベース5に
対する命令であるか否かを判定する(ステップ20)。
First, the instruction analysis means 2 analyzes the instruction described in the user program 1 and determines whether it is an instruction for the database 5 (step 20).

【0015】データベース5に対する命令でないと判定
された場合には、命令解析手段2は、ステップ24に制
御を渡す。
If it is determined that the command is not for the database 5, the command analysis means 2 transfers control to step 24.

【0016】データベース5に対する命令であると判定
された場合には、索引ファイル使用判定手段3は、デー
タベース5に対する命令が索引ファイルi−1〜i−n
のうちのいずれかを使用する命令であるか否かを判定す
る(ステップ21)。
When it is determined that the command is for the database 5, the index file use determining means 3 determines that the command for the database 5 is the index files i-1 to i-n.
It is determined whether the instruction uses any one of the above (step 21).

【0017】いずれの索引ファイルをも使用しない命令
と判定された場合には、索引ファイル使用判定手段3
は、ステップ24に制御を渡す。
If it is determined that the instruction does not use any of the index files, the index file use determining means 3
Passes control to step 24.

【0018】索引ファイルi−1〜i−nのうちのいず
れか、例えば索引ファイルi−1を使用する命令と判定
された場合には、索引ファイルオープン判定手段4は、
使用する索引ファイルi−1がオープンしているか否か
を判定する(ステップ22)。
If it is determined that the instruction uses any one of the index files i-1 to i-n, for example, the index file i-1, the index file open determination means 4
It is determined whether or not the index file i-1 to be used is open (step 22).

【0019】使用する索引ファイルi−1がオープンし
ていると判定された場合には、索引ファイルオープン判
定手段4は、ステップ24に制御を渡す。
When it is determined that the index file i-1 to be used is open, the index file open determination means 4 passes control to step 24.

【0020】使用する索引ファイルi−1がオープンし
ていないと判定された場合には、索引ファイルオープン
手段6は、使用する索引ファイルi−1をオープンし
(ステップ23)、ステップ24に制御を渡す。
If it is determined that the index file i-1 to be used is not open, the index file opening means 6 opens the index file i-1 to be used (step 23), and the control goes to step 24. hand over.

【0021】ステップ24では、ユーザプログラム1内
に記述してある命令が終了か否かを判定し、命令が終了
でなければ、ステップ20に制御を戻して、ユーザプロ
グラム1内に記述してある次の命令に対してステップ2
0〜24を繰り返す。ユーザプログラム1内に記述して
ある命令が終了であれば、索引ファイルのオープン制御
を終了する。
In step 24, it is judged whether or not the instruction described in the user program 1 is completed. If the instruction is not completed, the control is returned to step 20 and is described in the user program 1. Step 2 for the next instruction
Repeat 0 to 24. If the command described in the user program 1 is completed, the index file open control is completed.

【0022】[0022]

【発明の効果】以上説明したように本発明は、ユーザプ
ログラム中の命令を解析して命令が索引ファイルを使用
するか否かを判定し、使用する索引ファイルのみをオー
プンするようにしたことにより、ユーザプログラムで必
要のない索引ファイルをオープンする時間が削減される
という効果がある。
As described above, according to the present invention, the instruction in the user program is analyzed to determine whether or not the instruction uses the index file, and only the index file to be used is opened. The effect is that the time required to open an unnecessary index file in the user program is reduced.

【0023】また、使用する索引ファイルだけをオープ
ンするので、データベースに障害のある索引ファイルが
含まれていても、その索引ファイルを使用しないユーザ
プログラムであればデータベースを扱うことができると
いう効果がある。
Further, since only the index file to be used is opened, even if the database contains a defective index file, a user program that does not use the index file can handle the database. ..

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

【図1】本発明の一実施例に係る索引ファイルオープン
制御方式の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an index file open control system according to an embodiment of the present invention.

【図2】本実施例の索引ファイルオープン制御方式の動
作を示す流れ図である。
FIG. 2 is a flowchart showing the operation of the index file open control system of this embodiment.

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

1 ユーザプログラム 2 命令解析手段 3 索引ファイル使用判定手段 4 索引ファイルオープン判定手段 5 データベース 6 索引ファイルオープン手段 d−1 データファイル i−1〜i−n 索引ファイル 1 User Program 2 Instruction Analyzing Means 3 Index File Use Determining Means 4 Index File Open Determining Means 5 Database 6 Index File Opening Means d-1 Data Files i-1 to i-n Index Files

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 データベースシステムにおいて、 データファイルと複数の索引ファイルとで構成されてい
るデータベースを扱うユーザプログラムから該データベ
ースに対する命令を解析する命令解析手段と、 この命令解析手段によって解析された命令が索引ファイ
ルを使用する命令か否かを判定する索引ファイル使用判
定手段と、 この索引ファイル使用判定手段により索引ファイルを使
用する命令であると判定されたときに該命令で使用する
索引ファイルがオープンしているか否かを判定する索引
ファイルオープン判定手段と、 この索引ファイルオープン判定手段により使用する索引
ファイルがオープンされていないと判定されたときに該
索引ファイルをオープンする索引ファイルオープン手段
とを有することを特徴とする索引ファイルオープン制御
方式。
1. In a database system, an instruction analyzing unit for analyzing an instruction to the database from a user program that handles a database composed of a data file and a plurality of index files, and an instruction analyzed by the instruction analyzing unit. Index file use determining means for determining whether the instruction uses the index file, and when the index file use determining means determines that the instruction uses the index file, the index file used by the instruction is opened. The index file open determination means for determining whether or not the index file is open, and the index file open means for opening the index file when the index file open determination means determines that the index file to be used is not open. Index file which is characterized by Pung-control system.
JP3219172A 1991-08-05 1991-08-05 Index file opening control system Pending JPH0540677A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3219172A JPH0540677A (en) 1991-08-05 1991-08-05 Index file opening control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3219172A JPH0540677A (en) 1991-08-05 1991-08-05 Index file opening control system

Publications (1)

Publication Number Publication Date
JPH0540677A true JPH0540677A (en) 1993-02-19

Family

ID=16731332

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3219172A Pending JPH0540677A (en) 1991-08-05 1991-08-05 Index file opening control system

Country Status (1)

Country Link
JP (1) JPH0540677A (en)

Similar Documents

Publication Publication Date Title
JPH0721033A (en) Device and method for processing language
JPH0540677A (en) Index file opening control system
JP3660083B2 (en) Task margin analysis device, task margin analysis method, and recording medium storing task margin analysis program
JPH0331981A (en) Character recognizing device
JPH0713817A (en) File management system
JP2738696B2 (en) Printing control device
JPH05158664A (en) Information processor
JP2643839B2 (en) Completion method at the time of command input
JPH07129384A (en) Conversion system of operation procedure into natural language format file
JPH064296A (en) High-speed analysis processing device for job control language
JPH04326424A (en) Program correction system
JPH03129535A (en) Collecting volume optimizing system for debugging information
JPH0244442A (en) File deleting system
JPH03250363A (en) Character output device
JPH0561736A (en) Computer performance evaluation system
JPS61170827A (en) Operation sequence control system
JPH05257741A (en) Executing performance measurement system for program
JPS62120537A (en) Job input system
JPH0628286A (en) Method and device for controlling communication
JPH04241672A (en) Character string retrieving system
JPH0580992A (en) Output system for procedure-function relation chart
JPS63123133A (en) Error processing system
JPH02287729A (en) Information processor
JPH03257623A (en) Automatic executing system for program
JPH04167044A (en) Command processing system