JPH04178847A - Data base management mechanism - Google Patents

Data base management mechanism

Info

Publication number
JPH04178847A
JPH04178847A JP2308307A JP30830790A JPH04178847A JP H04178847 A JPH04178847 A JP H04178847A JP 2308307 A JP2308307 A JP 2308307A JP 30830790 A JP30830790 A JP 30830790A JP H04178847 A JPH04178847 A JP H04178847A
Authority
JP
Japan
Prior art keywords
record
item
exclusive control
data base
management mechanism
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
JP2308307A
Other languages
Japanese (ja)
Inventor
Yukio Fukuda
由紀雄 福田
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2308307A priority Critical patent/JPH04178847A/en
Publication of JPH04178847A publication Critical patent/JPH04178847A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the responsiveness of the whole system for utilizing a data base by providing this data base management mechanism with a control part for executing exclusive control in each record or item in a file or table in the data base. CONSTITUTION:The data base management mechanism is provided with a control part 1, a data base record skimmer definition part 2 and a data base file 3. At the time of newly registering a record, the control part 1 automatically forms an exclusive control information area corresponding to each record or each item in a record. The exclusive control information is written and referred in/from the exclusive control information and the reception of a data updating request from another application program is controlled based upon the exclusive control information. Consequently, exclusive control can be executed in each record or in each item and the responsiveness of the whole system utilizing the data base can be improved.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、データベースの管理を行うデータベース管理
機構に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to a database management mechanism that manages a database.

(従来の技術) 一般に、データベース管理機構は、同時に発生するデー
タ更新時のデータの一貫性を保証するための排他制御機
能を備えている。
(Prior Art) Generally, a database management mechanism has an exclusive control function to guarantee data consistency when data updates occur simultaneously.

このような排他制御機能において、従来排他制御の対象
は、ファイル単位またはテーブル単位とされている。す
なわち、ファイルまたはテーブル全体か排他制御の対象
となっており、例えば、あるアプリケーション・プログ
ラムてデータベース内のデータを更新するために排他利
用のための占有宣言をした場合、そのアプリケーション
・プログラムの処理か終わるまでの間、他のアプリケー
ション・プログラムから該当ファイルまたはテーブルへ
の参照はできるが更新は禁止され、待たされることにな
る。
In such an exclusive control function, the target of exclusive control has traditionally been a file unit or a table unit. In other words, the entire file or table is subject to exclusive control. For example, if an application program declares exclusive use for updating data in a database, the processing of that application program Until the process is completed, other application programs can refer to the file or table, but updates are prohibited and must wait.

(発明か解決しようとする課題) しかしながら、アプリケーション・プログラムの扱うデ
ータは、はとんどの場合、ファイルまたはテーブル全体
のレコードか対象になるのではなく、その一部、例えば
特定項目がある条件を満たすレコードまたはその中の特
定アイテムに限られることが多い。
(Problem to be solved by the invention) However, in most cases, the data handled by an application program is not the records of the entire file or table, but a part of it, such as a certain item, or a certain condition. Often limited to satisfying records or specific items within them.

したがって、従来のデータベース管理システムでは、デ
ータベースを活用するシステム全体の性能は、応答性の
面で劣化する傾向にあった。
Therefore, in conventional database management systems, the performance of the entire system that utilizes the database tends to deteriorate in terms of responsiveness.

本発明は、かかる従来の事情に対処してなされたもので
、データベース内のファイルまたはテーブルのレコード
単位またはアイテム単位に排他制御を実施することがで
き、従来に較べてデータベースを活用するシステム全体
の応答性の向上を図るこのできるデータベース管理機構
を提供しようとするものである。
The present invention has been made in response to such conventional circumstances, and can implement exclusive control on a record-by-record basis or item-by-item basis of files or tables within a database, and is capable of controlling the entire system that utilizes a database compared to the past. The present invention aims to provide a database management mechanism that can improve responsiveness.

[発明の構成〕 (課題を解決するための手段) すなわち、本発明は、レコードのスキーマ定義部に基づ
き、データベース内のファイルのレコードを新規登録す
るとともに、他のアプリケーション・プログラムからの
データ更新要求の受付の制御を行う制御部を備えたデー
タベース管理機構において、前記制御部は、前記レコー
ドの新規登録時に、該レコード毎または該レコード内の
アイテム毎に、対応した排他制御情報の領域を自動生成
し、前記レコード単位または前記アイテム単位に、前記
排他制御情報の領域に排他制御用の情報の書き込みおよ
び参照を実施し、この排他制御用の情報に基づいて、前
記性のアプリケーション・プログラムからのデータ更新
要求の受付の制御を行うことを特徴とする。
[Structure of the Invention] (Means for Solving the Problem) That is, the present invention registers a new record of a file in a database based on the schema definition part of the record, and also registers a data update request from another application program. In the database management mechanism, the control unit is configured to automatically generate a corresponding exclusive control information area for each record or each item in the record when the record is newly registered. Then, writing and referencing information for exclusive control in the area of exclusive control information for each record or each item, and based on this information for exclusive control, data from the application program of the above type is written. It is characterized by controlling reception of update requests.

(作 用) 上記構成の本発明のデータベース管理機構では、制御部
か、レコードの新規登録時に、レコード毎またはレコー
ド内のアイテム毎に、対応した排他制御情報の領域を自
動生成する。そして、この排他制御情報の領域に排他制
御用の情報の書き込みおよび参照を行い、この排他制御
用の情報に基づいて、他のアプリケーション・プログラ
ムからのデータ更新要求の受付の制御を行う。
(Function) In the database management mechanism of the present invention having the above configuration, when a new record is registered, the control unit automatically generates a corresponding exclusive control information area for each record or each item within a record. Then, exclusive control information is written and referenced in this exclusive control information area, and acceptance of data update requests from other application programs is controlled based on this exclusive control information.

したがって、レコード単位またはアイテム単位に排他制
御を実施することができ、従来に較べてデータベースを
活用するシステム全体の応答性の向上を図ることができ
る。
Therefore, exclusive control can be performed on a record-by-record or item-by-item basis, and the responsiveness of the entire system that utilizes a database can be improved compared to the past.

(実施例) 以下、本発明の一実施例のデータベース管理機構を図面
を参照して説明する。なお、排他制御は、レコード単位
でもアイテム単位でも可能であるか、本実施例ではアイ
テム単位の排他制御を行う場合について説明する。
(Embodiment) Hereinafter, a database management mechanism according to an embodiment of the present invention will be described with reference to the drawings. Note that exclusive control can be performed on a record-by-record basis or on an item-by-item basis. In this embodiment, a case will be described in which exclusive control is performed on an item-by-item basis.

第1図は、本発明の一実施例の全体構成を示すものであ
る。図において、]はデータベース管理機構の制御部、
2はデータベースのレコードのスキーマ定義部、3はデ
ータベースのファイルである。
FIG. 1 shows the overall configuration of an embodiment of the present invention. In the figure, ] is the control unit of the database management mechanism,
2 is a schema definition part of a database record, and 3 is a database file.

上記レコードのスキーマ定義部2は、ファイル3内のレ
コードの構造を定義しており、レコード内のアイテム定
義部(アイテム1の定義部、・・・・・・、アイテムn
の定義部)から構成されている。このアイテム定義部内
には、各アイテムのデータの型(整数1文字列等)やサ
イズ等に関する情報か定義されている。
The schema definition section 2 of the above record defines the structure of the record in the file 3, and the item definition section (item 1 definition section, item n
definition part). In this item definition section, information regarding the data type (one character string of integers, etc.), size, etc. of each item is defined.

また、ファ、イル3は、レコード(レコード1、・・・
・・、レコードm)から構成されている。第2図は、フ
ァイル3内のレコード(レコードj)の内部構造を示す
もので、レコードjは、レコードjのアイテム(レコー
ドjのアイテム1、・・・・・・、レコードjのアイテ
ムn)と、レコードJのアイテムの排他制御情報(レコ
ードJのアイテム1の排他制御情報、・・・・・・、レ
コードjのアイテムnの排他制御情報)とから構成され
ている。
Also, file 3 contains records (record 1,...
..., record m). Figure 2 shows the internal structure of a record (record j) in file 3, where record j is an item of record j (item 1 of record j, ..., item n of record j). and exclusive control information of the item of record J (exclusive control information of item 1 of record J, . . . , exclusive control information of item n of record j).

そして、制御部1は、レコードのスキーマ定義部2に基
づき、ファイル3のレコードを新規登録するとともに、
ファイル3に対する他のアプリケーション・プログラム
からのデータ更新要求の受付の制御を行うよう構成され
ている。
Then, the control unit 1 registers a new record in the file 3 based on the schema definition unit 2 of the record, and
It is configured to control reception of data update requests for the file 3 from other application programs.

上記構成のデータベース管理機構において、新規レコー
ドの登録を行う場合、制御部1は、レコードのスキーマ
定義部2を読みだし、この内容を解読し、ファイル3内
に新しいレコード、例えばレコードJを登録する。
In the database management mechanism with the above configuration, when registering a new record, the control unit 1 reads the schema definition part 2 of the record, decodes the contents, and registers a new record, for example, record J, in the file 3. .

制御部1は、この時、まずレコードのスキーマ定義部2
のアイテム1の定義部からファイル3内のレコード」の
アイテム1を生成する。
At this time, the control unit 1 first selects the schema definition unit 2 of the record.
Item 1 of ``Record in File 3'' is generated from the definition section of Item 1 of .

次に、制御部1は、レコードのスキーマ定義部2のアイ
テム2の定義部から、ファイル3内のレコードJのアイ
テム2を生成する。
Next, the control unit 1 generates item 2 of record J in file 3 from the definition section of item 2 of schema definition section 2 of the record.

こうして、制御部コは、レコードのスキーマ定義部2の
アイテムnの定義部から、ファイル3内のレコードjの
アイテムnを生成する。
In this way, the control unit generates item n of record j in file 3 from the definition section of item n of schema definition section 2 of the record.

そして、レコードjの全てのアイテムを生成すると、こ
の後、制御部]は、レコードのスキーマ定義部2のアイ
テム1の定義部からファイル3内のレコードjのアイテ
ム1の排他制御情報を生成する。
After all items of record j have been generated, the control unit then generates exclusive control information for item 1 of record j in file 3 from the definition section of item 1 of schema definition section 2 of the record.

次に、制御部1は、レコードのスキーマ定義部2のアイ
テム2の定義部からファイル3内のレコードjのアイテ
ム2の排他制御情報を生成し、順次、レコードJのアイ
テムnの排他制御情報まで生成する。
Next, the control unit 1 generates exclusive control information of item 2 of record j in file 3 from the definition part of item 2 of schema definition part 2 of the record, and sequentially generates exclusive control information of item n of record J. generate.

二こで、制御部1てのレコードjのアイテム1の排他制
御情報からレコードjのアイテムnの排他制御情報まで
の生成処理は、データベースの利用者やアプリケーショ
ン・プログラムからは隠蔽されている。
Second, the generation process of the control unit 1 from the exclusive control information of item 1 of record j to the exclusive control information of item n of record j is hidden from database users and application programs.

つぎに、データ更新開始時の占有宣言の場合の動作につ
いて説明する。
Next, the operation in the case of declaration of occupancy at the start of data update will be explained.

アプリケーション・プログラムからのデータ更新時の占
有宣言は、あるアイテム(複数回)の値の満たすべき条
件として与えられる(例えば、アイテム1の値が55か
ら99までかつアイテム2の値か1000未満等)。
Occupancy declaration when updating data from an application program is given as a condition that the value of a certain item (multiple times) must satisfy (for example, the value of item 1 is between 55 and 99 and the value of item 2 is less than 1000, etc.) .

アプリケーション・プログラムからのデータ更新開始時
の占有宣言を受けた場合、制御部1は、ます、該当ファ
イル3全体を占有状態にして他のアプリケーション・プ
ログラムからのデータ更新開始時の占有宣言を保留する
When receiving a declaration of occupancy at the start of data update from an application program, the control unit 1 immediately puts the entire corresponding file 3 in an exclusive state and suspends the declaration of occupancy at the start of data update from another application program. .

つぎに、制御部1は、アプリケーション・プログラムか
ら指定されたアイテムの満たすべき条件を満足する全て
のレコードを捜す。
Next, the control unit 1 searches for all records that satisfy the conditions specified by the application program for the item.

そして、該当するアイテム、例えばレコード2のアイテ
ム]とアイテム2が該当した場合、レコード2のアイテ
ム1の排他制御情報とレコード2のアイテム2の排他制
御情報について、排他制御情報(例えばプロセスidや
ユーサid等)ヲ書き込み、排他的な占有状態とし、該
当ファイル3全体の占有状態を解除する。
If the corresponding item (for example, the item in record 2) matches item 2, the exclusive control information (for example, the process ID or user id, etc.), and makes it exclusive and exclusive, and releases the exclusive status of the entire file 3.

したがって、この場合、レコード2のアイテム1とアイ
テム2のみか占有状態とされる。
Therefore, in this case, only item 1 and item 2 of record 2 are occupied.

なお、一部のアイテムか既に、他のアプリケーション・
プログラムて占有されていた場合の扱いについては、ア
プリケーション・プログラムからの指定により中止する
かそのまま実行あるいは一定時間待つ等の選択を可能と
する。
Please note that some items may already be connected to other applications.
When a program is occupied, the application program can specify whether to cancel, continue to run, or wait for a certain period of time.

このように、本実施例のデータベース管理機構では、同
一ファイル内の同一レコードに対する異なるアイテムへ
の同時更新や、同一ファイル内の異なるレコード同志の
同一アイテムへの同時更新が処理可能となり、データベ
ースを活用するシステム全体の性能が向上する。
In this way, the database management mechanism of this embodiment can process simultaneous updates to different items for the same record in the same file, and simultaneous updates to the same item for different records in the same file, making it possible to utilize the database. The performance of the entire system is improved.

[発明の効果コ 以上説明したように、本発明のデータベース管理機構に
よれば、データベース内のファイルまたはテーブルのレ
コード単位またはアイテム単位に排他制御を実施するこ
とができ、従来に較べてデータベースを活用するシステ
ム全体の応答性の向上を図るこのできる
[Effects of the Invention] As explained above, according to the database management mechanism of the present invention, exclusive control can be carried out on a record-by-record basis or on an item-by-item basis of files or tables in a database, making it possible to utilize the database more effectively than in the past. This can improve the responsiveness of the entire system.

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

第1図は本発明の一実施例のデータベース管理機構の構
成を示す図、第2図はM1図に示すレコードの構成を示
す図である。 1・・・・・・・・制御部 2・・・・・・・・・レコードのスキーマ定義部3・・
・・・・・・・ファイル 出願人      株式会社  東芝 代理人 弁理士  須 山 佐 − 第1図 第2図
FIG. 1 is a diagram showing the configuration of a database management mechanism according to an embodiment of the present invention, and FIG. 2 is a diagram showing the configuration of records shown in diagram M1. 1...Control section 2...Record schema definition section 3...
・・・・・・File applicant Toshiba Corporation Representative Patent attorney Satoshi Suyama - Figure 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims] (1)レコードのスキーマ定義部に基づき、データベー
ス内のファイルのレコードを新規登録するとともに、他
のアプリケーション・プログラムからのデータ更新要求
の受付の制御を行う制御部を備えたデータベース管理機
構において、 前記制御部は、前記レコードの新規登録時に、該レコー
ド毎または該レコード内のアイテム毎に、対応した排他
制御情報の領域を自動生成し、前記レコード単位または
前記アイテム単位に、前記排他制御情報の領域に排他制
御用の情報の書き込みおよび参照を実施し、この排他制
御用の情報に基づいて、前記他のアプリケーション・プ
ログラムからのデータ更新要求の受付の制御を行うこと
を特徴とするデータベース管理機構。
(1) In a database management mechanism that includes a control unit that registers new records of files in the database based on the schema definition unit of the record, and controls the reception of data update requests from other application programs, When the record is newly registered, the control unit automatically generates a corresponding exclusive control information area for each record or each item in the record, and creates a corresponding exclusive control information area for each record or each item. A database management mechanism, characterized in that information for exclusive control is written and referenced in a database management mechanism, and based on this information for exclusive control, reception of data update requests from the other application programs is controlled.
JP2308307A 1990-11-14 1990-11-14 Data base management mechanism Pending JPH04178847A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2308307A JPH04178847A (en) 1990-11-14 1990-11-14 Data base management mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2308307A JPH04178847A (en) 1990-11-14 1990-11-14 Data base management mechanism

Publications (1)

Publication Number Publication Date
JPH04178847A true JPH04178847A (en) 1992-06-25

Family

ID=17979478

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2308307A Pending JPH04178847A (en) 1990-11-14 1990-11-14 Data base management mechanism

Country Status (1)

Country Link
JP (1) JPH04178847A (en)

Similar Documents

Publication Publication Date Title
US6754848B1 (en) Method, system and program products for operationally migrating a cluster through emulation
JPH06266563A (en) Efficient router for support of plurality of simultaneous object versions
JPH04230530A (en) Messenger and object manager for realizing object-oriented environment
WO1996018159B1 (en) Implementation independent extensible query architecture for information retrieval systems
US7756827B1 (en) Rule-based, event-driven, scalable data collection
JP3002242B2 (en) CAD system
JPH04178847A (en) Data base management mechanism
JPH05307478A (en) Constituting method for data base management system
JP2780996B2 (en) Query optimization processing method
US6564376B1 (en) Method, system and program products for operationally backing out components of a cluster through emulation
JPH04107741A (en) Draw-out system for service procedure in rpc
Troelsen et al. Exploring Entity Framework Core
Cohn et al. Using kernel-level support for distributed shared data
Sarawagi Execution reordering for tertiary memory access
JP2557953B2 (en) Interface definition and analysis support method
JPS63196956A (en) File exclusion system
CA2365731C (en) Support for concurrent active sql statements having shared sql context information
JPH04260141A (en) Data shared processor
JP2600800B2 (en) Exclusive control of buffer table and deadlock detection method
JPS63257826A (en) Data base retrieval device
JPH05250335A (en) Data base update processing system of loosely coupled multiprocessor system
JPS62295135A (en) Retrieving method for data base
JPH04335428A (en) Version managing method for file
JPH05334164A (en) Computer system capable of controlling file system access
JPS62247428A (en) Executing method for prolog program