[go: up one dir, main page]

JPH0728683A - Database system - Google Patents

Database system

Info

Publication number
JPH0728683A
JPH0728683A JP5173949A JP17394993A JPH0728683A JP H0728683 A JPH0728683 A JP H0728683A JP 5173949 A JP5173949 A JP 5173949A JP 17394993 A JP17394993 A JP 17394993A JP H0728683 A JPH0728683 A JP H0728683A
Authority
JP
Japan
Prior art keywords
data
database
true value
management system
search
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
JP5173949A
Other languages
Japanese (ja)
Inventor
Tsutomu Takeuchi
力 竹内
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP5173949A priority Critical patent/JPH0728683A/en
Publication of JPH0728683A publication Critical patent/JPH0728683A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】 【目的】ある特定のアイテムに対し、真値であるデータ
を判定し、データベースシステムの信頼性を向上させ
る。 【構成】ハード的には、ホスト計算機1,端末2、及び
データベース3から構成されている。ソフトウエアとし
てデータベース管理システム2、及び応用プログラム3
がある。データベース管理システム2に真値判定機能3
を設け、検索時のデータ真値判定をこの機能で実施す
る。
(57) [Summary] [Purpose] For a specific item, determine the data that is the true value, and improve the reliability of the database system. [Structure] In terms of hardware, it is composed of a host computer 1, a terminal 2, and a database 3. Database management system 2 and application program 3 as software
There is. True value judgment function 3 in database management system 2
Is provided, and the true value judgment of data at the time of retrieval is performed by this function.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、各種産業におけるコン
ピュータエイデットデザイン(CAEシステム)などに
利用される。一つあるいは複数のデータベースを有する
計算機システムに関する。
BACKGROUND OF THE INVENTION The present invention is used for computer edit design (CAE system) in various industries. The present invention relates to a computer system having one or a plurality of databases.

【0002】[0002]

【従来の技術】従来、データベースからのデータの検索
を行う際、論理式により検索条件を指定し、探索対象と
なるファイルを選定した後に、そのデータを含むレコー
ド実現値を見つけ出し、レコード内の必要なフィールド
を取り出すのが一般的なやり方である。
2. Description of the Related Art Conventionally, when searching data from a database, after specifying a search condition by a logical expression and selecting a file as a search target, a record realization value including the data is found, and a necessary value in the record is found. It's a common practice to pick out such fields.

【0003】探索対象となるファイルが複数個の場合、
一つのファイルのレコードを上述のような方法で選んで
おき、それに関連する他のファイルのレコードを総合(j
oin)または相互参照(cross referencc )といった操作
により取り出すことができる。
When there are a plurality of files to be searched,
Select the record of one file by the above method and combine the records of other files related to it (j
It can be retrieved by operations such as oin) or cross referencc.

【0004】またデータの正当性チェック方法は従来、
フォーマットチェック、タイプチェック、バリュ
ーチェック、バランスチェックがある。,はそれ
ぞれデータの桁数,データのタイプ(英数字,仮名文字
など)が定義通りであるか否かのチェックであり、これ
は通常データのデータベース入力時にデータベース管理
システムにより行われている。は、データのフォーマ
ット,タイプが正しくてもその値が無意味であるかどう
かを調べるものでリミットチェックなどでチェックを行
う。は特定のアイテムの値が、他のアイテムの内容と
関係を有する場合で、一方の値が変更になった時、他方
のアイテムもそれに関連して必ず変更されるといった論
理的なチェックである。,は通常、データベース管
理システムの範囲外であり、汎用プログラム言語で書か
れた応用プログラムを作成し、これらの機能を追加する
ことが多い。
Further, the conventional method for checking the validity of data is
There are format check, type check, value check, and balance check. , Is a check as to whether the number of digits of data and the type of data (alphanumeric characters, kana characters, etc.) are as defined, and this is performed by the database management system when normal data is input to the database. Is a check to see if the value is meaningless even if the data format and type are correct, and a limit check is performed. Is a logical check that the value of a specific item has a relationship with the content of another item, and when one value changes, the other item must be changed in connection with it. , Is usually outside the scope of a database management system, and often creates application programs written in general-purpose programming languages to add these functions.

【0005】[0005]

【発明が解決しようとする課題】上記の従来技術では、
あるデータを更新しようとした場合、他のデータベー
ス,ファイル,レコードあるいはフィールドといった各
々のレベルに存在する関連したデータを変更させるに
は、バランスチェックといった論理的チェックや、転置
ファイルといった索引を生成するファイルを利用し、デ
ータの更新を行った。しかし、バランスチェックでは、
論理的に関連のないあるいは、関連づけることができな
かったデータを変更させることはできない。また転置フ
ァイルは余分な記憶場所が必要であり、データ更新が激
しい環境では索引の保守が重荷になるといったことが見
られた。結果としてあるアイテムのデータを検索によっ
て取り出した場合、そのアイテムに対する真値に対し、
複数の真値とは異なる価値のデータが存在し、どれが正
しいデータかわからなくなるといった問題があった。
SUMMARY OF THE INVENTION In the above prior art,
A file that creates a logical check, such as a balance check, or an index, such as a transposed file, when you try to update some data, to change the associated data at each level, such as other databases, files, records or fields. Was used to update the data. However, in the balance check,
Data that is logically irrelevant or could not be associated cannot be changed. It was also found that the transposed file requires an extra storage space, which makes maintenance of the index a burden in an environment where data is updated frequently. As a result, when the data of a certain item is retrieved by searching, for the true value for that item,
There is a problem that there is data with different values from the true values and it is difficult to know which is the correct data.

【0006】本発明の目的は、このようにあり特定のア
イテムに対し、真値があるデータを判定しデータベース
システムの信頼性を向上させることにある。
An object of the present invention is to improve the reliability of the database system by determining the data having a true value for such a specific item.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、本発明は検索によりある一つの真値に対し、複数こ
の異なる価値のデータが取り出された場合、取り出され
たデータに設定された施錠を意味するフラグの有無を確
認し、有の場合そのデータを真値と判定するルーチンを
データ管理システムに設けたものである。
In order to achieve the above-mentioned object, according to the present invention, when a plurality of data of different values are retrieved with respect to one true value by search, they are set to the retrieved data. The data management system is provided with a routine for confirming the presence or absence of a flag indicating locking and, if present, determining the data as a true value.

【0008】複数個のプロセス(タスク)が同時にデー
タベースを利用するとき、二重更新によるデータの一貫
性喪失防止のため、プロセスに施錠がなされている。施
錠にはデータを更新するための排他的なものとデータを
読みとるため共有的なものの2タイプがある。共有的に
施錠したプロセスどうしはデータベースの同時使用は認
められるが、排他的なものと他の施錠を施したものは同
時使用は認められない。同時にデータ側にも同様に更新
が可能なプロセスあるいはユーザに対し、ユーザLDま
たはパスワードによる使用制限(排他的施錠)を加える
ことができる。従って上述のデータに設定された施錠を
意味するフラグとは、データ群あるいはアイテムにつけ
られたユーザIDやパスワードをデータ管理システムで
読みとり、施錠されているデータであることを明確にす
るものである。検索により取り出されたデータのうち、
このようなフラグを持ったデータが、フラグを持たない
データに対し優先的なデータであることは明らかであ
る。従ってフラグを持ったデータが真値であると判定で
きる。
When a plurality of processes (tasks) use the database at the same time, the processes are locked to prevent loss of data consistency due to double update. There are two types of locking: an exclusive one for updating data and a common one for reading data. Co-locked processes are allowed to use the database concurrently, but exclusive and other locked processes are not allowed to be used simultaneously. At the same time, it is possible to impose a use restriction (exclusive lock) by the user LD or a password on a process or user that can be updated on the data side as well. Therefore, the flag set to the above-mentioned data, which means the lock, means that the user ID or password attached to the data group or the item is read by the data management system to clarify that the data is the locked data. Of the data retrieved by the search,
It is obvious that the data having such a flag has priority over the data having no flag. Therefore, it can be determined that the data having the flag is a true value.

【0009】また検索した一つの真値をもつデータのう
ち複数のデータに施錠されていることも考えらる。この
場合データのアイテムはどのプロセスもしくはユーザに
対し優先的に更新されるべきかを、あらかじめ決めてお
くか、論理的判断を自動でできるよう判断の材量をデー
タ化しておくことにより、フラグを立てるデータを判定
することができる。
It is also possible that a plurality of data among the retrieved data having one true value are locked. In this case, it is necessary to determine in advance which process or user the data item should be updated with, or to convert the logical quantity into data so that a logical judgment can be made automatically. The data to be set can be determined.

【0010】[0010]

【作用】データシステムでは、データの二重更新を防ぐ
ためにデータやプロセス(タスク)に施錠することは、
通常よく行われていることである。本発明では、この施
錠のステータスを利用し、検索されたデータのうち、ど
れが真値であるかを判定するのであるから、データを読
み取るだけでデータ入力時に判定用のデータを付加する
こともない。従ってデータ長の増大や、データ加工によ
る内容の変質といった事象も発生しない。
In the data system, locking data or processes (tasks) to prevent double updating of data is
It is a common practice. In the present invention, since the locked status is used to determine which of the retrieved data is the true value, it is possible to add the determination data at the time of data input simply by reading the data. Absent. Therefore, an event such as an increase in data length or alteration of contents due to data processing does not occur.

【0011】[0011]

【実施例】以下、実施例の構成を図1により説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The configuration of the embodiment will be described below with reference to FIG.

【0012】本発明によるデータベースシステムは、ハ
ード的にはホスト計算機1,端末2,及びデータベース
3から構成されている。場合によってはモデム7を介し
て通信回路により別のデータベースシステム8とデータ
のやりとりを行う場合も考えられる。このようなハード
の構成は図2に示すように従来のデータベースシステム
と変わりは無い。
The database system according to the present invention is composed of a host computer 1, a terminal 2, and a database 3 in terms of hardware. In some cases, it may be possible to exchange data with another database system 8 via a communication circuit via the modem 7. Such a hardware configuration is the same as that of the conventional database system as shown in FIG.

【0013】ソフトウェア面では、従来のデータシステ
ムでは、図2に示すように、データベース管理システム
2と応用プログラム3によりデータの処理を行ってい
る。データ処理の役割から見ると応用プログラム3はデ
ータの追加,削除,更新,読み出し及び検索といったデ
ータ処理を行うのに対し、データベース管理システム2
では、利用者/端末/応用プログラム/データベース各
々の間での使用権の正当性をチェック,アクセス状況の
モニタリング及びデータベースの保守管理といった処理
を実施している。本発明ではこのデータベース管理シス
テム2の機能に真値判定機能1を追加したものである。
真値判定機能2は特定アイテムに関するデータを検索に
より取り出した時、一つの真値に対し複数の異なる内容
のデータが存在した場合、どのデータが真値であるかを
判定するものである。
In terms of software, in the conventional data system, as shown in FIG. 2, data processing is performed by the database management system 2 and the application program 3. Seen from the role of data processing, the application program 3 performs data processing such as data addition, deletion, update, read, and search, whereas the database management system 2
In the above, processing such as checking the validity of the usage right among the user / terminal / application program / database, monitoring the access status, and maintaining and managing the database is carried out. In the present invention, the true value judgment function 1 is added to the function of the database management system 2.
The true value judging function 2 judges which data is the true value when a plurality of data having different contents exist for one true value when the data regarding the specific item is retrieved by the search.

【0014】判定の方法はデータに排他的施錠が施され
ているかどうかを調べ、排他的施錠がデータに付与され
ているものを真値に近いものと見なす。以下、図3,図
4をもとに判定の手順を説明する。
The determination method checks whether or not the data is exclusively locked, and considers that the data is exclusively locked as being close to the true value. The determination procedure will be described below with reference to FIGS.

【0015】図3は、データへの施錠のレベルを表示し
たものである。データのまとまりとしては、最小単位か
ら順に単一レコード,レコード群,ファイル,ファイル
群,ボリューム及びボリューム群からなる、施錠はこれ
ら各レベルのまとまりに対し施されている。施錠には排
他的なものと共有的なものがあるが、これはあるデータ
にアクセスしようとしているプロセス(タスク)ユー
ザ、あるいは応用プログラムに対し排他的(更新可)で
あるか共有的(読み取りのみ)であるかをパスワード等
によりチェックするものである。従って、排他的なアク
セス(プロセス,ユーザ等の総称)は何かを特定し、検
索により得ようとしているデータに対し、最上流もしく
は最優先のアクセスを選定することにより、検索により
抽出された複数のデータのうち、選定されたアクセスに
対して排他的施錠を持ったデータが任意に一つ決めるこ
とができる。図4に上記のフローチャートを示す。
FIG. 3 shows the level of locking the data. A group of data is composed of a single record, a group of records, a file, a group of files, a volume and a group of volumes in order from the smallest unit. Locking is applied to each group of these levels. Locking can be either exclusive or shared. This is either exclusive (updatable) or shared (read only) for the process (task) user or application program that is trying to access certain data. ) Is checked by a password or the like. Therefore, by specifying what is exclusive access (general term for processes, users, etc.) and selecting the most upstream or highest priority access to the data to be obtained by the search, the multiple extracted by the search Among these data, one data having an exclusive lock for the selected access can be arbitrarily determined. FIG. 4 shows the above flowchart.

【0016】最上流もしくは最優先のアクセスの選定は
人間がインプットして決めることもできるが、検索条件
からルールベース推論等を用いてアクセスの選定を行う
こともできる。
The choice of the most upstream access or the highest priority access can be made by human input, but the access can also be selected from the search conditions by using rule-based reasoning or the like.

【0017】[0017]

【発明の効果】本発明によれば検索により抽出されたデ
ータが真値に対し、一つに決まることからデータの信頼
性が高まることになる。また真値でないと判定されたデ
ータについては、真値ではない旨のアナウンスをしてお
くことでそのデータに対し排他的なアクセスにより別途
真値に訂正できるというメリットもある。このような機
能を追加することは上述のような効果のみならずデータ
ベースシステム全体としてデータの質を結果的に高める
ことができる。
According to the present invention, the reliability of the data is improved because the data extracted by the search is determined as one true value. In addition, for data that is determined not to be a true value, there is an advantage that an announcement that the data is not a true value allows the data to be separately corrected to a true value by exclusive access. Adding such a function can not only improve the above-mentioned effects but also improve the quality of data as a whole database system.

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

【図1】本発明によるデータベースシステムのブロック
図。
FIG. 1 is a block diagram of a database system according to the present invention.

【図2】従来のデータシステムのブロック図。FIG. 2 is a block diagram of a conventional data system.

【図3】データの構造説明図。FIG. 3 is an explanatory diagram of a data structure.

【図4】真値判定のフローチャート。FIG. 4 is a flowchart of true value determination.

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

1…ホスト計算機、2…データベース管理システム、3
…応用プログラム、4…真値判定機能、5…端末、6…
データベース、7…モデム、8…別のデータベースシス
テム。
1 ... Host computer, 2 ... Database management system, 3
… Application program, 4… True value judgment function, 5… Terminal, 6…
Database, 7 ... Modem, 8 ... Another database system.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】一つあるいは複数のデータベースと、それ
らデータベースに保存しているデータの追加,削除,更
新,読み出し,検索及び、データのセキュリティ管理を
行うデータベース管理システムと、データへのアクセス
を行う端末装置とから成るシステムにおいて、特定のア
イテムに関するデータを検索により取り出した時、複数
の異なる内容のデータが存在する場合、どのデータが真
値であるかをデータにフラグを立てることで判定する機
能をデータ管理システムに設けたことを特徴とするデー
タベースシステム。
1. A database management system for performing one or a plurality of databases, adding, deleting, updating, reading and searching of data stored in these databases and security management of the data, and accessing the data. In a system consisting of a terminal device, when data related to a specific item is retrieved by search, if there are multiple different data contents, a function to determine which data is the true value by setting a flag in the data A database system characterized by being provided in the data management system.
JP5173949A 1993-07-14 1993-07-14 Database system Pending JPH0728683A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5173949A JPH0728683A (en) 1993-07-14 1993-07-14 Database system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5173949A JPH0728683A (en) 1993-07-14 1993-07-14 Database system

Publications (1)

Publication Number Publication Date
JPH0728683A true JPH0728683A (en) 1995-01-31

Family

ID=15970057

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5173949A Pending JPH0728683A (en) 1993-07-14 1993-07-14 Database system

Country Status (1)

Country Link
JP (1) JPH0728683A (en)

Similar Documents

Publication Publication Date Title
US5930793A (en) Performance optimization in a heterogeneous, distributed database environment
US6601023B1 (en) Method for impact analysis of a model
US7058663B2 (en) Automatic data update
KR920000395B1 (en) How to Fetch and Insert and Delete Key Record Data
US5748952A (en) System and method for avoiding complete index tree traversals in sequential and almost sequential index probes
US6772155B1 (en) Looking data in a database system
US5469576A (en) Front end for file access controller
US5826268A (en) Secure multilevel object oriented database management system
US5596748A (en) Functional compensation in a heterogeneous, distributed database environment
KR100628426B1 (en) Systems and methods for selectively defining access to application functions
US5265244A (en) Method and system for facilitating processing of statistical inquires on stored data accessible through a data access structure
US6934717B1 (en) Database access
US6484181B2 (en) Method and system for handling foreign key update in an object-oriented database environment
US20070118547A1 (en) Efficient index versioning in multi-version databases
US6804680B2 (en) Extensible database
US4833597A (en) Dictionary/directory management method in database system
US6859919B1 (en) Object modeling tool with meta model semantic registry (rules) a meta data manager for object(s) properties an object/property interface for instance(s) of objects/properties received via object/property interface of the object factory registry
US20030200193A1 (en) Fast retrieval of data stored in metadata
US7152201B2 (en) Write control method, structured document management apparatus, structured document edit apparatus, and program product
US7653663B1 (en) Guaranteeing the authenticity of the data stored in the archive storage
US20040236744A1 (en) Method for ensuring referential integrity in highly concurrent datbase environments
US5129081A (en) System for processing data using logic language
JPH0728683A (en) Database system
JP2747009B2 (en) Record addition method for indexed sequential files
JPH04291636A (en) Data structure manipulation method