JPH04180137A - Control system for partial assembly files of plural terminals - Google Patents

Control system for partial assembly files of plural terminals

Info

Publication number
JPH04180137A
JPH04180137A JP2307039A JP30703990A JPH04180137A JP H04180137 A JPH04180137 A JP H04180137A JP 2307039 A JP2307039 A JP 2307039A JP 30703990 A JP30703990 A JP 30703990A JP H04180137 A JPH04180137 A JP H04180137A
Authority
JP
Japan
Prior art keywords
subset
file
information
management table
terminal
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
JP2307039A
Other languages
Japanese (ja)
Inventor
Fukumi Chiba
千葉 富久美
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2307039A priority Critical patent/JPH04180137A/en
Publication of JPH04180137A publication Critical patent/JPH04180137A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To attain the independent control of each terminal and at the same time to easily compile a program by attaining the accesses to each of plural partial assembly files of the same kind through plural terminals in a single process. CONSTITUTION:A partial assembly control table 10 is provided together with a present position information saving means 7, a present position information restoring means 1, a partial assembly information control means 2, a partial assembly control table deleting means 3, a partial assembly file deleting means 4, an input/output instruction executing means 5, and a partial assembly control table production means 6. These means are used for control of the state of a partial assembly file containing the files stored in an actual data base and at the same time the present position information is controlled. Thus plural partial assembly files of the same kind can receive the accesses from plural terminals in a single process.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータへ〜スのファイル制御方式に関し、特に
lプロセス(ジョブ)で同一のファイルの部分集合ファ
イルを端末ごとに制御する複数端末における部分集合フ
ァイル制御方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a file control method for data access, and particularly to a file control method for multiple terminals in which each terminal controls a subset of the same file in a single process (job). Concerning subset file control methods.

〔従来の技術〕[Conventional technology]

部分集合ファイルとは、データベース内の任意のファイ
ルについである選択条件を与えて選択されたレコードの
集合を一時的にファイルとして作成されるものである。
A subset file is a file that is temporarily created from a set of records selected by applying certain selection conditions to any file in the database.

部分集合ファイルは、プログラムからの部分集合ファイ
ル作成命令の要求によって作成され、部分集合ファイル
解放命令または部分集合ファイルを形成するファイルの
クローズ命令の要求により削除される。
A subset file is created in response to a request for a subset file creation command from a program, and is deleted in response to a request for a subset file release command or a close command for files forming the subset file.

従来、この種の部分集合ファイル制御方式では、あるフ
ァイルの部分集合ファイルが存在している場合に、プロ
グラムからそのファイルの部分集合ファイル作成命令の
要求が重ねて出されると、その時点で存在している部分
集合ファイルは削除され、新たに要求された部分集合フ
ァイルが作成されていた。すなわち、プロセスで使用さ
れる任意のファイルについて一時フアイルである部分集
合ファイルを1つずつ作成することが可能であり、部分
集合ファイルはプロセスで1つのファイルについて同時
に2つ以上存在することはなかった。
Conventionally, in this type of subset file control method, if a subset file of a certain file exists and a program issues multiple requests to create a subset file of that file, the command to create a subset file of that file will be deleted at that point. The requested subset file was deleted and a new requested subset file was created. In other words, it is possible to create one temporary subset file for any file used in a process, and there can never be more than one subset file for a single file in a process at the same time. .

詳しくは、従来の部分集合ファイル制御方式では、端末
ごとに部分集合ファイルの現在位置情報を保持するため
に、第3図に示すような制御が行われていた。
Specifically, in the conventional subset file control method, control as shown in FIG. 3 was performed in order to maintain current position information of the subset file for each terminal.

あるプログラム(図示せず)が複数の端末35(#1お
よび#2)から使用される場合、現在位置情報退避手段
34は、データベース38内のファイル39(T)のオ
ープン時に、それぞれの端末35(#1および#2)に
ついて現在位置情報退避領域36を作成し、ファイル3
9(T)の現在位置情報、すなわちオープン直後である
という情報をそれぞれの端末35に対応する現在位置情
報退避領域36に退避する。
When a certain program (not shown) is used from a plurality of terminals 35 (#1 and #2), the current position information saving means 34 saves each terminal 35 when opening the file 39(T) in the database 38. Create a current location information save area 36 for (#1 and #2) and file 3
The current location information of 9(T), that is, the information that it has just been opened, is saved in the current location information save area 36 corresponding to each terminal 35.

任意の端末35から入出力命令が要求された場合、現在
位置情報復旧手段31は、その端末35に対応する現在
位置情報退避領域36からファイル39(T)の現在位
置情報を復旧し、入出力命令実行手段33に制御を渡す
When an input/output command is requested from any terminal 35, the current location information recovery means 31 recovers the current location information of the file 39(T) from the current location information save area 36 corresponding to that terminal 35, and performs the input/output. Control is passed to the instruction execution means 33.

入出力命令実行手段33は、ファイル39 (T)に対
して指定の入出力命令を実行し、現在位置情報退避手段
34に制御を渡す。
The input/output command execution means 33 executes the specified input/output command for the file 39 (T), and passes control to the current position information saving means 34.

現在位置情報退避手段34は、ファイル39 (T)の
現在位置情報を端末35に対応する現在位置情報退避領
域36に退避し、プログラムに制御を戻す。
The current position information saving means 34 saves the current position information of the file 39 (T) to the current position information saving area 36 corresponding to the terminal 35, and returns control to the program.

任意の端末35からファイル39(T)の部分集合ファ
イル作成命令が要求された場合には、現右位置情報復旧
手段31は、その端末35に対応する現在位置情報退避
領域36からファイル39(T)の現在位置情報を復旧
し、部分集合ファイル削除手段32に制御を渡す。
When a command to create a subset file of file 39(T) is requested from any terminal 35, the current position information recovery means 31 extracts the file 39(T) from the current position information save area 36 corresponding to that terminal 35. ) and transfers control to the subset file deletion means 32.

部分集合ファイル削除手段32は、ファイル39 (T
)について部分集合ファイル37(A)がすでに存在し
ていればこれを削除し、入出力命令実行手段33に制御
を渡す。ファイル39(T)について部分集合ファイル
37が存在していなければ、部分集合ファイル削除手段
32は、何もせずに入出力命令実行手段33に制御を渡
す。
The subset file deletion means 32 deletes the file 39 (T
), if the subset file 37(A) already exists, it is deleted and control is passed to the input/output command execution means 33. If the subset file 37 does not exist for the file 39(T), the subset file deletion means 32 transfers control to the input/output command execution means 33 without doing anything.

入出力命令実行手段33は、データベース38内のファ
イル39(T)から必要なレコードを読み出し、新たな
部分集合ファイル37を作成し、現在位置情報退避手段
34に制御を渡す。
The input/output command execution means 33 reads necessary records from the file 39(T) in the database 38, creates a new subset file 37, and passes control to the current position information saving means 34.

現在位置情報退避手段34は、新たに作成された部分集
合ファイル37の現在位置情報を部分集合ファイル作成
命令が要求された端末35に対応する現在位置情報退避
領域36に退避し、プログラムに制御を戻す。
The current location information saving means 34 saves the current location information of the newly created subset file 37 to the current location information saving area 36 corresponding to the terminal 35 from which the subset file creation command was requested, and instructs the program to control the current location information. return.

したがって、ある端末35(#I)からファイル39(
T)について部分集合ファイル作成命令が要求されて部
分集合ファイル37(A)が作成されても、この後に他
の端末35(#2>から同一のファイル39(T)につ
いて部分集合ファイル作成命令が重ねて要求されると、
部分集合ファイル37(A)は削除されて他の部分集合
ファイルが作成されるので、この後に端末35(#l)
から部分集合ファイル37(A)のレコードのリード命
令の要求があっても、すでに部分集合ファイル37(A
)は存在していないため、このリード命令は正しく実行
されない。
Therefore, from a certain terminal 35 (#I) to a file 39 (
Even if a subset file creation command is requested for T) and a subset file 37(A) is created, a subset file creation command for the same file 39(T) is subsequently issued from another terminal 35 (#2>). When requested again,
Since the subset file 37(A) is deleted and another subset file is created, the terminal 35(#l)
Even if there is a request to read a record of subset file 37 (A) from
) does not exist, this read instruction will not be executed correctly.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の部分集合ファイル制御方式では、部分集
合ファイルをプロセスで1つのファイルに対して1つし
か持つことができなかったので、複数の端末単位に部分
集合ファイルの現在位置情報を持とうとしても部分集合
ファイルに対する現在位置情報の保持を保証できないた
め、プログラムが端末ごとに部分集合ファイルの制御を
行う必要があるという欠点がある。
In the conventional subset file control method described above, only one subset file can be held for each file in a process, so in order to have the current position information of the subset file in units of multiple terminals, However, since it cannot guarantee that the current location information for the subset file is maintained, the program has the disadvantage that it is necessary to control the subset file for each terminal.

また、部分集合ファイルは一時フアイルであるためにロ
ールバック命令によりデータベースを直前のコミット命
令の実行時の静止点に戻した場合に、その時点の現在位
置情報が現在存在する部分集合ファイルに対するもので
はないことが生じるという欠点がある。
Also, since a subset file is a temporary file, if the database is returned to the quiescent point at the time of execution of the previous commit command using a rollback command, the current position information at that point will not be for the currently existing subset file. The disadvantage is that there are some things that don't exist.

°本発明の目的は、上述の点に鑑み、1つのプロセスで
端末ごとに同一のファイルの複数の部分集合ファイルを
作成してアクセスすることができるようにした複数端末
における部分集合ファイル制御方式を提供することにあ
る。
In view of the above, an object of the present invention is to provide a subset file control method for multiple terminals that allows a single process to create and access multiple subset files of the same file for each terminal. It is about providing.

また、本発明の他の目的は、ロールバック命令によりデ
ータベースを直前のコミット命令の実行時の静止点に戻
した場合にも部分集合ファイルの制御の一貫性が保持さ
れるようにした複数端末における部分集合ファイル制御
方式を提供することにある。
Another object of the present invention is to maintain consistency of control over a subset file even when a rollback instruction returns the database to the quiescent point at the time of execution of the previous commit instruction. The object of the present invention is to provide a subset file control method.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の複数端末における部分集合ファイル制御方式は
、データベースを使用する1つのプログラムを複数の端
末より使用する場合にこのプログラムで一時的に作成さ
れて使用される部分集合ファイルを制御する複数端末に
おける部分集合ファイル制御方式において、プログラム
で使用されるファイルについて作成されているすべての
部分集合ファイルの部分集合情報を端末IDごとに管理
する部分集合管理テーブルと、端末単位に端末IDを生
成し端末IDごとにファイルあるいは部分集合ファイル
の現在位置情報を退避する現在位置情報退避手段と、端
末から命令の要求があったときに前記現在位置情報退避
手段により退避された端末IDごとのファイルあるいは
部分集合ファイルの現在位置情報を復旧する現在位置情
報復旧手段と、前記部分集合管理テーブルを検索して部
分集合情報の端末IDおよび部分集合IDと要求があっ
た命令の端末IDおよび部分集合IDとを比較し要求が
あった命令に応して部分集合ファイルの削除の要否を判
断する部分集合情報管理手段と、この部分集合情報管理
手段により部分集合ファイルの削除が必要であると判断
された場合に前記部分集合管理テーブルから該当する部
分集合情報を削除する部分集合管理テーブル削除手段と
、この部分集合管理テーブル削除手段により前記部分集
合管理テーブルから部分集合情報が削除された部分集合
ファイルを解放する部分集合ファイル削除手段と、ファ
イルあるいは部分集合ファイルに対して入出力命令を実
行する入出力命令実行手段と、この入出力命令実行手段
により部分集合ファイルが作成された場合にこの部分集
合ファイルの部分集合情報を前記部分集合管理テーブル
に登録する部分集合管理テーブル作成手段とを有する。
The subset file control method for multiple terminals of the present invention is to control a subset file temporarily created and used by a program that uses a database when a single program that uses a database is used from multiple terminals. In the subset file control method, there is a subset management table that manages the subset information of all subset files created for files used in the program for each terminal ID, and a subset management table that manages the subset information for each terminal ID. current location information saving means for saving current location information of each file or subset file; and a file or subset file for each terminal ID that is saved by the current location information saving means when a command is requested from the terminal. a current location information restoring means for restoring current location information; and searching the subset management table and comparing the terminal ID and subset ID of the subset information with the terminal ID and subset ID of the requested command. a subset information management means for determining whether deletion of a subset file is necessary in response to a requested command; Subset management table deletion means for deleting relevant subset information from a subset management table, and subsetting for releasing a subset file from which subset information has been deleted from the subset management table by the subset management table deletion means. A file deletion means, an input/output command execution means for executing an input/output command on the file or a subset file, and when a subset file is created by the input/output command execution means, subset information of the subset file. and a subset management table creation means for registering the information in the subset management table.

また、本発明の複数端末における部分集合ファイル制御
方式は、データベースを使用する1つのプログラムを複
数の端末より使用する場合にこのプログラムで一時的に
作成されて使用される部分集合ファイルを制御する複数
端末における部分集合ファイル制御方式において、プロ
グラムで使用されるファイルについて作成されているす
べての部分集合ファイルの部分集合情報を端末IDごと
に管理する部分集合管理テーブルと、ロールバック命令
の実行によって部分集合ファイルをコミット命令の実行
時にセーブされていた状態に復旧するときに現在の前記
部分集合管理テーブルの部分集合情報と復旧すべき前記
部分集合管理テーブルの部分集合情報とを比較して部分
集合ファイルが復旧できるか否かを判断する部分集合情
報管理手段と、この部分集合情報管理手段により部分集
合ファイルが復旧できないと判断されたときに前記部分
集合管理テーブルから部分集合情報を削除する部分集合
管理テーブル削除手段と、この部分集合管理テーブル削
除手段により前記部分集合管理テーブルから部分集合情
報が削除された部分集合ファイルを解放する部分集合フ
ァイル削除手段とを有する。
In addition, the subset file control method for multiple terminals of the present invention is such that when one program that uses a database is used from multiple terminals, a plurality of subset files that are temporarily created and used by this program are controlled. In the subset file control method in a terminal, there is a subset management table that manages subset information of all subset files created for files used in a program for each terminal ID, and a subset file control table that manages subset information of all subset files created for files used in a program for each terminal ID. When restoring a file to the state saved when the commit instruction was executed, the subset information in the current subset management table is compared with the subset information in the subset management table to be restored. a subset information management means for determining whether the subset file can be recovered; and a subset management table for deleting the subset information from the subset management table when the subset information management means determines that the subset file cannot be recovered. The present invention includes a deletion means, and a subset file deletion means for releasing a subset file whose subset information has been deleted from the subset management table by the subset management table deletion means.

〔作用〕[Effect]

本発明の複数端末における部分集合ファイル制御方式で
は、部分集合管理テーブルがプログラムで使用されるフ
ァイルについて作成されているすべての部分集合ファイ
ルの部分集合情報を端末IDごとに管理し、現在位置情
報退避手段が端末単位に端末IDを生成し端末IDごと
にファイルあるいは部分集合ファイルの現在位置情報を
退避し、現在位置情報退避手段が端末から命令の要求が
あったときに現在位置情報退避手段により退避された端
末IDごとのファイルあるいは部分集合ファイルの現在
位置情報を復旧し、部分集合情報管理手段が部分集合管
理テーブルを検索して部分集合情報の端末IDおよび部
分集合IDと要求があった命令の端末IDおよび部分集
合IDとを比較し要求があった命令に応して部分集合フ
ァイルの削除の要否を判断し、部分集合管理テーブル削
除手段が部分集合情報管理手段により部分集合ファイル
の削除が必要であると判断された場合に部分集合管理テ
ーブルから該当する部分集合情報を削除し、部分集合フ
ァイル削除手段が部分集合管理テーブル削除手段により
前記部分集合管理テーブルから部分集合情報が削除され
た部分集合ファイルを解放し、入出力命令実行手段がフ
ァイルあるいは部分集合ファイルに対して入出力命令を
実行し、部分集合管理テーブル作成手段が入出力命令実
行手段により部分集合ファイルが作成された場合にこの
部分集合ファイルの部分集合情報を部分集合管理テーブ
ルに登録する。
In the subset file control method for multiple terminals of the present invention, the subset management table manages the subset information of all the subset files created for the files used in the program for each terminal ID, and saves the current location information. The means generates a terminal ID for each terminal and saves the current location information of the file or subset file for each terminal ID, and the current location information saving means saves the current location information when a command is requested from the terminal. The subset information management means searches the subset management table and retrieves the terminal ID and subset ID of the subset information and the requested command. Comparing the terminal ID and the subset ID, it is determined whether the subset file should be deleted according to the requested command, and the subset management table deletion means deletes the subset file using the subset information management means. If it is determined that it is necessary, the subset information is deleted from the subset management table, and the subset file deletion means deletes the portion from which the subset information has been deleted from the subset management table by the subset management table deletion means. When a set file is released, the input/output command execution means executes an input/output command on the file or a subset file, and the subset management table creation means creates a subset file by the input/output command execution means, this Register the subset information of the subset file in the subset management table.

また、本発明の複数端末における部分集合ファイル制御
方式では、部分集合管理テーブルがプログラムで使用さ
れるファイルについて作成されているすべての部分集合
ファイルの部分集合情報を端末IDごとに管理し、部分
集合情報管理手段がロールバンク命令の実行によって部
分集合ファイルをコミット命令の実行時にセーブされて
いた状態に復旧するときに現在の部分集合管理テーブル
の部分集合情報と復旧すべき部分集合管理テーブルの部
分集合情報とを比較して部分集合ファイルが復旧できる
か否かを判断し、部分集合管理テーブル削除手段が部分
集合情報管理手段により部分集合ファイルが復旧できな
いと判断されたときに部分集合管理テーブルから部分集
合情報を削除し、部分集合ファイル削除手段が部分集合
管理テーブル削除手段により部分集合管理テーブルから
部分集合情報が削除された部分集合ファイルを解放する
In addition, in the subset file control method for multiple terminals of the present invention, the subset management table manages the subset information of all subset files created for files used in the program for each terminal ID, and When the information management means restores the subset file to the state saved when the commit command was executed by executing the roll bank command, the subset information of the current subset management table and the subset of the subset management table to be restored are collected. The subset management table deletion means deletes the partial file from the subset management table when the subset information management means determines that the subset file cannot be restored. The set information is deleted, and the subset file deletion means releases the subset file from which the subset information has been deleted from the subset management table by the subset management table deletion means.

〔実施例〕〔Example〕

次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.

第1図は、本発明の一実施例に係る複数端末における部
分集合ファイル制御方式の全体構成を示すブロック図で
ある。本実施例の複数端末における部分集合ファイル制
御方式は、現在位置情報復旧手段1と、部分集合情報管
理手段2と、部分集合管理テーブル削除手段3と、部分
集合ファイル削除手段4と、入出力命令実行手段5と、
部分集合管理テーブル作成手段6と、現在位置情報退避
手段7と、複数(図示は2つ)の端末8(#lおよび#
2)と、端末8(#1および#2)ごとに割り当てられ
る現在位置情報退避領域9と、部分集合管理テーブル1
0と、部分集合ファイル11と、ファイル13を含むデ
ータベース12とから構成されている。
FIG. 1 is a block diagram showing the overall configuration of a subset file control method for multiple terminals according to an embodiment of the present invention. The subset file control method for multiple terminals of this embodiment includes a current position information recovery means 1, a subset information management means 2, a subset management table deletion means 3, a subset file deletion means 4, and an input/output command. Execution means 5;
A subset management table creation means 6, a current position information saving means 7, and a plurality of (two shown) terminals 8 (#l and #
2), the current location information save area 9 allocated to each terminal 8 (#1 and #2), and the subset management table 1
0, a subset file 11, and a database 12 including a file 13.

現在位置情報復旧手段1は、端末8(#1および#2)
ごとに割り当てられている現在位置情報退避領域9から
要求があった端末8におけるファイル13または部分集
合ファイル11の現在位置情報を復旧する。
The current location information recovery means 1 is the terminal 8 (#1 and #2)
The current location information of the file 13 or subset file 11 in the requested terminal 8 is recovered from the current location information save area 9 allocated to each terminal.

部分集合情報管理手段2は、部分集合管理テーブル10
を検索して部分集合情報の端末ID (IDentif
ication)および部分集合IDと命令の端末ID
および部分集合IDとを比較し要求があった命令に応し
て部分集合ファイル11の削除の要否を判断する。また
、部分集合情報管理手段2は、ロールバック命令の実行
によって部分集合ファイル11をコミ、ト命令の実行時
にセーブされていた状態に復旧するときに現在の部分集
合管理テーブルlOの部分集合情報と復旧すべき部分集
合管理テーブル10の部分集合情報とを比較して部分集
合ファイル11が復旧できるか否かを判断する。
The subset information management means 2 has a subset management table 10.
Search for the terminal ID (IDentif) of the subset information.
cation) and the subset ID and terminal ID of the instruction
and the subset ID to determine whether deletion of the subset file 11 is necessary in accordance with the requested command. Further, when the subset information management means 2 restores the subset file 11 to the state saved when the commit command was executed by executing the rollback command, the subset information management means 2 uses the subset information in the current subset management table IO. It is determined whether the subset file 11 can be restored by comparing it with the subset information in the subset management table 10 to be restored.

部分集合管理テーブル削除手段3は、部分集合管理テー
ブル10上の部分集合情報を削除する。
The subset management table deletion means 3 deletes the subset information on the subset management table 10.

部分集合ファイル削除手段4は、部分集合ファイル11
を削除する。
The subset file deletion means 4 deletes the subset file 11
Delete.

入出力命令実行手段5は、プロセスにおける任意のファ
イル13または部分集合ファイル11に対して現在位置
情報に基づいて入出力命令を実行する。
The input/output command execution means 5 executes the input/output command to any file 13 or subset file 11 in the process based on the current position information.

部分集合管理テーブル作成手段6は、部分集合ファイル
11が作成された場合に、部分集合ファイ°ル11の端
末ID、管理情報および部分集合IDからなる部分集合
情報を作成して部分集合管理テーブルlOに登録する。
When the subset file 11 is created, the subset management table creation means 6 creates subset information consisting of the terminal ID, management information, and subset ID of the subset file 11, and creates the subset management table lO. Register.

現在位置情報退避手段7は、端末8ごとに端末IDを生
成し、端末IDごとにファイル13あるいは部分集合フ
ァイル11の現在位置情報を現在位置情報退避領域9に
退避する。なお、端末8単位の端末!Dは、プロセスに
おいて1つの端末8と一意に対応づけられるものであれ
ばいかなるものであってもよい、端末IDは、任意の端
末8におけるプロセスの最初の入出力命令(通常、オー
プン命令を含む)で生成され、以降はその端末IDによ
って端末8におけるファイル13または部分集合ファイ
ル11の現在位置情報が管理される。
The current location information saving means 7 generates a terminal ID for each terminal 8, and saves the current location information of the file 13 or the subset file 11 for each terminal ID into the current location information saving area 9. In addition, 8 units of terminals! D can be anything as long as it is uniquely associated with one terminal 8 in the process.The terminal ID is the first input/output command (usually including an open command) of the process on any terminal 8. ), and thereafter, the current position information of the file 13 or subset file 11 in the terminal 8 is managed based on the terminal ID.

次に、このように構成された本実施例の複数端末におけ
る部分集合ファイル制御方式の動作について、第2図を
参照しながら具体的に説明する。
Next, the operation of the subset file control method in the plurality of terminals of this embodiment configured as described above will be specifically explained with reference to FIG.

時刻tlにおいて、プログラムからファイル13(T)
のオープン命令が要求されると、オープン命令は端末8
(#1または#2)に関係なくプロセスについて実行さ
れるので、現在位置情報復旧手段1は、何もせずに部分
集合情報管理手段2に制御を渡す。
At time tl, file 13 (T) is sent from the program.
When an open command is requested, the open command is sent to terminal 8.
Since it is executed for the process regardless of (#1 or #2), the current location information recovery means 1 transfers control to the subset information management means 2 without doing anything.

部分集合情報管理手段2は、ファイル13(T)の部分
集合管理テーブル10に部分集合情報が登録されていな
いので、何もせずに入出力命令実行手段5に制御を渡す
Since no subset information is registered in the subset management table 10 of the file 13(T), the subset information management means 2 transfers control to the input/output command execution means 5 without doing anything.

入出力命令実行手段5は、データベース12内の、例え
ばレコード1,2,3,4.5.6および7からなるフ
ァイル13(T)をオーブンし、現在位置情報退避手段
7に制御を渡す。
The input/output command execution means 5 opens a file 13 (T) consisting of, for example, records 1, 2, 3, 4, 5, 6, and 7 in the database 12, and passes control to the current position information saving means 7.

現在位置情報退避手段7は、プロセスで使用されるそれ
ぞれの端末8(#lおよび#2)に対して任意の端末I
D(01および02)を生成し、それぞれの端末ID(
01および02)に対応する現在位置情報退避領域9を
確保し、プロセスが認識するすべての端末8 (#lお
よび#2)に対応する現在位置情報退避領域9にファイ
ル13(T)の現在位置情報、すなわちオーブン直後で
あるという情報を退避し、プログラムに制御を戻す。
The current location information saving means 7 stores any terminal I for each terminal 8 (#l and #2) used in the process.
D (01 and 02), and each terminal ID (
01 and 02), and save the current location of file 13(T) to the current location information save area 9 corresponding to all terminals 8 (#l and #2) recognized by the process. Save the information, that is, the information that it is just after the oven, and return control to the program.

時刻t2において、端末8(#1)からプロセスで最初
のファイル13(T)に対する部分集合ファイル作成命
令が要求されると、現在位置情報復旧手段1は、要求が
あった端末8(#1)の端末ID0Iに対応する現在位
置情報退避領域9に退避されている現在位置情報を復旧
し、部分集合情報管理手段2に制御を渡す。端末ID0
1に対応する現在位置情報退避領域9に現在位置情報が
退避されていなかった場合には、現在位置情報復旧手段
1は、何もせずに部分集合情報管理手段2に制御を渡す
At time t2, when a command to create a subset file for the first file 13 (T) is requested from the terminal 8 (#1) in the process, the current position information recovery means 1 returns the request to the terminal 8 (#1). The current location information saved in the current location information save area 9 corresponding to the terminal ID0I is restored, and control is passed to the subset information management means 2. Terminal ID0
If the current location information is not saved in the current location information save area 9 corresponding to 1, the current location information recovery means 1 transfers control to the subset information management means 2 without doing anything.

部分集合情報管理手段2は、ファイル13(T)の部分
集合管理テーブル10を検索し端末ID01の部分集合
情報が登録されていないので、何もせずに入出力命令実
行手段5に制御を渡す。
The subset information management means 2 searches the subset management table 10 of the file 13(T), and since the subset information of the terminal ID01 is not registered, it passes control to the input/output command execution means 5 without doing anything.

入出力命令実行手段5は、部分集合ファイル作成命令の
入出力命令を実行し、ファイル13 (T)の、例えば
レコード1.3および5からなる部分集合ファイル11
(A)を作成し、部分集合管理テーブル作成手段6に制
御を渡す。
The input/output command execution means 5 executes the input/output command of the subset file creation command, and creates a subset file 11 consisting of, for example, records 1.3 and 5 of the file 13 (T).
(A) and passes control to the subset management table creation means 6.

部分集合管理テーブル作成手段6は、端末8 (#1)
の端末ID01.選択条件テーブル等の管理情報へ゛お
よびプロセスにおける部分集合ファイル11(A)の部
分集合IDとして0001をそれぞれ設定した部分集合
情報を作成して部分集合管理テーブル10に登録し、現
在位置情報退避手段7に制御を渡す。
The subset management table creation means 6 is the terminal 8 (#1)
Terminal ID01. Create subset information in which 0001 is set as the subset ID of the subset file 11 (A) in the management information such as the selection condition table and the process, respectively, and register it in the subset management table 10, and the current position information saving means 7 Pass control to.

現在位置情報退避手段7は、端末ID0Lで部分集合I
D0OOIをもつ部分集合ファイル11(A)が作成さ
れた直後であるという現在位置情報を端末8(#1)に
対応する現在位置情報退避領域9に退避し、プログラム
に制御を戻す。
The current location information saving means 7 saves the subset I at the terminal ID0L.
The current position information indicating that the subset file 11(A) having D0OOI has just been created is saved in the current position information save area 9 corresponding to the terminal 8 (#1), and control is returned to the program.

時刻t3において、端末8  (#2)からファイル1
3(T)に対する部分集合ファイル作成命令が重ねて要
求されると、現在位置情報復旧手段Jは、要求があった
端末8 (#2>の端末ID02に対応する現在位置情
報退避N域9Lこ退避されている現在位置情報、すなわ
ちこの場合はオープン直後であるという情報を復旧し、
部分集合情報管理手段2に制御を渡す。端末IDO2に
対応する現在位置情報退避領域9に現在位置情報が退避
されていなかった場合には、現在位置情報復旧手段1は
、何もセずに部分集合情報管理手段2に制御を渡す。
At time t3, file 1 is sent from terminal 8 (#2).
When a subset file creation command for 3(T) is requested repeatedly, the current location information recovery means J saves the current location information save area N 9L corresponding to the terminal ID 02 of the requested terminal 8 (#2>). Restore the saved current location information, that is, the information that it has just opened in this case,
Control is passed to the subset information management means 2. If the current location information is not saved in the current location information save area 9 corresponding to the terminal IDO2, the current location information recovery means 1 passes control to the subset information management means 2 without doing anything.

部分集合情報管理手段2は、ファイル13 (T)の部
分集合管理テーブル10を検索し端末ID02の部分集
合情報は登録されていないので、入出力命令実行手段5
に制御を渡す。
The subset information management means 2 searches the subset management table 10 of the file 13 (T), and since the subset information of terminal ID 02 is not registered, the input/output command execution means 5
Pass control to.

入出力命令実行手段5は、部分集合ファイル作成命令の
入出力命令を実行し、ファイル13(T)の、例えばレ
コード5.6および7からなる部分集合ファイルII(
B)を作成し、部分集合管理テーブル作成手段6に制御
を渡す。
The input/output command execution means 5 executes the input/output command of the subset file creation command, and creates a subset file II (for example, consisting of records 5.6 and 7) of the file 13 (T).
B) is created and control is passed to the subset management table creation means 6.

部分集合管理テーブル作成手段6は、端末8 (#2)
の端末IDO2,選択条件テーブル等の管理情報B“お
よびプロセスにおける部分集合ファイル11(B)の部
分集合IDとして0002をそれぞれ設定した部分集合
情報を作成して部分集合管理テーブル10に登録し、現
在位置情報退避手段7に制御を渡す。
The subset management table creation means 6 is the terminal 8 (#2)
Create subset information in which 0002 is set as the subset ID of the terminal IDO 2, the selection condition table, etc., and the subset ID of the subset file 11 (B) in the process, and register it in the subset management table 10. Control is passed to the position information saving means 7.

現在位置情報退避手段7は、端末IDO2で部分集合I
D0OO2をもつ部分集合ファイル11(B)が作成さ
れた直後であるという現在位置情報を端末8 (#2)
に対応する現在位置情報退避領19に退避し、プログラ
ムに制御を戻す。
The current position information saving means 7 saves the subset I on the terminal IDO2.
Terminal 8 (#2) receives the current location information indicating that the subset file 11 (B) with D0OO2 has just been created.
The current position information is saved to the save area 19 corresponding to the current position information, and control is returned to the program.

時刻t4において、端末8(#1)から部分集合ファイ
ル21(A)に対するリード命令が要求されると、現在
位置情報復旧手段】は、端末ID01に対応する現在位
置情報退避領域9に退避されている現在位置情報を復旧
し、部分集合情報管理手段2に制御を渡す。
At time t4, when a read command for the subset file 21(A) is requested from the terminal 8 (#1), the current location information recovery means] saves the current location information to the current location information save area 9 corresponding to the terminal ID 01. The current location information is restored and control is passed to the subset information management means 2.

部分集合情報管理手段2は、ファイル13 (T)の部
分集合管理テーブル10を検索してリード命令の要求が
あった端末8(#1)の端末ID01を有する部分集合
情報が登録されているか否かをチエツクする。ここでは
、端末ID0Iの部分集合情報が登録されているので、
部分集合情報管理手段2は、この部分集合情報の部分集
合ID0001がリード命令が要求された部分集合ファ
イル11(A)の部分集合ID0OOIと一致するか否
かをチエツクする。ここでは、部分集合情報の部分集合
ID0OOIとリート命令が要求された部分集合ファイ
ル11(A)の部分集合ID0001とが一致するので
、部分集合情報管理手段2は、入出力命令実行手段5に
制御を渡す。
The subset information management means 2 searches the subset management table 10 of the file 13 (T) and determines whether the subset information having the terminal ID 01 of the terminal 8 (#1) that requested the read command is registered. Check. Here, the subset information of terminal ID0I is registered, so
The subset information management means 2 checks whether the subset ID0001 of this subset information matches the subset ID0OOI of the subset file 11(A) for which a read command has been requested. Here, since the subset ID0OOI of the subset information matches the subset ID0001 of the subset file 11(A) for which the REET command was requested, the subset information management means 2 controls the input/output command execution means 5. give.

入出力命令実行手段5は、部分集合ファイル11 (A
)に対してリード命令を実行し、レコード1を得て、現
在位置情報退避手段7に制御を渡す。
The input/output command execution means 5 executes a subset file 11 (A
), obtains record 1, and passes control to the current position information saving means 7.

現在位置情報退避手段7は、レコード1の位置を現在位
置情報として端末8(#1)に対応する現在位置情報退
避領域9に退避し、プログラムに制御を戻す。
The current position information saving means 7 saves the position of the record 1 as current position information to the current position information saving area 9 corresponding to the terminal 8 (#1), and returns control to the program.

時刻t5において、プログラムからファイル13  (
T) A二対するクローズ命令が要求されると、クロー
ズ命令はオープン命令と同様に端末8 (#lまたは#
2)に関係無くプロセスについて実行されるので、現在
位置情報復旧手段1は、何もせずに部分集合情報管理手
段2に制御を渡す。
At time t5, the program sends file 13 (
T) When a close command for A2 is requested, the close command is sent to terminal 8 (#l or #
Since the process is executed regardless of 2), the current position information recovery means 1 transfers control to the subset information management means 2 without doing anything.

部分集合情報管理手段2は、ファイル13 (T)の部
分集合管理テーブル10上に部分集合情報が登録されて
いるか否かをチエ、りし、登録されているので、部分集
合管理テーブル削除手段3に制御を渡す。
The subset information management means 2 checks whether or not the subset information is registered on the subset management table 10 of the file 13 (T), and since it is registered, the subset management table deletion means 3 Pass control to.

部分集合管理テーブル削除手段3は、ファイル13(T
)の部分集合管理テーブルlO上のすべての部分集合情
報を削除し、部分集合ファイル削除手段4に制御を渡す
The subset management table deletion means 3 deletes the file 13 (T
) on the subset management table IO, and transfers control to the subset file deletion means 4.

部分集合ファイル削除手段4は、ファイル13(T)の
部分集合管理テーブル10上から削除された部分集合情
報の部分集合IDを有するすべての部分集合ファイル1
1 (AおよびB)を解放し、入出力命令実行手段5に
制御を渡す。
The subset file deletion means 4 deletes all the subset files 1 having the subset ID of the subset information deleted from the subset management table 10 of the file 13(T).
1 (A and B) and transfers control to the input/output command execution means 5.

入出力命令実行手段5は、ファイル13(T)をクロー
ズし、現在位置情報退避手段7に制御を渡す。
The input/output command execution means 5 closes the file 13(T) and passes control to the current position information saving means 7.

現在位置情報退避手段7は、ファイル13 (T)につ
いてのすべての現在位置情報退避領域9を解放する。
The current position information saving means 7 releases all the current position information saving areas 9 for the file 13 (T).

以上の制御により、1つのプロセスで複数の端末から同
一のファイルの複数の部分集合ファイル11をそれぞれ
アクセスすることが可能となる。
The above control allows one process to access a plurality of subset files 11 of the same file from a plurality of terminals.

なお、任意の端末8 (#1または#2)からある部分
集合ファイル11に対する部分集合ファイル解放命令が
要求された場合には、部分集合情報管理手段2は、部分
集合管理テーブル10を検索して、要求された部分集合
ファイル解放命令の端末IDおよび部分集合IDと端末
IDおよび部分集合IDが一致する部分集合情報が登録
されていなければ、プログラムにエラーを通知する。一
方、要求された部分集合ファイル解放命令の端末IDお
よび部分集合IDと端末[Dおよび部分集合IDが一致
する部分集合情報が登録されていれば、部分集合情報管
理手段2は、部分集合管理テーブル削除手段3に制御を
渡す。
Note that when a subset file release command for a certain subset file 11 is requested from any terminal 8 (#1 or #2), the subset information management means 2 searches the subset management table 10 and , if subset information whose terminal ID and subset ID match the terminal ID and subset ID of the requested subset file release command is not registered, an error is notified to the program. On the other hand, if subset information in which the terminal ID and subset ID of the requested subset file release command match the terminal [D and subset ID is registered, the subset information management means 2 Control is passed to deletion means 3.

部分集合管理テーブル削除手段3は、部分集合管理テー
ブル10から端末fDおよび部分集合fDが一致する部
分集合情報を削除して、部分集合ファイル削除手段4に
制御を渡す。
The subset management table deletion means 3 deletes the subset information in which the terminal fD and the subset fD match from the subset management table 10, and passes control to the subset file deletion means 4.

部分集合ファイル削除手段4は、部分集合管理テーブル
IOから削除された部分集合情報の部分集合IDを持つ
部分集合ファイル11を解放する。
The subset file deletion means 4 releases the subset file 11 having the subset ID of the subset information deleted from the subset management table IO.

ところで、コミット命令の実行でデータベース12の静
止点が確立されたときには、現在位置情報退避領域9お
よび部分集合管理テーブル10がプロセスのメモリ上に
退避され、ロールバック命令の実行時には、プロセスの
メモリ上に退避されていた現在位置情報退避領域9およ
び部分集合管理テーブル10が復旧される。しかし、部
分集合ファイル11は一時フアイルであるため、ロール
バック命令によりデータベース12を直前のコミット命
令の実行時の静止点の状態に戻したとしても、その時点
の現在位置情報が現在存在する部分集合ファイル11に
対するものではなくなることが生じる。このため、同一
の端末IDで異なる部分集合ファイル11に対する現在
位置情報での動作を防くために、次の制御が行われる。
By the way, when a quiescent point of the database 12 is established by executing a commit instruction, the current location information save area 9 and the subset management table 10 are saved in the memory of the process, and when a rollback instruction is executed, the current location information save area 9 and the subset management table 10 are saved in the memory of the process. The current location information save area 9 and the subset management table 10 that were saved in the current position information save area 9 and the subset management table 10 are restored. However, since the subset file 11 is a temporary file, even if the database 12 is returned to the state of the quiescent point at the time of execution of the previous commit command by a rollback command, the current position information at that point is still in the subset that currently exists. It happens that it is no longer for file 11. Therefore, in order to prevent operations using current position information for different subset files 11 with the same terminal ID, the following control is performed.

すなわち、ロールバック命令の実行時にメモリ上に退避
されていた部分集合管理テーブル10が復旧されたとき
に、部分集合情報管理手段2は、現在の部分集合管理テ
ーブル10の部分集合情報と復旧すべき部分集合管理テ
ーブル10の部分集合情報とを比較して内容が一致しな
い部分集合情報をチエツクし、内容が一致しない部分集
合情報がある場合には部分集合管理テーブル削除手段3
に制御を渡す。
That is, when the subset management table 10 that was saved on the memory at the time of execution of the rollback instruction is restored, the subset information management means 2 selects the subset information of the current subset management table 10 and the subset information to be restored. It compares the subset information with the subset information in the subset management table 10 to check for subset information whose contents do not match, and if there is subset information whose contents do not match, the subset management table deletion means 3
Pass control to.

部分集合管理テーブル削除手段3は、復旧した部分集合
管理テーブル10上から内容が一致しない部分集合情報
を削除し、部分集合ファイル削除手段4に制御を渡す。
The subset management table deletion means 3 deletes subset information whose contents do not match from the restored subset management table 10, and passes control to the subset file deletion means 4.

部分集合ファイル削除手段4は、部分集合情報が一致し
ない部分集合ファイルIIを解放する。
The subset file deletion means 4 releases the subset files II whose subset information does not match.

なお、この時点では、メモリにセーブされていた現在位
置情報退避領域9も復旧されるので、部分集合ファイル
11の存否と現在位置情報との対応はとれていないこと
になる。
Note that at this point, the current location information save area 9 saved in the memory is also restored, so there is no correspondence between the presence or absence of the subset file 11 and the current location information.

したがって、この後に、端末8から部分集合ファイル1
1に対する入出力命令が要求されたときに、部分集合情
報管理手段2は、部分集合管理テーブル10を検索して
、要求があった端末8の端末IDと部分集合情報の端末
IDとを比較する。
Therefore, after this, from terminal 8 to subset file 1
When an input/output command for 1 is requested, the subset information management means 2 searches the subset management table 10 and compares the terminal ID of the terminal 8 that made the request with the terminal ID of the subset information. .

部分集合管理テーブル10上に要求があった端末8の端
末IDを有する部分集合情報がなければ、部分集合情報
管理手段2は、プログラムにエラーを通知する。部分集
合管理テーブル10上に要求があった端末8の端末ID
を有する部分集合情報があれば、部分集合情報管理手段
2は、部分集合管理テーブル10上の該当する端末ID
を有する部分集合情報の部分集合IDと入出力命令が要
求された部分集合ファイル11の部分集合IDとを比較
する。部分集合管理テーブル10上の該当する端末ID
を有する部分集合情報の部分集合IDと入出力命令が要
求された部分集合ファイル11の部分集合IDとが一致
しなれば、部分集合情報管理手段2は、プログラムにエ
ラーを通知する。
If there is no subset information having the terminal ID of the requested terminal 8 on the subset management table 10, the subset information management means 2 notifies the program of an error. Terminal ID of the terminal 8 that made the request on the subset management table 10
If there is subset information having
The subset ID of the subset information having the input/output command is compared with the subset ID of the subset file 11 for which the input/output command is requested. Corresponding terminal ID on the subset management table 10
If the subset ID of the subset information having the input/output command does not match the subset ID of the subset file 11 for which the input/output command is requested, the subset information management means 2 notifies the program of an error.

部分集合管理テーブル10上の該当する端末TDを有す
る部分集合情報の部分集合FDと入出力命令が要求され
た部分集合ファイル11の部分集合IDとが一致すれば
、部分集合情報管理手段2は、入出力命令実行手段5に
制御を渡す。入出力命令実行手段5は、部分集合ファイ
ル11に対する入出力命令を実行する。
If the subset FD of the subset information having the corresponding terminal TD on the subset management table 10 matches the subset ID of the subset file 11 for which an input/output command is requested, the subset information management means 2: Control is passed to the input/output command execution means 5. The input/output command execution means 5 executes input/output commands for the subset file 11.

また、端末8からデータベース12内のファイル13(
T)に対する入出力命令が要求されたときに、部分集合
情報管理手段2は、部分集合管理テーブル10を検索し
て、要求があった端末8の端末IDと部分集合情報の端
末IDとを比較する。
Also, from the terminal 8, the file 13 in the database 12 (
When an input/output command for T) is requested, the subset information management means 2 searches the subset management table 10 and compares the terminal ID of the terminal 8 that made the request with the terminal ID of the subset information. do.

要求があった端末8の端末IDと端末IDが一致する部
分集合情報がなければ、部分集合情報管理手段2は、入
出力命令実行手段5に制御を渡す。
If there is no subset information whose terminal ID matches the terminal ID of the requested terminal 8, the subset information management means 2 passes control to the input/output command execution means 5.

一方、要求があった端末8の端末IDと端末IDが一致
する部分集合情報があれば、部分集合情報管理手段2は
、部分集合管理テーブル削除手段3に制御を渡す。部分
集合管理テーブル削除手段3は、部分集合管理テーブル
IOから端末IDが一致する部分集合情報を削除して、
部分集合ファイル削除手段4に制御を渡す。部分集合フ
ァイル削除手段4は、部分集合管理テーブル10から削
除された部分集合情報の部分集合IDを持つ部分集合フ
ァイル11を解放する。入出力命令実行手段5は、デー
タベース12内のファイル13(T)に対する入出力命
令を実行する。
On the other hand, if there is subset information whose terminal ID matches the terminal ID of the terminal 8 that made the request, the subset information management means 2 passes control to the subset management table deletion means 3. The subset management table deletion means 3 deletes the subset information with the matching terminal ID from the subset management table IO,
Control is passed to the subset file deletion means 4. The subset file deletion means 4 releases the subset file 11 having the subset ID of the subset information deleted from the subset management table 10. The input/output command execution means 5 executes input/output commands for the file 13(T) in the database 12.

以上の制御により、ロールバック命令の実行によりデー
タベース12を直前のコミット命令の実行時の静止点の
状態に戻しても、部分集合ファイル11の制御の一貫性
が保持される。
With the above control, the consistency of control of the subset file 11 is maintained even if the database 12 is returned to the state of the quiescent point at the time of execution of the immediately previous commit instruction by executing the rollback instruction.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、部分集合管理テーブル、
現在位置情報退避手段、現在位置情報復旧手段1部分集
合情報管理手段1部分集合管理テーブル削除手段9部分
集合ファイル削除手段、入出力命令実行手段および部分
集合管理テーブル作成手段を設け、実際のデータベース
内のファイルの部分集合ファイルの状態を管理しながら
現在位置情報を制御するようにしたことにより、1つの
プロセスで複数の端末から同一のファイルの複数の部分
集合ファイルをそれぞれアクセスすることが可能となり
、プログラムが端末ごと4二部分集合ファイルの制御を
行う煩わしさを解消できるとともに、端末ごとの制御を
独立して行うことが可能となるためにプログラムの構築
が容易になるという効果がある。
As explained above, the present invention provides a subset management table,
Current position information saving means, current position information restoring means 1 Subset information management means 1 Subset management table deletion means 9 Subset file deletion means, input/output command execution means, and subset management table creation means are provided. By controlling the current location information while managing the state of the file subset file, it becomes possible to access multiple subset files of the same file from multiple terminals in one process. This has the effect that the troublesomeness of a program having to control 42 subset files for each terminal can be eliminated, and that the program can be easily constructed since it becomes possible to control each terminal independently.

また、部分集合管理テーブル、部分集合情報管理手段3
部分集合管理テーブル削除手段2部分集合ファイル削除
手段を設け、ロールバック命令によりデータベースを直
前のコミット命令の実行時の静止点の状態に戻したとき
に部分集合管理テーブルの部分集合情報の一致を調べて
一致しない場合には部分集合ファイルを削除するように
したことにより、部分集合ファイルの制御の一貫性が保
持されるという効果がある。
In addition, a subset management table, subset information management means 3
Subset management table deletion means 2 A subset file deletion means is provided, and when the database is returned to the state of the quiescent point at the time of execution of the immediately previous commit command by a rollback command, it checks whether the subset information in the subset management table matches. By deleting the subset file if they do not match, consistency in control of the subset file is maintained.

【図面の簡単な説明】 第1図は本発明の一実施例に係る複数端末における部分
集合ファイル制御方式の全体構成を示すブロック図、 第2Mは本実施例の複数端末における部分集合ファイル
制御方式の動作の一例を示す図、第3図は従来の複数端
末における部分集合ファイル制御方式の一例を示す図で
ある。 図において、 1・・・現在位置情報復旧手段、 2・・・部分集合情報管理手段、 3・・・部分集合管理テーブル削除手段、4・・・部分
集合ファイル削除手段、 5・・・入出力命令実行手段、 6・・・部分集合管理テーブル作成手段、7・・・現在
位置情報退避手段、 8・・・端末、 9・・・現在位置情報退避領域、 10・・部分集合管理テーブル、 11・・部分集合ファイル、 12・・データベースである。
[Brief Description of the Drawings] Figure 1 is a block diagram showing the overall configuration of a subset file control method for multiple terminals according to an embodiment of the present invention, and 2M is a block diagram showing the subset file control method for multiple terminals of this embodiment. FIG. 3 is a diagram showing an example of a conventional subset file control method in multiple terminals. In the figure, 1... Current position information recovery means, 2... Subset information management means, 3... Subset management table deletion means, 4... Subset file deletion means, 5... Input/output. Command execution means, 6... Subset management table creation means, 7... Current position information saving means, 8... Terminal, 9... Current position information saving area, 10... Subset management table, 11 ...Subset file, 12...Database.

Claims (2)

【特許請求の範囲】[Claims] (1)データベースを使用する1つのプログラムを複数
の端末より使用する場合にこのプログラムで一時的に作
成されて使用される部分集合ファイルを制御する複数端
末における部分集合ファイル制御方式において、 プログラムで使用されるファイルについて作成されてい
るすべての部分集合ファイルの部分集合情報を端末ID
ごとに管理する部分集合管理テーブルと、 端末単位に端末IDを生成し端末IDごとにファイルあ
るいは部分集合ファイルの現在位置情報を退避する現在
位置情報退避手段と、 端末から命令の要求があったときに前記現在位置情報退
避手段により退避された端末IDごとのファイルあるい
は部分集合ファイルの現在位置情報を復旧する現在位置
情報復旧手段と、 前記部分集合管理テーブルを検索して部分集合情報の端
末IDおよび部分集合IDと要求があった命令の端末I
Dおよび部分集合IDとを比較し要求があった命令に応
じて部分集合ファイルの削除の要否を判断する部分集合
情報管理手段と、この部分集合情報管理手段により部分
集合ファイルの削除が必要であると判断された場合に前
記部分集合管理テーブルから該当する部分集合情報を削
除する部分集合管理テーブル削除手段と、この部分集合
管理テーブル削除手段により前記部分集合管理テーブル
から部分集合情報が削除された部分集合ファイルを解放
する部分集合ファイル削除手段と、 ファイルあるいは部分集合ファイルに対して入出力命令
を実行する入出力命令実行手段と、この入出力命令実行
手段により部分集合ファイルが作成された場合にこの部
分集合ファイルの部分集合情報を前記部分集合管理テー
ブルに登録する部分集合管理テーブル作成手段と を有することを特徴とする複数端末における部分集合フ
ァイル制御方式。
(1) When one program that uses a database is used from multiple terminals, a subset file control method for multiple terminals that controls a subset file that is temporarily created and used by this program is used by the program. The subset information of all the subset files created for the file to be
A subset management table that manages each terminal, a current location information saving means that generates a terminal ID for each terminal and saves current location information of a file or subset file for each terminal ID, and when a command is requested from a terminal. current location information restoring means for restoring the current location information of the file or subset file for each terminal ID saved by the current location information saving means; Subset ID and terminal I of the requested instruction
A subset information management means that compares D and the subset ID and determines whether deletion of the subset file is necessary according to a requested command; subset management table deletion means for deleting the corresponding subset information from the subset management table when it is determined that the subset information exists; and the subset information is deleted from the subset management table by the subset management table deletion means. A subset file deletion means for releasing a subset file, an input/output command execution means for executing an input/output command on a file or a subset file, and a subset file created by the input/output command execution means. A subset file control method for a plurality of terminals, comprising: subset management table creation means for registering subset information of the subset file in the subset management table.
(2)データベースを使用する1つのプログラムを複数
の端末より使用する場合にこのプログラムで一時的に作
成されて使用される部分集合ファイルを制御する複数端
末における部分集合ファイル制御方式において、 プログラムで使用されるファイルについて作成されてい
るすべての部分集合ファイルの部分集合情報を端末ID
ごとに管理する部分集合管理テーブルと、 ロールバック命令の実行によって部分集合ファイルをコ
ミット命令の実行時にセーブされていた状態に復旧する
ときに現在の前記部分集合管理テーブルの部分集合情報
と復旧すべき前記部分集合管理テーブルの部分集合情報
とを比較して部分集合ファイルが復旧できるか否かを判
断する部分集合情報管理手段と、 この部分集合情報管理手段により部分集合ファイルが復
旧できないと判断されたときに前記部分集合管理テーブ
ルから部分集合情報を削除する部分集合管理テーブル削
除手段と、 この部分集合管理テーブル削除手段により前記部分集合
管理テーブルから部分集合情報が削除された部分集合フ
ァイルを解放する部分集合ファイル削除手段と を有することを特徴とする複数端末における部分集合フ
ァイル制御方式。
(2) When one program that uses a database is used from multiple terminals, a subset file control method for multiple terminals that controls a subset file that is temporarily created and used by this program is used by the program. The subset information of all the subset files created for the file to be
A subset management table to be managed for each, and a subset information to be restored in the current subset management table when restoring a subset file to the state saved at the time of execution of a commit command by executing a rollback command. subset information management means for determining whether or not the subset file can be recovered by comparing the subset information in the subset management table; a subset management table deletion means for deleting subset information from the subset management table; and a part for releasing a subset file from which the subset information has been deleted from the subset management table by the subset management table deletion means. 1. A subset file control method for multiple terminals, comprising a set file deletion means.
JP2307039A 1990-11-15 1990-11-15 Control system for partial assembly files of plural terminals Pending JPH04180137A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2307039A JPH04180137A (en) 1990-11-15 1990-11-15 Control system for partial assembly files of plural terminals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2307039A JPH04180137A (en) 1990-11-15 1990-11-15 Control system for partial assembly files of plural terminals

Publications (1)

Publication Number Publication Date
JPH04180137A true JPH04180137A (en) 1992-06-26

Family

ID=17964311

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2307039A Pending JPH04180137A (en) 1990-11-15 1990-11-15 Control system for partial assembly files of plural terminals

Country Status (1)

Country Link
JP (1) JPH04180137A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013207760A (en) * 2012-03-29 2013-10-07 Fujitsu Ltd Data collecting method, mobile terminal and data storage device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013207760A (en) * 2012-03-29 2013-10-07 Fujitsu Ltd Data collecting method, mobile terminal and data storage device
US9537735B2 (en) 2012-03-29 2017-01-03 Fujitsu Limited Data collection method, mobile terminal and data storage device

Similar Documents

Publication Publication Date Title
US6341308B1 (en) Input/output device information management system for multi-computer system
JP3270216B2 (en) File name detection method
US7707186B2 (en) Method and apparatus for data set migration
US8458234B2 (en) Data management method
US7698319B2 (en) Database system management method, database system, database device, and backup program
US20050108237A1 (en) File system
KR101826827B1 (en) Integrated replication system in real time
JPH05120110A (en) Automatic backup system for file
JPH1063557A (en) Distributed file synchronization system
JPH04180137A (en) Control system for partial assembly files of plural terminals
JP2830826B2 (en) Distributed file synchronization system and method
JPH02292641A (en) Method for controlling data base
JPH04104342A (en) Data distributed control method and control system
JP3330006B2 (en) Network system including information storage system, input system of the system, and
JPH11272628A (en) Transfer method and connection device for shared data
JPH11250092A (en) Shared database, shared databse system, method for extracting data from shared database and medium recording data extraction program from shared databse
JP2000148552A (en) Method and system for associating data base file and medium where processing program thereof is recorded
JPH11265389A (en) Shared data base device ahd shared data base system
JPH10320218A (en) Automatic starting method for cooperative job in data transfer processing
JPH03100744A (en) Data base control system
JPS61122756A (en) General queue control system
JPH11259351A (en) Data base device, shared data base device, shared data base system, data extracting method for shared data base device and storage medium recording data extraction program for shared data base device
JPH01282635A (en) Index maintaining system
JPS63196956A (en) File exclusion system
JPS5981748A (en) File control processor