JPH05204735A - Data management system - Google Patents

Data management system

Info

Publication number
JPH05204735A
JPH05204735A JP4012040A JP1204092A JPH05204735A JP H05204735 A JPH05204735 A JP H05204735A JP 4012040 A JP4012040 A JP 4012040A JP 1204092 A JP1204092 A JP 1204092A JP H05204735 A JPH05204735 A JP H05204735A
Authority
JP
Japan
Prior art keywords
data
file
records
storage device
record
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
JP4012040A
Other languages
Japanese (ja)
Inventor
Takashi 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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP4012040A priority Critical patent/JPH05204735A/en
Publication of JPH05204735A publication Critical patent/JPH05204735A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To execute real-time file retrieval at high speed and to eliminate the vacant areas for recording by storing the management information of files and the sort data of records on a main storage device. CONSTITUTION:Data management information is divided into a main storage device 2 and a magnetic disk device 3, data showing the existence of files of the data of file names, address data in the disk and file size data or the like are stored on the main storage device 2, and data showing the attributes of files required at the time of retrieving records of key information or the number of records or the like are provided at the head of files. According to the stored data, files are read and written. Thus, real-time file retrieval can be executed at high speed, the empty areas of records can be eliminated even in the case of erasing records, and flexible record retrieval is executed.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、補助記憶装置を用い
たデータ管理方式、特にリアルタイムでファイルの読み
出し及び書き込みが可能なデータ管理方式に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data management system using an auxiliary storage device, and more particularly to a data management system capable of reading and writing files in real time.

【0002】[0002]

【従来の技術】補助記憶装置を用いたデータ管理方式と
しては、例えは特開平3−38741号公報に示すよう
なものがあるが、一般的にファイルの所在を示す管理エ
リアは例えば固定ディスク上に存在し、レコードの管理
エリアもそのファイル上に存在する。
2. Description of the Related Art As a data management system using an auxiliary storage device, there is, for example, the one disclosed in Japanese Patent Laid-Open No. 3-38741. Generally, a management area showing the location of a file is, for example, on a fixed disk. , And the record management area also exists on the file.

【0003】図6はこのような従来のデータ管理方式に
おけるテーブルの一例を示す図である。(a)はn個の
ファイルを管理するためのファイル管理エリア101を
示し、また(b)は実際のファイルを構成するデータ部
102及びキー検索に必要なインデックス部103を示
している。
FIG. 6 is a diagram showing an example of a table in such a conventional data management system. (A) shows a file management area 101 for managing n files, and (b) shows a data section 102 that constitutes an actual file and an index section 103 necessary for key search.

【0004】図7は上記インデックス部103とデータ
部102の構造を示したものである。各インデックス1
04にはそれぞれ複数のインデックスエントリが用意さ
れており、これに対応して各データ105の各レコード
が所定の長さごとに格納され、各々にレコード管理用の
制御情報106が格納されている。
FIG. 7 shows the structure of the index section 103 and the data section 102. Each index 1
A plurality of index entries are prepared in 04, and correspondingly, each record of each data 105 is stored for each predetermined length, and control information 106 for record management is stored in each.

【0005】上記のようなテーブルを設けたデータ管理
方式において、ファイル名が指定されると、ファイル管
理エリア101から該当ファイルを検索し、そのファイ
ルを読み込む。次に、レコードの検索を行う場合はキー
指定を行い、該当キーをインデックス104より検索
し、そのインデックスがポイントするレコードを制御情
報106より見付けて読み出す。また、レコードの削除
が発生した時は、そのエリアは図7に示すように空きエ
リアとなる。
When a file name is specified in the data management system provided with the above table, the file is searched from the file management area 101 and the file is read. Next, when searching for a record, a key is designated, the corresponding key is searched from the index 104, and the record pointed to by the index is found from the control information 106 and read. When a record is deleted, the area becomes an empty area as shown in FIG.

【0006】[0006]

【発明が解決しようとする課題】従来のデータ管理方式
は上記のように構成されており、管理情報が補助記憶装
置上、例えばディスク上にあるため、ファイル読み出し
時に一度ディスク上の管理情報を読み出してから該当フ
ァイルを検索する必要があり、高速でリアルタイムのフ
ァイル検索を行うことができないという問題点があっ
た。また、レコードの削除を行った時にレコードの空き
エリアが発生する場合があるという問題点があった。
The conventional data management system is configured as described above, and since the management information is on the auxiliary storage device, for example, on the disk, the management information on the disk is read once when the file is read. After that, it is necessary to search for the corresponding file, and it is not possible to perform high-speed real-time file search. In addition, there is a problem that an empty area of a record may occur when the record is deleted.

【0007】この発明は、上記のような問題点を解消す
るためになされたもので、必要最小限の情報から高速で
リアルタイムのファイル検索を行うことができ、またレ
コードの空きエリアをなくすことが可能なデータ管理方
式を提供することを目的としている。
The present invention has been made in order to solve the above-mentioned problems, and it is possible to perform a high-speed real-time file search from the minimum necessary information and eliminate the empty area of a record. The aim is to provide a possible data management scheme.

【0008】[0008]

【課題を解決するための手段】この発明に係るデータ管
理方式は、補助記憶装置に格納した複数のファイルを管
理するデータ管理方式において、主記憶装置上に各ファ
イルのファイル名を表わすデータ、アドレスデータ、サ
イズデータ及び各レコードのソートデータを記憶するテ
ーブルエリアを設け、その記憶したデータからファイル
の読み出し及び書き込みを行うようにしたものである。
A data management system according to the present invention is a data management system for managing a plurality of files stored in an auxiliary storage device, and in the main storage device, data and address indicating the file name of each file are stored. A table area for storing data, size data and sort data of each record is provided, and a file is read and written from the stored data.

【0009】[0009]

【作用】この発明のデータ管理方式においては、主記憶
装置上にファイルの管理情報及びレコードのソートデー
タが格納されるので、必要最小限の情報でファイル検索
を行うことができ、またレコードを削除した後の空きエ
リアをなくすことができる。
In the data management system of the present invention, since the file management information and the record sort data are stored in the main storage device, the file can be searched with the minimum necessary information and the record can be deleted. You can eliminate the empty area after doing.

【0010】[0010]

【実施例】図1はこの発明の一実施例によるデータ管理
方式のシステム構成図である。図において、1は中央処
理装置、2は主記憶装置、3は補助記憶装置として設け
た磁気ディスク装置である。
1 is a system block diagram of a data management system according to an embodiment of the present invention. In the figure, 1 is a central processing unit, 2 is a main storage device, and 3 is a magnetic disk device provided as an auxiliary storage device.

【0011】図2は上記主記憶装置上2に設けたテーブ
ルエリアの構造を示すブロック図であり、(a)はメイ
ンテーブル4及びサブテーブル5の内容を示し、(b)
はサブテーブル5中の各エレメントの内容を示してい
る。メインテーブル4には、データ管理のキーワードを
登録するヘッダ部6及び各ファイル群を管理するための
テーブルの先頭アドレスを格納するテーブルアドレス部
7が設けられ、サブテーブル5には、各ファイル情報を
管理するためのエレメントの数を記憶するエリア8、エ
レメントの長さ情報を記憶するエリア9及び各エレメン
トを格納するエリア10が設けられている。また、各エ
レメント11には、ファイル名を表すデータ、論理ディ
スクNo(番号)、セクタアドレス、ファイルサイズの
データ及びレコード数などが格納される。さらに、上記
のテーブルエリアには、各レコードのソートデータを記
憶するソートエリアが設けられている。
FIG. 2 is a block diagram showing the structure of a table area provided on the main storage device 2. FIG. 2A shows the contents of the main table 4 and sub-table 5, and FIG.
Indicates the contents of each element in the sub-table 5. The main table 4 is provided with a header section 6 for registering data management keywords and a table address section 7 for storing the start address of the table for managing each file group, and the sub table 5 stores each file information. An area 8 for storing the number of elements for management, an area 9 for storing element length information, and an area 10 for storing each element are provided. Further, in each element 11, data representing a file name, a logical disk No (number), a sector address, file size data, the number of records, and the like are stored. Further, the table area is provided with a sort area for storing sort data of each record.

【0012】図3は磁気ディスク装置3に格納されてい
るファイル内の構造を示したものである。(a)に示す
ように、一つのファイルはヘッダ部12とデータ部13
から構成されており、ヘッダ部12にデータ部13内に
存在するレコードのレコード長14、レコード検索を行
うのに必要となるキー数15及びキー定義16が格納さ
れ、データ部13にはレコード長14で示される長さの
レコード17が格納されている。また(b)に示すよう
に、上記キー定義16としてキーの型、キーの位置及び
キーの長さが格納されている。
FIG. 3 shows the structure in a file stored in the magnetic disk device 3. As shown in (a), one file has a header part 12 and a data part 13.
The header section 12 stores the record length 14 of the records existing in the data section 13, the number of keys 15 and the key definition 16 necessary for performing the record search, and the data section 13 stores the record length. A record 17 having a length indicated by 14 is stored. Further, as shown in (b), the key definition, the key position, and the key length are stored as the key definition 16.

【0013】また、図4はレコード検索を行う時に使用
するエリアの構造を示したものであり、これにはソート
エリア管理部18と上述のソートエリア19が設けられ
ている。そして、磁気ディスク装置3より読み込んだフ
ァイルのレコードをソートエリア19を利用し、ソート
を行い、該当レコードの検索を行うようになっている。
また、ソートエリア19の使用状況はソートエリア管理
部18を利用し、管理を使うようになっている。
FIG. 4 shows the structure of an area used when performing a record search, which is provided with a sort area management unit 18 and the sort area 19 described above. Then, the records of the file read from the magnetic disk device 3 are sorted using the sort area 19 and the corresponding record is searched.
The use status of the sort area 19 is managed by using the sort area management unit 18.

【0014】次に動作について説明する。上記のような
構成のデータ管理方式においては、図1の計算機システ
ムにおける磁気ディスク装置3上のファイルを高速に検
索し、そのファイル内の全レコードの読み出し、書き込
み及び指定したレコードの検索を行うことができ、また
レコードの削除を行った場合はそのレコードのあきエリ
アをなくすことができるようになっている。
Next, the operation will be described. In the data management system having the above-described configuration, a file on the magnetic disk device 3 in the computer system of FIG. 1 is searched at high speed, all records in the file are read and written, and a specified record is searched. If you delete a record, you can eliminate the open area of the record.

【0015】すなわち、上記計算機システムのオンライ
ン運転開始時、磁気ディスク装置3に格納されている図
2のデータ管理情報は主記憶装置2に転送される。そし
て、ファイルデータ検索の指示が中央処理装置1を通し
て発生すると、図5のフローチャートに示すようにな動
作が実行される。
That is, when the online operation of the computer system is started, the data management information of FIG. 2 stored in the magnetic disk device 3 is transferred to the main storage device 2. Then, when a file data search instruction is issued through the central processing unit 1, the operation is executed as shown in the flowchart of FIG.

【0016】ここでは、先ず指定されたファイル名より
該当ファイルがどのテーブルアドレスに属するかを図2
のメインテーブル4から知る(ステップS1)。そし
て、そのテーブルアドレスが示すアドレスより図2のサ
ブテーブル5を検索し、該当ファイルがどのエレメント
に属するかを知る(ステップS2)。
Here, first, it is shown in FIG. 2 which table address the corresponding file belongs to based on the designated file name.
From the main table 4 of (step S1). Then, the sub-table 5 of FIG. 2 is searched from the address indicated by the table address to know which element the file belongs to (step S2).

【0017】次に、エレメントが見付かった時点で磁気
ディスク装置3内に存在するファイルの論理ディスクN
o、セレクタアドレス及びファイルサイズを知り、その
エレメント内のPUBアドレス、セレクタアドレス及び
フィイルサイズより該当ファイルの読み出しを行う(ス
テップS3)。
Next, the logical disk N of the file existing in the magnetic disk device 3 at the time when the element is found.
o, knowing the selector address and the file size, the corresponding file is read from the PUB address, selector address and file size in that element (step S3).

【0018】また、ファイルの読み出し時にレコードの
検索を行う場合は、図3に示すキー定義16のキーの
型、位置及び長さにより図4のソートエリア19を利用
し、レコードのソートを行い、該当レコードの検索を行
う(ステップS4)。そして、レコード検索後ファイル
の書き込みを行う(ステップS5)。
When searching for records when reading a file, records are sorted using the sort area 19 shown in FIG. 4 according to the key type, position and length of the key definition 16 shown in FIG. The corresponding record is searched (step S4). Then, after the record search, the file is written (step S5).

【0019】次に、オンライン運転が終了かどうかをチ
ェックし(ステップS6)、終了でなければ上述のファ
イル検索の動作を繰り返し行う。そして、オンライン終
了時には、図4のデータエリア管理部18の情報内容を
磁気ディスク装置3に書き込む(ステップS7)。これ
により次回のオンライン運転開始時には最新のデータ管
理情報が得られる。
Next, it is checked whether or not the online operation is completed (step S6). If it is not completed, the above-mentioned file searching operation is repeated. Then, when the online ends, the information content of the data area management unit 18 of FIG. 4 is written in the magnetic disk device 3 (step S7). As a result, the latest data management information can be obtained at the start of the next online operation.

【0020】ここで、上述の管理方式では、データ管理
情報を主記憶装置2と磁気ディスク装置3とに分けてお
き、ファイル名のデータ、ディスク中のアドレスデータ
及びファイルサイズデータなどのファイルの所在を示す
データを主記憶装置2上に記憶すると共に、キー情報、
レコード件数などのレコード検索時に必要なファイルの
属性を示すデータをファイルの先頭に持たせるようにし
ている。このため、高速でリアルタイムのファイル検索
を行うことができ、またレコードの削除を行った時でも
レコードの空きエリアをなくすことができ、柔軟なレコ
ード検索を実施することができる。
In the above management method, the data management information is divided into the main storage device 2 and the magnetic disk device 3, and the location of the file such as file name data, disk address data, and file size data is stored. Is stored in the main storage device 2, and the key information,
At the beginning of the file, data indicating the file attributes such as the number of records required for searching records is provided. Therefore, it is possible to perform a high-speed real-time file search, eliminate the empty area of the record even when the record is deleted, and perform a flexible record search.

【0021】[0021]

【発明の効果】以上のように、この発明によれば、主記
憶装置上に各ファイルのファイル名のデータ、アドレス
データ、サイズデータ及び各レコードのソートデータを
記憶するテーブルエリアを設け、その記憶したデータか
らファイルの読み出し及び書き込みを行うようにしたの
で、高速でリアルタイムのファイル検索を行うことがで
き、またレコードの空きエリアを無くすことができると
いう効果が得られる。
As described above, according to the present invention, the table area for storing the file name data of each file, the address data, the size data, and the sort data of each record is provided on the main storage device, and the table area is stored. Since the file is read and written from the stored data, it is possible to perform a high-speed real-time file search and eliminate the empty area of the record.

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

【図1】この発明の一実施例によるデータ管理方式のシ
ステム構成図である。
FIG. 1 is a system configuration diagram of a data management system according to an embodiment of the present invention.

【図2】図1の主記憶装置上に設けたテーブルエリアの
構造を示すブロック図である。
FIG. 2 is a block diagram showing the structure of a table area provided on the main storage device of FIG.

【図3】図1の磁気ディスク装置に格納されているファ
イル内の構造を示すブロック図である。
3 is a block diagram showing a structure in a file stored in the magnetic disk device of FIG. 1. FIG.

【図4】レコード検索を行う時に使用するエリアの構造
を示すブロック図である。
FIG. 4 is a block diagram showing a structure of an area used when performing a record search.

【図5】一実施例の動作を示すフローチャートである。FIG. 5 is a flowchart showing the operation of the embodiment.

【図6】従来例を示すブロック図である。FIG. 6 is a block diagram showing a conventional example.

【図7】図6のインデックス部とデータ部の構造を示す
ブロック図である。
7 is a block diagram showing structures of an index part and a data part of FIG.

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

1 中央処理装置 2 主記憶装置 3 磁気ディスク装置(補助記憶装置) 4 メインテーブル 5 サブテーブル 7 テーブルアドレス部 19 ソートエリア 1 central processing unit 2 main storage unit 3 magnetic disk unit (auxiliary storage unit) 4 main table 5 sub table 7 table address section 19 sort area

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成4年5月22日[Submission date] May 22, 1992

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0017[Correction target item name] 0017

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0017】次に、エレメントが見付かった時点で磁気
ディスク装置3内に存在するファイルの論理ディスクN
o、セレクタアドレス及びファイルサイズを知り、その
エレメント内の論理ディスク名、セレクタアドレス及び
ファイルサイズより該当ファイルの読み出しを行う(ス
テップS3)。
Next, the logical disk N of the file existing in the magnetic disk device 3 at the time when the element is found.
o, knowing the selector address and file size, the corresponding file is read from the logical disk name , selector address and file size in that element (step S3).

【手続補正2】[Procedure Amendment 2]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図2[Name of item to be corrected] Figure 2

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図2】 [Fig. 2]

【手続補正3】[Procedure 3]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図5[Name of item to be corrected] Figure 5

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図5】 [Figure 5]

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 補助記憶装置に格納した複数のファイル
を管理するデータ管理方式において、主記憶装置上に各
ファイルのファイル名を表わすデータ、アドレスデー
タ、サイズデータ及び各レコードのソートデータを記憶
するテーブルエリアを設け、その記憶したデータからフ
ァイルの読み出し及び書き込みを行うことを特徴とする
データ管理方式。
1. A data management system for managing a plurality of files stored in an auxiliary storage device, wherein data representing a file name of each file, address data, size data and sort data of each record are stored in a main storage device. A data management method characterized in that a table area is provided and a file is read and written from the stored data.
JP4012040A 1992-01-27 1992-01-27 Data management system Pending JPH05204735A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4012040A JPH05204735A (en) 1992-01-27 1992-01-27 Data management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4012040A JPH05204735A (en) 1992-01-27 1992-01-27 Data management system

Publications (1)

Publication Number Publication Date
JPH05204735A true JPH05204735A (en) 1993-08-13

Family

ID=11794490

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4012040A Pending JPH05204735A (en) 1992-01-27 1992-01-27 Data management system

Country Status (1)

Country Link
JP (1) JPH05204735A (en)

Similar Documents

Publication Publication Date Title
US6954759B2 (en) Data processing method using record division storing scheme and apparatus therefor
US5408654A (en) Method to reorganize an index file without sorting by changing the physical order of pages to match the logical order determined from the index structure
US5752020A (en) Structured document retrieval system
JP3554459B2 (en) Text data registration search method
EP0487331B1 (en) Directory management system
JPH0916607A (en) Method for managing index in data base management system
US5133066A (en) Method for selecting multiple versions of data in a reduced record units text editing system
JP2553751B2 (en) Disk sector replacement method
JPH0728833A (en) Information retrieving device
JPH05204735A (en) Data management system
JPH096653A (en) Data base checking information processor
JP4056622B2 (en) Database management device
JPH0198020A (en) Index management system
JPH06103134A (en) Constructing method for index
JPH05151056A (en) Data controller
JP2000148548A (en) Unnecessary record deleting device
JP2885625B2 (en) File system with index table
JP2747009B2 (en) Record addition method for indexed sequential files
JPH0557624B2 (en)
JPH04359373A (en) Electronic filing device
JPH05324734A (en) Electronic filing device
JPH0991300A (en) File management method
JPS62177642A (en) File management system for postscript filing device
JPH04359372A (en) Retrieving method for electronic filing device
JPS62226487A (en) Memory control system for optical disk