JPH08153031A - File management device - Google Patents

File management device

Info

Publication number
JPH08153031A
JPH08153031A JP6292840A JP29284094A JPH08153031A JP H08153031 A JPH08153031 A JP H08153031A JP 6292840 A JP6292840 A JP 6292840A JP 29284094 A JP29284094 A JP 29284094A JP H08153031 A JPH08153031 A JP H08153031A
Authority
JP
Japan
Prior art keywords
item
exclusion
access
request
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP6292840A
Other languages
Japanese (ja)
Other versions
JP2641399B2 (en
Inventor
Hisao Oishi
久夫 大石
Yoshikatsu Tome
由勝 當銘
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.)
OKINAWA NIPPON DENKI SOFTWARE KK
NEC Corp
NEC Software Okinawa Ltd
Original Assignee
OKINAWA NIPPON DENKI SOFTWARE KK
NEC Corp
NEC Software Okinawa 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 OKINAWA NIPPON DENKI SOFTWARE KK, NEC Corp, NEC Software Okinawa Ltd filed Critical OKINAWA NIPPON DENKI SOFTWARE KK
Priority to JP6292840A priority Critical patent/JP2641399B2/en
Publication of JPH08153031A publication Critical patent/JPH08153031A/en
Application granted granted Critical
Publication of JP2641399B2 publication Critical patent/JP2641399B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To obtain a file management device which can execute efficient exclusive control for every item unit of a record, which can improve file use efficiency and which can reduce storage capacity required for exclusive control by generating and using a table storing access exclusive information for respective items executing access in accordance with an access operation. CONSTITUTION: An access exclusive request part 11, an item exclusive table storage part 13 and an item exclusive control part 12 are included. The item exclusive table storing access exclusive information including the identifier of a main body executing reference access or update access and the record identifier of the access target and an access object, and an intra-record item identifier is generated in accordance with the access operation and it is used for the exclusive processing. When the corresponding item exclusive table is not stored in a corresponding item exclusive table storage part 13, the item exclusive control 12 generates the new item exclusive table on the item to which access exclusive request is given based on access exclusive request information, and stores it in the item exclusive table storage part 13.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はフアイル管理装置に関
し、特に1つのフアイルを複数のジョブが同時に使用す
る場合におけるレコードを構成する項目毎にフアイル操
作の排他制御を行なうためのフアイル管理装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file management apparatus, and more particularly to a file management apparatus for performing exclusive control of file operations for each item constituting a record when one file is used by a plurality of jobs simultaneously.

【0002】[0002]

【従来の技術】従来のフアイル管理装置は、物理フアイ
ルからプログラムへのデータ入出力処理に際しては、プ
ログラムで定義したレコードを単位として行なわれ、プ
ログラムからの入出力命令の度にレコードを構成する項
目データ全体を受け渡しの対象としていた。
2. Description of the Related Art In a conventional file management device, data input / output processing from a physical file to a program is performed in units of records defined by the program, and items are formed every time an input / output instruction from the program is made. The entire data was handed over.

【0003】そして、物理フアイルの更新処理における
排他制御も、特開平1−241639号公報記載のよう
に、レコード単位に行なわれている。
The exclusive control in the physical file update process is also performed on a record basis as described in Japanese Patent Application Laid-Open No. 1-241639.

【0004】しかし、レコード単位の受け渡しでは、入
出力命令の度に処理に必要のない項目データも受け渡し
の対象となっており、コンピュータ資源の無駄使いとい
う問題点があった。
However, in the transfer in record units, item data that is not necessary for processing is also transferred for each input / output instruction, and there is a problem that computer resources are wasted.

【0005】そこで、特開昭64−64044号公報等
の記載では、物理フアイルから、その各レコードを構成
するデータ項目の中の、所要のデータ項目のデータを抽
出した構成のレコードからなる仮想的なフアイルを、論
理フアイルとして定義し、利用者にはその実体があると
同様に、論理フアイルへのアクセスを可能にする方式に
ついて記述されている。さらに、特開平4−17884
7号公報記載の技術では、レコードを構成する各項目ご
との排他制御技術が開示されている。
[0005] Therefore, in the description of Japanese Patent Application Laid-Open No. 64-64044 and the like, a virtual file composed of records obtained by extracting data of required data items from data items constituting each record from a physical file is described. A file is defined as a logical file, and a method is described in which a user can access the logical file as well as the entity. Furthermore, JP-A-4-17884
In the technology described in Japanese Patent Application Publication No. 7-107, an exclusive control technology for each item constituting a record is disclosed.

【0006】特開平4−178847号公報記載のフア
イル管理装置によれば、レコードの新規登録時にレコー
ド毎またはそのレコード内のアイテム毎に対応した排他
制御情報の格納領域を自動生成し、この領域に排他制御
用の情報の書き込みおよび参照を実施して、その情報に
基づいて、データ更新要求の受付の制御を行なってい
る。
According to the file management apparatus described in Japanese Patent Application Laid-Open No. 4-178847, a storage area of exclusive control information corresponding to each record or each item in the record is automatically generated at the time of new registration of a record, and this area is created. Writing and referencing the information for exclusive control are performed, and based on the information, control of accepting a data update request is performed.

【0007】[0007]

【発明が解決しようとする課題】上述した従来のフアイ
ル管理装置は、レコードの新規登録時にレコード毎また
はそのレコード内のアイテム毎に対応した排他制御情報
の格納領域を自動生成しているので、排他制御に要する
記憶容量が大きくなるという問題点がある。
The conventional file management apparatus described above automatically generates a storage area for exclusive control information corresponding to each record or each item in the record when a record is newly registered. There is a problem that the storage capacity required for control increases.

【0008】また、レコードまたはレコード内項目に対
応した排他制御情報としては、そのレコードまたはレコ
ード内項目を更新しているプログラム、プロセスまたは
ユーザ等の更新要求の主体の識別子を用いており、参照
を目的として排他を要しないアクセスを行なっている参
照要求の主体の情報はないので、参照アクセスが行なわ
れているレコードの項目と同じレコードの同じ項目に更
新要求があったときに行なう処置に必要な情報に欠ける
という問題点がある。
As the exclusive control information corresponding to a record or an item in a record, an identifier of a subject of an update request such as a program, a process, or a user updating the record or an item in the record is used. Since there is no information on the subject of the reference request that makes an access that does not require exclusion for the purpose, it is necessary for the action to be taken when there is an update request for the same item in the same record as the item of the record for which the reference access is being made. There is a problem of lack of information.

【0009】本発明の目的は、参照アクセスまたは更新
アクセスを行なっている主体の識別子とそのアクセス目
的とそのアクセス対象のレコード識別子とレコード内項
目識別子とを格納するテーブルをアクセス動作に応じて
作成使用することにより、レコードの各項目単位に効率
的な排他制御が行なえ、フアイルの利用効率を向上でき
るとともに、排他制御に要する記憶容量を格段に削減で
きるフアイル管理装置を提供することにある。
[0009] An object of the present invention is to create and use a table for storing the identifier of the entity performing reference access or update access, the purpose of the access, the record identifier of the access target, and the item identifier in the record according to the access operation. Accordingly, an object of the present invention is to provide a file management apparatus that can perform efficient exclusive control for each item of a record, improve file use efficiency, and significantly reduce the storage capacity required for exclusive control.

【0010】[0010]

【課題を解決するための手段】第1の発明のフアイル管
理装置は、外部からのアクセス要求に基づいてアクセス
対象のフアイル識別子とレコード識別子と項目識別子と
アクセス目的が参照要求か更新要求かを示す処理種別と
その処理を行なう主体であるジョブ識別子とを含むアク
セス排他情報を発生して項目毎の排他要求を行ない外部
からのジョブの処理の終了通知に応じて前記アクセス排
他情報を発生して項目毎の排他解除要求を行なうアクセ
ス排他要求手段と、アクセスが行なわれている項目のア
クセス排他情報を格納している項目排他情報格納手段
と、前記アクセス排他要求手段からの排他要求に応じて
その排他要求に対応する項目が前記項目排他情報格納手
段に格納されていない新たな項目である第1の場合には
このアクセス排他情報を前記項目排他情報格納手段に格
納した後にアクセス動作を起動しその排他要求に対応す
る項目が前記項目排他情報格納手段にすでに格納されて
いる項目であり更新アクセス中である第2の場合にはそ
の終了待ちを通知しその排他要求に対応する項目が前記
項目排他情報格納手段にすでに格納されている項目であ
り参照アクセス中であってその排他要求に対応する処理
種別が参照要求である第3の場合には前記項目排他情報
格納手段にすでに格納されている対応するアクセス排他
情報にその排他要求に対応するジョブ識別子を追加格納
しその排他要求に対応する項目が前記項目排他情報格納
手段にすでに格納されている項目であり参照アクセス中
であってその排他要求に対応する処理種別が更新要求で
あって他のジョブがアクセス中でない第4の場合には前
記項目排他情報格納手段にすでに格納されている対応す
るアクセス排他情報の処理種別を参照要求から更新要求
に変更した後にアクセス動作を起動しその排他要求に対
応する項目が前記項目排他情報格納手段にすでに格納さ
れている項目であり参照アクセス中であってその排他要
求に対応する処理種別が更新要求であって他のジョブが
アクセス中である第5の場合にはその終了待ちを通知し
前記アクセス排他要求手段からの排他解除要求に応じて
その排他解除要求に対応する項目の対応するアクセス排
他情報を削除する項目排他制御手段とを含んで構成され
ている。
A file management apparatus according to a first aspect of the present invention indicates a file identifier, a record identifier, an item identifier, and an access purpose of an access target, which is a reference request or an update request, based on an access request from the outside. Access exclusion information including a processing type and a job identifier that is the subject of the processing is generated, an exclusion request is made for each item, and the access exclusion information is generated in response to an external job processing completion notification from the outside. Access exclusion requesting means for making each exclusion release request, item exclusion information storage means for storing access exclusion information of the item being accessed, and the exclusion in response to the exclusion request from the access exclusion requesting means In the first case where the item corresponding to the request is a new item not stored in the item exclusion information storage means, this access exclusion information In the second case where the access operation is started after the item is stored in the item exclusion information storage means and the item corresponding to the exclusion request is the item already stored in the item exclusion information storage means and the update access is being performed. Third, a notification of the end wait and the item corresponding to the exclusion request are items already stored in the item exclusion information storage means, are being accessed for reference, and the processing type corresponding to the exclusion request is the reference request. In this case, the job identifier corresponding to the exclusion request is additionally stored in the corresponding access exclusion information already stored in the item exclusion information storage means, and the item corresponding to the exclusion request is already stored in the item exclusion information storage means. It is a stored item, is being accessed for reference, the processing type corresponding to the exclusion request is an update request, and no other job is accessing it. In the case of 4, the access operation is started after the processing type of the corresponding access exclusion information already stored in the item exclusion information storage means is changed from the reference request to the update request, and the item corresponding to the exclusion request is the item In the fifth case, which is an item already stored in the exclusion information storage means, is being accessed for reference, the processing type corresponding to the exclusion request is an update request, and another job is accessing it, waits for its completion. And an item exclusion control unit that deletes the corresponding access exclusion information of the item corresponding to the exclusion release request in response to the exclusion release request from the access exclusion request unit.

【0011】第2の発明のフアイル管理装置は、第1の
発明のフアイル管理装置においてレコード識別子として
フアイル内相対番号を、項目識別子としてレコード内相
対番号を使用することを特徴としている。
The file management apparatus of the second invention is characterized in that, in the file management apparatus of the first invention, a relative number in the file is used as a record identifier and a relative number in the record is used as an item identifier.

【0012】[0012]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0013】図1は本発明のフアイル管理装置の一実施
例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a file management apparatus according to the present invention.

【0014】本実施例のフアイル管理装置1は、図1に
示すように、外部からのフアイル3へのアクセス要求に
基づいてアクセス排他情報を発生して項目毎の排他要求
を行ないまた外部からのジョブの処理の終了通知に応じ
てそのアクセス排他解除要求情報を発生して項目毎の排
他解除要求を行なうアクセス排他要求部11と、排他要
求を受け付けている項目のアクセス排他情報を記憶して
いる項目排他テーブル記憶部13と、アクセス排他要求
部11の要求に応じて項目排他テーブル記憶部13を参
照して新たな項目に対するアクセス排他要求のときには
このアクセス排他情報を項目排他テーブル記憶部13に
登録して後にアクセス動作を起動し既登録の項目に対す
るアクセス排他要求のときには登録されているアクセス
排他情報と対比して項目毎の排他制御を行なう項目排他
制御部12とを含んで構成されている。
As shown in FIG. 1, the file management apparatus 1 of the present embodiment generates access exclusion information based on an external access request to the file 3 and issues an exclusion request for each item. The access exclusion request unit 11 generates the access exclusion request information in response to the job processing completion notification and issues an exclusion release request for each item, and stores the access exclusion information of the item that receives the exclusion request. When an access exclusion request is made for a new item by referring to the item exclusion table storage unit 13 and the item exclusion table storage unit 13 in response to a request from the access exclusion request unit 11, this access exclusion information is registered in the item exclusion table storage unit 13. After that, when the access operation is activated and an access exclusion request is made for the registered item, it is compared with the registered access exclusion information. Performing exclusive control for each item is configured to include a item exclusive control unit 12.

【0015】外部からのフアイル3へのアクセス要求に
基づいてアクセス排他要求部11で発生するアクセス排
他情報およびジョブの処理の終了通知に応じてアクセス
排他要求部11で発生するアクセス排他解除要求情報と
してはアクセス対象のフアイル識別子(フアイル名、フ
アイル管理番号等)とレコード識別子(キー項目等によ
るレコード相対番号等)と項目識別子(項目名、レコー
ド内項目相対番号等)とアクセス目的が参照要求か更新
要求かを示す処理種別とその処理を行なう主体であるジ
ョブの識別子(ジョブ番号等)とを含んでおり、これら
の情報は外部からのアクセス要求やジョブの処理の終了
通知に含まれている。
The access exclusion information generated by the access exclusion request unit 11 based on an external access request to the file 3 and the access exclusion release request information generated by the access exclusion request unit 11 in response to a job processing completion notification. Is the file identifier of access target (file name, file management number, etc.), record identifier (record relative number by key item, etc.), item identifier (item name, item relative number in record, etc.) and access purpose is reference request or update The information includes a processing type indicating whether the processing is a request and an identifier (job number or the like) of a job that performs the processing. These pieces of information are included in an external access request or a job processing end notification.

【0016】図2には項目排他テーブル記憶部13の記
憶内容が図示してある。項目排他テーブル記憶部13に
は排他要求を受け付けている項目の項目排他テーブル1
3−1〜13−nが格納されている。
FIG. 2 shows the contents stored in the item exclusion table storage unit 13. The item exclusion table storage unit 13 stores the item exclusion table 1 of the item for which the exclusion request is received.
3-1 to 13-n are stored.

【0017】各項目排他テーブルはその項目の新たな排
他要求に際して作成され、その内容は、フアイル識別子
aとレコード識別子bと項目識別子cとアクセス目的が
参照要求か更新要求かを示す処理種別dとその処理を行
なう主体であるジョブのジョブ情報eとである。このジ
ョブ情報欄はこの項目にアスセスして処理を行なってい
るジョブの識別子を格納する領域であり、この項目に複
数のジョブがアクセスする場合には2番目以降にアクセ
スするジョブは既製の項目排他テーブルのジョブ情報欄
にそのジョブ識別子を追加するのみでよい。
Each item exclusion table is created at the time of a new exclusion request for the item. The contents include a file identifier a, a record identifier b, an item identifier c, and a processing type d indicating whether the access purpose is a reference request or an update request. And job information e of the job that is the subject that performs the processing. This job information column is an area for storing an identifier of a job which is performing processing by accessing this item. When a plurality of jobs access this item, the second and subsequent jobs are excluded from the existing item. It is only necessary to add the job identifier to the job information column of the table.

【0018】アクセスして処理を行なっているジョブの
処理が終了したときには、この項目排他テーブルからそ
のジョブの識別子が削除されるが、ジョブ情報欄eに格
納されているジョブ識別子が皆無になったときにはその
項目の排他要求を行なっているジョブはないことを意味
するのでこの項目に対応する項目排他テーブルそのもの
が削除される。
When the processing of the job being accessed and processed is completed, the identifier of the job is deleted from the item exclusion table, but the job identifier stored in the job information column e has become zero. Sometimes it means that no job has made an exclusion request for that item, so the item exclusion table itself corresponding to this item is deleted.

【0019】図3には項目排他制御部12の排他処理動
作を示す流れ図が示してある。図1〜図3を参照して項
目排他制御部12の排他処理動作を説明する。
FIG. 3 is a flowchart showing the exclusion processing operation of the item exclusion control unit 12. The exclusion processing operation of the item exclusion control unit 12 will be described with reference to FIGS.

【0020】項目排他制御部12はアクセス排他要求部
11からアスセス要求として、アスセス排他要求情報を
受信すると(ステップ31)、そのアスセス排他要求情
報中のフアイル識別子、レコード識別子、項目識別子に
対応する項目排他テーブルが項目排他テーブル記憶部1
3に既に格納されているかどうかを調べる(ステップ3
2)。
When the item exclusion controller 12 receives the access exclusion request information as an access request from the access exclusion request unit 11 (step 31), the items corresponding to the file identifier, record identifier, and item identifier in the access exclusion request information. Exclusive table is item exclusive table storage unit 1
3 to see if it has already been stored (step 3
2).

【0021】対応する項目排他テーブルが項目排他テー
ブル記憶部13にまだ格納されていないときには(ステ
ップ32のN枝)、アクセス排他要求のあった項目につ
いてアスセス排他要求情報に基づいて新たな項目排他テ
ーブルを作成して項目排他テーブル記憶部13に格納し
(ステップ35)、ついでフアイル書込読出部2を起動
してフアイル3にある所要の項目情報にアクセスさせる
(ステップ36)。これが第1の場合である。
When the corresponding item exclusion table has not been stored in the item exclusion table storage unit 13 (N branch of step 32), a new item exclusion table is created for the item for which the access exclusion request has been made based on the access exclusion request information. Is created and stored in the item exclusion table storage unit 13 (step 35), and then the file writing / reading unit 2 is activated to access required item information in the file 3 (step 36). This is the first case.

【0022】対応する項目排他テーブルが項目排他テー
ブル記憶部13に既に格納されているときには(ステッ
プ32のY枝)、その項目排他テーブルの処理種別を調
べて(ステップ33)、それが更新要求を示すときには
(ステップ33のY枝)、その項目が更新中であり他の
アクセスを排他中であるのでその更新処理が終了し排他
制御が解除されるのを待つこととなりこれを要求元に通
知して終了する(ステップ34)。これが第2の場合で
ある。
When the corresponding item exclusion table is already stored in the item exclusion table storage unit 13 (Y branch in step 32), the processing type of the item exclusion table is checked (step 33), and the update request is issued. When it indicates (Y branch of step 33), the item is being updated and other access is being exclusive, so that the update process ends and the exclusive control is released, and this is notified to the request source. And the process ends (step 34). This is the second case.

【0023】ステップ33で項目排他テーブル記憶部1
3に既に格納されている項目排他テーブルの処理種別を
調べて、それが更新要求を示していないとき、すなわち
参照要求であるときには(ステップ33のN枝)、今回
要求のあったジョブの処理種別により対応が異なる。
In step 33, the item exclusion table storage unit 1
3 is checked, and if it does not indicate an update request, that is, if it is a reference request (N branch of step 33), the processing type of the job requested this time Varies depending on the application.

【0024】今回要求のあったジョブの処理種別が参照
要求のときには(ステップ37のY枝)、項目排他テー
ブル記憶部13に既に格納されているアクセス要求のあ
った項目に対応する項目排他テーブルのジョブ情報欄に
要求ジョブの識別子を新たに書き込む(ステップ3
8)。これが第3の場合である。
If the processing type of the job requested this time is a reference request (Y branch in step 37), the item exclusion table stored in the item exclusion table storage unit 13 and corresponding to the requested item is stored in the item exclusion table. The identifier of the requested job is newly written in the job information column (step 3
8). This is the third case.

【0025】要求のあった項目データは既に他のジョブ
の参照要求によりフアイル3から読み出されて主記憶そ
の他バッフア等に記憶されているので今回のアクセス要
求による実際の項目データへのアクセスは、これを利用
するとととなり、フアイル3へのアクセスは必要はな
い。
The requested item data is already read out of the file 3 by a reference request of another job and stored in a main memory or other buffer. Therefore, the actual access to the item data by the current access request is as follows. When this is used, access to the file 3 is not necessary.

【0026】上記とは異なって今回要求のあったジョブ
の処理種別が参照要求でなく更新要求であるときには
(ステップ37のN枝)、項目排他テーブル記憶部13
に既に格納されているアクセス要求のあった項目に対応
する項目排他テーブルのジョブ情報欄に今回要求のあっ
たジョブ以外のジョブの識別子が登録されているかどう
かを調べ(ステップ39)、登録されているときには
(ステップ39のY枝)、今回更新要求のあった項目を
他のジョブが参照処理中であるので更新をすることがで
きずそれらのジョブの参照処理が終了するのを待つこと
となりこれを要求元に通知して終了する(ステップ4
2)。これが第5の場合である。
Different from the above, when the processing type of the job requested this time is not a reference request but an update request (N branch of step 37), the item exclusion table storage unit 13
In the job information column of the item exclusion table corresponding to the item for which the access request has already been stored, it is checked whether or not the identifiers of the jobs other than the currently requested job are registered (step 39). If it is (Y branch of step 39), the update request cannot be updated because another job is in the process of referring to the item requested to be updated this time, and the process waits until the reference process of those jobs is completed. Is notified to the requestor and the processing ends (step 4
2). This is the fifth case.

【0027】上記とは異なって項目排他テーブル記憶部
13に既に格納されているアクセス要求のあった項目に
対応する項目排他テーブルのジョブ情報欄に今回要求の
あったジョブ以外のジョブの識別子が登録されていない
とき、すなわち今回要求のあったジョブの識別子のみが
登録されているときには(ステップ39のN枝)、項目
排他テーブル記憶部13に既に格納されているアクセス
要求のあった項目に対応する項目排他テーブルの処理種
別欄を参照処理から更新処理に変更して(ステップ4
0)後、フアイル書込読出部2を起動して更新処理を行
なわせる(ステップ41)。これが第4の場合である。
Unlike the above, the identifiers of the jobs other than the job requested this time are registered in the job information column of the item exclusion table corresponding to the item for which the access request has already been stored in the item exclusion table storage unit 13. If not, that is, if only the identifier of the job requested this time is registered (N branch of step 39), it corresponds to the item for which the access request is already stored in the item exclusion table storage unit 13. Change the process type column of the item exclusion table from the reference process to the update process (step 4
0) After that, the file writing / reading unit 2 is activated to perform the updating process (step 41). This is the fourth case.

【0028】ジョブの参照または更新処理の終了通知に
応じてアクセス排他要求部11で発生するアクセス排他
解除要求情報の供給に応答して項目排他制御部12は項
目ごとの排他解除動作を行なう。
In response to the supply of the access exclusion release request information generated by the access exclusion requesting unit 11 in response to the job reference or the update processing end notification, the item exclusion control unit 12 performs the exclusion release operation for each item.

【0029】図4には項目排他制御部12の排他解除動
作を示す流れ図が示してある。図1、図2および図4を
参照して項目排他制御部12の排他解除動作を説明す
る。
FIG. 4 is a flowchart showing the exclusion release operation of the item exclusion control unit 12. The exclusion release operation of the item exclusion control unit 12 will be described with reference to FIGS. 1, 2, and 4.

【0030】ジョブの参照または更新処理の終了通知に
応じてアクセス排他要求部11で発生するアクセス排他
解除要求情報を項目排他制御部12が受け取ると(ステ
ップ51)、項目排他テーブル記憶部13に格納されて
いる解除対象の項目排他テーブルのジョブ情報欄に排他
解除を要求してきたジョブ以外のジョブの識別子が格納
されているかどうかを調べ(ステップ52)、格納され
ている場合には(ステップ52のY枝)解除要求をして
きたジョブの識別子のみを削除し(ステップ53)、格
納されていない場合には(ステップ52のN枝)解除対
象の項目排他テーブルそのものを削除する(ステップ5
4)。
When the item exclusion control unit 12 receives the access exclusion release request information generated by the access exclusion request unit 11 in response to a job reference or update processing end notification (step 51), it is stored in the item exclusion table storage unit 13. It is checked whether or not the identifiers of jobs other than the job requesting the exclusion release are stored in the job information column of the item exclusion table to be released (step 52). Only the identifier of the job that issued the (Y branch) cancellation request is deleted (step 53), and if not stored (N branch of step 52), the item exclusion table itself to be canceled is deleted (step 5).
4).

【0031】以上のように、本実施例のフアイル管理装
置では、参照アクセスまたは更新アクセスを行なってい
る主体の識別子とそのアクセス目的とそのアクセス対象
のレコード識別子とレコード内項目識別子とを含むアク
セス排他情報を格納する項目排他テーブルをアクセス動
作に応じて作成し排他処理に使用することにより、レコ
ードの各項目単位に効率的な排他制御が行なうことがで
き、レコード内のある項目の更新を行なっている場合で
も、そのレコードの更新を行なっていない項目には参照
アクセスすることができ、フアイルの利用効率を格段に
向上することができるという効果を有している。
As described above, in the file management apparatus according to the present embodiment, the access exclusion including the identifier of the entity performing the reference access or the update access, the purpose of the access, the record identifier of the access target, and the item identifier in the record. By creating an item exclusion table for storing information according to the access operation and using it for exclusion processing, efficient exclusion control can be performed for each item of the record, and an item in the record is updated. Even if there is a file, the item whose record has not been updated can be referenced and accessed, which has the effect of greatly improving the file use efficiency.

【0032】また、項目排他テーブルはアクセス動作に
応じて作成し、アクセス処理の終了に応じて削除するの
で、排他制御に要する記憶容量を従来に比し格段に削減
できるという効果を有する。
Further, since the item exclusion table is created according to the access operation and deleted at the end of the access processing, the storage capacity required for the exclusion control can be significantly reduced as compared with the related art.

【0033】[0033]

【発明の効果】以上説明したように、本発明のフアイル
管理装置は、参照アクセスまたは更新アクセスを行なっ
ている主体の識別子とそのアクセス目的とそのアクセス
対象のレコード識別子とレコード内項目識別子とを含む
アクセス排他情報を格納する項目排他テーブルをアクセ
ス動作に応じて作成し排他処理に使用することにより、
レコードの各項目単位に効率的な排他制御が行なうこと
ができ、レコード内のある項目の更新を行なっている場
合でも、そのレコードの更新を行なっていない項目には
参照アクセスすることができ、フアイルの利用効率を格
段に向上することができるという効果を有している。
As described above, the file management apparatus of the present invention includes the identifier of the entity performing the reference access or the update access, the purpose of the access, the record identifier of the access target, and the item identifier in the record. By creating an item exclusion table that stores access exclusion information according to the access operation and using it for exclusion processing,
Efficient exclusion control can be performed for each item of the record, and even if an item in the record is being updated, items that have not been updated can be referenced and accessed. This has the effect of greatly improving the efficiency of use.

【0034】また、項目排他テーブルはアクセス動作に
応じて作成し、アクセス処理の終了に応じて削除するの
で、排他制御に要する記憶容量を従来に比し格段に削減
できるという効果を有している。
Further, since the item exclusion table is created according to the access operation and deleted according to the end of the access processing, the storage capacity required for exclusive control can be remarkably reduced as compared with the conventional case. .

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

【図1】本発明のフアイル管理装置の一実施例を示すブ
ロック図である。
FIG. 1 is a block diagram showing one embodiment of a file management device of the present invention.

【図2】本実施例のフアイル管理装置の項目排他テーブ
ル記憶部の記憶内容を示すテーブル格納図である。
FIG. 2 is a table storage diagram showing storage contents of an item exclusion table storage unit of the file management device of the embodiment.

【図3】本実施例のフアイル管理装置の項目排他制御部
の項目毎の排他制御動作を示す流れ図である。
FIG. 3 is a flow chart showing an exclusive control operation for each item of an item exclusion controller of the file management device of the present embodiment.

【図4】本実施例のフアイル管理装置の項目排他制御部
の項目毎の排他解除動作を示す流れ図である。
FIG. 4 is a flowchart illustrating an exclusion release operation for each item of an item exclusion control unit of the file management apparatus according to the present embodiment.

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

1 フアイル管理装置 2 フアイル書込読出部 3 フアイル 11 アクセス排他制御部 12 項目排他制御部 13 項目排他テーブル記憶部 13−1〜13−n 項目排他テーブル 31〜42、51〜54 流れ図のステップ REFERENCE SIGNS LIST 1 file management device 2 file writing / reading unit 3 file 11 access exclusion control unit 12 item exclusion control unit 13 item exclusion table storage unit 13-1 to 13-n item exclusion table 31 to 42, 51 to 54

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 外部からのアクセス要求に基づいてアク
セス対象のフアイル識別子とレコード識別子と項目識別
子とアクセス目的が参照要求か更新要求かを示す処理種
別とその処理を行なう主体であるジョブ識別子とを含む
アクセス排他情報を発生して項目毎の排他要求を行ない
外部からのジョブの処理の終了通知に応じて前記アクセ
ス排他情報を発生して項目毎の排他解除要求を行なうア
クセス排他要求手段と、アクセスが行なわれている項目
のアクセス排他情報を格納している項目排他情報格納手
段と、前記アクセス排他要求手段からの排他要求に応じ
てその排他要求に対応する項目が前記項目排他情報格納
手段に格納されていない新たな項目である第1の場合に
はこのアクセス排他情報を前記項目排他情報格納手段に
格納した後にアクセス動作を起動しその排他要求に対応
する項目が前記項目排他情報格納手段にすでに格納され
ている項目であり更新アクセス中である第2の場合には
その終了待ちを通知しその排他要求に対応する項目が前
記項目排他情報格納手段にすでに格納されている項目で
あり参照アクセス中であってその排他要求に対応する処
理種別が参照要求である第3の場合には前記項目排他情
報格納手段にすでに格納されている対応するアクセス排
他情報にその排他要求に対応するジョブ識別子を追加格
納しその排他要求に対応する項目が前記項目排他情報格
納手段にすでに格納されている項目であり参照アクセス
中であってその排他要求に対応する処理種別が更新要求
であって他のジョブがアクセス中でない第4の場合には
前記項目排他情報格納手段にすでに格納されている対応
するアクセス排他情報の処理種別を参照要求から更新要
求に変更した後にアクセス動作を起動しその排他要求に
対応する項目が前記項目排他情報格納手段にすでに格納
されている項目であり参照アクセス中であってその排他
要求に対応する処理種別が更新要求であって他のジョブ
がアクセス中である第5の場合にはその終了待ちを通知
し前記アクセス排他要求手段からの排他解除要求に応じ
てその排他解除要求に対応する項目の対応するアクセス
排他情報を削除する項目排他制御手段とを含むことを特
徴とするフアイル管理装置。
1. A file identifier to be accessed, a record identifier, an item identifier, a processing type indicating whether the access purpose is a reference request or an update request based on an access request from the outside, and a job identifier that is the subject of the processing. Access exclusion requesting means for generating access exclusion information including the access exclusion information for each item and generating the access exclusion information for requesting exclusion cancellation for each item in response to an external job processing completion notification Item exclusion information storage means for storing access exclusion information of an item for which access is being performed, and an item corresponding to the exclusion request in response to the exclusion request from the access exclusion request means is stored in the item exclusion information storage means. In the first case, which is a new item that has not been accessed, this access exclusion information is stored in the item exclusion information storage means and then accessed. In the second case in which the item corresponding to the exclusion request is already stored in the item exclusion information storage means and the update is being accessed, the completion wait is notified and the exclusion request is responded. In the third case where the item to be stored is the item already stored in the item exclusion information storage means, the reference access is in progress, and the processing type corresponding to the exclusion request is the reference request, the item exclusion information storage means The job identifier corresponding to the exclusion request is additionally stored in the corresponding access exclusion information already stored, and the item corresponding to the exclusion request is the item already stored in the item exclusion information storage means and is being accessed for reference. In the fourth case where the processing type corresponding to the exclusion request is an update request and no other job is accessing, the item exclusion information storage means has already been registered. The access operation is started after the processing type of the corresponding access exclusion information is changed from the reference request to the update request, and the item corresponding to the exclusion request is the item already stored in the item exclusion information storage means. In the fifth case, during access, the processing type corresponding to the exclusion request is an update request, and another job is accessing, in the fifth case, the end wait is notified and the exclusion release request from the access exclusion request means is sent. The file management apparatus according to claim 1, further comprising item exclusion control means for deleting the access exclusion information corresponding to the item corresponding to the exclusion release request.
【請求項2】 レコード識別子としてフアイル内相対番
号を、項目識別子としてレコード内相対番号を使用する
ことを特徴とする請求項1記載のフアイル管理装置。
2. The file management device according to claim 1, wherein a relative number in a file is used as a record identifier and a relative number in a record is used as an item identifier.
JP6292840A 1994-11-28 1994-11-28 File management device Expired - Fee Related JP2641399B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6292840A JP2641399B2 (en) 1994-11-28 1994-11-28 File management device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6292840A JP2641399B2 (en) 1994-11-28 1994-11-28 File management device

Publications (2)

Publication Number Publication Date
JPH08153031A true JPH08153031A (en) 1996-06-11
JP2641399B2 JP2641399B2 (en) 1997-08-13

Family

ID=17787048

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6292840A Expired - Fee Related JP2641399B2 (en) 1994-11-28 1994-11-28 File management device

Country Status (1)

Country Link
JP (1) JP2641399B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017027382A (en) * 2015-07-23 2017-02-02 日本電気株式会社 Database management device, database management system, database management method, and program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63191248A (en) * 1987-02-04 1988-08-08 Hitachi Ltd Exclusive control system for table in relational data base system
JPS63307553A (en) * 1987-06-08 1988-12-15 Nec Corp File control system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63191248A (en) * 1987-02-04 1988-08-08 Hitachi Ltd Exclusive control system for table in relational data base system
JPS63307553A (en) * 1987-06-08 1988-12-15 Nec Corp File control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017027382A (en) * 2015-07-23 2017-02-02 日本電気株式会社 Database management device, database management system, database management method, and program

Also Published As

Publication number Publication date
JP2641399B2 (en) 1997-08-13

Similar Documents

Publication Publication Date Title
JP5556025B2 (en) Storage system
JP2000181764A (en) File managing system
JPH1063557A (en) Distributed file synchronization system
JPH04284548A (en) Data base exclusive controlling system
JP2641399B2 (en) File management device
JP3138575B2 (en) File copy transfer method
JP2972548B2 (en) File management method
JP3781007B2 (en) Data transfer method between computers
JP3433842B2 (en) Clustering method and system
JP3460265B2 (en) Data transfer method between computers
JP3050194B2 (en) A system for dynamically adding a shared memory file between hosts, a method for dynamically adding a shared memory file between hosts, and a recording medium storing a program for dynamically adding a shared memory file between hosts
JP3559571B2 (en) Data processing device and data processing method
JP3585264B2 (en) Database system and data retrieval method
JP4494950B2 (en) Table switching program and computer system
JPH04111026A (en) Write system for updating history information to data base
JPH05324734A (en) Electronic filing device
JPH05334249A (en) Nesting management system for catalog in interactive processing system
JPH0273436A (en) File control system
JP2002278818A (en) Data management system
JPS61276040A (en) File access system
JP2002099688A (en) Workflow management system and in-use item moving method
JPS6368960A (en) Sequential access controller for shared storage medium
JPH03255547A (en) Memory dump output system
JPH04361338A (en) Transaction log data succeeding system
JPH04314129A (en) File managing system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970311

LAPS Cancellation because of no payment of annual fees