JP2641399B2 - File management device - Google Patents

File management device

Info

Publication number
JP2641399B2
JP2641399B2 JP6292840A JP29284094A JP2641399B2 JP 2641399 B2 JP2641399 B2 JP 2641399B2 JP 6292840 A JP6292840 A JP 6292840A JP 29284094 A JP29284094 A JP 29284094A JP 2641399 B2 JP2641399 B2 JP 2641399B2
Authority
JP
Japan
Prior art keywords
item
exclusion
request
access
information
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.)
Expired - Fee Related
Application number
JP6292840A
Other languages
Japanese (ja)
Other versions
JPH08153031A (en
Inventor
久夫 大石
由勝 當銘
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 SOFUTOEA KK
NEC Corp
Original Assignee
OKINAWA NIPPON DENKI SOFUTOEA KK
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OKINAWA NIPPON DENKI SOFUTOEA KK, Nippon Electric Co Ltd filed Critical OKINAWA NIPPON DENKI SOFUTOEA 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)

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 apparatus, data input / output processing from a physical file to a program is performed in units of records defined by the program. The entire data was to be passed.

【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】しかし、レコード単位の受け渡しでは、入
出力命令の度に処理に必要のない項目データも受け渡し
の対象となっており、コンピュータ資源の無駄使いとい
う問題点があった。
[0004] However, in the transfer in units of records, item data that is not necessary for processing is also to be transferred every time an input / output instruction is issued, 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. Further, Japanese Patent Application Laid-Open No. 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の場合に
はこの項目のアクセス排他情報を前記項目排他情報格納
手段に格納した後にアクセス動作を起動しその排他要
求に対応する項目が前記項目排他情報格納手段にすでに
格納されている項目であり更新アクセス中である第2の
場合にはその終了待ちを通知しその排他要求に対応す
る項目が前記項目排他情報格納手段にすでに格納されて
いる項目であり参照アクセス中であってその排他要求に
対応する処理種別が参照要求である第3の場合には前記
項目排他情報格納手段にすでに格納されている対応する
アクセス排他情報にその排他要求に対応するジョブ識別
子を追加格納しその排他要求に対応する項目が前記項
目排他情報格納手段にすでに格納されている項目であり
参照アクセス中であってその排他要求に対応する処理種
別が更新要求であって他のジョブがアクセス中でない第
4の場合には前記項目排他情報格納手段にすでに格納さ
れている対応するアクセス排他情報の処理種別を参照要
求から更新要求に変更した後にアクセス動作を起動し
その排他要求に対応する項目が前記項目排他情報格納手
段にすでに格納されている項目であり参照アクセス中で
あってその排他要求に対応する処理種別が更新要求であ
って他のジョブがアクセス中である第5の場合にはその
終了待ちを通知し前記アクセス排他要求手段からの排
他解除要求に応じて前記項目排他情報格納手段からその
排他解除要求に対応する項目の対応するジョブ識別子を
削除しアクセス中のジョブがすべてなくなった項目は当
該項目を削除する項目排他制御手段とを含んで構成され
ている。
According to the present invention, there is provided a file management apparatus, comprising: a file identifier, a record identifier, an item identifier, and a processing type indicating whether an access purpose is a reference request or an update request, based on an external access request; And generating an access exclusion information including a job identifier which is a subject performing the processing, and issuing an exclusion request for each item, generating the access exclusion information in response to an external job processing completion notification from the outside, and generating an access exclusion information for each item. An access exclusion requesting unit that issues an exclusion release request, an item exclusion information storage unit that stores access exclusion information of the item being accessed for each item, and an access exclusion request unit that responds to the exclusion request from the access exclusion requesting unit. Accession of the item if the first is a new item item corresponding to the exclusive request is not stored in the item exclusion information storing means Said scan exclusion information item exclusion information storing means to start the access operation after storing the second item is a said item exclusion information storing an item that is already stored in the unit during the update access corresponding to that lock requests its End waiting notifies, process type reference corresponding to a already and reference access an item stored in the item said item exclusion information storing means corresponding to the exclusive request to that lock requests in the case of In the third case, which is a request, the job identifier corresponding to the exclusive request is additionally stored in the corresponding access exclusive information already stored in the item exclusive information storage means, and the item corresponding to the exclusive request is the item An item that is already stored in the exclusive information storage means, is being accessed for reference, the processing type corresponding to the exclusive request is an update request, and another job is If not being accessed the fourth starts the access operation after changing to the update request from the reference request to process type corresponding access exclusive information already stored in the item exclusion information storing means,
The item corresponding to the exclusion request is an item already stored in the item 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. In a fifth case, the end wait is notified , and in response to the exclusion release request from the access exclusion requesting unit, the corresponding job identifier of the item corresponding to the exclusion release request is stored in the item exclusion information storage unit.
Items that have been deleted and all jobs being accessed are
Is configured to include a item exclusive control means for deleting said item.

【0011】[0011]

【0012】[0012]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Next, embodiments of the present invention will 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 item exclusion request information includes a file identifier, a record identifier, and an item corresponding to the 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の場合である。
Contrary to 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 request information generated by the access exclusion request unit 11 in response to the end of the job reference or update process, the item exclusion control unit 12 performs an 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 in the access exclusion request unit 11 in response to the job reference or update process end notification (step 51), it is stored in the item exclusion table storage unit 13. It is checked whether the identifier of the job other than the job that has requested the release is stored in the job information column of the released item exclusion table (step 52). If the identifier is stored (step 52). (Y branch) Delete only the identifier of the job that has made the release request (step 53), and if it is not stored (N branch of step 52), delete the item exclusion table itself to be released (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 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. .

【図面の簡単な説明】[Brief description of the 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 flowchart illustrating an exclusive control operation for each item of an item exclusive control unit of the file management apparatus according to the 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

フロントページの続き (56)参考文献 特開 昭63−307553(JP,A) 特開 昭63−191248(JP,A) 滝沢 誠著「データベースシステム入 門技術解説」(1991−3−1)、株式会 社ソフトウエアリサーチセンター、P. 185−188、”8.2.1 ロック演算"Continuation of the front page (56) References JP-A-63-307553 (JP, A) JP-A-63-191248 (JP, A) Makoto Takizawa, "Introduction to Database System Technology" (1991-3-1), Software Research Center, Inc., pp. 185-188, "8.2.1 Lock Calculation"

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 外部からのアクセス要求に基づいてアク
セス対象のフアイル識別子とレコード識別子と項目識別
子とアクセス目的が参照要求か更新要求かを示す処理種
別とその処理を行なう主体であるジョブ識別子とを含む
アクセス排他情報を発生して項目毎の排他要求を行ない
外部からのジョブの処理の終了通知に応じて前記アクセ
ス排他情報を発生して項目毎の排他解除要求を行なうア
クセス排他要求手段と、アクセスが行なわれている項目
のアクセス排他情報を項目毎に格納している項目排他情
報格納手段と、前記アクセス排他要求手段からの排他要
求に応じてその排他要求に対応する項目が前記項目排他
情報格納手段に格納されていない新たな項目である第1
の場合にはこの項目のアクセス排他情報を前記項目排他
情報格納手段に格納した後にアクセス動作を起動し
の排他要求に対応する項目が前記項目排他情報格納手段
にすでに格納されている項目であり更新アクセス中であ
る第2の場合にはその終了待ちを通知しその排他要求
に対応する項目が前記項目排他情報格納手段にすでに格
納されている項目であり参照アクセス中であってその排
他要求に対応する処理種別が参照要求である第3の場合
には前記項目排他情報格納手段にすでに格納されている
対応するアクセス排他情報にその排他要求に対応するジ
ョブ識別子を追加格納しその排他要求に対応する項目
が前記項目排他情報格納手段にすでに格納されている項
目であり参照アクセス中であってその排他要求に対応す
る処理種別が更新要求であって他のジョブがアクセス中
でない第4の場合には前記項目排他情報格納手段にすで
に格納されている対応するアクセス排他情報の処理種別
を参照要求から更新要求に変更した後にアクセス動作を
起動しその排他要求に対応する項目が前記項目排他情
報格納手段にすでに格納されている項目であり参照アク
セス中であってその排他要求に対応する処理種別が更新
要求であって他のジョブがアクセス中である第5の場合
にはその終了待ちを通知し前記アクセス排他要求手段
からの排他解除要求に応じて前記項目排他情報格納手段
からその排他解除要求に対応する項目の対応するジョブ
識別子を削除しアクセス中のジョブがすべてなくなった
項目は当該項目を削除する項目排他制御手段とを含むこ
とを特徴とするフアイル管理装置。
1. A file identifier, a record identifier, an item identifier, a processing type indicating whether an access purpose is a reference request or an update request, and a job identifier which is a subject that performs the processing based on an external access request. Access exclusion request means for generating exclusion request for each item by generating access exclusion information including the exclusion request for each item and generating the access exclusion information in response to an external job completion notification from the outside; Item exclusion information storage means for storing, for each item, access exclusion information of an item for which the item is subjected to the exclusion request, and an item corresponding to the exclusion request in response to an exclusion request from the access exclusion request means stores the item exclusion information. The first item that is a new item not stored in the means
There the case of the item item start an access operation after storing an access exclusive information for this item to the item exclusion information storing means, corresponding to the exclusive request is already stored in the item exclusion information storing means in the second case is being updated access notifies the end wait, the lock requests already be active items and is referenced access stored in item the item exclusion information storing means corresponding to the exclusive request In the third case where the processing type corresponding to the request is a reference request, the job identifier corresponding to the exclusive request is additionally stored in the corresponding access exclusive information already stored in the item exclusive information storage means, and the exclusive request is stored. Is an item that is already stored in the item exclusion information storage means, is being accessed for reference, and the processing type corresponding to the exclusion request is updated In the fourth case, where no other job is being accessed, the access operation is performed after the processing type of the corresponding access exclusive information already stored in the item exclusive information storage unit is changed from a reference request to an update request. Activated , the item corresponding to the exclusion request is an item already stored in the item 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 In the fifth case in which the access is in progress, the end exclusion wait is notified, and the item exclusion information storage means responds to the exclusion release request from the access exclusion request means.
From the corresponding job of the item corresponding to the exclusion release request
Deleted identifiers and all jobs being accessed are gone
The file management apparatus, wherein the item includes an item exclusive control unit for deleting the item.
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 JPH08153031A (en) 1996-06-11
JP2641399B2 true 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)

Families Citing this family (1)

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

Family Cites Families (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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
滝沢 誠著「データベースシステム入門技術解説」(1991−3−1)、株式会社ソフトウエアリサーチセンター、P.185−188、"8.2.1 ロック演算"

Also Published As

Publication number Publication date
JPH08153031A (en) 1996-06-11

Similar Documents

Publication Publication Date Title
JPH04219844A (en) High-speed medium preferential release type exclusive system
JPH04284548A (en) Data base exclusive controlling system
JP2641399B2 (en) File management device
JP3138575B2 (en) File copy transfer method
JP2972548B2 (en) File management method
JP2006040065A (en) Device and method for storing data
JP3433842B2 (en) Clustering method and system
JPH0337748A (en) External storage accessing system utilizing main storage
JP3460265B2 (en) Data transfer method between computers
JP3559571B2 (en) Data processing device and data processing method
JPH11212845A (en) Device and method for backup data management and recording medium
JP2912657B2 (en) File access processor
JPH05151037A (en) Reorganization processing system for database in business processing
JP3585264B2 (en) Database system and data retrieval method
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
JPS61276040A (en) File access system
JP2634908B2 (en) Information processing device
JP3006527B2 (en) Client / server type database system
JPH09282202A (en) Data movement management system
JPH05324734A (en) Electronic filing device
JP4494950B2 (en) Table switching program and computer system
JPH04111026A (en) Write system for updating history information to data base
JPS6368960A (en) Sequential access controller for shared storage medium
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