JPH0214338A - Data base access method - Google Patents

Data base access method

Info

Publication number
JPH0214338A
JPH0214338A JP63165516A JP16551688A JPH0214338A JP H0214338 A JPH0214338 A JP H0214338A JP 63165516 A JP63165516 A JP 63165516A JP 16551688 A JP16551688 A JP 16551688A JP H0214338 A JPH0214338 A JP H0214338A
Authority
JP
Japan
Prior art keywords
file
command
additional
records
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
JP63165516A
Other languages
Japanese (ja)
Inventor
Shigeo Funaki
舩木 滋夫
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP63165516A priority Critical patent/JPH0214338A/en
Publication of JPH0214338A publication Critical patent/JPH0214338A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To obtain a response corresponding to a basic direct access method (BDAM) and to improve the response of a CAD system by enabling a direct access concerning an access such as reading and updating, etc., to an existent file. CONSTITUTION:On the basis of a reading record number (n), which is designated by reading and updating commands, and the number of records (a) per track of a file information control table 12, the positioning command of a file is prepared and further, on the basis of a designated reading numbers of records (m), a reading buffer address Addr, a track number (b) per cylinder of the file information control table 12 and a record length (c), a reading channel command for the designated number of records (m) is prepared. Then, the existent file is accessed. A command is prepared to position a head to a final record position when an additional command is received. Then, the count part and key part of the additional record are prepared and additional writing is executed.

Description

【発明の詳細な説明】 [概要] ファイル創生、創生じたファイルのアクセス及び既存フ
ァイルに対する追加処理を効率良く行なうデーベーアク
セス法に関し、 既存ファイルのアクセスは基本直接アクセス法(BDA
M)相当のレスポンスが得られ、追加処理は基本順アク
セス法(BSAM>相当のレスポンスが得られる高速ア
クセスの実現を目的とし、図形データを格納した順編成
固定長ファイルとファイル情報を格納した管理テーブル
を準備し、既存ファイルのアクセスコマンド又は追加コ
マンドを受けた際にチャンネルコマンド発生部で管理テ
ーブルを参照してファイルアクセス位置を特定する位置
付コマンドとアクセス内容に対応したチャンネルコマン
ドを作成してファイルアクセスを高速に行なうように構
成する。
[Detailed Description of the Invention] [Summary] Regarding the database access method that efficiently creates files, accesses the created files, and performs additional processing on existing files, access to existing files is performed using the basic direct access method (BDA).
M) A response equivalent to the basic sequential access method (BSAM) is obtained, and additional processing is performed using a sequential fixed-length file that stores graphic data and a management file that stores file information. Prepare a table, and when receiving an access command for an existing file or an additional command, create a positioning command that refers to the management table in the channel command generator to specify the file access position, and a channel command that corresponds to the access content. Configure files for fast access.

[産業上の利用分野] 本発明は、ファイル創生、創生した既存ファイルのアク
セス及び既存ファイルに対する追加処理を効率良く行な
うデータベースアクセス法に関する。
[Field of Industrial Application] The present invention relates to a database access method that efficiently creates files, accesses created existing files, and performs additional processing on existing files.

CADシステムにあっては、図形の表示、編集処理の際
にデータベースとしてファイルに準備された図形データ
をアクセスするが、そのデータ量は膨大であり、なおか
つレスポンスを向上させるためにアクセスを高速に行な
うことが要求される。
In a CAD system, graphic data prepared in a file as a database is accessed when displaying or editing shapes, but the amount of data is enormous, and access must be performed at high speed to improve response. This is required.

[従来の技術] 従来のデータベースアクセス法としては、既存ファイル
に対し追加処理が可能な仮想記憶アクセス法(Virt
ual  Stroage  Access Meth
od )や追加処理がそのままでは不可能な基本直接ア
クセス法(Basic  Direct  Acces
sMethod )が提供されている。
[Prior art] As a conventional database access method, a virtual memory access method (Virt.
ual Storage Access Meth
od) and additional processing are not possible as is.
sMethod) is provided.

しかしながら、これらのデータベースアクセス法は、既
存ファイルに新たなデータを追加する追加処理の際には
非常に効率が悪い。
However, these database access methods are very inefficient when adding new data to existing files.

例えば基本直接アクセス法(BDAM)の追加処理にお
いては、−度フアイルをクローズした後に基本順アクセ
ス法(Basic  5equentiaACCeSS
 Method )としてファイルをオープンし直して
追加処理可能とし、追加処理を行なった後に基本直接ア
クセス法(BDAM)として再びファイルをオープンし
直す必要がある。
For example, in the basic direct access method (BDAM) addition processing, after closing the -degree file, the basic sequential access method (Basic 5equentiaACCeSS
It is necessary to reopen the file as a Method) to enable additional processing, and then reopen the file as a basic direct access method (BDAM) after performing additional processing.

この理由は、従来のデーベースアクセス法は追加処理を
犠牲にしても既存のデータベースを効率良くアクセスで
きるように作られているためである。
The reason for this is that conventional database access methods are designed to efficiently access existing databases at the expense of additional processing.

[発明が解決しようとする課題] しかしながら、CADシステムにおいては、データベー
スの追加処理が頻繁に行なわれるため、現状に於いては
追加処理ができる仮想記憶アクセス法(VSAM)を使
用しているが、既存ファイルにデータを追加する追加処
理の際のレスポンスが問題となっている。
[Problems to be Solved by the Invention] However, in CAD systems, database addition processing is frequently performed, so currently a virtual memory access method (VSAM) that can perform additional processing is used. There is a problem with the response when adding data to an existing file.

本発明は、このような従来の問題点に鑑みてなされたも
ので、既存ファイルのアクセスは基本直接アクセス法(
BDAM)相当のレスポンスが得られ、また追加処理は
基本順アクセス法(BSAM)相当のレスポンスが得ら
れる高速アクセス可能なデータベースアクセス法を提供
することを目的とする。
The present invention was made in view of these conventional problems, and access to existing files is performed using the basic direct access method (
The object of the present invention is to provide a database access method capable of high-speed access, which can obtain a response equivalent to the basic sequential access method (BSAM) and additional processing can obtain a response equivalent to the basic sequential access method (BSAM).

[課題を解決するための手段] 第1図は本発明の原理説明図である。[Means to solve the problem] FIG. 1 is a diagram explaining the principle of the present invention.

第1図において、まず本発明のデータベースアクセス法
にあっては、図形データを格納した順編成固定長ファイ
ル10と、この順編成固定長ファイル10のファイル情
報を格納したファイル情報管理テーブル12が準備され
る。
In FIG. 1, first, in the database access method of the present invention, a sequential fixed length file 10 storing graphic data and a file information management table 12 storing file information of this sequential fixed length file 10 are prepared. be done.

ファイル情報管理テーブル12には、順編成固定長ファ
イル10における1トラック当りのレコード数a、1シ
リンダ当りのトラック数b、レコード長C及び最終レコ
ード番号maxが格納される。
The file information management table 12 stores the number a of records per track in the sequential fixed length file 10, the number b of tracks per cylinder, the record length C, and the final record number max.

ホストから既存ファイルのアクセスコマンド又は既存フ
ァイルに対する追加コマンドを受けると、チャンネルコ
マンド発生部14においてファイル管理テーブル12を
参照して順編成固定長ファイル10のアクセス位置を特
定する位置付コマンドを作成すると共に、アクセス内容
に対応したチャンネルコマンドを作成してファイルアク
セスを行なう。
When an access command for an existing file or an addition command for an existing file is received from the host, the channel command generation unit 14 refers to the file management table 12 and creates a positioning command for specifying the access position of the sequential fixed-length file 10. , create a channel command corresponding to the access content and perform file access.

既存ファイルのアクセスコマンドとしては、例えば読込
(Read、 ) :l:l?ランドは更新(Upda
te )コマンドがある。
Examples of access commands for existing files include Read, ) :l:l? Land is updated (Upda)
There is a te) command.

この読込又は更新コマンドを受けた際には、該コマンド
により指示された読込レコード番号nとファイル情報管
理テーブル12の1トラック当りのレコード数aに基づ
きファイルの位置付コマンドを作成し、更に指示された
読込レコード数m及び読込バッファアドレスAddrと
ファイル情報管理テーブル12の1シリンダ当りのトラ
ック数す及びレコード長Cに基づき指示されたレコード
数1分の読込チャンネルコマンドを作成して既存フッイ
ルをアクセスする。
When this read or update command is received, a file positioning command is created based on the read record number n specified by the command and the number of records per track a of the file information management table 12, and a file positioning command is created based on the read record number n specified by the command. Create a read channel command for the specified number of records (1) based on the read record number m, the read buffer address Addr, the number of tracks per cylinder in the file information management table 12, and the record length C, and access the existing file. .

一方、追加コマンドを受けた際には、追加コマンドによ
り指示された追加レコード数mとファイル情報管理テー
ブル12の1トラック当りのレコード数a及び最終レコ
ード番号maXとに基づいて最終レコード位置にヘッド
を位置付けする位置付コマンドを作成し、更に追加レコ
ードのカウント部及びキー部をファイル情報管理テーブ
ル12を参照して作成した後に指示された追加レコード
のルーコード毎の追加書込を行なう追加チャンネルコマ
ンドを順次作成して追加処理を行なう。
On the other hand, when an add command is received, the head is moved to the final record position based on the number m of additional records specified by the add command, the number a of records per track in the file information management table 12, and the final record number maX. After creating a positioning command for positioning, and creating the count part and key part of the additional record by referring to the file information management table 12, create an additional channel command to perform additional writing for each Lou code of the specified additional record. Create them sequentially and perform additional processing.

[作用] このような本発明のデータベースアクセス法ににあって
は、既存ファイルのアクセスについては、従来の基本直
接アクセス法(BDAM>相当のレスポンスが得られ、
一方、既・存ファイルに対する追加処理については従来
の基本順アクセス法(BSAM)相当のレスポンスが得
られ、大量の図形データをアクセスして図形の表示編集
処理を行なうCADシステムのレスポンスを大幅に向上
する高速アクセスが実現できる。
[Operation] In the database access method of the present invention, when accessing existing files, a response equivalent to that of the conventional basic direct access method (BDAM) can be obtained;
On the other hand, for additional processing on existing files, a response equivalent to the conventional basic sequential access method (BSAM) can be obtained, greatly improving the response of CAD systems that access large amounts of graphic data and perform graphic display and editing processing. High-speed access can be achieved.

[実施例] 第2図は読込(Read)時と更新(Update )
時のアクセス処理を例にとって本発明の一実施例を示し
た実施例構成図である。
[Example] Figure 2 shows the time of reading (Read) and updating (Update)
FIG. 2 is an embodiment configuration diagram showing an embodiment of the present invention by taking an example of access processing at a time.

第2図において、10は磁気ディスクを用いた順編成固
定長ファイル、12は順編成固定長ファイル10のファ
イル情報を格納したファイル情報管理テーブル、更に1
4aは順編成固定長ファイル10に対し位置付コマンド
及び読込チャンネルコマンドを発生するチャンネルコマ
ンド発生器である。
In FIG. 2, 10 is a sequential fixed length file using a magnetic disk, 12 is a file information management table storing file information of the sequential fixed length file 10, and 1
4a is a channel command generator that generates positioning commands and read channel commands for the sequential fixed-length file 10;

順編成固定長ファイル10は第3図に示すファイル構成
を有する。
The sequential fixed length file 10 has the file structure shown in FIG.

第3図は磁気ディスクの1シリンダ分のファイ。Figure 3 shows the phi for one cylinder of a magnetic disk.

ル構成を示したもので、o−bのトラック番号で示され
るトラック数すを有し、各トラックには例えば5つのレ
コード領域が確保され、そのため1トラック当りのレコ
ード数aはa=5となる。更に、各トラックに設けたレ
コードのレコード長はCであり、更に、第3図の場合に
はトラック番号(b−1)の第2レコードまですでにデ
ータが書き込まれていることから、トラック番号(b−
1>の2番目のレコードが最終レコード番号maxとな
り、それ以降の領域は空き領域となっている。
This figure shows the number of tracks indicated by the track numbers ob and b, and each track has, for example, five record areas, so the number of records a per track is a=5. Become. Furthermore, the record length of the record provided on each track is C, and furthermore, in the case of FIG. 3, since data has already been written up to the second record of track number (b-1), track number ( b-
1> is the final record number max, and the area after it is an empty area.

再び第2図を参照するに、テーブル情報管理テーブル1
2には第3図に示した順編成固定長ファイル10のテー
ブル情報として、1トラック当りのレコード数811シ
リンダ当りのトラック数b、レコード長C1及び最終レ
コード番号maxが格納されている。
Referring again to FIG. 2, table information management table 1
2 stores the number of records per track 811, the number of tracks per cylinder b, the record length C1, and the final record number max as table information of the sequential fixed length file 10 shown in FIG.

次に、第4図の動作フロー図を参照してホストから読込
コマンド又は更新コマンドを受けた時のアクセス処理を
説明する。
Next, the access process when receiving a read command or an update command from the host will be explained with reference to the operational flow diagram of FIG.

例えば、ホストより読込コマンド(Read)が発行さ
れ、この読込コマンドの解読によりステップS1でRe
ad依頼が判別される。また、読込コマンドの解読によ
り読込コマンドにより指示された読込レコード番号n、
読込レコード数m、読込バッファアドレスAddrが得
られる。
For example, a read command (Read) is issued from the host, and by decoding this read command, Re is issued in step S1.
An ad request is determined. Also, by decoding the read command, the read record number n specified by the read command,
The number m of records to read and the read buffer address Addr are obtained.

次のステップS2でチャンネルコマンド発生器14aは
ファイル情報管理テーブル12を参照して1トラック当
りのレコード数aを読み取る。
In the next step S2, the channel command generator 14a refers to the file information management table 12 and reads the number of records a per track.

続いて、ステップS3でチャンネルコマンド発生器14
aはファイル情報管理テーブル12から読み取った1ト
ラック当りのレコード数aと、読込コマンドにより指示
された依頼レコード番号(指示レコード番号)nに基づ
き、順編成固定長ファイル10の読込開始位置を特定す
る位置付コマンドを作成する。この位置付コマンドは順
編成固定長ファイル10の何トラック目の何しコード目
を指定するコマンドとなる。
Subsequently, in step S3, the channel command generator 14
a specifies the read start position of the sequential fixed length file 10 based on the number of records per track a read from the file information management table 12 and the request record number (instruction record number) n specified by the read command. Create a positioned command. This positioning command is a command for specifying the track and code of the sequential fixed-length file 10.

このように順編成固定長ファイル10に対する読込コマ
ンドで指示されたファイル位置を位置付ける位置付コマ
ンドの作成は、ファイル情報管理テーブル12の管理情
報に基づいて作成されるため、ホスト側に対し位置付コ
マンドを得るために余計な入出力を出さずに済み、効率
よく位置付コマンドを発生することができる。
In this way, the positioning command for locating the file position specified by the read command for the sequential fixed-length file 10 is created based on the management information in the file information management table 12. There is no need to perform unnecessary input/output to obtain the positional command, and positional commands can be generated efficiently.

続いて、ステップS4において、ファイル情報管理テー
ブル12からチャンネルコマンド発生器14aが1シリ
ンダ当りのトラック数す及びレコード長Cを読み取り、
次のステップS5で読み取った1シリンダ当りのトラッ
ク数すとレコード長C1更に読込コマンドで指示された
依頼レコード数n及びバッフ7アドレスAddrからス
テップS3で位置付けされたレコードより指定されたレ
コード数m分の読込チャンネルコマンドを作成し、ステ
ップS6で読込チャンネルコマンドに基づくファイルア
クセスを実行する。
Subsequently, in step S4, the channel command generator 14a reads the number of tracks per cylinder and the record length C from the file information management table 12,
The number of tracks per cylinder read in the next step S5, the record length C1, the number of requested records n specified by the read command, and the number m of records specified from the record positioned in step S3 from the buffer 7 address Addr. A read channel command is created, and file access is executed based on the read channel command in step S6.

この結果、ホストからの読込又は更新コマンドに対し指
示されたレコードの読込処理を一回の入出力で行なうこ
とができる。このようにホストから指示されたレコード
の処理を一回の入出力によりできるのは、コマンド及び
チャンネルコマンドをチャンネルコマンド発生器14a
で自ら作成し、同時にフッイルアクセス用のバッファを
アクセスルーチンに持たず、依頼元のバッファに直接読
み込むことができるためである。
As a result, it is possible to perform the record reading process instructed in response to a read or update command from the host with a single input/output operation. In this way, records instructed by the host can be processed by one input/output by transmitting commands and channel commands to the channel command generator 14a.
This is because you can create the file yourself and read it directly into the request source's buffer without having to have a buffer for file access in the access routine.

この結果、第2図、第4図に示した本発明の既存ファイ
ルに対する読込又は更新処理にあっては、従来の基本直
接アクセス法(BDAM)相当のレスポンスを得ること
ができる。
As a result, in the process of reading or updating an existing file according to the present invention shown in FIGS. 2 and 4, a response equivalent to the conventional basic direct access method (BDAM) can be obtained.

第5図はホストからの追加コマンドに対するアクセス処
理についての本発明の一実施例を示した実施例構成図で
ある。
FIG. 5 is a block diagram showing an embodiment of the present invention regarding access processing for additional commands from the host.

第5図において、順編成固定長ファイル10、ファイル
情報管理テーブル12及びチャンネルコマンド発生器1
4aは第2図の場合と同じでおり、第5図の追加処理に
あってはファイル情報管理テーブル12に格納された1
トラック当りのレコード数a、最終レコード番号max
及びレコード長Cを使用して追加処理のアクセスを実行
する。
In FIG. 5, a sequential fixed-length file 10, a file information management table 12, and a channel command generator 1
4a is the same as in the case of FIG. 2, and in the additional processing of FIG.
Number of records per track a, final record number max
and record length C to perform additional processing access.

第6図は第5図の実施例における追加処理の動作フロー
図を示す。
FIG. 6 shows an operational flow diagram of additional processing in the embodiment of FIG.

第6図において、ホストより追加コマンドが発行される
と、追加コマンドの解読によりステップS1で追加処理
の依頼が判別されてステップS2に進む。尚、追加コマ
ンドの解読にあっては、第5図に示すように追加デコー
ド数m、追加バッフ7アドレスAddrが解読される。
In FIG. 6, when an additional command is issued by the host, a request for additional processing is determined in step S1 by deciphering the additional command, and the process proceeds to step S2. Incidentally, when decoding the additional command, as shown in FIG. 5, the number m of additional decodes and the address Addr of the additional buffer 7 are decoded.

ステップS2にあっては、ファイル情報管理テーブル1
2から1トラック当りのレコード数a及び最終レコード
番号maxを読み取り、次のステップS3で順編成固定
長ファイル10のヘッドを最終レコード位置に位置ける
位置付コマンドを作成する。
In step S2, file information management table 1
2, the number of records per track a and the final record number max are read, and in the next step S3, a positioning command is created to position the head of the sequential fixed length file 10 at the final record position.

続いて、ステップS4においてファイル情報管理テーブ
ル12を参照して追加レコードのカウント部及びキー部
を作成する。
Subsequently, in step S4, the file information management table 12 is referred to to create a count section and a key section of the additional record.

続いて、ステップS5で指示されたバッフ7アドレスA
ddとファイル情報管理テーブル12から得られたレコ
ード長Cにより追加レコードの1レコード当りの追加チ
ャンネルコマンド、即ち書込チャンネルコマンドを作成
し、ステップS6でルーコード分の追加書込を実行する
。ステップS7にあっては全ての追加レコードの書込終
了の有無を判別しており、全ての追加レコードの書き込
みが終了していなければ、再びステップS4に戻って次
の追加レコードのカウント部及びキー部を作成し、同様
にしてステップS5.S6で次の追加1レコード分の書
き込みを行なう。
Next, the buffer 7 address A specified in step S5
dd and the record length C obtained from the file information management table 12, an additional channel command for each additional record, that is, a write channel command is created, and additional writing for the Lou code is executed in step S6. In step S7, it is determined whether or not writing of all additional records has been completed. If writing of all additional records has not been completed, the process returns to step S4 and the count section and key of the next additional record are determined. Create a section and do the same in step S5. In S6, the next additional record is written.

そして、ステップS7で追加デコード数mに相当する全
追加レコードの書き込みが終了すると一連の追加処理を
終了する。
Then, in step S7, when writing of all additional records corresponding to the number of additional decodes m is completed, the series of additional processing ends.

このような本発明の追加処理におっては、従来の基本順
アクセス法(BSAM>相当の高速レスポンスを得るこ
とができる。
In such additional processing of the present invention, a high-speed response equivalent to that of the conventional basic sequential access method (BSAM) can be obtained.

勿論、第5,6図に示した追加処理は順編成固定長ファ
イル10に最初からデータを書き込む所謂データベース
の創成処理についてもそのまま適用でき、創成処理につ
いても従来の基本順アクセス法(BSAM)の高速レス
ポンスを得ることができる。
Of course, the additional processing shown in FIGS. 5 and 6 can be applied as is to the so-called database creation processing in which data is written from the beginning to the sequential fixed-length file 10, and the creation processing can also be applied to the conventional basic sequential access method (BSAM). You can get a fast response.

また、第5,6図に示す追加処理が終了した場合には、
ファイル情報管理テーブル12の最終レコード番号ma
xは新たに追加した追加レコード数m分インクリメント
したmax =max +mに変更されて次の追加処理
に備えるようになる。
Furthermore, when the additional processing shown in Figs. 5 and 6 is completed,
Last record number ma of file information management table 12
x is incremented by the number m of newly added additional records and is changed to max = max + m in preparation for the next addition process.

尚、上記の実施例にあっては、基本ファイルのアクセス
として読込処理と更新処理を例にとるものであったが、
データベースのアクセス時に大量の入出力が出る処理、
例えばロード処理、セーブ処理、ズーミング処理等につ
いても、同様にチャンネルコマンド発生器14側で位置
付コマンドと各コマンド内容に対応したチャンネルコマ
ンドを作成して従来の基本直接アクセス法(BDAM)
相当のレスポンスを得ることができる。
In the above embodiment, reading processing and updating processing were taken as examples of basic file access, but
Processing that generates a large amount of input/output when accessing a database,
For example, for load processing, save processing, zooming processing, etc., the channel command generator 14 similarly creates position commands and channel commands corresponding to the contents of each command, using the conventional basic direct access method (BDAM).
You can get a fair amount of response.

[発明の効果] 以上説明してきたように本発明によれば、既存ファイル
に対する読込、更新等のアクセスについてはダイレクト
アクセスができるため、従来の基本直接アクセス法(B
DAM)相当のレスポンスが得られ、また既存ファイル
にデータを追加する追加処理及び新たにデータベースを
作成する創成処理についても、従来の基本順アクセス法
(83AM)相当のレスポンスが得られ、図形の表示編
集処理のために大量のデータを取り扱うCADシステム
のレスポンスを大幅に向上する高速アクセスを実現する
ことができる。
[Effects of the Invention] As explained above, according to the present invention, direct access is possible for reading, updating, etc. to existing files, so that the conventional basic direct access method (B
DAM), and for addition processing to add data to existing files and creation processing to create a new database, responses equivalent to the conventional basic sequential access method (83AM) were obtained, and the display of figures was It is possible to achieve high-speed access that greatly improves the response of a CAD system that handles a large amount of data for editing processing.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の原理説明図: 第2図はRead /Llpdate時の実施例構成図
:第3図は順編成固定長ファイルの説明図;第4図は本
発明のRead /Update処理の動作フロー図; 第5図はADD時の実施例説明図: 第6図は本発明の追加処理の動作フロー図でおる。 図中、 10:順編成固定長ファイル(DISC)12:ファイ
ル情報管理テーブル 14:チャンネルコマンド発生部 14a:チャンネルコマンド発生器 IN:eLtRead/Update動イ1フ0−54
第4 図 、P−<フ月σ謬1しηロl+Dフロー図第6 図
Fig. 1 is an explanatory diagram of the principle of the present invention; Fig. 2 is an example configuration diagram at the time of Read/Llpdate; Fig. 3 is an explanatory diagram of a sequentially organized fixed-length file; Fig. 4 is an illustration of the Read/Update processing of the present invention. Operation flow diagram; FIG. 5 is an explanatory diagram of an embodiment at the time of ADD; FIG. 6 is an operation flow diagram of additional processing of the present invention. In the figure, 10: Sequential fixed length file (DISC) 12: File information management table 14: Channel command generator 14a: Channel command generator IN: eLtRead/Update operation 1 file 0-54
Fig. 4, P-<F month σ error 1 and η lo + D flow diagram Fig. 6

Claims (1)

【特許請求の範囲】  図形データを格納した順編成固定長ファイル(10)
と、該順編成固定長ファイル(10)のファイル情報を
前記順編成固定長ファイル(12)における1トラック
当りのレコード数a、1シリンダ当りのトラック数b、
レコード長c及び最終レコード番号maxのフォーマッ
トで格納したファイル情報管理テーブル(12)とを有
し; ホストからの既存ファイルのアクセスコマンド又は追加
コマンドを受けた際に、チャンネルコマンド発生部(1
4)において前記ファイル情報管理テーブル(12)を
参照して前記順編成固定長ファイル(10)のアクセス
位置を特定する位置付コマンドを作成すると共に、アク
セス内容に対応したチャンネルコマンドを作成してファ
イルアクセスすることを特徴とするデータベースアクセ
ス法。 (2)ホストから既存ファイルのアクセスコマンドとし
て読込又は更新コマンドを受けた際に、該コマンドによ
つて指示された読込レコード番号nと前記ファイル情報
管理テーブル(12)の1トラッ当りのレコード数aに
基づきファイルの位置付コマンドを作成し、更に指示さ
れた読込レコード数m及び読込バッファアドレスAdd
rと前記ファイル情報管理テーブル(12)の1シリン
ダ当りのトラック数b及びレコード長cとに基づき指示
レコード数m分の読込チャンネルコマンドを作成するこ
とを特徴とする請求項1記載のデータベースアクセス法
。 (3)ホストから追加コマンドを受けた際に、該追加コ
マンドで指示された追加レコード数mと前記ファイル情
報管理テーブル(12)の1トラック当りのレコード数
a及び最終レコード番号maxとに基づいて最終レコー
ド位置にヘッドを位置付けする位置付けコマンドを作成
し、更に前記ファイル情報管理テーブル(12)を参照
して追加レコードのカウント部及びキー部を作成した後
に追加レコードに対し1レコード毎の追加書込を行なう
追加チャンネルコマンドを順次作成することを特徴とす
る請求項1記載のデータベースアクセス法。
[Claims] Sequential fixed-length file storing graphic data (10)
and the file information of the sequential fixed length file (10) as the number of records per track a in the sequential fixed length file (12), the number of tracks per cylinder b,
It has a file information management table (12) stored in the format of record length c and final record number max; when receiving an existing file access command or addition command from the host, the channel command generation unit (12)
In step 4), a positioning command for specifying the access position of the sequential fixed-length file (10) is created by referring to the file information management table (12), and a channel command corresponding to the access content is created to access the file. A database access method characterized by accessing the database. (2) When a read or update command is received from the host as an access command for an existing file, the read record number n specified by the command and the number of records a per track in the file information management table (12) A file positioning command is created based on the file positioning command, and the specified number of read records m and read buffer address Add
2. The database access method according to claim 1, wherein read channel commands for the designated number of records m are created based on r, the number b of tracks per cylinder, and the record length c of the file information management table (12). . (3) When an additional command is received from the host, based on the number of additional records m specified by the additional command, the number of records per track a and the final record number max in the file information management table (12). After creating a positioning command to position the head at the final record position, and creating a count section and a key section for additional records by referring to the file information management table (12), additional writing is performed for each additional record. 2. The database access method according to claim 1, further comprising sequentially creating additional channel commands for performing the following steps.
JP63165516A 1988-07-01 1988-07-01 Data base access method Pending JPH0214338A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63165516A JPH0214338A (en) 1988-07-01 1988-07-01 Data base access method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63165516A JPH0214338A (en) 1988-07-01 1988-07-01 Data base access method

Publications (1)

Publication Number Publication Date
JPH0214338A true JPH0214338A (en) 1990-01-18

Family

ID=15813878

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63165516A Pending JPH0214338A (en) 1988-07-01 1988-07-01 Data base access method

Country Status (1)

Country Link
JP (1) JPH0214338A (en)

Similar Documents

Publication Publication Date Title
JPH0214338A (en) Data base access method
JP3169596B2 (en) Database management device
JPS63156477A (en) Image file device
JPS5851348A (en) High-speed access system for variable-length record
JPS59136860A (en) Disk controller
JPH0357037A (en) File management device
JPH02132516A (en) System and method for write enable type optical disk controlling
JP3056566B2 (en) FIFO table memory and control method therefor
JPS63121940A (en) File control system
JPH05233402A (en) Memory mapped file access system
JP2746770B2 (en) File processing method of optical disk verification system
JPS63216143A (en) File access system
JP2507399B2 (en) Database equipment
JPS6253861B2 (en)
JPH03280136A (en) Record positioning system for sequentially programmed file
JPH01136252A (en) File structure
JPH0318215B2 (en)
JPH0635770A (en) File control system
JPS63228348A (en) Filing device
JPS62134718A (en) Data access control system
JPH012133A (en) file management device
JPH0338741A (en) Working data managing system for main storage
JPH04114244A (en) File reading system
JPS6228849A (en) Storage control system for information storage device
JPH04148249A (en) File management system