JPH07230402A - Data base management device - Google Patents

Data base management device

Info

Publication number
JPH07230402A
JPH07230402A JP6022737A JP2273794A JPH07230402A JP H07230402 A JPH07230402 A JP H07230402A JP 6022737 A JP6022737 A JP 6022737A JP 2273794 A JP2273794 A JP 2273794A JP H07230402 A JPH07230402 A JP H07230402A
Authority
JP
Japan
Prior art keywords
lock
data
page
processing
long
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
JP6022737A
Other languages
Japanese (ja)
Inventor
Hiroshi Hayata
宏 早田
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP6022737A priority Critical patent/JPH07230402A/en
Publication of JPH07230402A publication Critical patent/JPH07230402A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To lighten the load of a lock process for the management of a data base consisting of both short and long records and improve the parallelism in a parallel process when at the time of the lock process. CONSTITUTION:This data base management device is equipped with an allocating process means 4 which allocates long data, requiring plural pages beyond the size of a page as the fixed-length storage allocation unit of the data base, to a page containing the substantial data of the long data and a page including the header indicating the position of the page containing the substantial data, and a lock control means 5 which locks the page containing the header for the whole long data and also locks a specific part of the long data for the page containing the substantial data; and the data base that plural users share is accessed with efficiency.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、短レコードと長大レコ
ードが混在するデータベースに対するアクセス時におけ
るロック処理の負荷を軽減するとともに、アクセスの並
列処理を向上することができるデータベース管理装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database management apparatus capable of reducing the load of lock processing at the time of accessing a database in which short records and long records coexist and improving parallel processing of accesses.

【0002】[0002]

【従来の技術】従来、データベース管理システムにおい
ては、データベースをアクセスする複数のプログラム
が、同時に実行されたり(並行処理)、同じプログラム
が複数実行される場合も数多く存在する。ここで、プロ
グラムでの1つのまとまった処理の実行はトランザクシ
ョンと呼ばれ、また、データベース中のデータは複数の
項目として蓄積されている。
2. Description of the Related Art Conventionally, in a database management system, there are many cases where a plurality of programs that access a database are executed simultaneously (parallel processing) or a plurality of the same programs are executed. Here, the execution of one set of processing in a program is called a transaction, and the data in the database is accumulated as a plurality of items.

【0003】従って、データベースに対するプログラム
でのまとまった処理の実行は、各トランザクションのス
テップごとに直列的に行われるが、並行処理の場合、複
数のプログラムに対するトランザクションが混在して実
行されると、この実行順序によっては、各プログラムが
直列的に実行されたことにならない場合が生じる。この
並行処理の場合においても、複数のプログラムがそれぞ
れ独立して実行された場合と等価な実行結果になること
を直列化可能であるという。
Therefore, the execution of a set of processes by the program for the database is performed serially at each transaction step, but in the case of parallel processing, when transactions for a plurality of programs are executed in a mixed manner, Depending on the execution order, the programs may not be executed serially. Even in the case of this parallel processing, it is possible to serialize that the execution result is equivalent to that when a plurality of programs are executed independently.

【0004】この直列化可能性を保証するため、並行処
理を行う場合に、データベース中のデータの項目をロッ
クし、このロックにより、1つのトランザクションは、
他のトランザクションがその項目にアクセスすることが
禁止される。また、アクセスの禁止は、アンロックする
ことにより、その項目のロックが解除される。そして、
このロック及びアンロックのロック処理を適切に用いる
ことにより、並行処理時の直列化可能性を保証すること
ができる。
In order to guarantee this serializability, when parallel processing is performed, an item of data in the database is locked, and by this lock, one transaction is
Other transactions are prohibited from accessing the item. In addition, the prohibition of access is unlocked by unlocking the item. And
Appropriate use of the lock processing of the lock and unlock can guarantee serializability during parallel processing.

【0005】例えば、第1のフェーズをロック・フェー
ズとし、第2のフェーズをアンロック・フェーズとし、
任意のトランザクションで全てのロックが、全てのアン
ロックに先行するようにした2相施錠方式によるアルゴ
リズムを用いることにより、並行処理時の直列化可能性
が保証されている。
For example, the first phase is a lock phase, the second phase is an unlock phase,
By using an algorithm based on a two-phase locking method in which all locks precede all unlocks in any transaction, serializability during parallel processing is guaranteed.

【0006】この2相施錠方式のようなアルゴリズムに
よるロックには、あるトランザクションによる読み込み
等の参照時に他のトランザクションの書き込み等の更新
を禁止する参照ロック(あるいは共有ロック)と、ある
トランザクションによる書き込み等の更新時に他のトラ
ンザクションの読み込み等の参照を禁止し、および他の
トランザクションの書き込み等の更新を禁止する更新ロ
ック(あるいは排他ロック)との2種類のロックがあ
る。
Locking by an algorithm such as this two-phase locking method includes a reference lock (or a shared lock) for prohibiting update such as writing of another transaction at the time of reference such as reading by a certain transaction, and writing by a certain transaction. There are two types of locks, an update lock (or an exclusive lock) that prohibits references such as reading of other transactions when updating, and prohibits updates such as writing of other transactions.

【0007】従って、共有ロック時には、同時に任意の
数のトランザクションが該共有ロックされた項目に対し
て共有ロックを保持することができる。また、あるトラ
ンザクションがある項目に排他ロックを保持している場
合は、その他のトランザクションは、この項目に対して
共有ロックも排他ロックも得ることができない。
Therefore, at the time of the shared lock, an arbitrary number of transactions can simultaneously hold the shared lock on the shared locked item. Also, if a transaction holds an exclusive lock on an item, no other transaction can acquire a shared or exclusive lock on this item.

【0008】このような複数のプログラムの並行処理時
における直列化可能性を保証するため、トランザクショ
ンの1つとして上述したロック処理を行う。
In order to guarantee serializability during parallel processing of such a plurality of programs, the lock processing described above is performed as one of the transactions.

【0009】詳しくは、「データベースシステムの原
理」(Jeffery D. Ullman著 国井利泰・大保信夫訳,
日本コンピュータ協会[原本発行1982年,訳本発行1985
年])の第11章「データベースに対する並列操作」を
参照されたい。
For details, refer to "Principles of Database Systems" (translated by Jeffery D. Ullman, translated by Toshiyasu Kunii and Nobuo Ohbo,
Japan Computer Association [Original published in 1982, translated published in 1985
Year]), Chapter 11, "Parallel Operations on Databases".

【0010】ここで、上述したロック処理の対象となる
データの単位(粒度)としては、個々のレコード毎にロ
ック処理を行う可変長レコード単位と、あるページに属
する複数のレコードをまとめてロック処理を行う固定長
ページ単位とがある。
Here, as a unit (granularity) of the data to be the above-mentioned lock processing, a variable length record unit for performing the lock processing for each individual record, and a plurality of records belonging to a certain page are collectively locked. There is a fixed length page unit.

【0011】前者の可変長レコード単位とするロック処
理は、真に必要なデータのみにロック処理を行うことが
でき、並行処理時の並行性が向上する利点がある。しか
し、短レコードを多く処理するデータベース管理では、
レコード毎にロック処理を行う必要があるため、ロック
処理にかかる時間が増大するという欠点がある。特にデ
ッドロックの検出時間は、レコード数の増加とともに増
大する。従って、可変長レコード単位とするロック処理
は、少数の短レコードを処理するトランザクションに適
する。
The former lock processing in units of variable-length records has an advantage that lock processing can be performed only on truly necessary data and parallelism at the time of parallel processing is improved. However, in database management that processes many short records,
Since it is necessary to perform the lock processing for each record, there is a disadvantage that the time required for the lock processing increases. In particular, the deadlock detection time increases as the number of records increases. Therefore, the lock processing in units of variable-length records is suitable for a transaction processing a small number of short records.

【0012】後者の固定長ページ単位とするロック処理
は、そのページに属するがアクセスの対象とならないデ
ータに対してもロック処理がなされ、並行処理時に並行
性が低下するという欠点がある。しかし、同一ページに
おける多数の短レコードを処理する場合、レコード毎に
ロック処理を行う必要がなく、1回のページに対するロ
ック処理にかかる時間のみでよいという利点がある。従
って、固定長ページ単位とするロック処理は、同一ペー
ジの多数の短レコードを処理するトランザクションに適
する。
The latter locking process in units of fixed-length pages has a drawback in that the locking process is performed even for data that belongs to the page but is not an access target, and the concurrency decreases during parallel processing. However, when processing a large number of short records on the same page, there is an advantage that it is not necessary to perform lock processing for each record, and only the time required for lock processing for one page is required. Therefore, the lock process in units of fixed length pages is suitable for a transaction that processes many short records on the same page.

【0013】ところで、近年、数値データのみでなく、
画像データや長大な文字列データなどの、固定長のペー
ジサイズを越える長大データをもデータベースに管理さ
れるようになっている。
By the way, in recent years, not only numerical data but also
The database manages large data such as image data and large character string data that exceeds a fixed page size.

【0014】このような長大データに対するデータベー
スの効率的な格納方法として、例えば、特開平3−62
137号公報に記載されているように、長大レコードを
ヘッダと可変長ブロックの集まりに分けて格納する可変
長ブロック群による長大データの格納方法がある。
As an efficient storage method of a database for such long data, for example, Japanese Patent Laid-Open No. 3-62 is used.
As described in Japanese Laid-Open Patent Publication No. 137, there is a method of storing long data by a variable length block group in which a long record is divided into a header and a group of variable length blocks and stored.

【0015】また、特開平4−182749号公報に記
載されているように、長大レコードを固定長ブロックと
可変長ブロックのリストに分けて格納する関係式データ
ベースの格納方式がある。
Further, as described in Japanese Patent Laid-Open No. 1882749/1992, there is a relational expression database storage system in which a long record is divided into a fixed length block list and a variable length block list and stored.

【0016】[0016]

【発明が解決しようとする課題】しかしながら、長大デ
ータには、静止画像データなどの長大データなどのよう
に、アクセス時に必ず全てのデータをアクセスする必要
があるデータと、文字列データなどの長大データなどの
ように、アクセス時に長大データのある特定部分のみを
アクセスする場合もあるデータとが存在する。
However, as long data, such as long image data such as still image data, it is necessary to access all data at the time of access, and long data such as character string data. For example, there is data that may access only a specific part of long data at the time of access.

【0017】従って、短レコードと上述した長大レコー
ドとが混在する場合、並行処理時の直列化可能性を保証
するためのロック処理を行う際、次のような問題点があ
る。
Therefore, when the short record and the above-mentioned long record are mixed, there is the following problem when performing the lock process for guaranteeing the serializability during parallel processing.

【0018】すなわち、上述した可変長レコード単位を
採用したロック処理を行うと、1つの長大データに対す
るロック処理は1回のロック処理でよくロック処理に負
荷がかからず、時間もかからない。しかも、静止画像デ
ータのような長大データのアクセス時は必ず全データを
アクセスするので、並列処理時の並列性は問題とならな
い。しかし、文字列データのような長大データに対して
特定部分のみをアクセスする場合のロック処理は、特定
部分以外の部分に対してもロック処理を行うため、並列
処理時の並列性が低下するという問題点があった。
That is, when the lock processing adopting the variable length record unit described above is performed, the lock processing for one long and large data need only be performed once, so that the lock processing does not have a load and does not take much time. In addition, since all data is always accessed when accessing long data such as still image data, parallelism during parallel processing does not matter. However, the lock processing when accessing only a specific part of long data such as character string data is also performed for the part other than the specific part, so the parallelism during parallel processing decreases. There was a problem.

【0019】一方、上述した固定長ページ単位を採用し
たロック処理を行うと、長大データに対して必ず全デー
タをアクセスする必要がある場合も、ある特定部分のみ
をアクセスする場合においても、並行処理時は、必要な
データのみがロック処理されるため、並行性は問題とな
らないが、複数ページ数分のロック処理を行う必要があ
るためロック処理に負荷がかかり、その結果、時間がか
かるという問題点がある。
On the other hand, if the lock processing adopting the fixed length page unit described above is performed, parallel processing is performed even when it is necessary to access all the data for long data or when only a specific portion is accessed. In some cases, since only the necessary data is locked, concurrency is not a problem, but the locking process is overloaded because multiple pages must be locked, and as a result, it takes time. There is a point.

【0020】そこで、本発明は、かかる問題点を除去
し、短レコードと長大レコードとが混在するデータベー
ス管理のロック処理に際し、該ロック処理にかかる負荷
を軽減し、かつ並行処理時の並行性を向上することがで
きるデータベース管理装置を提供することを目的とす
る。
Therefore, the present invention eliminates such a problem, reduces the load on the lock processing in the lock processing of the database management in which short records and long records are mixed, and reduces the concurrency during parallel processing. An object is to provide a database management device that can be improved.

【0021】[0021]

【課題を解決するための手段】本発明は、複数のユーザ
が共有するデータベースを管理するデータベース管理装
置において、前記データベースにおける固定長の格納割
付単位であるページのサイズを越えて複数のページにわ
たる長大データを、該長大データの実体データを含むペ
ージと、該実体データを含むページの位置を示すヘッダ
を含むページとに割り付ける処理を行う割付処理手段
(図1の4)と、前記長大データの全体に対するロック
処理は前記ヘッダを含むページに対して行い、前記長大
データの特定部分に対するロック処理は前記実体データ
を含むページに対して行う制御をするロック制御手段
(図1の5)とを具備したことを特徴とする。
According to the present invention, in a database management apparatus for managing a database shared by a plurality of users, a large-scale data is stored over a plurality of pages exceeding a page size which is a fixed-length storage allocation unit in the database. Allocation processing means (4 in FIG. 1) for allocating data to a page including substantive data of the long data and a page including a header indicating the position of the page including the substantive data, and the entire long data. Lock control means (5 in FIG. 1) for controlling the page including the header and the lock processing for the specific portion of the long data to be performed on the page including the actual data. It is characterized by

【0022】[0022]

【作用】本発明では、複数のユーザが共有するデータベ
ースに所定のデータを格納する際、割付処理手段が該所
定のデータが前記データベースの格納割付単位であるペ
ージのサイズを越えて複数のページにわたる長大データ
である場合、該長大データの実体データを含むページ
と、該実体データを含むページの位置を示すヘッダを含
むページとに割り付ける処理を行う。その後、複数のユ
ーザからの前記データベースへのアクセス時に、ロック
制御手段は、前記割付処理手段により割り付けられたデ
ータベースへのアクセスにおける並行処理の直列化可能
性を保証するためのロック処理を、前記長大データの全
体に対するロック処理である場合は前記ヘッダを含むペ
ージに対して行い、前記長大データの特定部分に対する
ロック処理である場合は前記実体データを含むページに
対して行う。
According to the present invention, when storing predetermined data in a database shared by a plurality of users, the allocation processing means extends the plurality of pages beyond the size of the page, which is the storage allocation unit of the database. If the data is long data, a process of allocating the page including the substantial data of the long data and the page including the header indicating the position of the page including the substantial data is performed. Thereafter, when a plurality of users access the database, the lock control means performs lock processing for ensuring serializability of parallel processing in accessing the database allocated by the allocation processing means. In the case of locking the entire data, the page including the header is performed, and in the case of locking the specific portion of the long data, the page including the actual data is performed.

【0023】従って、アクセス対象が長大データ全体で
ある場合はヘッダを含むページのみのロック処理を行
い、長大データの特定部分である場合は必要最小限のペ
ージのみに対するロック処理を行うことから、ユーザの
アクセス対象に従った必要最小限のロック処理回数で済
むため、ロック処理にかかる負荷が軽減すると共に、必
要最小限であるアクセス対象領域のみのロック処理を行
っているため、他のユーザによる同一長大データ内の他
のページに対するアクセスも可能となるため、並列処理
時の並行性も向上する。
Therefore, when the access target is the entire long data, only the page including the header is locked, and when it is a specific portion of the long data, the locking process is performed only on the minimum necessary page. Since the minimum number of times lock processing is required according to each access target is performed, the load on the lock processing is reduced, and only the minimum access target area is locked, so the same Since it is possible to access other pages in long data, concurrency during parallel processing is also improved.

【0024】[0024]

【実施例】以下、図面を参照して本発明の一実施例につ
いて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0025】図1は、本発明の一実施例であるデータベ
ース管理装置の構成を示す図である。
FIG. 1 is a diagram showing the configuration of a database management apparatus which is an embodiment of the present invention.

【0026】図1において、データベース管理システム
は、データベースファイルを格納している格納部6、格
納部6に格納されているデータベースファイルのロック
処理を含むアクセス管理を行うデータベース管理部3、
格納部6に格納されているデータベースファイルへのア
クセスを指示する入力部1、およびデータベースファイ
ルへのアクセス結果を出力する出力部2を有している。
In FIG. 1, the database management system includes a storage unit 6 that stores database files, a database management unit 3 that performs access management including lock processing of the database files stored in the storage unit 6,
It has an input unit 1 for instructing access to a database file stored in the storage unit 6 and an output unit 2 for outputting a result of access to the database file.

【0027】データベース管理部3は、さらにデータ割
付部4およびロック制御部5を有している。
The database management unit 3 further has a data allocation unit 4 and a lock control unit 5.

【0028】データ割付部4は、予め指定されたデータ
ベースファイル毎のページのサイズをもとに、データベ
ースへデータを格納する際、レコードの割付処理を行
う。
The data allocating section 4 performs a record allocating process when storing data in the database based on the page size of each database file designated in advance.

【0029】このデータ割付部4によるデータベースフ
ァイル内のデータの割付処理は、データベースファイル
のページサイズをもとに割付処理が行われるが、このペ
ージサイズは、データベースが生成される時点で決定さ
れる。この決定されたページサイズをもとに、データ割
付部4は、ページサイズを越えるデータ、すなわち長大
レコードとして割り付けるか、短レコードとして割り付
けるかを判断して、データの割付処理を行う。
The data allocating process of the data in the database file by the data allocating unit 4 is based on the page size of the database file. The page size is determined when the database is generated. . Based on the determined page size, the data allocating unit 4 determines whether the data exceeds the page size, that is, whether it is allocated as a long record or a short record, and performs data allocation processing.

【0030】ロック制御部5は、ロックの種別に対応す
るロックの可否基準が記憶されているロックテーブル5
aを有し、データベースのアクセス時に現ロックタイプ
とロックテーブルとをもとにロック処理を制御する。
The lock control section 5 stores a lock admissibility criterion corresponding to the lock type in the lock table 5.
a, and controls the lock process based on the current lock type and the lock table when accessing the database.

【0031】ロック制御部5が行うロック制御は、基本
的に固定長ページ単位でロック処理を行う。そして、長
大データ内の部分的データに対するアクセス時の部分ロ
ック処理か、長大データに対する全データに対するアク
セス時の全体ロック処理か否かは、ユーザの指定により
決定される。従って、ロック制御部5は、部分ロック処
理と全体ロック処理の制御を行う。
The lock control performed by the lock control unit 5 basically performs a lock process in units of fixed length pages. Then, whether the partial lock process at the time of accessing partial data in the long data or the whole lock process at the time of accessing all data of the long data is determined by the user's designation. Therefore, the lock control unit 5 controls the partial lock process and the entire lock process.

【0032】次に、データ割付部4により割付処理され
た格納部6でのレコードの割付配置について説明する。
Next, the allocation layout of the records in the storage unit 6 that has been allocated by the data allocation unit 4 will be described.

【0033】このレコードの割付配置は、ページサイズ
内の短レコード単位で格納することができるデータと、
ページサイズを越え、ページサイズで区分できない長大
データ(長大レコード)とに区分されて割付配置が実行
される。
This record allocation arrangement includes data that can be stored in short record units within the page size, and
Allocation is executed by dividing the page size into long data (long record) that cannot be divided by the page size.

【0034】図2は、格納部6における短レコードの割
付配置を示す図である。
FIG. 2 is a diagram showing the layout of short records in the storage unit 6.

【0035】図2において、1つのページ内の納まる短
いデータは、短レコードとして割り付けられる。すなわ
ち、データベースファイルは、複数のページP1〜Pn
から構成され、それぞれのページは、短レコード単位で
割り付けられる。例えば、ページP2においては、複数
の短レコードR1〜Rnと、このそれぞれのレコードR
1〜Rnに対応するページ内オフセットを保持するテー
ブルH1〜Hnとが、区分されて配置されている。この
ページ内オフセットのテーブルH1〜Hnは、複数の短
レコードR1〜Rnのページ内の位置情報を要素とした
配列である。
In FIG. 2, the short data that can fit in one page is allocated as a short record. That is, the database file has a plurality of pages P1 to Pn.
Each page is allocated in short record units. For example, in page P2, a plurality of short records R1 to Rn and their respective records R
Tables H1 to Hn that hold in-page offsets corresponding to 1 to Rn are arranged separately. The in-page offset tables H1 to Hn are an array in which positional information within a page of a plurality of short records R1 to Rn is used as an element.

【0036】図3は、格納部6における長大レコードの
割付配置を示す図である。この長大レコードは、複数の
ページにまたがって格納される単位であり、この場合、
長大データの実データを格納する複数のページと、この
長大データの実データの割付情報を記憶したヘッダを格
納するページとから構成される。
FIG. 3 is a diagram showing the layout of long records in the storage unit 6. This long record is a unit that is stored across multiple pages. In this case,
It is composed of a plurality of pages for storing real data of long data and a page for storing a header storing allocation information of the real data of long data.

【0037】図3においては、4ページにまたがった長
大レコードの配置例を示している。この4ページは、ヘ
ッダを格納するページPaと、実データを格納するPb
〜Pdとから構成される。
FIG. 3 shows an example of arrangement of long records over four pages. These four pages are a page Pa that stores a header and a page Pb that stores actual data.
.About.Pd.

【0038】ページPaは、この長大レコードのヘッダ
と、このページ内オフセットHaとを有している。そし
て、このヘッダには、ページPbに割り付けられた実デ
ータのページ位置を示すページオフセットとページPb
内の固定位置からの実データの位置を示すページ内オフ
セットとからなるページPbに関するオフセット情報H
Db、ページPcに割り付けられた実データのページ位
置を示すページオフセットとページPc内の固定位置か
らの実データの位置を示すページ内オフセットとからな
るページPcに関するオフセット情報HDc、およびペ
ージPdに割り付けられた実データのページ位置を示す
ページオフセットとページPd内の固定位置からの実デ
ータの位置を示すページ内オフセットとからなるページ
Pdに関するオフセット情報HDdを有している。
The page Pa has the header of the long record and the in-page offset Ha. Then, in this header, the page offset indicating the page position of the actual data allocated to the page Pb and the page Pb
Offset information H about page Pb consisting of an in-page offset indicating the position of actual data from a fixed position in
Db, offset information HDc relating to page Pc, which is a page offset indicating the page position of the actual data allocated to page Pc, and an in-page offset indicating the position of the actual data from a fixed position within page Pc, and allocation to page Pd It has offset information HDd about the page Pd, which includes a page offset indicating the page position of the obtained actual data and an in-page offset indicating the position of the actual data from a fixed position within the page Pd.

【0039】また、実データが割り付けられたページP
b〜Pdには、それぞれの実データと、それぞれの実デ
ータに対するページ内オフセットHb〜Hdとを有して
いる。
The page P to which the actual data is allocated
b to Pd have respective real data and page offsets Hb to Hd for the respective real data.

【0040】次に、このように割り付けられたデータに
対するアクセス時のロック処理について説明する。この
ロック処理は、並行処理時の直列化可能性を保証するた
めに必要なものである。そして、本実施例においては、
このロック処理は、上述したように基本的に固定長ペー
ジ単位でロック処理を行うことになる。
Next, the lock processing at the time of accessing the data thus allocated will be described. This lock processing is necessary to guarantee serializability during parallel processing. And in this embodiment,
As described above, this lock processing is basically performed in fixed-length page units.

【0041】ここで、上述したように長大データのアク
セスは、静止画像データのように必ず全体のデータをア
クセスするものと、文字列データのように部分的にアク
セスする可能性のあるものとがあるため、長大データに
対しては、全体ロック処理と部分ロック処理との2つの
ロック処理を行う。
Here, as described above, there are two types of access to long data, one is to access the entire data without fail, such as still image data, and the other is to access partly with character string data. Therefore, two lock processes, that is, the whole lock process and the partial lock process are performed on the long data.

【0042】そして、ロック制御部5がロック処理を行
う場合、ロックテーブル5aをもとにロック制御を行
う。ここで、ロック処理の種類には、共有ロックと排他
ロックとがあり、共有ロックとは、あるトランザクショ
ンによる読み込み等の参照時に他のトランザクションの
書き込み等の更新を禁止するもので、この場合、同時に
任意の数のトランザクションが同一項目に対して共有ロ
ックを保持することができる。一方、排他ロックとは、
あるトランザクションによる書き込み等の更新時に他の
トランザクションの読み込み等の参照を禁止するととも
に他のトランザクションによる書き込み等の更新を禁止
するものであり、この場合、その他のトランザクション
は、この項目に対して共有ロックも排他ロックも行うこ
とができない。
When the lock control unit 5 performs the lock process, the lock control is performed based on the lock table 5a. Here, there are a shared lock and an exclusive lock as the types of lock processing, and the shared lock prohibits updates such as writing of other transactions at the time of reference such as reading by one transaction. Any number of transactions can hold a shared lock on the same item. On the other hand, the exclusive lock is
It prohibits references such as reading of other transactions when updating such as writing by one transaction, and prohibits updating such as writing by other transactions. In this case, the other transactions share a lock on this item. And exclusive lock cannot be performed.

【0043】このロック制御部5のロック処理は、ロッ
クテーブル5aを参照して、制御しようとするロックが
可能か否かが判断される。
In the lock processing of the lock control section 5, it is determined by referring to the lock table 5a whether or not the lock to be controlled is possible.

【0044】図4は、ロックテーブルの内容を示す図で
ある。
FIG. 4 is a diagram showing the contents of the lock table.

【0045】図4において、ロックテーブル5aには、
格納部に格納されているページのロック状態である現ロ
ックタイプと、これからロック制御部5がロック制御し
ようとする、指定ロックタイプとの関係が記憶されてい
る。このロックタイプは、ロックなし、共有ロック、お
よび排他ロックの3種類である。
In FIG. 4, the lock table 5a includes
The relationship between the current lock type, which is the locked state of the page stored in the storage unit, and the designated lock type that the lock control unit 5 is going to lock-control is stored. There are three types of locks: no lock, shared lock, and exclusive lock.

【0046】そして、現ロックタイプと指定ロックタイ
プとの関係は、現ロックタイプが共有ロックの場合、排
他ロックの指定はできず、現ロックタイプが排他ロック
の場合、共有ロックおよび排他ロックの指定はできな
い。そして、それ以外の組合せ関係においては、ロック
の指定が可能となっている。例えば、現ロックタイプが
共有ロックの場合、共有ロックの指定は可能となる。こ
のロックテーブル5aを用いることにより、ロック処理
が適正に制御されることになる。
The relationship between the current lock type and the specified lock type is that the exclusive lock cannot be specified when the current lock type is the shared lock, and the shared lock and the exclusive lock are specified when the current lock type is the exclusive lock. I can't. In other combinations, the lock can be designated. For example, when the current lock type is a shared lock, the shared lock can be designated. By using this lock table 5a, the lock process is properly controlled.

【0047】このようなロックテーブル5aを用いて、
ロック制御部5はロック制御を行うが、その詳細につい
て以下説明する。
Using such a lock table 5a,
The lock control unit 5 performs lock control, the details of which will be described below.

【0048】ロック処理には、共有ロックあるいは排他
ロックのようなロックタイプの他に、ロックを行う範囲
を決定する必要があり、上述した全体ロック処理と部分
ロック処理とがある。
In the lock processing, in addition to the lock type such as the shared lock or the exclusive lock, it is necessary to determine the lock range, and there are the whole lock processing and the partial lock processing described above.

【0049】まず、全体ロック処理について説明する。First, the whole lock process will be described.

【0050】図5は、ロック制御部5による全体ロック
処理の処理手順を示すフローチャートである。
FIG. 5 is a flow chart showing the processing procedure of the overall lock processing by the lock control unit 5.

【0051】図5において、まずユーザはデータの全体
に対してアクセスするのか、それともデータの部分に対
してアクセスするのかの指定を含めたアクセス要求が入
力部1からデータベース管理部3に入力される。以下、
データの全体に対するアクセスの指定がアクセス要求に
含まれている場合について説明する。
In FIG. 5, first, an access request including designation of whether the user accesses the entire data or the data portion is input from the input unit 1 to the database management unit 3. . Less than,
The case where the access request for the entire data is included in the access request will be described.

【0052】まずデータベース管理部3のロック制御部
5は、入力されたアクセス対象のデータが短レコードの
データか長大レコードのデータかをページサイズをもと
に、データが短レコードか長大レコードかを判断する
(ステップ101)。
First, the lock control unit 5 of the database management unit 3 determines whether the input data to be accessed is a short record data or a long record data based on the page size. A judgment is made (step 101).

【0053】データが短レコードの場合、データベース
管理部3は、データが格納されている指定レコード(短
レコード)のページ番号を獲得する(ステップ10
2)。その後、ロック制御部5は、並行処理時の直列化
可能性を保証するために、アクセスの種類例えば読み込
みあるいは書き込み等に対応するロックの種類を指定す
るが、この際、ロック制御部5は、ロックテーブル5a
をもとに指定ロックが可能か否かを判断し(ステップ1
03)、可能でない場合は、指定ロック不可として(ス
テップ104)、指定ロック処理を行わず本処理を終了
する。これにより、指定されたデータのアクセスが実行
されない。一方、ステップ103で指定ロックが可能で
ある場合は、指定ロックの処理を許可し(ステップ10
5)、ステップ102で獲得したページ番号の指定ペー
ジへの指定ロック処理を実行し(ステップ106)、本
処理を終了する。
If the data is a short record, the database management unit 3 acquires the page number of the designated record (short record) in which the data is stored (step 10).
2). After that, the lock control unit 5 specifies the type of access, for example, the type of lock corresponding to read or write, in order to guarantee serializability during parallel processing. At this time, the lock control unit 5 Lock table 5a
It is judged whether the designated lock is possible or not based on (Step 1
03), if not possible, the designated lock is disabled (step 104), and the designated lock process is not performed, and this process ends. As a result, the specified data is not accessed. On the other hand, if the designated lock is possible in step 103, the designated lock process is permitted (step 10
5) Then, the designated lock process for the designated page of the page number acquired in step 102 is executed (step 106), and this process is terminated.

【0054】一方、ステップ101で長大レコード、す
なわちページサイズを越えるデータのアクセスであると
判断された場合、データベース管理部3は、指定レコー
ド(長大レコード)のヘッダが格納されているページ番
号を獲得する(ステップ107)。その後、ロック制御
部5は、ロック処理を行うが、その際ロックテーブル5
aを参照して指定ロックが可能か否かを判断する(ステ
ップ108)。指定ロックが可能でない場合は、指定ロ
ック不可として(ステップ109)、指定ロック処理を
行わず本処理を終了する。一方、指定ロックが可能な場
合は、指定ロックの処理を許可し(ステップ105)、
ステップ107で獲得した長大レコードのヘッダのペー
ジ番号のページへの指定ロック処理を実行し(ステップ
106)、本処理を終了する。
On the other hand, when it is determined in step 101 that the access is to a long record, that is, data exceeding the page size, the database management unit 3 acquires the page number in which the header of the designated record (long record) is stored. (Step 107). After that, the lock control unit 5 performs the lock process, and at that time, the lock table 5
It is determined whether or not the designated lock is possible by referring to a (step 108). If the designated lock is not possible, the designated lock is disabled (step 109), and the designated lock processing is not performed, and this processing ends. On the other hand, if the designated lock is possible, the designated lock processing is permitted (step 105),
The designated lock process to the page of the page number of the header of the long record acquired in step 107 is executed (step 106), and this process ends.

【0055】その後、このような全体ロック処理に関す
るトランザクションとアクセス処理そのもののトランザ
クションの実行を行うことにより、並行処理の直列化可
能性が保証された状態でアクセスが実行され、実行結果
が出力部2に出力される。
After that, by executing the transaction related to the whole lock process and the transaction of the access process itself, the access is executed in the state where the serializability of the parallel process is guaranteed, and the execution result is output. Is output to.

【0056】これにより、短レコードに対するロック処
理も、長大レコードに対する全体データのアクセス時の
ロック処理も、1ページのロック処理のみを行う。特
に、長大レコードに対して複数のページに対するロック
処理を行わず、長大レコードのヘッダを有するページに
のみ指定ロック処理が実行され、その他の実データを有
するページに対しては指定ロック処理が行われないの
で、ロック処理にかかる負荷が軽減されることになる。
As a result, the lock processing for the short record and the lock processing for accessing the entire data for the long record are performed only for one page. In particular, the locking process for multiple pages is not performed for long records, the specified locking process is performed only for the page that has the header of long records, and the specified locking process is performed for the pages that have other actual data. Since there is no lock, the load on the lock processing is reduced.

【0057】次に、部分ロック処理について説明する。Next, the partial lock processing will be described.

【0058】図6は、ロック制御部5による部分ロック
処理の処理手順を示すフローチャートである。
FIG. 6 is a flowchart showing the processing procedure of the partial lock processing by the lock controller 5.

【0059】図6において、まずユーザはデータの全体
に対してアクセスするのか、それともデータの部分に対
してアクセスするのかの指定を含めたアクセス要求が入
力部1からデータベース管理部3に入力される。以下、
データの部分に対するアクセスの指定が含まれている場
合について説明する。
In FIG. 6, first, an access request is input from the input unit 1 to the database management unit 3 including the designation whether the user accesses the entire data or the data portion. . Less than,
The case where the access specification for the data part is included will be described.

【0060】まずデータベース管理部3のロック制御部
5は、入力されたアクセス対象のデータが短レコードの
データか長大レコードのデータかをページサイズをもと
に、データが短レコードか長大レコードかを判断する
(ステップ201)。
First, the lock control unit 5 of the database management unit 3 determines whether the input access target data is a short record data or a long record data based on the page size. A judgment is made (step 201).

【0061】データが短レコードの場合、データベース
管理部3は、データが格納されている指定レコード(短
レコード)のページ番号を獲得する(ステップ20
2)。その後、ロック制御部5は、並行処理時の直列化
可能性を保証するために、アクセスの種類例えば読み込
みあるいは書き込み等に対応するロックの種類を指定す
るが、この際、ロック制御部5は、ロックテーブル5a
をもとに指定ロックが可能か否かを判断し(ステップ2
03)、可能でない場合は、指定ロック不可として(ス
テップ204)、指定ロック処理を行わず本処理を終了
する。これにより、指定されたデータのアクセスが実行
されない。一方、ステップ203で指定ロックが可能で
ある場合は、指定ロックの処理を許可し(ステップ20
5)、ステップ202で獲得したページ番号の指定ペー
ジへの指定ロック処理を実行し(ステップ206)、本
処理を終了する。
If the data is a short record, the database management unit 3 acquires the page number of the designated record (short record) in which the data is stored (step 20).
2). After that, the lock control unit 5 specifies the type of access, for example, the type of lock corresponding to read or write, in order to guarantee serializability during parallel processing. At this time, the lock control unit 5 Lock table 5a
It is judged whether the specified lock is possible or not based on (Step 2
03), if not possible, the designated lock is disabled (step 204), and the designated lock process is not performed, and the process ends. As a result, the specified data is not accessed. On the other hand, if the designated lock is possible in step 203, the designated lock processing is permitted (step 20).
5) Then, the designated lock process for the designated page of the page number acquired in step 202 is executed (step 206), and this process ends.

【0062】一方、ステップ201で長大レコード、す
なわちページサイズを越えるデータのアクセスであると
判断された場合、データベース管理部3は、指定レコー
ド(長大レコード)のヘッダが格納されているページ番
号を獲得する(ステップ207)。その後、ロック制御
部5は、ロック処理を行うが、この場合部分ロック処理
を行うため、まず長大レコードのヘッダを有するページ
への共有ロックが可能か否かをロックテーブル5aを参
照して判断する(ステップ208)。その結果、共有ロ
ックが可能でない場合は、指定ロック不可として(ステ
ップ213)、指定ロック処理を行わず、本処理を終了
する。これにより、ユーザから指定されたデータのアク
セスは行われない。一方、ヘッダ井のページへの共有ロ
ック処理が可能な場合は、該ヘッダのページへの共有ロ
ック処理を実行し(ステップ209)、その後データベ
ース管理部3は、ユーザが指定した部分の実データを有
するページのページ番号を獲得する(ステップ21
0)。さらにロック制御部5は、ステップ210で獲得
した実データを含むページ番号のページへのロック処理
が可能か否かをロックテーブル5aを参照して判断する
(ステップ211)。この判断の結果、指定ロック処理
が可能な場合は該指定ロック処理を許可し、実データを
有するページへの指定ロック処理を実行して(ステップ
206)、本処理を終了する。一方、ステップ211で
実データを有するページへの指定ロックが可能でない場
合は、既にステップ209で実行したヘッダのページへ
の共有ロックの解除処理を実行し(ステップ212)、
指定ロック不可として(ステップ213)、本処理を終
了する。なお、ステップ211で判断する実データのペ
ージは、ユーザの指定によりページ数が複数の場合もあ
り、この場合複数のページへの指定ロックが可能か否か
を判断する。
On the other hand, when it is judged in step 201 that the access is to a long record, that is, data exceeding the page size, the database management section 3 acquires the page number in which the header of the designated record (long record) is stored. (Step 207). After that, the lock control unit 5 performs the lock process. In this case, since the partial lock process is performed, it is first determined by referring to the lock table 5a whether or not the shared lock to the page having the header of the long record is possible. (Step 208). As a result, if the shared lock is not possible, the designated lock is disabled (step 213), the designated lock process is not performed, and the process ends. As a result, the data designated by the user is not accessed. On the other hand, if the shared lock process for the page of the header well is possible, the shared lock process for the page of the header is executed (step 209), and then the database management unit 3 stores the actual data of the portion specified by the user. Get the page number of the page that has (step 21)
0). Further, the lock control unit 5 refers to the lock table 5a to determine whether or not it is possible to lock the page having the page number including the actual data acquired in step 210 (step 211). As a result of this determination, if the designated lock processing is possible, the designated lock processing is permitted, the designated lock processing for the page having the actual data is executed (step 206), and this processing is ended. On the other hand, if the designated lock to the page having the actual data is not possible in step 211, the shared lock release process to the page of the header already executed in step 209 is executed (step 212),
The designated lock is disabled (step 213), and this processing ends. The actual data page determined in step 211 may have a plurality of pages depending on the user's designation. In this case, it is determined whether or not the designated lock can be performed on the plurality of pages.

【0063】これにより、長大レコードに対する部分デ
ータのアクセス時のロック処理は、長大レコードのヘッ
ダを有するページへの共有ロック処理と、必要な実デー
タの部分を有する特定のページに対するロック処理のみ
で、必要な長大データ中の実データに対するアクセス処
理が実行されるため、ロック処理にかかる負荷が軽減さ
れるとともに、該長大データのその他の実データに対す
るアクセス処理も並行処理が可能なため並行処理時の並
行性が向上することなる。
As a result, the lock process when accessing partial data for a long record is only the shared lock process for the page having the header of the long record and the lock process for a specific page having the necessary actual data part. Since the access processing to the actual data in the necessary long data is executed, the load on the lock processing is reduced, and the access processing to other real data of the long data can be performed in parallel. Concurrency will be improved.

【0064】なお、データベースへのアクセス処理は、
アクセス処理プログラムの1ステップであるトランザク
ションTによって実行されろ。そして、このトランザク
ションに対するロック処理は、上述したように、アクセ
ス対象であるレコードR(長大レコードあるいは短レコ
ード)に対する全体ロック処理を行う場合とレコードR
の一部分を処理する部分ロック処理を行う場合とに分か
れて処理されるが、全体ロック処理を行う場合、実際に
は次の命令(LOCK)により実行される。すなわち、 LOCK(T,R、TYPE) である。ここで、Tは、ロック処理の対象である指定ト
ランザクションを示し、Rは、ロック処理の対象である
指定レコードを示している。また、TYPEは、アクセ
ス処理が読み出しか書き込みかに応じた共有ロックか排
他ロックかのロック種別であるロックタイプを示してい
る。この命令により、指定トランザクションTが終了す
るまで、指定レコードRの全領域には、指定ロックタイ
プTYPEのロックがかけられる。
The access process to the database is
Execute by transaction T, which is one step of the access processing program. As described above, the lock processing for this transaction is performed when the entire lock processing is performed for the record R (long record or short record) to be accessed and the record R
The process is divided into the case of performing the partial lock process of processing a part of the above, and the process of the whole lock process is actually executed by the next instruction (LOCK). That is, LOCK (T, R, TYPE). Here, T indicates a designated transaction which is a target of lock processing, and R indicates a designated record which is a target of lock processing. Further, TYPE indicates a lock type that is a lock type of a shared lock or an exclusive lock depending on whether the access processing is read or write. By this instruction, all areas of the designated record R are locked with the designated lock type TYPE until the designated transaction T is completed.

【0065】また、部分ロック処理を行う場合、実際に
は次の命令(PART_ROCK)により実行される。
すなわち、 PART_ROCK(T,R,TYPE,OFFSE
T,LENGTH) である。ここで、Tは、ロック処理の対象である指定ト
ランザクションを示し、Rは、ロック処理の対象である
指定レコードを示し、TYPEは、上と同様に、ロック
タイプを示している。また、OFFSETは、指定オフ
セットであり、アクセス対象のレコードのオフセット位
置を示し、LENGTHは、指定の長さであり、アクセ
ス対象のレコードのオフセット位置からのオフセット量
を示している。この命令により、指定トランザクション
Tが終了するまで、指定レコードRの指定オフセットO
FFSETから指定の長さLENGTHまでの領域に
は、指定ロックタイプTYPEのロックがかけられる。
When the partial lock processing is performed, it is actually executed by the next instruction (PART_ROCK).
That is, PART_ROCK (T, R, TYPE, OFFSE
T, LENGTH). Here, T indicates a designated transaction which is a target of lock processing, R indicates a designated record which is a target of lock processing, and TYPE indicates a lock type as in the above. Further, OFFSET is a designated offset, indicating the offset position of the access target record, and LENGTH is a designated length, indicating the offset amount from the offset position of the access target record. This instruction causes the specified offset O of the specified record R until the specified transaction T is completed.
The lock of the designated lock type TYPE is applied to the area from FFSET to the designated length LENGTH.

【0066】なお、これらの命令は2相施錠方式でのロ
ックフェーズの実行に相当するものである。
Incidentally, these instructions correspond to the execution of the lock phase in the two-phase locking system.

【0067】ところで、上述した実施例においては、説
明の便宜上、データベース管理部3は入力部1と出力部
2とに接続された構成としたが、データベース管理部3
は、ネットワークに接続され、該ネットワークに接続さ
れた複数の端末装置からのアクセス処理が実行される場
合が多く、この場合、さらにデータベース管理部3によ
る並行処理時の並行性が向上することができるととも
に、ロック処理にかかる負荷が軽減される。
By the way, in the above-mentioned embodiment, the database management unit 3 is connected to the input unit 1 and the output unit 2 for the sake of convenience of explanation.
Is often connected to a network, and access processing from a plurality of terminal devices connected to the network is often executed. In this case, the parallelism at the time of parallel processing by the database management unit 3 can be further improved. At the same time, the load on the lock processing is reduced.

【0068】[0068]

【発明の効果】以上詳細に説明したように、本発明で
は、複数のユーザが共有するデータベースに所定のデー
タを格納する際、割付処理手段が該所定のデータが前記
データベースにおける固定長の格納割付単位であるペー
ジのサイズを越えて複数のページにわたる長大データで
ある場合、該長大データの実体データを含むページと、
該実体データを含むページの位置を示すヘッダを含むペ
ージとに割り付ける処理を行う。その後、複数のユーザ
からの前記データベースへのアクセス時に、ロック制御
手段は、前記割付処理手段により割り付けられたデータ
ベースへのアクセスにおける並行処理の直列化可能性を
保証するためのロック処理を、前記長大データの全体に
対するロック処理である場合は前記ヘッダを含むページ
に対して行い、前記長大データの特定部分に対するロッ
ク処理である場合は前記実体データを含むページに対し
て行う。
As described in detail above, according to the present invention, when storing predetermined data in a database shared by a plurality of users, the allocation processing means allocates the predetermined data to a fixed-length storage allocation in the database. In the case of long data that exceeds a page size as a unit and spans a plurality of pages, a page including substantial data of the long data,
The process of allocating to the page including the header indicating the position of the page including the entity data is performed. Thereafter, when a plurality of users access the database, the lock control means performs lock processing for ensuring serializability of parallel processing in accessing the database allocated by the allocation processing means. In the case of locking the entire data, the page including the header is performed, and in the case of locking the specific portion of the long data, the page including the actual data is performed.

【0069】従って、アクセス対象が長大データ全体で
ある場合はヘッダを含むページのみのロック処理を行
い、長大データの特定部分である場合は必要最小限のペ
ージのみに対するロック処理を行うことから、ユーザの
アクセス対象に従った必要最小限の少ないロック処理回
数で済むため、ロック処理にかかる負荷が軽減するとと
もに、必要最小限であるアクセス対象領域のみのロック
処理を行っているため、他のユーザによる同一長大デー
タ内の他のページに対するアクセスも可能となるため、
並行処理時の並行性も向上するという利点を有する。
Therefore, if the access target is the entire long data, only the page including the header is locked, and if it is a specific part of the long data, only the minimum necessary pages are locked. Since the minimum required number of lock processes according to the access target of each is required, the load on the lock process is reduced, and the lock process is performed only on the access target area that is the minimum required. Since it is possible to access other pages in the same length data,
It has an advantage that parallelism at the time of parallel processing is also improved.

【0070】特に、短レコードと、特定部分へのアクセ
ス可能性も含めた長大レコードとが混在するデータベー
ス管理におけるロック処理にかかる負荷の軽減と並行処
理時の並列性の向上を同時に満足することができる利点
を有する。
Particularly, it is possible to simultaneously satisfy the reduction of the load on the lock processing and the improvement of the parallelism during the parallel processing in the database management in which the short record and the long record including the accessibility to the specific portion are mixed. It has the advantage that it can.

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

【図1】本発明の一実施例であるデータベース管理装置
の構成を示す図。
FIG. 1 is a diagram showing a configuration of a database management apparatus that is an embodiment of the present invention.

【図2】格納部6における短レコードの割付配置を示す
図。
FIG. 2 is a diagram showing an allocation layout of short records in a storage unit 6.

【図3】格納部6における長大レコードの割付配置を示
す図。
FIG. 3 is a diagram showing a layout of long records in a storage unit 6;

【図4】ロックテーブルの内容を示す図。FIG. 4 is a diagram showing the contents of a lock table.

【図5】ロック制御部5による全体ロック処理の処理手
順を示すフローチャート。
FIG. 5 is a flowchart showing a processing procedure of overall lock processing by a lock control unit 5.

【図6】ロック制御部5による部分ロック処理の処理手
順を示すフローチャート。
FIG. 6 is a flowchart showing a processing procedure of partial lock processing by the lock control unit 5.

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

1 入力部 2 出力部 3 データベース管理部 4
データ割付部 5 ロック制御部 5a ロックテーブル 6 格納部
1 input part 2 output part 3 database management part 4
Data allocation unit 5 Lock control unit 5a Lock table 6 Storage unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数のユーザが共有するデータベースを
管理するデータベース管理装置において、 前記データベースにおける固定長の格納割付単位である
ページのサイズを越えて複数のページにわたる長大デー
タを、該長大データの実体データを含むページと、該実
体データを含むページの位置を示すヘッダを含むページ
とに割り付ける処理を行う割付処理手段と、 前記長大データの全体に対するロック処理は前記ヘッダ
を含むページに対して行い、前記長大データの特定部分
に対するロック処理は前記実体データを含むページに対
して行う制御をするロック制御手段とを具備したことを
特徴とするデータベース管理装置。
1. A database management device for managing a database shared by a plurality of users, wherein long data of a plurality of pages exceeding a size of a page, which is a fixed-length storage allocation unit in the database, is a substance of the long data. An allocation processing unit that performs a process of allocating to a page including data and a page including a header indicating the position of the page including the substantive data, and locking processing for the entire long data is performed on the page including the header, A database management apparatus comprising: a lock control unit that controls a lock process for a specific portion of the long data with respect to a page including the actual data.
JP6022737A 1994-02-21 1994-02-21 Data base management device Pending JPH07230402A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6022737A JPH07230402A (en) 1994-02-21 1994-02-21 Data base management device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6022737A JPH07230402A (en) 1994-02-21 1994-02-21 Data base management device

Publications (1)

Publication Number Publication Date
JPH07230402A true JPH07230402A (en) 1995-08-29

Family

ID=12091043

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6022737A Pending JPH07230402A (en) 1994-02-21 1994-02-21 Data base management device

Country Status (1)

Country Link
JP (1) JPH07230402A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09305471A (en) * 1996-05-15 1997-11-28 Nec Corp File simultaneous access control system
JP2000276411A (en) * 1999-03-26 2000-10-06 Nec Corp Exclusive control method for file being in course of transfer in ftp

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09305471A (en) * 1996-05-15 1997-11-28 Nec Corp File simultaneous access control system
JP2000276411A (en) * 1999-03-26 2000-10-06 Nec Corp Exclusive control method for file being in course of transfer in ftp

Similar Documents

Publication Publication Date Title
US6526441B2 (en) Input/output device information management system for multi-computer system
US7203691B2 (en) System and method for retrieving information from a database
JP2001527242A (en) A mechanism that brings fine-grained consistency for optimistic parallel processing control using lock groups
JPH056297A (en) Method of transaction processing and system
US7958149B2 (en) Computer program and product for append mode insertion of rows into tables in database management systems
Maimone et al. Single-level multiversion schedulers for multilevel secure database systems
JP2853608B2 (en) File access control method of parallel processing system
US7444349B1 (en) Control of concurrent access to a partitioned data file
US5953728A (en) System for modifying a database using a transaction log
JPH0816396A (en) Data management system
JPH07230402A (en) Data base management device
JP3107094B2 (en) Method and apparatus for shortening shared buffer lock period
JPH02212949A (en) Reorganization processing system for data base in on-line operation
Alonso et al. Reducing recovery constraints on locking based protocols
KR100507782B1 (en) Database management system and the method of controlling consistency of system table in DBMS
JP3105226B2 (en) Data processing system
JPH0559463B2 (en)
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
JP2980610B2 (en) Transaction management device
JP3006527B2 (en) Client / server type database system
JPH05233415A (en) Transaction lock control method
JPH05289913A (en) Data base reorganizing system
JPH0431935A (en) File area control system
JPH08115242A (en) Heap file management system