JPH06231015A - Data base system area expanding device - Google Patents

Data base system area expanding device

Info

Publication number
JPH06231015A
JPH06231015A JP5041985A JP4198593A JPH06231015A JP H06231015 A JPH06231015 A JP H06231015A JP 5041985 A JP5041985 A JP 5041985A JP 4198593 A JP4198593 A JP 4198593A JP H06231015 A JPH06231015 A JP H06231015A
Authority
JP
Japan
Prior art keywords
area
expansion
size
location
designated
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
JP5041985A
Other languages
Japanese (ja)
Inventor
Kenji Nishiyama
研司 西山
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP5041985A priority Critical patent/JPH06231015A/en
Publication of JPH06231015A publication Critical patent/JPH06231015A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To provide a data base system area expanding device by which the setting and usage. etc., of the area of an external memory device, can be executed smoothly. CONSTITUTION:An area expansion place (directory, etc.) when the shortage of an area occurs is designated by a designating means 2 such as a mouse or display device, etc., and a designated area expansion place is stored in a storage means 9. When the shortage of the area occurs, the fact is referred to an area setting means 12, and an expansion area of prescribed size is set at the place. Also, the size of the expansion area is designated in addition to the area expansion place, and when the shortage of the area occurs, the expansion area of designated size is set at the designated area expansion place. Furthermore, priority is designated in addition to the area expansion place and size of it, and when the shortage of the area occurs, the size of the remaining area of the designated expansion place is inspected by designated priority, and it is set at a place where the expansion area of designated size can be set.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はデータベースシステム領
域拡張装置に関し、詳しくはデータを記憶するための領
域に不足が生じた場合に、的確に且つ自動的に領域拡張
を実行する為のデータベースシステム領域拡張装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database system area expansion device, and more particularly, to a database system area for executing area expansion accurately and automatically when an area for storing data runs short. Regarding expansion device.

【0002】[0002]

【従来の技術】データベースシステムでは、データを格
納する為の領域の拡張は、通常、その不足が発生した時
点で実行される(例えば特開平3−240844号公
報、(株)日本オラクル(株)「ORACLEデータベ
ース管理者ガイド バージョン6.0」(1992年5
月)同社発行 領域管理 16−13ページ)。データ
ベースシステムでは、レコード1件あたり必要とされる
領域の単位が大きい。この為、むやみに領域を設定して
おくと、外部記憶装置の領域を圧迫する虞れがある。又
そもそもデータベースシステムで扱われるデータ量はシ
ステム毎に千差万別である。従って、予め最適な領域を
設定しておくことが難しく、この為、上記のように領域
不足が発生した時点で領域拡大処理を行なうという処理
形式が採られている。従来、この領域拡張は、データベ
ース管理者の手作業か、或いはシステムによる自動処理
によって行なわれていた(例えば手作業については前掲
「ORACLEデータベース管理者ガイド バージョン
6.0」、自動処理については前掲特開平3−2408
44公報等参照)。
2. Description of the Related Art In a database system, the expansion of an area for storing data is usually executed when the shortage occurs (for example, Japanese Patent Laid-Open No. 3-240844, Oracle Japan Co., Ltd.). "ORACLE Database Administrator's Guide Version 6.0" (May 1992)
Mon) Issued by the company Area management 16-13). In the database system, the unit of the area required for each record is large. Therefore, if the area is set unnecessarily, the area of the external storage device may be pressed. Also, the amount of data handled by the database system varies from system to system. Therefore, it is difficult to set an optimum area in advance, and therefore, the processing format is adopted in which the area expansion processing is performed when the area shortage occurs as described above. Conventionally, this area expansion has been carried out manually by a database administrator or automatically by the system (for example, for the manual work, the above-mentioned “ORACLE Database Administrator Guide Version 6.0”, and for the automatic processing, the above-mentioned special feature is used. Kaihei 3-2408
44, etc.).

【0003】[0003]

【発明が解決しようとする課題】手間が掛からないとい
う点で、前掲特開平3−240844号公報記載の技術
が、前掲「ORACLEデータベース管理者ガイド」記
載の技術より優れていることはいうまでもない。しかし
この公報記載の技術では、どこに新たな領域を設定する
かについて、何等考慮が為されていなかった。この為、
例えば、新たな領域を設定しようとしても、そのときの
カレントディレクトリに空きが無くエラーになってしま
ったり、領域拡張は行なわれたものの、他のシステムの
領域設定を不可能にしてしまう、というように、領域の
設定、利用に関し、トラブルを生ずることがあった。本
発明の目的は、上記従来技術の欠点を解消し、領域の設
定、利用等が円滑に実行されるデータベースシステム領
域拡張装置を提供することにある。
Needless to say, the technique described in Japanese Patent Laid-Open No. 3-240844 is superior to the technique described in "ORACE database administrator's guide" in that it does not take time and effort. Absent. However, in the technique described in this publication, no consideration is given to where to set a new area. Therefore,
For example, if you try to set a new area, there will be an error because there is no space in the current directory at that time, or the area will be expanded, but it will be impossible to set the area on other systems. In some cases, there was a problem with setting and using the area. An object of the present invention is to solve the above-mentioned drawbacks of the prior art and to provide a database system area expansion device in which area setting, use, etc. are smoothly executed.

【0004】[0004]

【課題を解決するための手段】上記目的達成の為、請求
項1の発明では、領域不足発生時の領域拡張場所を指定
する指定手段と、該指定された領域拡張場所を記憶する
記憶手段と、領域不足発生時、前記記憶手段を参照し、
前記指定された領域拡張場所に所定の大きさの拡張領域
を設定する領域設定手段とを備える。また請求項2の発
明では、領域不足発生時の領域拡張場所及び拡張領域の
大きさを指定する指定手段と、該指定された領域拡張場
所及び拡張領域の大きさを記憶する記憶手段と、領域不
足発生時、前記記憶手段を参照し、前記指定された領域
拡張場所に前記指定された大きさの拡張領域を設定する
領域設定手段とを備える。更に請求項3の発明では、領
域不足発生時の領域拡張場所、優先順位及び拡張領域の
大きさを指定する指定手段と、該指定された領域拡張場
所、優先順位及び拡張領域の大きさを記憶する記憶手段
と、領域不足発生時、前記記憶手段を参照し、前記指定
された優先順位に従って前記指定された各領域拡張場所
の残り領域の大きさと前記指定された拡張領域の大きさ
とを比較し、前記指定された大きさの拡張領域設定が可
能な領域拡張場所を選択する選択手段と、該選択された
領域拡張場所に前記指定された大きさの拡張領域を設定
する領域設定手段とを備える。
In order to achieve the above object, in the invention of claim 1, there is provided a designating means for designating an area expansion location when an area shortage occurs, and a storage means for storing the designated area expansion location. , When the area shortage occurs, refer to the storage means,
Area setting means for setting an expansion area of a predetermined size at the specified area expansion location. Further, in the invention of claim 2, a designation means for designating the area expansion place and the size of the expansion area when the area shortage occurs, a storage means for storing the specified area expansion place and the size of the expansion area, and the area When a shortage occurs, the storage unit is referred to, and an area setting unit that sets an expansion area of the specified size at the specified area expansion location is provided. Further, according to the invention of claim 3, a designation means for designating the area expansion place, the priority and the size of the expansion area when the area shortage occurs, and the specified area expansion place, the priority and the size of the expansion area are stored. And a storage unit that, when an area shortage occurs, refers to the storage unit and compares the size of the remaining area at each of the specified area expansion locations with the size of the specified expansion area in accordance with the specified priority. A selection means for selecting an area expansion place where the expansion area of the specified size can be set, and an area setting means for setting the expansion area of the specified size at the selected area expansion place .

【0005】[0005]

【作用】請求項1の発明に於て、指定手段、例えばキー
ボード、マウス、表示装置等を使用して、領域不足発生
時の領域拡張場所が指定されると、該指定された領域拡
張場所は記憶手段に記憶される。この領域拡張場所は、
領域不足発生時、領域設定手段によって参照され、該指
定された領域拡張場所に所定の大きさの拡張領域が設定
される。従って、データベースシステム用に用意してお
いたディレクトリや、空き領域が十分設定されているデ
ィレクトリ、或いは他のシステムとの兼ね合いが取れる
ディレクトリ等を、前記領域拡張場所として予め指定し
ておくとことにより、円滑に、且つ他のシステムの領域
利用等に支障を来さない形で領域自動拡張が実行され
る。また請求項2の発明では、前記同様の指定手段によ
り、領域不足発生時の領域拡張場所及び拡張領域の大き
さが指定され、領域不足発生時、該指定された領域拡張
場所に該指定された大きさの拡張領域が設定される。従
って、前記同様の形でその大きさ及び拡張場所を予め指
定しておくことにより、前記同様の形でそれよりも更に
円滑な形で領域自動拡張が実行される。更に請求項3の
発明では、前記同様の指定手段により、領域不足発生時
の領域拡張場所、優先順位及び拡張領域の大きさが指定
され、領域不足発生時、該指定された優先順位に従って
該指定された拡張場所の残り領域の大きさが検査され、
読み出された大きさの拡張領域の設定が可能な場所にそ
の大きさの拡張領域が設定される。従って、その大き
さ、拡張場所及びその優先順位を予め指定しておくこと
により、その優先順位、即ちユーザやデータベースシス
テム管理者が、最も円滑に且つ他のシステムの領域利用
等に最も支障を来さないと考えた順序で、領域拡張場所
の選択と自動拡張が実行される。
In the invention of claim 1, when the area expansion location at the time of area shortage is specified by using the specifying means, for example, the keyboard, the mouse, the display device, etc., the specified area expansion location is changed. It is stored in the storage means. This area expansion location is
When an area shortage occurs, the area setting means refers to it and an expansion area of a predetermined size is set at the designated area expansion location. Therefore, by specifying a directory prepared for the database system, a directory with sufficient free space, or a directory that can be balanced with other systems, as the area expansion location in advance. Area automatic expansion is executed smoothly and in a manner that does not hinder the area usage of other systems. Further, in the invention of claim 2, the same designation means designates the area expansion location and the size of the expansion area when the area shortage occurs, and when the area shortage occurs, the area extension location is designated to the specified area extension location. A size expansion area is set. Therefore, by previously specifying the size and expansion location in the same manner as described above, the area automatic expansion is executed in a manner similar to the above and in a smoother manner than that. Further, in the invention of claim 3, by the same designating means, the area expansion place, the priority order and the size of the expansion area when the area shortage occurs are designated, and when the area shortage occurs, the designation is performed in accordance with the designated priority order. The size of the remaining area of the expanded location is checked,
The extended area of that size is set at a location where the extended area of the read size can be set. Therefore, by designating the size, the expansion location, and the priority in advance, the priority, that is, the user or the database system administrator, can most smoothly interfere with the use of the area of other systems. Area expansion location selection and automatic expansion are executed in the order in which they think they will not.

【0006】[0006]

【実施例】以下本発明の詳細を図示実施例に基いて説明
する。図1に実施例装置の構成を示す。図に於て、1は
表示装置で、CRT、LCD等で実現される。2は入力
装置で、キーボード、マウス等で実現される。3−1〜
3−3は磁気ディスク記憶装置で、このうち磁気ディス
ク記憶装置3−1には各データベース管理ファイル4−
1(DB管理ファイル1),4−2(DB管理ファイル
2),…,…等を格納する為のデータベース管理領域5
−1、及び各ユーザファイル6−1(ユーザファイル
1),ユーザファイル6−2(ユーザファイル2),
…,…を格納する為のユーザ領域5−2が設けられ、磁
気ディスク記憶装置3−2には各ログファイル7−1
(ログファイル1),ログファイル7−2(ログファイ
ル2),…,…を格納する為のログ領域5−3が設けら
れている。なお磁気ディスク記憶装置3−3は、後の説
明に於て、拡張領域を設定する場所として使用される。
8はデータベース管理部で、ユーザのコマンドに従い、
データの検索、データ入力、データ更新その他データベ
ースシステムで必要とされる各種処理を実行する。
The details of the present invention will be described below with reference to the illustrated embodiments. FIG. 1 shows the configuration of the embodiment apparatus. In the figure, 1 is a display device, which is realized by a CRT, LCD or the like. An input device 2 is realized by a keyboard, a mouse, and the like. 3-1
3-3 is a magnetic disk storage device, of which the magnetic disk storage device 3-1 has database management files 4-
A database management area 5 for storing 1 (DB management file 1), 4-2 (DB management file 2), ...
-1, and each user file 6-1 (user file 1), user file 6-2 (user file 2),
A user area 5-2 for storing ..., ... Is provided, and each log file 7-1 is provided in the magnetic disk storage device 3-2.
A log area 5-3 for storing (log file 1), log file 7-2 (log file 2), ..., Is provided. The magnetic disk storage device 3-3 will be used as a place for setting an extended area in the description below.
8 is a database management unit,
It executes data retrieval, data input, data update, and other various processes required by the database system.

【0007】9は拡張情報記憶部で領域拡張に関する情
報を記憶する。本実施例に於て、この領域拡張に関する
情報は、領域不足が検知されたとき拡張領域を設定する
場所(ディレクトリなど)、その優先順位、拡張領域と
してのファイルの大きさ、及びその拡張場所が既に使用
されたか否かを示すフラグ、の三つのデータの組み合わ
せで1件とされ、これら1件毎のデータが表示装置1及
び入力装置2を使用してユーザやデータベースシステム
管理者により入力される。10は領域不足監視部で、各
ファイルの各データ格納領域の使用状況を監視し、その
空き領域が所定量、例えば全体の10パーセントより少
なくなったとき、その旨を拡張場所選択部11に報知す
る。拡張場所選択部11はこの報知に応動し、拡張情報
記憶部9を参照して前記指定された優先順位に従って前
記指定された各領域拡張場所の残り領域の大きさと前記
指定された拡張領域の大きさとを比較する。これにより
前記指定された大きさの拡張領域設定が可能な領域拡張
場所を選択し、これを領域拡張部12に報知する。領域
拡張部12はこの報知に応動し、例えば「CREAT
E」など所定のコマンドを使用して、拡張場所選択部1
1が選択した場所に拡張領域、例えば拡張ファイル13
を設定する。設定された拡張領域の位置、大きさ等の情
報はデータベース管理部8に通知され、データベース管
理部8はこの拡張領域、例えば拡張ファイル13を自己
の管理ファイルに追加し、このファイルに対するデータ
入力、更新、検索等の各種処理を実行する。
An extension information storage unit 9 stores information about area extension. In the present embodiment, the information about the area expansion includes the location (directory etc.) where the extension area is set when the area shortage is detected, its priority, the size of the file as the extension area, and the extension location. A combination of three data, that is, a flag indicating whether or not it has already been used, is treated as one case, and data for each case is input by the user or the database system administrator using the display device 1 and the input device 2. . An area shortage monitoring unit 10 monitors the usage status of each data storage area of each file, and when the free space becomes less than a predetermined amount, for example, 10% of the total, notifies the extension location selection unit 11 of that fact. To do. In response to this notification, the extension location selection unit 11 refers to the extension information storage unit 9 and determines the size of the remaining area of each of the designated area extension locations and the size of the designated extension area in accordance with the designated priority. Compare with. As a result, the area expansion place where the specified expansion area can be set is selected, and the area expansion unit 12 is notified of this. The area expansion unit 12 responds to this notification and, for example, “CREAT
By using a predetermined command such as "E", the extended location selection unit 1
1 is an extension area at a location selected, for example, extension file 13
To set. Information such as the position and size of the set extension area is notified to the database management unit 8, and the database management unit 8 adds this extension area, for example, the extension file 13 to its own management file, and inputs data to this file. It executes various processes such as updating and searching.

【0008】領域拡張に関する情報を入力する為の画面
表示例を図2に示す。この画面は例えばデータベースシ
ステムのメニュー画面で「拡張情報入力」等の項目を選
択することにより表示される。最初は優先順位1番の領
域拡張に関する情報を入力する為の入力エリアのみが示
される。「領域拡張をする優先順位が一番高いディレク
トリ」、「拡張ファイルの大きさ」を入力する。次の優
先順位の領域拡張に関する情報を入力するには、カーソ
ルを移動し「次指定」を指示する。これにより画面に優
先順位2番の入力エリアが表示される。優先順位1番の
ときと同じように、優先順位2番の領域拡張に関する情
報を入力する。この入力を繰り返し、全部の情報入力が
終ったら、カーソルを移動し「終了」を指示する。これ
で領域拡張に関する情報の入力処理が終了する。入力さ
れた情報は、データベース管理部8により拡張情報記憶
部9に格納される。拡張情報記憶部9に記憶されたこの
情報の例を図3に示す。なお優先順位3番以下の表示は
省略する。また拡張ファイルのサイズはメガバイトであ
る。
FIG. 2 shows an example of a screen display for inputting information regarding area expansion. This screen is displayed, for example, by selecting an item such as "extended information input" on the menu screen of the database system. Initially, only the input area for inputting the information regarding the area expansion having the first priority is shown. Enter the directory with the highest priority for area expansion and the size of the expansion file. To enter information about the next priority area expansion, move the cursor and specify "Next". As a result, the input area with the second priority is displayed on the screen. As in the case of the first priority, the information about the area expansion of the second priority is input. This input is repeated, and when all information has been input, the cursor is moved to instruct "end". This completes the input processing of information related to area expansion. The input information is stored in the extended information storage unit 9 by the database management unit 8. An example of this information stored in the extended information storage unit 9 is shown in FIG. It should be noted that the display of the third priority and below is omitted. The size of the extension file is megabytes.

【0009】領域拡張処理の例を図4に示す。先ず各フ
ァイルの各データ格納領域等に十分な空きがある間はス
テップS1〜ステップS3の処理が繰り返される。即ち
この間は、領域不足監視部10から拡張場所選択部11
への領域不足の報知が為されない。従ってステップS3
の答は「No」であり、ステップS1、S2の処理、即
ちユーザによる検索、入力、更新等、コマンド入力に対
応したデータ処理が順に実施される。なおステップの語
は以後省略する。S2のデータ処理としてデータの更新
や追加入力等が行なわれ、これによって領域が使用され
る等により、何れかのファイル(4−1,4−2,…,
6−1,6−2,…,7−1,7−2,…,等)の空き
領域が所定量を下回ったとする。S3の答が「Yes」
となり、S4に進む。ここで拡張場所選択部11により
拡張情報記憶部9が参照される。ここでは拡張情報記憶
部9に図3のような情報が格納されていたとする。優先
順位1番の領域拡張に関する情報については既に使用済
みフラグが「1」になっている。この情報に示される領
域拡張場所には拡張ファイルを設定することが出来な
い。そこで拡張場所選択部11は使用済みフラグが
「0」になっている優先順位2番の領域拡張に関する情
報を読み出す。そして、この情報で指定された領域拡張
場所、即ち「/home2/」のディレクトリの残り領
域の大きさをシステムから取得する。ここではディレク
トリ「/home2/」が磁気ディスク記憶装置3−3
にあり、残り領域が50メガバイト以上あったとする。
S5の答は「Yes」となり、このディレクトリ「/h
ome2/」が新たに領域を拡張する場所として拡張場
所選択部11により選択される。
An example of the area expansion processing is shown in FIG. First, while there is a sufficient space in each data storage area of each file, the processing of steps S1 to S3 is repeated. That is, during this period, the area shortage monitoring unit 10 to the expansion location selecting unit 11
Is not notified of the area shortage. Therefore, step S3
The answer is “No”, and the processing of steps S1 and S2, that is, data processing corresponding to command input such as user search, input, and update is sequentially performed. The word of step will be omitted hereinafter. Data update, additional input, etc. are performed as the data processing of S2, and the area is used thereby, so that any of the files (4-1, 4-2, ...,
6-1, 6-2, ..., 7-1, 7-2 ,. The answer of S3 is "Yes"
Then, the process proceeds to S4. Here, the extension location selection unit 11 refers to the extension information storage unit 9. Here, it is assumed that the extended information storage unit 9 stores information as shown in FIG. The used flag has already been set to "1" for the information regarding the area expansion having the first priority. An extension file cannot be set in the area extension location indicated by this information. Therefore, the extension location selecting unit 11 reads out information about the area extension having the second priority with the used flag being “0”. Then, the area expansion location designated by this information, that is, the size of the remaining area of the directory "/ home2 /" is acquired from the system. Here, the directory "/ home2 /" is the magnetic disk storage device 3-3.
And the remaining area is 50 megabytes or more.
The answer to S5 is "Yes", and this directory "/ h
“Ome2 /” is selected by the extension location selection unit 11 as a location to newly extend the area.

【0010】該選択されたディレクトリの名称「/ho
me2/」は領域拡張部12に報知される。領域拡張部
12はこれに応動して例えば「CREATE」等のコマ
ンドを使用してこの磁気ディスク記憶装置3−3に新た
な拡張ファイル、例えば13を設定する(S6)。設定
された拡張ファイル13等の情報は領域拡張部12から
データベース管理部8に報知される。データベース管理
部8はこの情報を記憶し、前記何れかのファイル(4−
1,4−2,…,6−1,6−2,…,7−1,7−
2,…,等)の空きが無くなったとき、この拡張ファイ
ル13等をデータ格納領域として利用する。なお設定さ
れた領域を表わす情報は、データベースシステムが構築
されているシステムの環境によって異なる。ここではデ
ィレクトリとファイル名で表わされる。領域の取得の仕
方や管理の仕方によってはトラック番号、ボリューム名
等で表わされることもある。次に、S4に於て使用済み
フラグが「0」であるとして拡張情報記憶部9から採り
出されたものであっても、その情報で指定されたディレ
クトリの残り容量がその情報で指定された領域の大きさ
に満たない場合もある(S5「No」)。この場合はS
7に進み、その拡張場所の使用済みフラグを「1」に
し、S8に進んで、まだ使用済みフラグ「0」の拡張場
所があるか否かを検査する。システムの運用が不適切で
なければ、通常この拡張場所は存在する。S7に戻り、
拡張情報記憶部9を参照して次の拡張場所の候補を読み
出す。なお何らかの事情で拡張情報記憶部9に記憶され
ている全ての拡張場所が使用済みフラグ「1」であった
場合は、その旨を表示装置1で表示してユーザやシステ
ム管理者に報知し、処理を終る(S9)。
The name of the selected directory "/ ho
The “me2 /” is notified to the area expansion unit 12. In response to this, the area expansion unit 12 uses a command such as "CREATE" to set a new expansion file, for example 13, in this magnetic disk storage device 3-3 (S6). Information about the set extension file 13 and the like is notified from the area extension unit 12 to the database management unit 8. The database management unit 8 stores this information and stores it in any one of the files (4-
1, 4-2, ..., 6-1, 6-2, ..., 7-1, 7-
(2, ..., And so on), the extension file 13 and the like are used as a data storage area. The information indicating the set area varies depending on the environment of the system in which the database system is constructed. Here, it is represented by a directory and a file name. Depending on how the area is acquired and managed, it may be represented by a track number, a volume name, or the like. Next, in S4, even if the used flag is taken out from the extended information storage unit 9 as the used flag being "0", the remaining capacity of the directory designated by the information is designated by the information. In some cases, the size of the area is less than the size of the area (S5 “No”). In this case S
7, the used flag of the extension location is set to "1", and the process proceeds to S8 to check whether there is an extension location of the used flag "0". If the system is not improperly operated, this extension location usually exists. Return to S7,
The extension information storage unit 9 is referred to read the next extension location candidate. If, for some reason, all the expansion locations stored in the expansion information storage unit 9 are used flags “1”, the fact is displayed on the display device 1 to notify the user or system administrator, The process ends (S9).

【0011】なお検査したときは残り容量が不足してい
ても、その後、他のシステムで使用されていた領域やデ
ィレクトリ、ファイル等が、解放削除等されることによ
って、指定された拡張場所の残り領域が増加するという
環境もあり得る。このようなシステムの場合は、例えば
図3等で示した使用済みフラグを設けず、図5のような
処理をすると良い。なおこの図5の処理は図4の処理の
一部を修正したもので、フラグを使用しない。即ち、領
域拡張を行なう際は、毎回、優先順位の高いものから順
に呼出しをし、それに対して「そこに指定サイズのファ
イルが作成可能か」を検査する(S5)。この点のみが
図4の処理と異なる。冗長になるので、この点に関して
のみ説明をし、図4と同じ内容の部分については同じ番
号を付すだけで説明を略す。即ちこの図5の処理例で
は、領域不足となったとき(S3「Yes」)、先ず変
数nが初期値「1」にされる(S11)。この変数nは
優先順位を指す為に使用されるもので、このあとS12
に進み、該変数nで指定される優先順位の拡張場所、即
ち優先順位1番の拡張場所が読み出され、そこに指定サ
イズのファイルが作成可能か否かが検査される。作成可
能であれば、図4の処理同様、そこに拡張領域たるファ
イルが作成される(S6)。作成不能であれば、変数n
がインクリメントされ(S13)、インクリメント後の
値が優先順位の最大値maxを越えていないかが検査さ
れる(S14)。越えていなければまだ拡張場所の候補
がある。S12に戻り、その順位n番の拡張場所につい
てS5の検査が行なわれる。S14に於て答が「No」
の場合は、もう拡張場所の候補が無い。先の例と同じく
S9に進んで、エラーの報知をし、処理を終る。
Even if the remaining capacity is insufficient when checked, the areas, directories, files, etc. used by other systems are then released and deleted, etc. There may be an environment where the area increases. In the case of such a system, for example, the used flag shown in FIG. 3 and the like may not be provided and the processing shown in FIG. 5 may be performed. The process shown in FIG. 5 is a modification of part of the process shown in FIG. 4, and no flag is used. That is, every time the area is expanded, it is called in order from the one with the highest priority, and it is checked whether "a file of the specified size can be created there" (S5). Only this point is different from the processing of FIG. Since this is redundant, only this point will be described, and the description of the parts having the same contents as those in FIG. That is, in the processing example of FIG. 5, when the area becomes insufficient (S3 “Yes”), the variable n is first set to the initial value “1” (S11). This variable n is used to indicate the priority order.
Then, the extension location having the priority designated by the variable n, that is, the extension location having the first priority is read, and it is examined whether or not a file of the designated size can be created therein. If it can be created, a file that is an extended area is created in the same way as the processing of FIG. 4 (S6). If it cannot be created, the variable n
Is incremented (S13), and it is checked whether the incremented value exceeds the maximum priority value max (S14). If not, there are still candidates for expansion locations. Returning to step S12, the inspection of step S5 is performed on the nth expansion place. The answer is "No" in S14.
In the case of, there is no candidate for extension location anymore. Similar to the previous example, the process proceeds to S9, an error is notified, and the process ends.

【0012】以上、図1〜図5を引用して説明した実施
例が請求項3の発明の一実施例にあたる。この実施例に
於て拡張情報記憶部9に記憶する拡張場所のデータを1
個とし、拡張場所選択部11を削除して、図4に代え図
6の処理を行なうようにすると、請求項2の発明の一実
施例となる。なお図6の処理は図4の処理を簡素化した
もので、理解容易と思料される。説明を省略する。同様
に上記図1〜図5に示した実施例に於て拡張情報記憶部
9に記憶する拡張場所のデータを1個とし、拡張場所選
択部11を削除して、図4に代え図7の処理を行なうよ
うにすると、請求項1の発明の一実施例となる。なお図
7のS32の所定サイズは、そのデータベースシステム
で好ましいと思われる拡張サイズとする。この実施例の
処理も図4の処理を簡素化したものである。理解容易と
思料される。説明を省略する。最後に実施例の構成と請
求項の構成の対応を述べる。表示装置1及び入力装置2
が指定手段、拡張情報記憶部9が記憶手段、図7のS3
1,S6の処理を行なっている領域拡張部12が請求項
1の領域設定手段、図6のS21,S6の処理を行なっ
ている領域拡張部12が請求項1の領域設定手段、拡張
場所選択部11が選択手段、図4のS5,S6または図
5のS12,S6の処理を行なっている領域拡張部12
が請求項3の領域設定手段にあたる。
The embodiment described with reference to FIGS. 1 to 5 corresponds to an embodiment of the invention of claim 3. In this embodiment, the extension location data stored in the extension information storage unit 9 is set to 1
When the number is set to one and the extended location selecting unit 11 is deleted and the processing of FIG. 6 is performed instead of that of FIG. 4, an embodiment of the invention of claim 2 is obtained. The process of FIG. 6 is a simplification of the process of FIG. 4, and is considered to be easy to understand. The description is omitted. Similarly, in the embodiment shown in FIGS. 1 to 5, the extension information storage unit 9 stores only one piece of extension location data, the extension location selecting unit 11 is deleted, and instead of FIG. When processing is performed, an embodiment of the invention of claim 1 is achieved. Note that the predetermined size in S32 of FIG. 7 is an extension size that is considered preferable for the database system. The processing of this embodiment is also a simplification of the processing of FIG. It is considered easy to understand. The description is omitted. Finally, the correspondence between the structure of the embodiment and the structure of the claims will be described. Display device 1 and input device 2
Is the designation means, the extended information storage unit 9 is the storage means, and S3 in FIG.
The area expansion unit 12 performing the processing of S1 and S6 is the area setting means of claim 1, and the area expansion unit 12 performing the processing of S21 and S6 of FIG. The area expanding section 12 in which the section 11 is a selecting means and performs the processing of S5 and S6 of FIG. 4 or S12 and S6 of FIG.
Corresponds to the area setting means of claim 3.

【0013】[0013]

【発明の効果】以上説明したように請求項1の発明で
は、領域不足発生時の領域拡張場所を予め指定してそれ
を記憶手段に記憶させておき、領域不足発生時、この記
憶手段を参照して、前記指定された領域拡張場所に所定
の大きさの拡張領域を設定するようにした。従って、デ
ータベースシステム用に用意しておいたディレクトリ
や、空き領域が十分設定されているディレクトリ、或い
は他のシステムとの兼ね合いが取れるディレクトリ等
を、前記領域拡張場所として予め指定しておくことによ
り、円滑に、且つ他のシステムの領域利用等に支障を来
さない形で領域自動拡張が実行されるようになる。また
請求項2の発明では領域不足発生時の領域拡張場所及び
拡張領域の大きさを予め指定してそれらを記憶手段に記
憶させておき、領域不足発生時、この記憶手段を参照
し、前記指定された領域拡張場所に前記指定された大き
さの拡張領域を設定するようにした。従って、前記同様
の形でその大きさ及び拡張場所を予め指定しておくこと
により、前記同様の形でそれよりも更に円滑な形で領域
自動拡張が実行される。そして請求項3の発明では、領
域不足発生時の領域拡張場所、優先順位及び拡張領域の
大きさを予め指定してそれらを記憶手段に記憶させてお
き、領域不足発生時、この記憶手段を参照し、前記指定
された優先順位に従って前記指定された各領域拡張場所
の残り領域の大きさと前記指定された拡張領域の大きさ
とを比較して、前記指定された大きさの拡張領域設定が
可能な領域拡張場所を選択し、その場所に前記指定され
た大きさの拡張領域を設定するようにした。従って、そ
の大きさ、拡張場所及びその優先順位を予め指定してお
くことにより、その優先順位、即ちユーザやデータベー
スシステム管理者が、最も円滑に且つ他のシステムの領
域利用等に最も支障を来さないと考えた順序で、領域拡
張場所の選択と自動拡張が実行される。
As described above, according to the first aspect of the present invention, the area expansion location when the area shortage occurs is specified in advance and stored in the storage means, and when the area shortage occurs, the storage means is referred to. Then, an expansion area having a predetermined size is set at the designated area expansion location. Therefore, by designating a directory prepared for the database system, a directory in which free space is sufficiently set, or a directory that can be balanced with other systems, as the area expansion location in advance, Area automatic expansion can be executed smoothly and in a manner that does not hinder the area usage of other systems. Further, in the invention of claim 2, when the area shortage occurs, the area extension place and the size of the extension area are previously designated and stored in the storage means, and when the area shortage occurs, the storage means is referred to and the designation is made. The expanded area of the specified size is set in the specified area expansion location. Therefore, by previously specifying the size and expansion location in the same manner as described above, the area automatic expansion is executed in a manner similar to the above and in a smoother manner than that. According to the third aspect of the invention, the area expansion location, the priority order, and the size of the expansion area are designated in advance when the area shortage occurs and stored in the storage means. When the area shortage occurs, the storage means is referred to. Then, the size of the remaining area at each of the specified area expansion locations and the size of the specified expansion area are compared according to the specified priority, and the expansion area of the specified size can be set. An area expansion place is selected, and an expansion area of the specified size is set at that place. Therefore, by designating the size, the expansion location, and the priority in advance, the priority, that is, the user or the database system administrator, can most smoothly interfere with the use of the area of other systems. Area expansion location selection and automatic expansion are executed in the order in which they think they will not.

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

【図1】 実施例の構成を示すブロック図。FIG. 1 is a block diagram showing a configuration of an embodiment.

【図2】 領域拡張場所指定時の画面表示の一例を示す
線図。
FIG. 2 is a diagram showing an example of a screen display when an area expansion place is designated.

【図3】 領域拡張に関する情報の一例を示す線図。FIG. 3 is a diagram showing an example of information about area expansion.

【図4】 請求項3の発明の実施例の処理手順を示すフ
ローチャート。
FIG. 4 is a flowchart showing a processing procedure of an embodiment of the invention of claim 3;

【図5】 請求項3の発明の実施例の処理手順の変形例
を示すフローチャート。
FIG. 5 is a flowchart showing a modification of the processing procedure of the embodiment of the invention of claim 3;

【図6】 請求項2の発明の実施例の処理手順を示すフ
ローチャート。
FIG. 6 is a flowchart showing a processing procedure of an embodiment of the invention of claim 2;

【図7】 請求項1の発明の実施例の処理手順を示すフ
ローチャート。
FIG. 7 is a flowchart showing a processing procedure of an embodiment of the invention of claim 1;

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

2 指定手段 9 記憶手段 11 選択手段 12 領域設定手段 2 designation means 9 storage means 11 selection means 12 area setting means

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 領域不足発生時の領域拡張場所を指定す
る指定手段と、 該指定された領域拡張場所を記憶する記憶手段と、 領域不足発生時、前記記憶手段を参照し、前記指定され
た領域拡張場所に所定の大きさの拡張領域を設定する領
域設定手段とを備えたことを特徴とするデータベースシ
ステム領域拡張装置。
1. A designation means for designating an area extension location when an area shortage occurs, a storage means for storing the designated area extension location, and a designation means for referring to the storage means when the area shortage occurs. A database system area expansion device, comprising: area setting means for setting an expansion area having a predetermined size at an area expansion location.
【請求項2】 領域不足発生時の領域拡張場所及び拡張
領域の大きさを指定する指定手段と、 該指定された領域拡張場所及び拡張領域の大きさを記憶
する記憶手段と、 領域不足発生時、前記記憶手段を参照し、前記指定され
た領域拡張場所に前記指定された大きさの拡張領域を設
定する領域設定手段とを備えたことを特徴とするデータ
ベースシステム領域拡張装置。
2. Designating means for designating an area expansion place and a size of the expansion area when the area shortage occurs, storage means for storing the specified area extension place and the size of the expansion area, and when the area shortage occurs. A database system area expansion device, comprising: area setting means for setting an expansion area of the specified size at the specified area expansion location with reference to the storage means.
【請求項3】 領域不足発生時の領域拡張場所、優先順
位及び拡張領域の大きさを指定する指定手段と、 該指定された領域拡張場所、優先順位及び拡張領域の大
きさを記憶する記憶手段と、 領域不足発生時、前記記憶手段を参照し、前記指定され
た優先順位に従って前記指定された各領域拡張場所の残
り領域の大きさと前記指定された拡張領域の大きさとを
比較し、前記指定された大きさの拡張領域設定が可能な
領域拡張場所を選択する選択手段と、 該選択された領域拡張場所に前記指定された大きさの拡
張領域を設定する領域設定手段とを備えたことを特徴と
するデータベースシステム領域拡張装置。
3. Designating means for designating an area expansion location, priority and size of expansion area when area shortage occurs, and storage means for storing the designated area expansion location, priority and size of expansion area. When an area shortage occurs, the storage means is referred to, the size of the remaining area at each of the specified area expansion locations and the size of the specified expansion area are compared in accordance with the specified priority, and the specified area is specified. A selection means for selecting an area expansion location capable of setting an expansion area of a specified size; and an area setting means for setting the expansion area of the specified size at the selected area expansion location. Characteristic database system area expansion device.
JP5041985A 1993-02-06 1993-02-06 Data base system area expanding device Pending JPH06231015A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5041985A JPH06231015A (en) 1993-02-06 1993-02-06 Data base system area expanding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5041985A JPH06231015A (en) 1993-02-06 1993-02-06 Data base system area expanding device

Publications (1)

Publication Number Publication Date
JPH06231015A true JPH06231015A (en) 1994-08-19

Family

ID=12623497

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5041985A Pending JPH06231015A (en) 1993-02-06 1993-02-06 Data base system area expanding device

Country Status (1)

Country Link
JP (1) JPH06231015A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001175513A (en) * 1999-12-22 2001-06-29 Nec Corp Device and method for monitoring data base capacity

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03240844A (en) * 1990-02-19 1991-10-28 Nec Corp Automatic areaextending device for relational data base
JPH04155546A (en) * 1990-10-19 1992-05-28 Fujitsu Ltd Multivolume file processing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03240844A (en) * 1990-02-19 1991-10-28 Nec Corp Automatic areaextending device for relational data base
JPH04155546A (en) * 1990-10-19 1992-05-28 Fujitsu Ltd Multivolume file processing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001175513A (en) * 1999-12-22 2001-06-29 Nec Corp Device and method for monitoring data base capacity

Similar Documents

Publication Publication Date Title
JP4267443B2 (en) Application-specific rollback in computer systems
US6108668A (en) Method and system for undoing edits within selected portion of electronic documents
US6289489B1 (en) Method and apparatus for automatically cross-referencing graphical objects and HDL statements
US20060036569A1 (en) Method and apparatus for changing background screen in gui operating system
JPH09506457A (en) Link manager for managing links that integrate data between application programs
US20050060689A1 (en) Method, apparatus, and computer program product for implementing enhanced debugger graphical user interface functions
JPS62293462A (en) Document revisable data processor
US5764983A (en) Method and system for efficiently creating a new file associated with an application program
US5778383A (en) System for dynamically caching and constructing software resource tables
JPH0728833A (en) Information retrieving device
JPH06231015A (en) Data base system area expanding device
JPH06215037A (en) Automatic updating device for index
JP2002259414A (en) Document management system, document management method and recording medium with document management procedure recorded thereon
JPH05313969A (en) File list display method
JPH07319742A (en) Physical deleting system for logically deleted data
KR100209162B1 (en) Method for searching a record for use in a window-based subscriber imanagement system employing a template
US20060080334A1 (en) Method for configuration file management in a computing system
JP3120493B2 (en) Data processing device
JP3043661B2 (en) Unnecessary file selection method duplicated in multiple media
JPH05151056A (en) Data controller
JP4228267B2 (en) Collective attribute search system, collective attribute search method, and collective attribute search program
JPH06231012A (en) Log data managing device
JPH04318672A (en) Information retreiving device
JPH1049330A (en) Device for file display based upon access frequency
JPH0391067A (en) Document preparing device