JPH1011342A - Method and device for access to data base system - Google Patents

Method and device for access to data base system

Info

Publication number
JPH1011342A
JPH1011342A JP8159752A JP15975296A JPH1011342A JP H1011342 A JPH1011342 A JP H1011342A JP 8159752 A JP8159752 A JP 8159752A JP 15975296 A JP15975296 A JP 15975296A JP H1011342 A JPH1011342 A JP H1011342A
Authority
JP
Japan
Prior art keywords
database
information
data
consistency
static member
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.)
Withdrawn
Application number
JP8159752A
Other languages
Japanese (ja)
Inventor
Yoshio Kawasaki
吉男 川崎
Miyuki Iketani
美雪 池谷
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.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom 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 Fuji Electric Co Ltd, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP8159752A priority Critical patent/JPH1011342A/en
Publication of JPH1011342A publication Critical patent/JPH1011342A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide the access method for the data base system which makes it possible to easily generate a program for the exclusive control, state change information, and consistency maintenance of a data base. SOLUTION: A data base class holding exclusive information 2, state change information 3, consistency information 4, etc., as static member data is stored in a data base class storage means 1, and a data base control means 2 performs control over the data base such as exclusive control 6, state change information 7, and consistency control 8 by referring to the static member data stored in the data base class storage means 1 according to data base instances.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、データベースシス
テムのアクセス方法及びアクセス装置に関し、特に、デ
ータベースの排他制御や状態変化通知、或いはデータベ
ースの一貫性の保守を行う場合などに適用して好適なも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an access method and an access apparatus for a database system, and more particularly to an access method and an access apparatus suitable for exclusive control of a database, notification of status change, or maintenance of database consistency. It is.

【0002】[0002]

【従来の技術】従来のデータベースシステムは、様々な
分野で使用する情報の正規化を行って蓄積しておくこと
により、様々な検索条件での情報公開を可能としてい
る。
2. Description of the Related Art In a conventional database system, information used in various fields is normalized and stored, thereby enabling information disclosure under various search conditions.

【0003】また、データベースシステムを不特定多数
の利用者によって広域で利用され、有効に活用されるよ
うにするため、図5に示すように、コンピュータとネッ
トワークとを用いた大規模なシステムを構築し、多量の
データを高速に処理することにより、クライアント33
〜35がサーバ31を介してデータベース32に格納さ
れた情報を自由に削除したり、追加したり、公開したり
できるようにしている。
In order to use the database system widely and effectively by an unspecified number of users, a large-scale system using a computer and a network is constructed as shown in FIG. By processing a large amount of data at high speed, the client 33
35 can freely delete, add, or publish information stored in the database 32 via the server 31.

【0004】このデータベースシステムをコンピュータ
とネットワークとを用いて実現するために、以下のよう
なことが行われていた。まず、多数の利用者が、データ
ベースに格納された同一の情報にネットワークを介し
て、参照、書き込み、削除、追加処理などのアクセス要
求を発行し、それらの複数の要求が競合した場合、これ
らの要求を整理することにより常に正しい情報を実時間
で利用者に提供する。
In order to realize this database system using a computer and a network, the following has been performed. First, many users issue access requests such as reference, write, delete, and add processing to the same information stored in the database via a network. By organizing requests, always provide correct information to users in real time.

【0005】例えば、図6に示すように、利用者64が
端末62を操作してデータベース61に格納された情報
Aを参照している際に、利用者65が端末63を操作し
てデータベース61に格納された情報Aに書き込みなど
の修正を行った場合、データベース61に格納された情
報Aに対する修正結果を、利用者64に対して実時間で
通知する必要がある。
For example, as shown in FIG. 6, when a user 64 operates the terminal 62 to refer to the information A stored in the database 61, a user 65 operates the terminal 63 to operate the database 61. When a correction such as writing is performed on the information A stored in the database 61, it is necessary to notify the user 64 of the correction result of the information A stored in the database 61 in real time.

【0006】このため、データベース61に格納された
情報Aの修正権利を、実時間において単一の利用者のみ
に与える排他制御などを行うことにより、データベース
61に格納された情報の一貫性を保つようにしていた。
For this reason, the consistency of the information stored in the database 61 is maintained by performing exclusive control or the like that gives the right to modify the information A stored in the database 61 to only a single user in real time. Was like that.

【0007】また、図7に示すように、データベース7
3は、多量なデータ74を蓄積し、データベース73を
コンピュータシステム化して、利用者71の要求に充分
に応えるため、抽象化された複雑な情報72の構造を適
切なデータモデル75に変換してコンピュータ上の物理
ファイルに置換するようにしていた。
[0007] As shown in FIG.
3 stores a large amount of data 74, converts the database 73 into a computer system, and converts the structure of the abstracted complicated information 72 into an appropriate data model 75 in order to sufficiently respond to the request of the user 71. It was replaced with a physical file on the computer.

【0008】そして、システム運用者76は、データベ
ース73に格納された多量なデータ74に対し、複雑な
データモデル75の一貫性を保ちながらメンテナンス作
業を行っていた。
[0008] The system operator 76 performs maintenance work on a large amount of data 74 stored in the database 73 while maintaining the consistency of the complicated data model 75.

【0009】さらに、図8に示すように、システム開発
者83は、データベースシステムを開発する際、抽象化
モデル81及び利用者や運用者の要求82に基づいて、
適切なデータモデルを提案したり、コンピュータモデル
を提案したりしていた。
Further, as shown in FIG. 8, a system developer 83 develops a database system based on an abstraction model 81 and a request 82 of a user or an operator.
He proposed an appropriate data model and a computer model.

【0010】この場合、利用者に実時間で正しいデータ
を提供するため、プロセス毎にデータベースの排他制御
方法を考案したり、データベースの状態変化通知方法を
考案したりするようにしていた。また、データベースの
運用を効率的に行うことができるようにするため、デー
タベースのデータテーブル毎の保守方法を考案したり、
データテーブル間の一貫性の保守方法を考案したりする
ようにしていた。
In this case, in order to provide the user with correct data in real time, an exclusive control method of the database is devised for each process, or a state change notification method of the database is devised. In addition, in order to be able to operate the database efficiently, we devised a maintenance method for each data table of the database,
And devised ways to maintain consistency between data tables.

【0011】以下、従来のデータベースシステムについ
て図面を参照しながら説明する。図9において、データ
ベース41へのアクセス要求をコンピュータ上に実装す
る場合、アクセスの対象となるテーブルと処理単位毎に
トランザクション43と呼ばれる単位に分割し、それぞ
れのトランザクション43に対し、プロセス42、4
6、47と呼ばれるコンピュータ上の作業単位として、
コンピュータ上の主記憶装置44、補助記憶装置45な
どのシステム資源を割り当てて処理を実行するようにし
ていた。
Hereinafter, a conventional database system will be described with reference to the drawings. In FIG. 9, when a request to access the database 41 is implemented on a computer, the table to be accessed and the processing unit are divided into units called transactions 43, and the processes 43, 4
As work units on a computer called 6, 47,
The processing is executed by allocating system resources such as the main storage device 44 and the auxiliary storage device 45 on the computer.

【0012】これらのプロセス42、46、47は、シ
ステム資源を単独で専有することが一般的に行われてお
り、その独立性は極めて高く保たれている。そのため、
プロセス42、46、47の間の通信やシステム資源の
割り振りをオペレーティングシステム48により管理す
るようにしていた。
[0012] These processes 42, 46, 47 are generally occupied solely by system resources, and their independence is kept very high. for that reason,
The communication between the processes 42, 46 and 47 and the allocation of system resources are managed by the operating system 48.

【0013】例えば、UNIXやOS/2などの複数の
プロセスの並列処理を可能とするマルチプロセス対応の
オペレーティングシステムでは、プロセス間通信にメッ
セージやパイプ、システム資源の排他制御にセマフォな
どのカーネル資源を提供している。
For example, in an operating system such as UNIX or OS / 2, which can process a plurality of processes in parallel, a multi-process compatible operating system uses messages and pipes for inter-process communication and kernel resources such as semaphores for exclusive control of system resources. providing.

【0014】データベースシステムにおいても、UNI
XやOS/2などのプログラム構造がそのまま使われて
おり、プロセス42、46、47毎に発行されるデータ
ベース41へのアクセス要求を行う場合、セマフォなど
のカーネル資源を利用してプロセス42、46、47内
部で排他制御を行うようにしている。
In a database system, UNI
When a program structure such as X or OS / 2 is used as it is, and an access request to the database 41 issued for each of the processes 42, 46, and 47 is made, the processes 42, 46 using kernel resources such as semaphores are used. , 47 are controlled exclusively.

【0015】このことにより、多数の利用者がネットワ
ークを介してデータベース41の同一の情報にアクセス
し、アクセス要求の競合が発生するような場合において
も、異なる要求が同時に発生しないような制御を可能と
している。
Thus, even when many users access the same information in the database 41 via the network and contention of access requests occurs, it is possible to control such that different requests do not occur at the same time. And

【0016】例えば、データベース41上の同じ情報A
をアクセスしているプロセス46、プロセス47におい
て、プロセス47が情報Aを変更した場合、その情報A
の変更についてプロセス47に通知する必要がある。
For example, the same information A on the database 41
If the process 47 changes the information A in the processes 46 and 47 accessing the
Need to be notified to process 47 of the change.

【0017】そして、プロセス46は、この状態変更通
知に基づいて、情報Aの再読み込みや画面情報の再描
画、さらにアクセス処理内の条件分岐などを行う必要が
あり、この状態変更通知は、オペレーティングシステム
48が提供しているメッセージやパイプなどのプロセス
間通信機能を用いて行われる。
The process 46 needs to re-read the information A, redraw the screen information, and perform a conditional branch in the access processing based on the status change notification. This is performed by using an inter-process communication function such as a message or a pipe provided by the system 48.

【0018】すなわち、プロセス47が情報Aを変更し
た場合、メッセージを用いてデータベース41の状態変
更通知をプロセス46に対して行い、プロセス46は情
報Aを再読み込みすることにより、それぞれのプロセス
42、46、47が実時間の情報を常に参照できるよう
にしている。
That is, when the process 47 changes the information A, the status change notification of the database 41 is sent to the process 46 using a message, and the process 46 re-reads the information A, so that each process 42, 46 and 47 can always refer to real-time information.

【0019】また、データベース41における抽象化さ
れた複雑な情報モデルをコンピュータの物理ファイルに
置換する際、表イメージのデータテーブル群に細分化
し、図10に示すように、それぞれのデータテーブルの
処理単位である1レコード毎に一意の値を持つデータ項
目、すなわちキー項目を設けるようにしたリレーショナ
ルデータベースを用い、このリレーショナルデータベー
スのキー項目を用いてデータテーブルの関連づけを行う
ことにより、複雑な情報モデルを実現するようにしてい
る。
When replacing the complex information model, which has been abstracted in the database 41, with a physical file of a computer, the data model is subdivided into data table groups of tabular images, and as shown in FIG. By using a relational database in which a data item having a unique value for each record, that is, a key item, and associating a data table with the key item of the relational database, a complicated information model can be created. I try to make it happen.

【0020】すなわち、リレーショナルデータベースで
構築されたデータモデルにおいて、例えば、主テーブル
51の情報を削除する場合、その主テーブル51の情報
と関連づけられた従属テーブル53、54の情報も全て
削除することにより、データベースの一貫性を確保して
いる。さらに、主テーブル51においてキー項目を変更
した場合、その主テーブル51の情報と関連づけられた
従属テーブル53、54のキー情報も全て変更する。
That is, in the data model constructed by the relational database, for example, when the information of the main table 51 is deleted, the information of the dependent tables 53 and 54 associated with the information of the main table 51 is also deleted. , Ensuring database consistency. Further, when a key item is changed in the main table 51, all key information of the dependent tables 53 and 54 associated with the information of the main table 51 is also changed.

【0021】なお、このプロセス42、46、47の間
の通信機能やデータベースの一貫性を確保する処理機能
は、各プロセス42、46、47毎に実装されている。
The communication function between the processes 42, 46 and 47 and the processing function for ensuring the consistency of the database are implemented for each of the processes 42, 46 and 47.

【0022】[0022]

【発明が解決しようとする課題】しかしながら、従来の
データベースシステムは、データベース41の排他制御
を、カーネル資源のセマフォなどを用いて各プロセス4
2、46、47毎に行っており、資源を獲得することが
できなかった場合、プロセス42、46、47自体を一
時的に停止させて、資源の再獲得を行うリトライ処理の
機能も各プロセス42、46、47毎に実装するように
していた。
However, in the conventional database system, exclusive control of the database 41 is performed by each process 4 using a semaphore of a kernel resource or the like.
If the resource cannot be acquired, the process 42, 46, 47 itself is temporarily stopped, and the function of the retry process for reacquiring the resource is also performed in each process. 42, 46, and 47 were implemented.

【0023】このため、システム開発者は、排他制御の
機能やリトライ処理の機能をプロセス42、46、47
毎に実装するためのプログラムの記述やテストに手間が
かかるという問題があった。
For this reason, the system developer assigns the exclusive control function and the retry processing function to the processes 42, 46 and 47.
There is a problem that it takes time to write and test a program to be implemented every time.

【0024】また、データベース41の状態変化の通知
をカーネル資源のメッセージなどを用いて各プロセス4
2、46、47毎に行っており、各プロセス42、4
6、47毎にプロセス42、46、47の間で通信の送
受信の機能を実装するとともに、各プロセス42、4
6、47毎にメッセージの送信先のプロセス42、4
6、47を管理するようにしていた。
Each process 4 is notified of a status change of the database 41 by using a message of a kernel resource or the like.
2, 46, and 47, and each process 42, 4
A function for transmitting and receiving communication between the processes 42, 46, and 47 is implemented for each of the processes 42, 46, and 47.
Processes 42 and 4 to which the message is transmitted every 6 and 47
6, 47 were managed.

【0025】このため、システム開発者は、メッセージ
の送受信の機能をプロセス42、46、47毎に実装す
るためのプログラムの記述やテストに手間がかかるとい
う問題があった。
For this reason, the system developer has a problem that it takes time to write and test a program for implementing the message transmission / reception function for each of the processes 42, 46, and 47.

【0026】さらに、データベース41の一貫性を確保
するため、主テーブル51、52に対する変更を従属テ
ーブル53、54に反映させる必要があり、複雑な情報
モデルの場合、リレーショナルデータベースで作成する
データテーブルの数が増大し、システム開発者の負担が
大きくなるという問題があった。
Furthermore, in order to ensure the consistency of the database 41, it is necessary to reflect changes to the main tables 51 and 52 in the dependent tables 53 and 54. In the case of a complicated information model, the data tables created in the relational database There is a problem that the number increases and the burden on the system developer increases.

【0027】そこで、本発明の目的は、データベースの
排他制御、状態変更通知及び一貫性保守のプログラムを
容易に作成することが可能なデータベースシステムのア
クセス方法及びアクセス装置を提供することである。
It is an object of the present invention to provide an access method and an access apparatus for a database system capable of easily creating a program for exclusive control of a database, notification of a state change, and consistency maintenance.

【0028】[0028]

【課題を解決するための手段】上述した課題を解決する
ために、本発明によれば、オブジェクト指向プログラミ
ング言語を用いたデータベースクラスを作成し、その静
的メンバデータとして、例えば、排他情報、状態変更情
報、一貫性情報を持たせ、これらの静的メンバデータを
個々のデータベースインスタンスから参照することによ
り、排他制御、状態変更通知、一貫性制御を行うように
している。
According to the present invention, a database class using an object-oriented programming language is created, and as its static member data, for example, exclusive information, status, and the like. Exclusive control, state change notification, and consistency control are performed by providing change information and consistency information and referencing these static member data from individual database instances.

【0029】このことにより、排他制御、状態変更通
知、一貫性制御を行うプログラムをプロセス毎にコーデ
ィングする必要がなくなり、工数を削減することができ
る。
As a result, it is not necessary to code a program for performing exclusive control, state change notification, and consistency control for each process, thereby reducing man-hours.

【0030】[0030]

【発明の実施の形態】以下、本発明の一実施例によるデ
ータベースシステムのアクセス装置について図面を参照
しながら説明する。図1は、本発明の一実施例によるア
クセス装置の機能的な構成を示すブロック図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An access device of a database system according to one embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a functional configuration of an access device according to an embodiment of the present invention.

【0031】図1において、データベースクラス格納手
段1は、カーネル資源とプロセス情報とを静的メンバデ
ータとして保有するデータベースクラスを格納する。静
的メンバデータは、排他情報2、状態変更情報3、一貫
性情報4などから構成される。
In FIG. 1, a database class storage unit 1 stores a database class that holds kernel resources and process information as static member data. The static member data includes exclusive information 2, state change information 3, consistency information 4, and the like.

【0032】データベース制御手段2は、データベース
クラス格納手段1に格納された静的メンバデータをデー
タベースインスタンスから参照することにより、排他制
御6、状態変更通知7、一貫性制御8などのデータベー
スの制御を行う。
The database control means 2 refers to the static member data stored in the database class storage means 1 from the database instance to control the database such as exclusive control 6, status change notification 7, and consistency control 8. Do.

【0033】以上説明したように、本発明の一実施例に
よるデータベースシステムのアクセス装置によれば、オ
ブジェクト指向により、カーネル資源とプロセス情報と
を静的メンバデータに置換し、アクセスプログラムをメ
ソッドに置換することにより、データベースクラスを定
義する。システムは、このデータベースクラスの実体を
所有するクラス、すなわち、インスタンスリンケージの
手法を用いて構築する。
As described above, according to the access device of the database system according to the embodiment of the present invention, the kernel resources and the process information are replaced with the static member data and the access program is replaced with the method by object orientation. To define the database class. The system is constructed using a class that owns the substance of the database class, that is, the instance linkage method.

【0034】このことにより、カーネル資源であるセマ
フォやメッセージなどの情報と画面などのユーザインタ
ーフェイスを含むプロセス情報とを、データベースのア
クセスプログラムと結びつけることができ、プロセス開
発者がプロセス毎にプログラムの設計を行う必要がなく
なり、データモデルの複雑さによる工数の増大を回避で
きる。
Thus, information such as semaphores and messages, which are kernel resources, and process information including a user interface such as a screen can be linked to a database access program, and a process developer can design a program for each process. Need not be performed, and an increase in man-hours due to the complexity of the data model can be avoided.

【0035】次に、本発明の一実施例によるデータベー
スのアクセス方法について図面を参照しながら説明す
る。本発明の一実施例によるデータベースのアクセス方
法では、オブジェクト指向プログラミング言語であるS
malltalk、AT&TC++などを使うが、以下
の説明では、AT&T C++を用いた場合を例にと
る。
Next, a database access method according to an embodiment of the present invention will be described with reference to the drawings. In the database access method according to an embodiment of the present invention, the object-oriented programming language S
Although malltalk, AT & TC ++ and the like are used, in the following description, the case where AT & TC ++ is used is taken as an example.

【0036】C++では、図2に示すように、全てのデ
ータベースクラス12のインスタンス14から参照でき
る一意な静的メンバデータを、staticキーワード
11を用いて宣言する。そして、この静的メンバデータ
のデータ領域13に排他制御用の情報、データベース
名、インスタンス14が生成されたプロセスの識別子、
従属するデータテーブルの関係を示したチェーンなどを
格納する。
In C ++, as shown in FIG. 2, unique static member data that can be referenced from the instances 14 of all the database classes 12 is declared using the static keyword 11. In the data area 13 of the static member data, information for exclusive control, a database name, an identifier of a process in which the instance 14 was generated,
Stores a chain indicating the relationship between the dependent data tables.

【0037】このことにより、アクセスメッセージがプ
ログラムからインスタンス14に送られた場合、データ
領域13を参照することにより、排他制御処理や一貫性
保守の処理を行うことができる。
Thus, when an access message is sent from the program to the instance 14, exclusive control processing and consistency maintenance processing can be performed by referring to the data area 13.

【0038】図3は、本発明の一実施例によるデータテ
ーブルのデータ構造を示す制御情報を示す図である。図
3において、データテーブル21の物理ファイルの先頭
に制御情報部22が設けられ、制御情報部22には、デ
ータ項目名、データ種別、データ長などを格納するとと
もに、それぞれのデータ項目名が従属する親データテー
ブルのデータ項目名も格納する。
FIG. 3 is a diagram showing control information indicating the data structure of a data table according to one embodiment of the present invention. In FIG. 3, a control information section 22 is provided at the head of the physical file of the data table 21. The control information section 22 stores a data item name, a data type, a data length, and the like. The data item name of the parent data table to be stored is also stored.

【0039】次に、本発明の一実施例によるデータ領域
13の記述方法について図面を参照しながら説明する。
図4において、データベースインスタンスがプロセス内
で宣言された場合、その構築子であるコンストラクタ内
でデータベースのオープン処理が行われ、正常終了した
際に、データ領域13にデータベース名とプロセス識別
子との登録を行う。また、オープンしたデータベースの
データテーブル21の制御情報部22から、従属するデ
ータテーブル21の関係を示したチェーンを獲得し、そ
のチェーンも独立にデータ領域13に登録する。
Next, a description will be given of a description method of the data area 13 according to one embodiment of the present invention with reference to the drawings.
In FIG. 4, when a database instance is declared in a process, a database open process is performed in a constructor that is a constructor of the database instance. When the database instance is completed normally, a database name and a process identifier are registered in a data area 13. Do. Further, a chain indicating the relationship of the dependent data tables 21 is obtained from the control information section 22 of the data table 21 of the opened database, and the chains are independently registered in the data area 13.

【0040】ここで、データベース名がデータ領域13
に既に登録されている場合、アプリケーションの他のプ
ロセスでデータベースが既に開かれていることを示して
いるので、その線形リストに本情報であるデータベース
名とプロセス識別子とを追加する。
Here, the database name is the data area 13
If the information has already been registered, it indicates that the database has already been opened by another process of the application, and the database name and the process identifier, which are the main information, are added to the linear list.

【0041】また、データ領域13から情報を削除する
場合、プロセス内でのデータベースインスタンスがスコ
ープ外に出た際に、その消滅子であるデストラクタ内
で、データベース名とプロセス識別子とに基づいてデー
タ領域13を検索する。
When information is deleted from the data area 13, when the database instance in the process goes out of the scope, the data area is deleted based on the database name and the process identifier in the destructor which is the annihilator. Search for 13.

【0042】なお、インスタンス14にメッセージを送
ることにより、スコープ内においても明示的にデータ領
域13から情報を削除することもできる。次に、本発明
の一実施例による排他制御方法について説明する。
By sending a message to the instance 14, information can be explicitly deleted from the data area 13 even within the scope. Next, an exclusive control method according to an embodiment of the present invention will be described.

【0043】図2において、データベースの参照、削
除、更新、追加などのアクセスメッセージがインスタン
ス14に送信された場合、インスタンス14はデータベ
ース名に基づいてデータ領域13を検索し、プロセス識
別子を参照することにより、自己の属するプロセス以外
の他のプロセスが同一のデータベースに対してどのよう
なロック条件を発行しているかを確認する。
In FIG. 2, when an access message such as reference, deletion, update, or addition of a database is transmitted to the instance 14, the instance 14 searches the data area 13 based on the database name and refers to the process identifier. To check what lock condition is issued to the same database by a process other than the process to which it belongs.

【0044】例えば、他のプロセスからレコードロック
が発行されている場合、このことを自己のプロセスの呼
び出し元に通知し、そこで再試行を行うように設定され
ていれば、そのリトライ時間の間、自己のプロセスを停
止し、再度アクセス権の獲得を試みる。
For example, if a record lock has been issued from another process, this is notified to the caller of the own process, and if retry is set there, during the retry time, Stops its own process and tries to gain access again.

【0045】このように、データベースクラス12を参
照することにより、排他制御を行うことができるので、
従来のように、システム開発者が排他制御を行うプログ
ラムを記述し、動作を検証する必要がなくなり、工数の
削減や作業の簡略化を行うことができる。
As described above, exclusive control can be performed by referring to the database class 12, so that
As in the related art, there is no need for a system developer to write a program for performing exclusive control and verify the operation, thereby reducing man-hours and simplifying work.

【0046】以上説明したように、本発明の一実施例に
よる排他制御方法によれば、データベースクラス12の
インスタンス14にアクセスメソッドを用いてメッセー
ジを送ることにより、プロセス内でデータベースにアク
セスを行うことができる。この際、アクセスメソッド
は、データベースクラス12の静的メンバデータである
排他情報を参照することにより、排他制御を行うかどう
かの判定を行うことができる。
As described above, according to the exclusion control method according to the embodiment of the present invention, a message is sent to the instance 14 of the database class 12 using the access method, thereby accessing the database in the process. Can be. At this time, the access method can determine whether to perform exclusive control by referring to the exclusive information, which is static member data of the database class 12.

【0047】このことにより、排他制御は、データベー
スクラス12に隠蔽され、プロセス内で排他制御の記述
を行う必要がなくなり、システム開発者の設計及びテス
ト作業の負荷を軽減することができる。
As a result, the exclusive control is hidden in the database class 12, so that it is not necessary to describe the exclusive control in the process, and the design and test work of the system developer can be reduced.

【0048】次に、本発明の一実施例による状態変更通
知方法について説明する。図2において、アクセスメッ
セージがインスタンス14に送信され、データベースの
記述情報が変更された場合、インスタンス14はデータ
ベース名に基づいてデータ領域13を参照することによ
り、自己の属するプロセス識別子以外のプロセス識別子
を検索し、そのプロセス識別子により識別されるプロセ
スが有するインスタンス14に対し、データベースが変
更された旨の通知を行う。
Next, a state change notification method according to an embodiment of the present invention will be described. In FIG. 2, when the access message is transmitted to the instance 14 and the description information of the database is changed, the instance 14 refers to the data area 13 on the basis of the database name, thereby identifying a process identifier other than the process identifier to which the instance 14 belongs. The search is performed, and the instance 14 of the process identified by the process identifier is notified that the database has been changed.

【0049】このデータベースが変更された旨の通知を
受信したインスタンス14は、自己の抱えるデータベー
スの記述情報の再読み込みを行ったり、画面の再描画を
行ったりする。また、アクセスメソッドの実行途中の場
合、条件分岐の判断情報として利用する。
The instance 14 that has received the notification that the database has been changed rereads the description information of its own database or redraws the screen. If the access method is being executed, it is used as information for determining a conditional branch.

【0050】このように、データベースクラス12を参
照することにより、状態変更通知を行うことができるの
で、従来のように、システム開発者が各プロセス毎に状
態変更通知を行うプログラムを記述し、動作を検証する
必要がなくなり、工数の削減や作業の簡略化を行うこと
ができる。
As described above, the status change notification can be performed by referring to the database class 12, so that the system developer describes a program for performing the status change notification for each process as in the related art, and executes the operation. This eliminates the need for verification, and can reduce man-hours and simplify work.

【0051】以上説明したように、本発明の一実施例に
よる状態変更通知方法によれば、複数のプロセスが同一
のデータベースのインスタンス14を所有し、そのうち
の1つのプロセスがデータベースのインスタンス14に
変更を加えた場合、データベースクラス12の静的メン
バデータである状態変更情報に、そのインスタンス14
が変更されたことを転記することにより、そのコピーで
ある他のプロセスのインスタンス14も状態変更が発生
したことをその静的メンバデータから知ることができ、
再読み込み/再画面描画/処理の分岐判断などを行うこ
とができる。
As described above, according to the state change notification method according to one embodiment of the present invention, a plurality of processes own the same database instance 14, and one of the processes changes to the database instance 14. Is added to the state change information, which is the static member data of the database class 12, with its instance 14
Is changed, the instance 14 of another process, which is a copy thereof, can also know from the static member data that a state change has occurred,
For example, it is possible to make a branch determination of reloading / redrawing screen / processing.

【0052】このことにより、状態変更は、データベー
スクラス12に隠蔽され、プロセス内で状態変更通知の
記述を行う必要がなくなり、システム開発者の設計及び
テスト作業の負荷を軽減することができる。
As a result, the state change is hidden in the database class 12, so that it is not necessary to describe the state change notification in the process, and the design and test work of the system developer can be reduced.

【0053】次に、本発明の一実施例による一貫性の保
守方法について説明する。図2において、データベース
の記述情報に変更を行うメッセージがインスタンス14
に送信された場合、インスタンス14は静的メンバデー
タであるチェーンを辿り、データテーブル21の従属関
係を調べ、必要があれば従属するデータテーブル21の
記述情報の変更を行う。
Next, a method for maintaining consistency according to an embodiment of the present invention will be described. In FIG. 2, the message for changing the description information of the database is the instance 14
Is transmitted to the instance 14, the instance 14 follows the chain that is the static member data, checks the dependency of the data table 21, and changes the description information of the dependent data table 21 if necessary.

【0054】そして、データテーブル21の全ての情報
が完了した時点で、自己の記述情報の変更を行う。な
お、これらの変更を行う際、排他制御が行われるととも
に、記述情報の変更が終了した後は、各プロセスに最新
の記述情報が通知される。
Then, when all the information in the data table 21 is completed, the self description information is changed. When making these changes, exclusive control is performed, and after the change of the description information is completed, each process is notified of the latest description information.

【0055】このように、データベースクラス12を参
照することにより、データベースの一貫性の保守を行う
ことができるので、従来のように、システム開発者がデ
ータベースの従属関係に留意しながらデータベースの一
貫性の保守を行うプログラムを記述し、動作を検証する
必要がなくなり、工数の削減や作業の簡略化を行うこと
ができる。
As described above, by referring to the database class 12, maintenance of the consistency of the database can be performed. Therefore, as in the related art, the consistency of the database can be maintained while paying attention to the dependencies of the database. This eliminates the need to write a program for performing maintenance and verify the operation, thereby reducing man-hours and simplifying work.

【0056】以上説明したように、本発明の一実施例に
よる一貫性の保守方法によれば、プロセスが、データベ
ースのインスタンス14にレコードの削除や変更のメッ
セージを与えた場合、そのインスタンス14は、データ
ベースクラス12の静的メンバデータに記述されたリレ
ーショナルデータベースの関連付けの情報を辿って従属
テーブルを参照することにより、インスタンス14に与
えられた削除メッセージの可否の判定や変更メッセージ
の従属テーブルへの反映を行うことができる。
As described above, according to the consistency maintenance method according to an embodiment of the present invention, when a process gives a message to a database instance 14 to delete or change a record, that instance 14 By referring to the dependent table by tracing the relational database association information described in the static member data of the database class 12, it is determined whether or not the delete message given to the instance 14 is permitted, and the change message is reflected in the dependent table. It can be performed.

【0057】このことにより、一貫性の保守について
も、データベースクラス12に隠蔽され、プロセス内で
一貫性の保守を行う処理の記述を行う必要がなくなり、
システム開発者の設計及びテスト作業の負荷を軽減する
ことができる。
As a result, the maintenance of the consistency is also hidden in the database class 12, so that it is not necessary to describe the process for maintaining the consistency in the process.
The load on the design and test work of the system developer can be reduced.

【0058】[0058]

【発明の効果】以上説明したように、本発明によれば、
排他情報とプロセス毎に使用されているデータベース情
報などのデータとアクセスプログラムとを、オブジェク
ト指向プログラミングの手法を用いてクラスとして定義
することにより、排他制御、状態変更通知、一貫性制御
を行うプログラムをプロセス毎にコーディングする必要
がなくなり、工数を低減するライブラリを提供すること
ができる。
As described above, according to the present invention,
Exclusive information, data such as database information used for each process, and the access program are defined as classes using the object-oriented programming method, so that programs that perform exclusive control, state change notification, and consistency control are defined. There is no need to code for each process, and a library that reduces man-hours can be provided.

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

【図1】本発明の一実施例によるデータベースシステム
のアクセス装置の機能的な構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a functional configuration of an access device of a database system according to one embodiment of the present invention.

【図2】本発明の一実施例によるデータベースクラスの
概略構成を示す図である。
FIG. 2 is a diagram showing a schematic configuration of a database class according to an embodiment of the present invention.

【図3】本発明の一実施例によるデ−タテーブルの概略
構成を示す図である。
FIG. 3 is a diagram showing a schematic configuration of a data table according to one embodiment of the present invention.

【図4】本発明の一実施例によるデ−タ領域への登録方
法を示す図である。
FIG. 4 is a diagram illustrating a registration method for a data area according to an embodiment of the present invention.

【図5】従来のデータベースシステムの概略構成を示す
図である。
FIG. 5 is a diagram showing a schematic configuration of a conventional database system.

【図6】従来のデ−タベースシステムの動作を示す図で
ある。
FIG. 6 is a diagram showing the operation of a conventional database system.

【図7】従来のデ−タベースシステムの運用方法を示す
図である。
FIG. 7 is a diagram showing a conventional database system operation method.

【図8】従来のデ−タベースシステムの開発方法を示す
図である。
FIG. 8 is a diagram showing a conventional database system development method.

【図9】従来のデ−タベースシステムの概略構成を示す
ブロック図である。
FIG. 9 is a block diagram showing a schematic configuration of a conventional database system.

【図10】従来のリレーショナルデ−タベースにおける
データテーブルの従属関係を示す図である。
FIG. 10 is a diagram showing a dependency relationship of a data table in a conventional relational database.

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

1 データベースクラス格納手段 2 排他情報 3 状態変更情報 4 一貫性情報 5 データベース制御手段 6 排他制御 7 状態変更通知 8 一貫性制御 11 static キーワード 12 データベースクラス 13 データ領域 14 インスタンス 21 データテーブル 22 制御情報部 1 Database class storage means 2 Exclusive information 3 State change information 4 Consistency information 5 Database control means 6 Exclusive control 7 State change notification 8 Consistency control 11 Static keyword 12 Database class 13 Data area 14 Instance 21 Data table 22 Control information section

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 データベースとしてのデータを表形式で
格納するデータテーブルのデータ構造をデータベースの
物理ファイルの一部の領域に格納するデータベースシス
テムへのアクセス方法において、 データベースのクラスライブラリをオブジェクト指向プ
ログラミング言語を用いて作成し、 前記クラスライブラリの静的メンバデータ部にデータベ
ースのアクセス管理情報を格納し、 データベースインスタンスが前記アクセス管理情報を参
照することにより、データベースにアクセスすることを
特徴とするデータベースシステムのアクセス方法。
1. A method for accessing a database system for storing a data structure of a data table for storing data as a table in a table format in a partial area of a physical file of the database, comprising the steps of: Database access management information is stored in a static member data portion of the class library, and a database instance accesses the database by referring to the access management information. how to access.
【請求項2】 データベースのクラスライブラリをオブ
ジェクト指向プログラミング言語を用いて作成し、 前記クラスライブラリの静的メンバデータ部にデータベ
ース名及びプロセス識別子を記述したアクセス管理情報
を格納し、 前記アクセス管理情報を参照することにより、データベ
ースの排他制御を行うことを特徴とするデータベースシ
ステムの排他制御方法。
2. A class library of a database is created using an object-oriented programming language, and access management information describing a database name and a process identifier is stored in a static member data section of the class library. An exclusive control method of a database system, wherein exclusive control of a database is performed by referring to the database.
【請求項3】 データベースのクラスライブラリをオブ
ジェクト指向プログラミング言語を用いて作成し、 前記クラスライブラリの静的メンバデータ部にデータベ
ース名及びプロセス識別子を記述したアクセス管理情報
を格納し、 データベースが更新された後、前記アクセス管理情報を
参照することにより、データベースの状態変更通知を行
うことを特徴とするデータベースシステムの状態変更通
知方法。
3. A database class library is created using an object-oriented programming language, access management information describing a database name and a process identifier is stored in a static member data section of the class library, and the database is updated. Thereafter, a state change notification of the database system is performed by referring to the access management information.
【請求項4】 データベースのクラスライブラリをオブ
ジェクト指向プログラミング言語を用いて作成し、 前記クラスライブラリの静的メンバデータ部にデータ項
目毎の従属関係を記述したアクセス管理情報を格納し、 前記アクセス管理情報を参照し、データベースのデータ
テーブルの更新を行うことにより、データベースの一貫
性の保守を行うことを特徴とするデータベースシステム
の一貫性の保守方法。
4. A class library of a database is created using an object-oriented programming language, and access management information describing a dependency relationship for each data item is stored in a static member data section of the class library; A method for maintaining the consistency of a database system, comprising maintaining the consistency of a database by updating a data table of the database with reference to the database.
【請求項5】 カーネル資源とプロセス情報として静的
メンバデータを保有するデータベースクラスを格納する
データベースクラス格納手段と、 前記静的メンバデータをデータベースインスタンスから
参照することにより、データベースの制御を行うデータ
ベース制御手段とを備えることを特徴とするデータベー
スシステムのアクセス装置。
5. A database class storing means for storing a database class having static member data as kernel resources and process information, and a database control for controlling a database by referring to said static member data from a database instance. Means for accessing a database system.
【請求項6】 前記静的メンバデータとして排他情報を
格納し、前記排他情報を参照してデータベースの排他制
御を行うことを特徴とする請求項5に記載にデータベー
スシステムのアクセス装置。
6. The access device according to claim 5, wherein exclusive information is stored as the static member data, and exclusive control of the database is performed with reference to the exclusive information.
【請求項7】 前記静的メンバデータとして状態変更情
報を格納し、前記状態変更情報を参照してデータベース
の状態変更通知を行うことを特徴とする請求項5に記載
にデータベースシステムのアクセス装置。
7. The access device according to claim 5, wherein status change information is stored as the static member data, and a status change notification of a database is issued with reference to the status change information.
【請求項8】 前記静的メンバデータとして一貫性情報
を格納し、前記一貫性情報を参照してデータベースの一
貫性制御を行うことを特徴とする請求項5に記載にデー
タベースシステムのアクセス装置。
8. The access apparatus according to claim 5, wherein consistency information is stored as the static member data, and consistency control of a database is performed with reference to the consistency information.
JP8159752A 1996-06-20 1996-06-20 Method and device for access to data base system Withdrawn JPH1011342A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8159752A JPH1011342A (en) 1996-06-20 1996-06-20 Method and device for access to data base system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8159752A JPH1011342A (en) 1996-06-20 1996-06-20 Method and device for access to data base system

Publications (1)

Publication Number Publication Date
JPH1011342A true JPH1011342A (en) 1998-01-16

Family

ID=15700495

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8159752A Withdrawn JPH1011342A (en) 1996-06-20 1996-06-20 Method and device for access to data base system

Country Status (1)

Country Link
JP (1) JPH1011342A (en)

Similar Documents

Publication Publication Date Title
US5475817A (en) Object oriented distributed computing system processing request to other object model with code mapping by object managers located by manager of object managers
US7860831B2 (en) Object graph editing context and methods of use
US5864864A (en) Method and apparatus for providing transparent persistent data support to foreign data types
US6061689A (en) Object aggregation representation of relational database rows having nontraditional datatypes
US6438616B1 (en) Method and apparatus for fast, local corba object references
US5692183A (en) Methods and apparatus for providing transparent persistence in a distributed object operating environment
KR100210208B1 (en) Method and apparatus for enabling persistent attributes in an object oriented environment
US7089561B2 (en) Methods and systems for creating and communicating with computer processes
US6477564B1 (en) Process for transforming and routing data between agent servers present in some machines and a central agent server present in another machine
US5896532A (en) Objects with run-time classes and methods of making them
JPH047640A (en) Class succession settling processing method
JPH03137730A (en) Object directional computer-system
JPH1063561A (en) System and method for automatically changing database access method to insert database object processing instruction
JPH11252209A (en) Network management system
CA2624270A1 (en) Interfaces for a productivity suite application and a hosted user interface
JPH10511202A (en) Recoverable proxy objects in an object-oriented environment
JPH11327919A (en) Method and device for object-oriented interruption system
JP2000155679A (en) Method and device for preparing stable repeater for shared data collection
US11593357B2 (en) Databases and methods of storing, retrieving, and processing data
US6941309B2 (en) Object integrated management system
WO2003058452A1 (en) Method and apparatus to maintain consistency between an object store and a plurality of cache utilizing transactional updates to data caches
US20200342008A1 (en) System for lightweight objects
US5890160A (en) Object representation of relational database cells having nontraditional large object datatypes
US8140493B2 (en) Changing metadata without invalidating cursors
US7010793B1 (en) Providing an exclusive view of a shared resource

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20030902