JPH0210444A - Work file management system for data base system - Google Patents
Work file management system for data base systemInfo
- Publication number
- JPH0210444A JPH0210444A JP63161516A JP16151688A JPH0210444A JP H0210444 A JPH0210444 A JP H0210444A JP 63161516 A JP63161516 A JP 63161516A JP 16151688 A JP16151688 A JP 16151688A JP H0210444 A JPH0210444 A JP H0210444A
- Authority
- JP
- Japan
- Prior art keywords
- file
- work file
- temporary
- temporary work
- storage means
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はデータベースシステムをアクセスするデータベ
ース使用プログラムが使用する作業ファイルの管理方式
に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for managing work files used by a database usage program that accesses a database system.
従来、データベースシステムにおいて使用される作業フ
ァイルは、複数のプログラムで共有して使用されるため
、ディスク媒体上に十分な容量をあらかじめ確保して作
成していなければならない。Conventionally, work files used in database systems are shared by a plurality of programs, and therefore must be created by securing sufficient capacity on a disk medium in advance.
また、作業ファイルを使用する際にファイルの容量不足
を検出した場合には、当作業ファイルを使用するプログ
ラムに対して異常が通知され当プログラムの動作が途中
で終了する。Furthermore, if a shortage of file capacity is detected when using a work file, an abnormality is notified to the program that uses the work file, and the operation of the program is terminated midway.
上述した従来のデータベースシステムで使用する作業フ
ァイルは、複数のプログラムで共有して使用される特徴
があるため、使用頻度や使用容量が不定であり適切な容
量を指定して領域を確保することが困難である。そのた
め、ファイル容量不足の発生を防止するためにディスク
容量の無駄を承知で極端に大きな作業ファイルをディス
ク媒体上に確保しておく必要があり、データベースを使
用しない場合や作業ファイルを使用しなデータベース使
用のプログラムを動作させたい場合でも、上記作業ファ
イルがディスク媒体上に存在する欠点がある。The work files used in the conventional database systems mentioned above have the characteristic that they are shared by multiple programs, so the frequency of use and capacity used are undefined, and it is not possible to secure space by specifying an appropriate capacity. Have difficulty. Therefore, in order to prevent the occurrence of file capacity shortage, it is necessary to reserve an extremely large work file on the disk medium, even though it may waste disk space. Even if you want to run the program you are using, there is a drawback that the work file exists on the disk medium.
本発明の目的は、上述の欠点を除去し、カタログ情報記
憶手段に登録されたデータベースの一時作業ファイルの
情報に基づいて作業ファイルを使用するプログラムが動
作し作業ファイルを使用する場合に、一時作業ファイル
作成記憶手段に一時作業ファイルを作成し、当作業ファ
イル使用時にファイルの容量不足を検出すると動的にフ
ァイルの容量を拡張することにより上記欠点を除去し、
ファイルの容量計算等のシステム設計が容易に設定でき
るデータベースシステムにおける作業ファイル管理方式
を提供することにある。An object of the present invention is to eliminate the above-mentioned drawbacks, and to provide a temporary work file when a program that uses a work file operates based on the information of the temporary work file in the database registered in the catalog information storage means. The above disadvantages are eliminated by creating a temporary work file in the file creation storage means, and dynamically expanding the file capacity when insufficient file capacity is detected when using this work file,
An object of the present invention is to provide a work file management method in a database system that allows easy system design such as file capacity calculation.
本発明の方式は、カタログ情報記憶手段と、時作業ファ
イルカタログ情報格納手段と、作業ファイルオープン要
求手段と、カタログ情報取得手段と、内部制御テーブル
作成手段と、ファイルオープン手段と、一時作業ファイ
ル作成記憶手段と、一時作業ファイル作成手段と、作業
ファイル入出力手段と、一時作業ファイル動的拡張手段
と、ファイル使用状況管理領域拡張手段と、プログラム
終了処理手段と、一時作業ファイル削除手段とから構成
される。The system of the present invention includes a catalog information storage means, a temporary work file catalog information storage means, a work file open request means, a catalog information acquisition means, an internal control table creation means, a file open means, and a temporary work file creation means. Consisting of storage means, temporary work file creation means, work file input/output means, temporary work file dynamic expansion means, file usage management area expansion means, program termination processing means, and temporary work file deletion means. be done.
本発明は上記構成において、作業ファイルを使用するプ
ログラムを実行し作業ファイルを使用する際カタログ情
報記憶手段に登録された一時作業ファイルの情報を基に
、一時作業ファイル作成記憶手段に作業ファイルを作成
し当作業ファイルの容量不足を検出した際は、ファイル
の領域を動的に拡張していき、等プログラム終了時に上
記作業ファイルを削除することができるようにしたもの
である。In the above configuration, the present invention creates a work file in the temporary work file creation storage means based on the information of the temporary work file registered in the catalog information storage means when a program that uses the work file is executed and the work file is used. However, when it is detected that the capacity of the work file is insufficient, the area of the file is dynamically expanded, and the work file can be deleted when the program ends.
カタログ情報記憶手段は、作業ファイルを使用するデー
タベース使用プログラムを実行させる前に一時作業ファ
イルの情報を一時作業ファイルカタログ情報格納手段で
登録するためのものである。The catalog information storage means is for registering information on temporary work files in the temporary work file catalog information storage means before executing a database using program that uses the work files.
一時作業ファイルオープン手段は、データベース使用プ
ログラムで作業ファイルを使用する際に作業ファイルオ
ープン要求手段により要求される。The temporary work file open means is requested by the work file open request means when the work file is used by the database usage program.
カタログ情報取得手段は、カタログ情報記憶手段より一
時作業ファイルのカタログ情報を取得するものである。The catalog information acquisition means acquires catalog information of the temporary work file from the catalog information storage means.
内部制御テーブル作成手段は、上記情報を基にプログラ
ム内に一時作業ファイルに関する内部制御テーブルを作
成するものである。The internal control table creation means creates an internal control table regarding temporary work files within the program based on the above information.
一時ファイル作成手段は、上記作成した内部制御テーブ
ルを基に一時作業ファイル作成記憶手段にプログラム実
行中に作業ファイルを作成するものである。The temporary file creation means creates a work file in the temporary work file creation storage means during program execution based on the internal control table created above.
作業ファイル入出力手段は、一時作業ファイル作成記憶
手段に作成された作業ファイルに対してデータの入出力
を行い、ファイルの容量不足を検出した場合は、一時作
業ファイル動的拡張手段により一時作業ファイル作成記
憶手段に作成されている作業ファイルの領域を動的に拡
張するものである。The work file input/output means inputs and outputs data to the work file created in the temporary work file creation storage means, and if insufficient file capacity is detected, the temporary work file dynamic expansion means creates a temporary work file. This dynamically expands the area of the work file created in the creation storage means.
ファイル使用状況管理領域拡張手段は、一時作業ファイ
ル作成記憶手段の作業ファイルの領域を動的に拡張した
後で、拡張した領域を管理するために管理領域を拡張す
るものである。The file usage management area expansion means dynamically expands the work file area of the temporary work file creation storage means and then expands the management area in order to manage the expanded area.
一時作業ファイル削除手段は、データベース使用のプロ
グラムが終了する際にプログラム終了処理手段より要求
され、一時作業ファイル作成記憶手段内の当プログラム
で使用した作業ファイルを削除するものである。The temporary work file deletion means is requested by the program termination processing means when a program using the database is terminated, and deletes the work file used by the program in the temporary work file creation storage means.
次に本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.
第1図を参照すると、本発明の一実施例は、カタログ情
報記憶手段101と、一時作業ファイルカタログ情報格
納手段102と、データベース使用プログラム103と
、作業ファイルオープン要求手段104と、一時作業フ
ァイルオープン手段105と、カタログ情報取得手段1
06と、内部制御テーブル作成手段107と、内部制御
テーブル108と、ファイルオーブン手段109と、時
作業ファイル作成記憶手段110と、一時作業ファイル
作成手段111と、作業ファイル入出力手段112と、
一時作業ファイル動的拡張手段113と、ファイル使用
状況管理領域拡張手段114と、プログラム終了処理手
段115と、時作業ファイル削除手段116とから構成
される。Referring to FIG. 1, one embodiment of the present invention includes a catalog information storage means 101, a temporary work file catalog information storage means 102, a database use program 103, a work file open request means 104, and a temporary work file open request means 104. Means 105 and catalog information acquisition means 1
06, internal control table creation means 107, internal control table 108, file oven means 109, temporary work file creation storage means 110, temporary work file creation means 111, work file input/output means 112,
It is composed of temporary work file dynamic expansion means 113, file usage management area expansion means 114, program termination processing means 115, and temporary work file deletion means 116.
本実施例はデータベースシステムにおいて、データベー
ス使用プログラム103の実行前に、一時作業ファイル
カタログ情報格納手段102がカタログ情報記憶手段1
01に一時作業ファイルのカタログ情報を予め登録する
。第3図に示すように、このカタログ情報は、ファイル
の容量。In this embodiment, in a database system, before the database usage program 103 is executed, the temporary work file catalog information storage means 102 is stored in the catalog information storage means 1.
01, the catalog information of the temporary work file is registered in advance. As shown in Figure 3, this catalog information includes the file capacity.
ファイルの形成およびファイル名等を含む。登録後、デ
ータベース使用プログラム103の実行が開始され、プ
ログラム103内のデータベースに対するアクセス命令
104により一時作業ファイルオープン手段105が起
動され、作業ファイルのオープン要求が行なわれると、
オープン手段105は、さらに、カタログ情報取得手段
106手段101から格納手段102により予め登録さ
れたプログラム103に関連する一時作業ファイルめカ
タログ情報を取得し、この情報を内部制御テーブル作成
手段107に渡す。テーブル作成手段107はこのカタ
ログ情報に基づいてデータベース使用プログラム103
内に一時作業ファイルのアサイン情報を管理する第4図
に示すような内部制御テーブル108を作成する。Including file formation, file name, etc. After registration, execution of the database use program 103 is started, and the temporary work file opening means 105 is activated by the database access command 104 in the program 103, and a request to open the work file is made.
The open means 105 further acquires catalog information, which is a temporary work file related to the program 103 registered in advance by the storage means 102, from the catalog information acquisition means 106 means 101, and passes this information to the internal control table creation means 107. The table creation means 107 uses the database usage program 103 based on this catalog information.
An internal control table 108 as shown in FIG. 4 is created for managing temporary work file assignment information.
内部制御テーブル108作成後、一時作業ファイルオー
プン手段105は一時ファイル指定で作業ファイルのオ
ープンをファイルオープン手段109に対して要求する
。After creating the internal control table 108, the temporary work file open means 105 requests the file open means 109 to open a work file by specifying a temporary file.
ファイルオーブン手段109は第2図のような処理を行
なう。The file oven means 109 performs processing as shown in FIG.
データベースファイルのオープン処理の最初に、オープ
ンを要求されたファイルが一時ファイルであるか否かを
判断しくステップ201)、一時ファイルの場合には、
ステップ202,203゜204および205の処理を
行い、通常のファイルオープン処理206の前にカタロ
グ情報記憶手段101に登録された一時ファイルのカタ
ログ情報で指定した一時作業ファイル作成記憶手段11
0に作業ファイルを作成する。At the beginning of the database file open process, it is determined whether the file requested to be opened is a temporary file (step 201), and if it is a temporary file,
After performing the processes of steps 202, 203, 204 and 205, the storage means 11 creates a temporary work file specified by the catalog information of the temporary file registered in the catalog information storage means 101 before the normal file open processing 206.
Create a work file in 0.
さらに詳しく述べると、ステップ202では、一時作業
ファイル作成手段111に対して、ファイルの容量、フ
ァイルの形式、ファイル名等を知らせるために、内部制
御テーブル108から前記カタログ情報を得てインタフ
ェーステーブルを作成する。ステップ203では、一時
作業ファイル作成手段111に対して作業ファイルの作
成を要求し、ファイル作成手段111は前記インタフェ
ーステーブルを参照しながら作業ファイルを一時作業フ
ァイル作成記憶手段110に作成する。More specifically, in step 202, the catalog information is obtained from the internal control table 108 and an interface table is created in order to notify the temporary work file creation means 111 of the file capacity, file format, file name, etc. do. In step 203, the temporary work file creation means 111 is requested to create a work file, and the file creation means 111 creates the work file in the temporary work file creation storage means 110 while referring to the interface table.
ステップ204では、一時作業ファイル作成手段111
により作成された作業ファイルをデータベースシステム
で使用可能な状態にするため、作業ファイルの初期化処
理を実行する。In step 204, the temporary work file creation means 111
In order to make the work file created by the database system usable, initialize the work file.
データベース使用プログラム103がデータベースを使
用する場合、上記手段にて一時作業ファイル作成記憶手
段110に作成した作業ファイルを作業ファイル入出力
手段112で使用している最中にファイルの容量不足を
検出した場合は、一時作業ファイル動的拡張手段113
で一時作業ファイル作成記憶手段110に作成されてい
る作業ファイルの領域を拡張する。When the database usage program 103 uses a database, when a shortage of file capacity is detected while the work file created in the temporary work file creation storage means 110 by the above means is being used by the work file input/output means 112. is the temporary work file dynamic extension means 113
In this step, the area of the work file created in the temporary work file creation storage means 110 is expanded.
一時作業ファイル動的拡張手段113で一時作業ファイ
ルの領域を拡張した後で、拡張した領域を管理するため
にファイル使用状況管理領域拡張手段114で、当ファ
イルの使用状況管理領域を拡張する。After the temporary work file dynamic expansion means 113 expands the area of the temporary work file, the file usage status management area expansion unit 114 expands the usage status management area of the file in order to manage the expanded area.
ファイル拡張後、再度作業ファイル入出力手段112で
作業ファイルを使用中にファイルの容量不足を検出した
場合は、カタログ情報記憶手段101に登録された一時
ファイルのカタログ情報の拡張回数分、一時作業ファイ
ル動的拡張手段113とファイル使用状況管理領域拡張
手段114で一時作業ファイル作成記憶手段110上の
作業ファイルを拡張する。After expanding the file, if the work file input/output means 112 detects a file capacity shortage while using the work file again, the temporary work file The dynamic expansion means 113 and the file usage management area expansion means 114 expand the work file on the temporary work file creation storage means 110.
データベース使用プログラム103の終了時、プログラ
ム終了処理手段115に制御が渡り、そこで当プログラ
ムが一時作業ファイルを使用している場合は、一時作業
ファイル削除手段116で一時作業ファイル作成記憶手
段110に上記作成した作業ファイルを削除し、当ファ
イルで使用していた領域を開放する。When the database use program 103 ends, control is transferred to the program termination processing means 115, and if this program is using a temporary work file, the temporary work file deletion means 116 deletes the above created file in the temporary work file creation storage means 110. Delete the created work file and free up the space used by this file.
以上説明したように、本発明は、データベースシステム
で使用する作業ファイルを一時ファイルとすることによ
り、データベースを使用するユーザがファイルの容量不
足を心配することなく使用することが可能でありシステ
ム設計を容易に行なえるとともに各データベース使用プ
ログラム対応に適切な作業ファイルの容量を確保するた
めディスク媒体の無駄を除去できるという効果を有する
。As explained above, the present invention makes it possible for users of the database to use the database without worrying about running out of file capacity by making the work files used in the database system temporary files, and the system design can be improved. This is easy to do, and has the effect of eliminating wasted disk media because it ensures an appropriate work file capacity for each database usage program.
第1図は本発明の一実施例のブロック図、第2図は第1
図のファイルオープン手段109による処理を説明する
ための流れ図、第3図はカタログ情報を示す図および第
4図は内部制御テーブルである。
101・・・・・・カタログ情報記憶手段、102・・
・・・・一時作業ファイルカタログ情報格納手段、10
3・・・・・・データベース使用プログラム、104・
・・・・・データベースに対するアクセス命令、 1
05・・・・・・一時作業ファイルオープン手段、10
6・・・・・・カタログ情報取得手段、107・・・・
・・内部制御テーブル作成手段、108・・・・・・内
部制御テーブル、109・・・・・・ファイルオープン
手段、110・・・・・・一時作業ファイル作成記憶手
段、111・・・・・・一時作業ファイル作成手段、1
12・・・・・・作業ファイル入出力手段、113・・
・・・・一時作業ファイル動的拡張手段、114・・・
・・・ファイル使用状況管理領域拡張手段、115・・
・・・・フログラム終了処理手段、116・・・・・・
一時作業ファイル削除手段。FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a block diagram of an embodiment of the present invention.
FIG. 3 is a flowchart for explaining the processing by the file open means 109, FIG. 3 is a diagram showing catalog information, and FIG. 4 is an internal control table. 101... Catalog information storage means, 102...
...Temporary work file catalog information storage means, 10
3...Database usage program, 104.
...Access command to the database, 1
05...Temporary work file opening means, 10
6... Catalog information acquisition means, 107...
... Internal control table creation means, 108 ... Internal control table, 109 ... File opening means, 110 ... Temporary work file creation storage means, 111 ...・Temporary work file creation means, 1
12... Work file input/output means, 113...
...Temporary work file dynamic expansion means, 114...
...File usage management area expansion means, 115...
...Frogram end processing means, 116...
Means for deleting temporary work files.
Claims (2)
ス使用プログラムが使用する作業ファイルの管理方式に
おいて、各前記データベース使用プログラム毎に一時的
に作業領域として使用される作業ファイルの属性情報を
カタログ情報記憶手段に格納する一時作業ファイルカタ
ログ情報格納手段と、前記プログラムで使用する作業フ
ァイルが一時ファイルの場合に、カタログ情報取得手段
によって前記カタログ情報記憶手段から該プログラムで
使用する一時作業ファイルに関する属性情報を取得し該
情報に基づいてファイルのアサイン情報を有する内部制
御テーブルを作成する内部制御テーブル作成手段と、前
記カタログ情報取得手段と、データベースのファイルの
オープン処理を行うファイルオープン手段とに対して前
記一時作業ファイルのオープンを要求する一時作業ファ
イルオープン手段と、前記ファイルオープン手段でオー
プン要求されたファイルが一時作業ファイルの場合に該
ファイルの作成要求を行い一時作業ファイル作成記憶手
段上に一時作業ファイルを作成する一時作業ファイル作
成手段と、前記プログラムの実行終了時に、前記一時作
業ファイル作成記憶手段に作成された作業ファイルを削
除する一時作業ファイル削除手段とを備えたことを特徴
とするデータベースシステムにおける作業ファイル管理
方式。(1) In a management method for work files used by database usage programs that access the database system, attribute information of work files used as work areas temporarily for each database usage program is stored in a catalog information storage means. temporary work file catalog information storage means; and when the work file used in the program is a temporary file, the catalog information acquisition means acquires attribute information regarding the temporary work file used in the program from the catalog information storage means; an internal control table creation means that creates an internal control table having file assignment information based on the above, the catalog information acquisition means, and a file open means that performs database file open processing to open the temporary work file. a temporary work file open means for requesting a temporary work file; and a temporary work for creating a temporary work file on a temporary work file creation storage means by requesting the creation of a temporary work file when the file requested to be opened by the file open means is a temporary work file. A work file management method in a database system, comprising: a file creation means; and a temporary work file deletion means for deleting the work file created in the temporary work file creation storage means when execution of the program ends.
中に該ファイルの容量が不足した場合に前記一時作業フ
ァイル作成記憶手段上の該一時作業ファイルの領域を動
的に拡張する一時作業ファイル動的拡張手段と、該容量
不足発生時に前記一時作業ファイルの使用状況を管理す
る領域を拡張するファイル使用状況管理領域拡張手段と
を含むことを特徴とする特許請求の範囲第(1)項記載
のデータベースシステムにおける作業ファイル管理方式
。(2) A dynamic temporary work file that dynamically expands the area of the temporary work file on the temporary work file creation storage means when the capacity of the temporary work file becomes insufficient while the program is using the temporary work file. The database according to claim (1), characterized in that it includes an expansion means and a file usage status management area expansion unit that expands an area for managing the usage status of the temporary work file when the capacity shortage occurs. Work file management method in the system.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63161516A JPH07101396B2 (en) | 1988-06-28 | 1988-06-28 | Work file management method in database system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63161516A JPH07101396B2 (en) | 1988-06-28 | 1988-06-28 | Work file management method in database system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0210444A true JPH0210444A (en) | 1990-01-16 |
| JPH07101396B2 JPH07101396B2 (en) | 1995-11-01 |
Family
ID=15736558
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63161516A Expired - Fee Related JPH07101396B2 (en) | 1988-06-28 | 1988-06-28 | Work file management method in database system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH07101396B2 (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61122762A (en) * | 1984-11-20 | 1986-06-10 | Fujitsu Ltd | Control processing system of data set area |
-
1988
- 1988-06-28 JP JP63161516A patent/JPH07101396B2/en not_active Expired - Fee Related
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61122762A (en) * | 1984-11-20 | 1986-06-10 | Fujitsu Ltd | Control processing system of data set area |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH07101396B2 (en) | 1995-11-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1480130B1 (en) | Method and apparatus for moving data between storage devices | |
| JP3031393B2 (en) | Dynamic change method of the number of buffer planes by class | |
| JPH1063557A (en) | Distributed file synchronization system | |
| JPH0210444A (en) | Work file management system for data base system | |
| CN109165095B (en) | The method of rapid opening of information system based on task package | |
| JP4572857B2 (en) | Tape virtualization system, tape virtualization method, and tape virtualization program | |
| JPS62221048A (en) | Method for extending area of continuous file | |
| JP3013856B2 (en) | File generation automatic selection processor | |
| JP3050194B2 (en) | A system for dynamically adding a shared memory file between hosts, a method for dynamically adding a shared memory file between hosts, and a recording medium storing a program for dynamically adding a shared memory file between hosts | |
| JP3123498B2 (en) | Program restart device and its program recording medium | |
| JP2641399B2 (en) | File management device | |
| JPH11120056A (en) | Saving and restoring project data | |
| JPS62282341A (en) | Data managing system | |
| JPH0337748A (en) | External storage accessing system utilizing main storage | |
| JP3056128B2 (en) | Work area securing method | |
| JPH0744426A (en) | File system file management method | |
| JPH01267730A (en) | System for changing dynamic constitution for os | |
| JPH04336341A (en) | File access control system | |
| JPH0496151A (en) | Random access system for sequential organization file | |
| JPH0338744A (en) | File control method | |
| JPH0267650A (en) | File saving control system | |
| JPH01214946A (en) | System for partially releasing file | |
| JPH0652028A (en) | File management device | |
| JPH02308347A (en) | Medium management table generating system | |
| JPH03217950A (en) | Processing method for control of vsam file |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |