JP2000187603A - System and device for supporting data base design/ maintenance - Google Patents

System and device for supporting data base design/ maintenance

Info

Publication number
JP2000187603A
JP2000187603A JP10366342A JP36634298A JP2000187603A JP 2000187603 A JP2000187603 A JP 2000187603A JP 10366342 A JP10366342 A JP 10366342A JP 36634298 A JP36634298 A JP 36634298A JP 2000187603 A JP2000187603 A JP 2000187603A
Authority
JP
Japan
Prior art keywords
change
rdb
model
definition information
entity
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
JP10366342A
Other languages
Japanese (ja)
Inventor
Kenji Kitada
賢司 北田
Kenichi Katada
健一 片田
Etsushi Oku
悦史 奥
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 JP10366342A priority Critical patent/JP2000187603A/en
Publication of JP2000187603A publication Critical patent/JP2000187603A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To reduce the man-hour of work of system designer and RDB manager by changing change sports distributed over plural RDB corresponding to the change spots at the time of designing/maintaining a system composed of plural RDB while using a unified ER model. SOLUTION: A work 315 for change message storage is provided as an area for managing the processing state of a change request message transmitted to a DBMS. Then, an ER model change processing part 311 and an ER change message processing part 314 transmit the data of the work 315 for change message storage prepared based on respective information in an ER change request table 313 and ER model definition information 312 to the RDB as a message. Based on the received change message, a DBMS 61 changes RDB definition information 7. By performing processing while utilizing such respective definition information, the RDB definition information in the case of generating a change in the ER model definition information 312 can be simultaneously changed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、データモデルが複
数の分散したDB上で実装される場合において、データ
モデルを中心にしたシステムの設計・保守時におけるデ
ータモデルとDB上に実装されるテーブル間の整合性維
持の方法に関する。
BACKGROUND OF THE INVENTION The present invention relates to a data model and a table mounted on a DB at the time of designing and maintaining a system centered on the data model when the data model is mounted on a plurality of distributed DBs. And a method of maintaining consistency between them.

【0002】[0002]

【従来の技術】従来のデータベース設計支援技術は、特
開平7−325835号公報に開示されている。例え
ば、事前に分析して作成したデータモデル(ERモデ
ル)に表現されている情報に基づき、ユーザが指定をす
ることでデータベース検索文を生成する機能であり、D
Bの設計を支援する機能ではなかった。
2. Description of the Related Art A conventional database design support technology is disclosed in Japanese Patent Application Laid-Open No. 7-325835. For example, based on information expressed in a data model (ER model) created by analysis in advance, a function of generating a database search sentence by designating by a user.
It was not a function to support the design of B.

【0003】さらに、RDBにより実現されるシステム
の設計を支援する技術としては、ERモデリング支援ツ
ールとRDBの連携を行う機能としてフォワード(ER
モデル→RDB定義の生成)/リバース(RDB定義→
ERモデルの生成)エンジニアリング機能が知られてい
るが、フォワード/リバースエンジニアリング機能では
ERモデルの定義情報と複数のRDBのデータ連携を支
援する機能を持たない。このため、1システムが複数の
RDBで実現される場合に、システムの設計及び保守の
中でERモデルに変更が発生し、その変更が複数のRD
Bに及ぶ場合には、変更個所を特定し変更の必要な個所
が実装されるそれぞれのRDB定義情報を変更する作業
を手作業で行う必要があり、ERモデルの変更を一括の
操作で複数のRDB定義情報に反映することができなか
った。
Further, as a technology for supporting the design of a system realized by the RDB, a forward (ER) function is provided as a function of linking the ER modeling support tool and the RDB.
Model → Generate RDB definition) / Reverse (RDB definition →
(Generation of ER model) An engineering function is known, but the forward / reverse engineering function does not have a function of supporting data linkage between ER model definition information and a plurality of RDBs. For this reason, when one system is realized by a plurality of RDBs, a change occurs in the ER model during system design and maintenance, and the change is performed by a plurality of RDs.
In the case of B, it is necessary to manually perform the work of identifying the location to be changed and changing each RDB definition information in which the location that needs to be implemented is implemented. It could not be reflected in the RDB definition information.

【0004】また、RDB間のデータの整合性を保持す
るための既存の技術としては、2フェーズコミット、レ
プリケーションといった、テーブルに格納されるデータ
間の整合性を維持するための技術は実現されているが、
RDBの設計・保守の段階での分散したRDBの設計情
報を変更する際に、ERモデルとRDBの定義情報間の
整合性を維持するための技術は存在しなかった。
As existing techniques for maintaining data consistency between RDBs, techniques for maintaining consistency between data stored in tables, such as two-phase commit and replication, have been realized. But
There has been no technique for maintaining consistency between the ER model and RDB definition information when changing distributed RDB design information at the RDB design / maintenance stage.

【0005】[0005]

【発明が解決しようとする課題】本発明の目的は、複数
のRDBで実現されるシステムを統一したERモデルを
用いて設計・保守する場合において、ERモデル定義情
報が変更された場合には、変更箇所に対応した複数のR
DBに分散する変更箇所を変更することで、システム設
計者及びRDB管理者の作業工数を軽減する。
SUMMARY OF THE INVENTION An object of the present invention is to design and maintain a system realized by a plurality of RDBs using a unified ER model. Multiple Rs corresponding to changes
The number of work steps of the system designer and the RDB administrator can be reduced by changing the change portion distributed to the DB.

【0006】[0006]

【課題を解決するための手段】本発明では、上記課題を
解決する手段として、従来のERモデリング支援ツール
に対して入力されたERモデル定義情報(312)の変
更を行うためのER定義変更処理部(311)、ERモ
デル定義情報の変更要求を格納するためのER変更要求
テーブル(313)、メッセージの送受信機能をもつE
R変更メッセージ処理部(314)、DBMSに対して
送信した変更要求メッセージの処理状態を管理するため
の領域として変更メッセージ格納用ワーク(315)を
設ける。ERモデル定義情報(312)には、実体情報
(3121)、実体・テーブル対応情報(3123)、
参照制約対応情報(3122)が含まれる。
According to the present invention, as a means for solving the above-mentioned problems, an ER definition changing process for changing ER model definition information (312) inputted to a conventional ER modeling support tool is performed. Unit (311), an ER change request table (313) for storing a change request for ER model definition information, and E having a message transmission / reception function.
The R change message processing unit (314) is provided with a change message storage work (315) as an area for managing the processing state of the change request message transmitted to the DBMS. The ER model definition information (312) includes entity information (3121), entity / table correspondence information (3123),
Reference constraint correspondence information (3122) is included.

【0007】ERモデル変更処理部(311)及びER
変更メッセージ処理部(314)は、ER変更要求テー
ブル(313)、ERモデル定義情報(312)中の各
情報を基にして作成した変更メッセージ格納用ワーク
(315)のデータをRDBにメッセージとして送信
し、DBMS(61)は受信した変更メッセージを基に
RDB定義情報(7)を変更する。
ER model change processing unit (311) and ER
The change message processing unit (314) transmits the data of the change message storage work (315) created based on each information in the ER change request table (313) and the ER model definition information (312) as a message to the RDB. Then, the DBMS (61) changes the RDB definition information (7) based on the received change message.

【0008】以上のような各定義情報を利用し手順に従
い処理を行うことで、ERモデル定義情報(312)に
変更が発生した場合のRDB定義情報変更を一括で行う
ことが可能となる。
[0008] By performing processing according to the procedure using the above-described definition information, it becomes possible to change the RDB definition information in a batch when the ER model definition information (312) is changed.

【0009】[0009]

【発明の実施の形態】以下、本発明の一実施形態につい
て図面を用いて詳細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below in detail with reference to the drawings.

【0010】図1は、本発明が適用される電子計算機の
ハードウェアおよびプログラムの構成図である。表示装
置(1)はERモデリング支援ツール(31)が管理す
るERモデル定義情報(312)の情報を電子計算機利
用者に対し表示するための装置である。入力装置(2)
は表示装置(1)に表示されたERモデル定義情報(3
12)の内容を電子計算機利用者が変更する際に、変更
要求をERモデリング支援ツール(31)に対する指示
を入力するための装置である。処理装置(3)はERモ
デリング支援ツール(31)を実行するための電子計算
機である。
FIG. 1 is a configuration diagram of hardware and a program of a computer to which the present invention is applied. The display device (1) is a device for displaying information of ER model definition information (312) managed by the ER modeling support tool (31) to a computer user. Input device (2)
Is the ER model definition information (3) displayed on the display device (1).
This is a device for inputting an instruction to the ER modeling support tool (31) for a change request when the computer user changes the content of 12). The processing device (3) is an electronic computer for executing the ER modeling support tool (31).

【0011】ER定義変更処理部(311)は、入力装
置(2)から入力された変更要求、およびER変更メッ
セージ処理部(314)を介して受信したRDB定義情
報(7)の変更メッセージを受け取り、ERモデル定義
情報(312)の内容をもとにERモデル中に発生する
変更箇所特定のための処理を行うとともに、変更箇所を
変更要求としてER変更要求テーブル(313)に記録
し、変更要求が発生したことをER変更メッセージ処理
部(314)に通知する機能をもつ。ERモデル定義情
報(312)は、ERモデルの定義情報を格納するため
の記憶領域であり、その領域内にはさらに実体情報(3
121)、実体・テーブル対応情報(3123)、参照
制約対応情報(3122)、の3つのデータを記憶する
ための領域を持つ。
The ER definition change processing unit (311) receives a change request input from the input device (2) and a change message of the RDB definition information (7) received via the ER change message processing unit (314). , Based on the contents of the ER model definition information (312), a process for specifying a changed portion occurring in the ER model is performed, and the changed portion is recorded as a change request in the ER change request table (313), and the change request is recorded. ER change message processing unit (314). The ER model definition information (312) is a storage area for storing the definition information of the ER model.
121), entity / table correspondence information (3123), and reference constraint correspondence information (3122).

【0012】変更メッセージ処理部(314)はER定
義情報(312)への変更要求が発生したことをER定
義変更処理部(311)から通知された際に、ERモデ
ル定義情報(312)及びER変更要求テーブル(31
3)に記録されたデータをもとにして、ERモデル定義
情報(312)とRDB定義情報(7)の不整合が発生
することを防ぐために、行うべきRDB定義情報(7)
の変更をDBMS(61)に変更要求として送信するた
めの変更メッセージを作成し、作成したRDB定義情報
(7)の変更要求としての変更メッセージを変更メッセ
ージ格納用ワーク領域(315)に記録する機能をも
つ。
When the change message processing unit (314) is notified by the ER definition change processing unit (311) that a change request to the ER definition information (312) has been issued, the ER model definition information (312) and the ER Change request table (31
RDB definition information (7) to be performed based on the data recorded in 3) to prevent inconsistency between the ER model definition information (312) and the RDB definition information (7).
For creating a change message for transmitting the change of the RDB definition information to the DBMS (61) as a change request, and recording the created change message as a change request for the RDB definition information (7) in the change message storage work area (315). With.

【0013】図2は、実施形態で取り上げたERモデル
と、そのERモデルが複数の処理装置上のRDBに実現
された場合を例として取り上げた概念図である。また、
図3以下の各図中のデータ例は、図2中のERモデル、
ERモデルを処理装置a(81)、処理装置b(82)
に実現した例をもとにしている。
FIG. 2 is a conceptual diagram taking as an example an ER model taken up in the embodiment and a case where the ER model is realized in RDBs on a plurality of processing devices. Also,
The data example in each figure after FIG. 3 is the ER model in FIG.
ER model is processed by processing device a (81), processing device b (82)
Based on the example realized in

【0014】図3は、実施形態の実体情報(3121)
のデータ構成図である。実体情報(3121)はERモ
デルに表現される情報のうちそれぞれの実体情報につい
てのデータを格納するための領域である。
FIG. 3 shows the entity information (3121) of the embodiment.
FIG. 4 is a data configuration diagram of FIG. The entity information (3121) is an area for storing data on each entity information among the information expressed in the ER model.

【0015】図4は、実施形態の実体・テーブル対応情
報(3123)のデータ構成図であり、ERモデル中に
現れる実体がテーブルとして実際にRDBに構築されて
いる場合の、実体とテーブル間の対応関係を示す。
FIG. 4 is a data configuration diagram of the entity / table correspondence information (3123) according to the embodiment. In the case where the entity appearing in the ER model is actually constructed as a table in the RDB, the relationship between the entity and the table is shown. The correspondence is shown.

【0016】図5は、実施形態の参照制約対応情報(3
122)のデータ構成図であり、ERモデル中の参照キ
ーが参照制約としてRDB上に定義される場合のデータ
の構成を示している。
FIG. 5 shows reference constraint correspondence information (3
FIG. 122 is a data configuration diagram of FIG. 122), illustrating a data configuration when a reference key in the ER model is defined on the RDB as a reference constraint.

【0017】図6は、実施形態のER変更要求テーブル
(313)のデータ構成図である。
FIG. 6 is a data configuration diagram of the ER change request table (313) of the embodiment.

【0018】図7は、実施形態のER変更要求テーブル
(313)の変更内容欄に入るデータがとりうる値の組
あわせを示したものである。
FIG. 7 shows combinations of values that can be taken by data in the change content column of the ER change request table (313) of the embodiment.

【0019】図8は、実施形態の変更メッセージ格納用
ワーク(315)のデータ構成図であり、図6中に示す
変更要求が発生した場合にER変更メッセージ処理部
(314)が変更メッセージ格納用ワーク(315)に
記録する変更メッセージの内容を示している。
FIG. 8 is a diagram showing the data structure of a work (315) for storing a change message according to the embodiment. When a change request shown in FIG. 6 occurs, the ER change message processing unit (314) stores the change message. The content of the change message recorded on the work (315) is shown.

【0020】図9は、実施形態のER変更メッセージ格
納用ワーク(315)のデータがとりうる値の組あわせ
を示したものである。図中のデータ値は図7の内容とほ
ぼ同じであり、異なるのは図7の“実体”が実際のDB
を意識した“テーブル”に置き換わっている点である。
FIG. 9 shows combinations of values that can be taken by data of the ER change message storage work (315) of the embodiment. The data values in the figure are almost the same as those in FIG. 7, and the difference is that the “entity” in FIG.
The point is that it has been replaced with a “table” that is conscious of

【0021】図10は、実施形態において、入力装置か
らERモデル定義情報(312)の変更指示が入力され
た場合の、全体処理の流れを示すフローチャートであ
る。
FIG. 10 is a flowchart showing the flow of the entire process when an instruction to change the ER model definition information (312) is input from the input device in the embodiment.

【0022】図11は、実施形態において、入力装置
(2)からERモデル定義情報(312)を変更する指
示が入力された場合の、ERモデリング支援ツール(3
1)の処理を示すフローチャートである。
FIG. 11 shows an ER modeling support tool (3) when an instruction to change the ER model definition information (312) is input from the input device (2) in the embodiment.
It is a flowchart which shows the process of 1).

【0023】本実施例では入力装置(2)から変更指示
を入力して、ERモデリング支援ツール(31)のER
モデル定義情報(312)中にある実体C(802)の
項目“c2”の項目名を“c2′”に変更する際の処理
を例としてフローチャートの流れに沿って以下に説明す
る。例を示すための前提として、システム開発の設計・
保守の工程において、ERモデリング支援ツール(3
1)とDBMS(61)の連携を考える。ERモデリン
グ支援ツール(31)とは、ER(エンティティリレー
ション:実体関連)モデルに基づいたシステム設計・開
発を行う際に使用するプログラムであり、ERモデルを
図として表現したER図の編集、表示、記録を支援する
機能をもつ。実体とは、業務で扱う人、物、出来事、な
どを示すものであり、「社員」、「商品」、「受注」な
どを表わす。
In this embodiment, a change instruction is input from the input device (2), and the ER of the ER modeling support tool (31) is changed.
The process of changing the item name of the item “c2” of the entity C (802) in the model definition information (312) to “c2 ′” will be described below along the flow of the flowchart as an example. As a prerequisite to show an example,
ER modeling support tool (3
Consider cooperation between 1) and DBMS (61). The ER modeling support tool (31) is a program used when performing system design / development based on an ER (entity relation: entity relation) model, and edits, displays, and displays an ER model as a diagram. Has a function to support recording. The entity indicates a person, an object, an event, and the like handled in the business, such as “employee”, “product”, and “order”.

【0024】ERモデルとは、実体間の関連構造のこと
をいい、通常ERモデルはER図を用いて表現される。
本実施例の初期状態では、ERモデリング支援ツール
(31)中のERモデル定義情報(312)にはERモ
デル(80)の定義情報とDBの定義情報が格納されて
いる。ERモデル(80)に格納されるシステムの定義
情報は、概念図図2に示す内容が格納されている。
The ER model refers to a relational structure between entities, and the ER model is usually represented using an ER diagram.
In the initial state of the present embodiment, ER model definition information (312) in the ER modeling support tool (31) stores ER model (80) definition information and DB definition information. The system definition information stored in the ER model (80) stores the contents shown in the conceptual diagram of FIG.

【0025】図2では、ある業務をシステム化する際の
システム構成要素がERモデルとして実体A(80
1)、実体B(803)、実体C(802)、実体D
(804)という4つの実体として捉えられ、さらにそ
れぞれの実体が関連を持ったモデルとして表現されてい
ることを示している。また、処理装置a(81)では、
ERモデル(80)中に表現される実体A(801)、
実体B(803)、実体C(802)が、それぞれ、テ
ーブルAa(811)、テーブルBa(812)、テー
ブルCa(813)として関連を保持した状態で実現さ
れており、処理装置b(82)では、ERモデル(8
0)中に表現される実体C(802)、実体D(80
4)がそれぞれ、テーブルCb(821)、テーブルD
b(822)として関連を保持した状態で実現されてい
ることを示している。
In FIG. 2, a system component for systematizing a certain business is an entity A (80) as an ER model.
1), entity B (803), entity C (802), entity D
(804), which indicates that each entity is represented as an associated model. In the processing device a (81),
Entity A (801) represented in the ER model (80),
The entity B (803) and the entity C (802) are implemented as tables Aa (811), tables Ba (812), and tables Ca (813) in a state where the associations are held, respectively, and the processing device b (82) Then, the ER model (8
0), entity C (802), entity D (80
4) are table Cb (821) and table D, respectively.
b (822) indicates that the association is realized in a state where the association is held.

【0026】図2の概念図は図1において、ERモデル
(80)がERモデル定義情報(312)に記録され、
処理装置a(81)上で実現されるテーブルAa(81
1)、テーブルBa(812)、テーブルCa(81
3)が処理装置(6)に接続されるRDB定義情報
(7)中のテーブルの定義情報として構築されることを
示している。処理装置b(82)上で実現されるテーブ
ルCb(821)、テーブルDb(822)は、図1中
の2つの処理装置(6)に相当するネットワークで接続
された処理装置上のDBMSで管理されるRDB定義情
報中の定義情報として構築されることとなる。
In the conceptual diagram of FIG. 2, an ER model (80) is recorded in ER model definition information (312) in FIG.
The table Aa (81) realized on the processing device a (81)
1), table Ba (812), table Ca (81)
3) is constructed as table definition information in the RDB definition information (7) connected to the processing device (6). A table Cb (821) and a table Db (822) realized on the processing device b (82) are managed by a DBMS on a processing device connected to a network corresponding to the two processing devices (6) in FIG. It is constructed as definition information in the RDB definition information to be performed.

【0027】さらに、ERモデルに記述されたそれぞれ
の実体とその関連に示されるように、システム稼動中に
は、処理装置a(81)において実現されるテーブル中
のデータと、処理装置b(82)において実現されるテ
ーブル中のデータは、協調して1つのシステムとして機
能することを保証するためのアプリケーションにより関
連をもって稼動することを示している。ERモデル定義
情報(312)は実体情報(3121)、実体・テーブ
ル対応情報(3123)、参照制約対応情報(312
2)から構成されており、ERモデル(80)の定義情
報は図3〜図5に示すデータ構成で格納されている。
Further, as shown in the respective entities described in the ER model and their relations, during the operation of the system, the data in the table realized in the processor a (81) and the data in the processor b (82) ) Indicates that the data in the table implemented in association with the application to ensure that it functions as one system in cooperation. The ER model definition information (312) includes entity information (3121), entity / table correspondence information (3123), and reference constraint correspondence information (312).
2), and the definition information of the ER model (80) is stored in the data configuration shown in FIGS.

【0028】図10に示す、本発明の実施例の処理フロ
ーに従い以下に説明する。
The following is a description according to the processing flow of the embodiment of the present invention shown in FIG.

【0029】まず、手順利用者が入力装置(2)からE
Rモデル(80)の実体C(802)の項目“c2”を
項目名“c2′”に変更する要求を入力すると、ER定
義変更処理部(311)がその変更情報を受け付ける。
(901) 次に、本発明の手順では、ER定義変更処理部(31
1)は変更要求に基づき図3に示す実体情報(312
1)内のデータを検索し、要求された変更に対し、関連
する変更箇所を特定し変更要求テーブルに書き込む。
(902) 上記902の処理の詳細な手順を図11に示すフローチ
ャートに従い説明する。
First, the procedure user inputs E from the input device (2).
When a request to change the item “c2” of the entity C (802) of the R model (80) to the item name “c2 ′” is input, the ER definition change processing unit (311) receives the change information.
(901) Next, in the procedure of the present invention, the ER definition change processing unit (31)
1) is based on the entity information (312) shown in FIG.
The data in 1) is searched, and for the requested change, the relevant change portion is specified and written to the change request table.
(902) The detailed procedure of the process of 902 will be described with reference to the flowchart shown in FIG.

【0030】入力された、変更要求は実体C(802)
の項目“c2”の名称を“c2′”に変更することであ
る。まず、ER定義変更処理部(311)は実体情報
(3121)、実体・テーブル対応情報(3123)、
参照制約対応情報(3122)の内容をもとに、変更要
求に関連して発生する変更箇所を変更要求テーブル(3
13)に書き込む。(1001) 変更要求から変更要求テーブル(313)に書き込むデ
ータを作成する際に、ER定義変更処理部(311)は
実体情報(3121)を参照する。実体情報(312
1)には、図2の概念図で示すERモデル(80)中の
各実体についての情報が格納されており、図3に示す実
体情報(3121)のデータ構成中の実体B(803)
の情報から、実体B(803)を構成する項目が“a
1”,“a2”,“c1”,“c2”,“b1”・・・
“bn”であり、“a1”,“a2”,“c1”,“c
2”が実体B(803)の主キーを構成していることが
わかる。
The input change request is entity C (802).
Is changed to “c2 ′”. First, the ER definition change processing unit (311) includes entity information (3121), entity / table correspondence information (3123),
Based on the contents of the referential constraint correspondence information (3122), a change location that occurs in connection with the change request is specified in the change request table (3122).
Write to 13). (1001) When creating data to be written to the change request table (313) from the change request, the ER definition change processing unit (311) refers to the entity information (3121). Entity information (312
1) stores information on each entity in the ER model (80) shown in the conceptual diagram of FIG. 2, and the entity B (803) in the data configuration of the entity information (3121) shown in FIG.
From the information of item (a), the item constituting entity B (803) is "a
1 "," a2 "," c1 "," c2 "," b1 "...
“Bn”, “a1”, “a2”, “c1”, “c”
2 "constitutes the primary key of entity B (803).

【0031】主キーを構成する項目には主キー属性フラ
グがセットされ、フラグを、データ構成では記号“K”
で示している。さらに“a1”,“a2”および“b
1”,“b2”はそれぞれ“参照制約1”、“参照制約
2”を構成しており、“参照制約1”の項目が参照する
実体は実体A(801)、“参照制約2”の項目が参照
する実体は実体C(802)であることを示している。
この表中の参照制約番号は、各々の参照制約を識別する
ための番号であり、参照制約を構成する項目のセットを
記述するために定義される。例えば、データ構成では
“実体B”の実体構成項目欄に記述された項目“a
1”,“a2”が、参照制約番号欄に記述された番号が
“1”の参照制約であることを示しており、この参照制
約番号は、図中では表の上方から一連の番号が付与され
ている。
A primary key attribute flag is set in an item constituting the primary key, and the flag is set to a symbol "K" in the data configuration.
Indicated by. Further, “a1”, “a2” and “b”
“1” and “b2” constitute “reference constraint 1” and “reference constraint 2”, respectively. The entity referred to by the item of “reference constraint 1” is entity A (801) and the item of “reference constraint 2”. Indicates that the entity referred to is entity C (802).
Reference constraint numbers in this table are numbers for identifying each reference constraint, and are defined to describe a set of items constituting the reference constraint. For example, in the data configuration, the item “a” described in the entity configuration item column of “entity B”
“1” and “a2” indicate that the number described in the reference constraint number column is a reference constraint of “1”, and a series of numbers are assigned to this reference constraint number from the top of the table in the figure. Have been.

【0032】変更要求の内容が、実体C(802)の項
目“c2”の名称変更であるので、要求された変更に関
連して発生する影響範囲は、図3に示す実体情報(31
21)のデータ構成から、実体C(802)の項目“c
2”、実体B(803)の項目“c2”(参照先実体が
実体C(803)である)、実体D(804)の項目
“c2”(参照先実体が実体C(802)である)であ
ることがわかり、この内容を最初にER変更要求テーブ
ル(313)に書き込む。ER変更要求テーブル(31
3)に書き込まれるデータは図6に示すデータ構成とな
る。
Since the content of the change request is a change in the name of the item "c2" of the entity C (802), the range of influence that occurs in connection with the requested change is the entity information (31) shown in FIG.
From the data structure of 21), the item “c” of the entity C (802)
2 ", item" c2 "of entity B (803) (reference destination entity is entity C (803)), item" c2 "of entity D (804) (reference destination entity is entity C (802)) Is written in the ER change request table 313. The ER change request table (31)
The data written in 3) has the data configuration shown in FIG.

【0033】図6中の“対象種別”欄は、変更要求の対
象の種別を表わし、“実体”、“項目”、“主キー”、
“参照制約”のいずれかの変更要求を識別するための値
が記録される。“変更種別”欄には、“対象種別”に対
する変更要求がどのような変更かを示し、“追加”、
“更新”、“削除”のいずれかを識別するための値が記
入される。“内容種別”欄は、“対象種別”欄に記述さ
れた値が“項目である場合、データ項目のもつ属性のう
ちどの内容が変更または更新されるかを示すものであ
る。“変更内容”欄の記述形式は、図7に示すように
“内容種別”欄に記録される値により、その組み合わせ
が決まる。図7に示す形式では、実体の削除の場合に
は、“対象種別”に値“実体”が記録され、“変更種
別”には値“削除”が記録され、“内容種別”には値が
記録されず、削除対象の“実体名”が“変更内容”の欄
に記録される。同様に、主キーの削除の場合には、“対
象種別”に値“主キー”、“変更種別”に値“削除”、
“内容種別”には値が記録されず、“変更内容”にも値
が記録されない。主キーに特に“変更内容”を記入しな
いのは、主キーが固有の名称を持たないためである。
The “target type” column in FIG. 6 indicates the type of the target of the change request, and includes “substance”, “item”, “primary key”,
A value for identifying one of the change requests of “reference constraint” is recorded. The “change type” column indicates what kind of change the change request for the “target type” includes,
A value for identifying either “update” or “delete” is entered. The “content type” column indicates which content of the attribute of the data item is changed or updated when the value described in the “target type” column is “item.” The description format of the column is determined by the value recorded in the "content type" column as shown in Fig. 7. In the format shown in Fig. 7, when the entity is deleted, the value is set to "object type". The “entity” is recorded, the value “deletion” is recorded in the “change type”, the value is not recorded in the “content type”, and the “entity name” to be deleted is recorded in the “change content” column. Similarly, in the case of deleting the primary key, the value “primary key” is set in “target type”, the value “delete” is set in “change type”,
No value is recorded in “content type”, and no value is recorded in “change content”. The reason why "change content" is not particularly entered in the primary key is that the primary key does not have a unique name.

【0034】さらに、参照制約を削除する場合には、
“対象種別”には値“参照制約”、“変更種別”には値
“削除”が記録され、“内容種別”には値が記録され
ず、“変更内容”には“参照制約番号”が記録される。
Further, when deleting a referential constraint,
The value “reference constraint” is recorded in “target type”, the value “delete” is recorded in “change type”, the value is not recorded in “content type”, and the “reference constraint number” is recorded in “change content”. Be recorded.

【0035】項目についての変更には、“削除”、“追
加”、“更新”の3種類の場合があり、“削除”、“追
加”についてはそれぞれ、項目そのものの変更、項目を
主キーに設定する変更、項目を参照キーに設定する変
更、がある。また、項目の“更新”については、項目を
構成する名称、タイプ、桁数の変更のみを許し、“主キ
ー”、“参照制約”の変更は“削除”、“追加”で行う
こととなる。
There are three types of changes to an item: "delete", "add", and "update". For "delete" and "add", the item itself is changed and the item is used as the primary key. There is a change to be set and a change to set an item as a reference key. Also, regarding the "update" of an item, only the change of the name, type, and number of digits constituting the item is allowed, and the change of "primary key" and "reference constraint" is performed by "delete" and "addition". .

【0036】また、データ構成図中の値の組み合わせに
は、実体の作成の場合、主キーの新規作成の場合、参照
制約の追加の場合についての値の組み合わせが記述され
ていないが、これらはそれぞれ、項目の追加、項目への
主キー追加、項目への参照制約設定で代用する。図7の
データ構成の1つを例に説明すると、“対象種別”−
“項目”、“変更種別”−“追加”、“内容種別”−
“参照制約”の場合の“変更内容”は、“参照制約番
号、項目名、参照制約内順序”であるが、実体中のある
項目を参照制約に組み込む場合には、どの参照制約に組
み込むか(“参照制約番号”)、どの項目を組み込むか
(“項目名”)、参照制約のどの位置に組み込むか
(“参照制約内順序”)といった情報が必要となり、
“変更内容”欄に記録することを示す。
Further, the combination of values in the data configuration diagram does not describe the combination of values in the case of creating an entity, in the case of creating a new primary key, and in the case of adding a referential constraint. Substitute for adding an item, adding a primary key to an item, and setting a referential constraint to an item, respectively. If one of the data structures in FIG. 7 is described as an example, "object type"-
"Item", "Change type"-"Add", "Content type"-
The "change contents" in the case of "referential constraint" is "referential constraint number, item name, order in referential constraint". When a certain item in the entity is incorporated into referential constraint, which referential constraint should be included? (“Reference constraint number”), which item to incorporate (“item name”), and where to incorporate it in the referential constraint (“order within referential constraint”)
This indicates that the information is to be recorded in the "change contents" column.

【0037】次に、ERメッセージ処理部(314)
は、ER変更要求テーブル(313)のデータ構成中の
“対象種別”、“内容種別”欄を参照し、変更要求が参
照制約に対してのものであるかどうかを確認する。(1
002)ここで、図6に示すデータ構成から、“変更要
求”が“項目”に対してのものであり“変更種別”は
“更新”、更新内容を示す“内容種別”が“名称”であ
ることから、変更要求は項目の名称変更であることが分
かる。(1003) 次に、ER変更メッセージ処理部(314)は、図4に
示す実体・テーブル対応情報(3123)の内容を参照
し、図6に示されるER変更要求テーブル(313)の
データ構成の“実体名”を実際の装置名に置き換え、変
更メッセージ格納用ワーク(3122)に書き込む。
(1004)図4中のデータ例では、実体がテーブルと
して実現される場合に必要となる実体が対応する“テー
ブル名”、そのテーブルが定義される“DB名”、さら
にDBを管理するDBMSを実行する“装置名”、とい
った情報を含んでおり、実体・テーブル対応情報(31
23)に示されるデータを持つことで、ERモデル中の
実体が異なる装置上のRDB中で実現される場合におい
ても、実体とテーブルの対応関係を把握することが可能
となる。
Next, an ER message processing unit (314)
Refers to the "target type" and "content type" columns in the data configuration of the ER change request table (313), and checks whether the change request is for a reference constraint. (1
002) Here, from the data configuration shown in FIG. 6, “change request” is for “item”, “change type” is “update”, and “content type” indicating the update content is “name”. From this, it can be seen that the change request is a change in the name of the item. (1003) Next, the ER change message processing unit (314) refers to the contents of the entity / table correspondence information (3123) shown in FIG. 4 and checks the data configuration of the ER change request table (313) shown in FIG. The “entity name” is replaced with the actual device name and written in the change message storage work (3122).
(1004) In the data example in FIG. 4, a “table name” corresponding to an entity required when the entity is realized as a table, a “DB name” defining the table, and a DBMS for managing the DB Information such as “device name” to be executed, and entity / table correspondence information (31
By having the data shown in 23), it is possible to grasp the correspondence between the entity and the table even when the entity in the ER model is realized in the RDB on a different device.

【0038】図4中の例に示す“メッセージ番号”欄の
“1”,“2”のデータ値は変更メッセージを書き込む
際にER変更メッセージ処理部(314)により付与さ
れる番号であり、データ構成中の各メッセージを一意に
識別するための一連の番号であり、ER変更メッセージ
処理部(314)は、“メッセージ番号”を付与すると
ともに、同時に、もととなる変更要求を識別するための
“変更処理番号”を付与する。“変更処理番号”は一回
の変更指示により発生する変更に対して1組の番号を付
与するため、図8中のデータ構成の変更メッセージはす
べて“変更番号”が“1”となる。また、ER変更要求
テーブル(313)から新規に変更メッセージを作成し
た直後にはすべての変更メッセージの“変更状態”は
“未送信”とする。
The data values of "1" and "2" in the "message number" column shown in the example of FIG. 4 are numbers given by the ER change message processing unit (314) when writing a change message. A series of numbers for uniquely identifying each message in the configuration. The ER change message processing unit (314) assigns a “message number” and simultaneously identifies the original change request. “Change process number” is assigned. Since the "change process number" assigns a set of numbers to a change generated by one change instruction, all the change messages of the data configuration in FIG. 8 have the "change number" of "1". Immediately after a new change message is created from the ER change request table (313), the “change state” of all the change messages is set to “not transmitted”.

【0039】上記は項目名の変更の例であるが、参照制
約の変更の場合には図5に示す参照制約対応情報(31
22)のデータを参照して、参照制約の番号を実際のD
Bで定義されている参照制約名に置き換えた内容を変更
メッセージ格納用ワーク(3122)に書き込む。(1
005)図5のデータ構成では、実体B(803)の実
体A(801)への参照制約番号が“1”の参照制約
が、テーブルBa(812)からテーブルAa(81
1)への“参照制約1a”として定義されていることを
示しており、さらに実体B(802)から実体C(80
3)への参照制約が参照制約番号“1”がテーブルBa
(812)からテーブルCa(813)への“参照制約
2a”として定義されていることを示している。
The above is an example of the change of the item name. In the case of the change of the reference constraint, the reference constraint correspondence information (31) shown in FIG.
22), referencing the data of FIG.
The content replaced with the reference constraint name defined in B is written to the change message storage work (3122). (1
In the data configuration of FIG. 5, the reference constraint with reference constraint number “1” of entity B (803) to entity A (801) is changed from table Ba (812) to table Aa (81).
1) is defined as "reference constraint 1a" to entity 1 (1), and entity B (802) to entity C (80
The reference constraint to 3) is the reference constraint number “1” is the table Ba.
(812) is defined as “reference constraint 2a” from the table Ca (813).

【0040】ここで、参照制約番号“1”の参照制約が
“参照制約1a”、参照制約番号2の参照制約が“参照
制約2a”として実装されている理由を説明する。ER
モデル上の参照制約は番号で識別される項目の組として
のみ管理される(参照制約番号が“1”)が、RDBに
実現される場合には、RDB上での固有の定義名称を持
つ制約として実現され、このデータ構成例ではRDBの
固有の名称を“参照制約1a”、“参照制約2a”とし
て例示している。
Here, the reason why the reference constraint with reference constraint number "1" is implemented as "reference constraint 1a" and the reference constraint with reference constraint number 2 is implemented as "reference constraint 2a" will be described. ER
The reference constraint on the model is managed only as a set of items identified by a number (reference constraint number is “1”), but when realized in an RDB, a constraint having a unique definition name on the RDB In this data configuration example, the unique names of the RDBs are illustrated as “reference constraint 1a” and “reference constraint 2a”.

【0041】図8中のデータ例は、実体C(803)中
の項目“c2”の名称を“c2′”に変更したことに伴
い発生するRDBへの変更内容を示している。変更メッ
セージ処理部(314)は変更メッセージ格納用ワーク
(315)の内容を、実体C(803)に対応するテー
ブルCa(813)、テーブルCb(821)、さらに
実体C(803)の項目“c2”を参照するテーブルB
a(812)、テーブルDb(822)の変更を指示す
ることを示している。また、上記1001から1005
の手順により作成された図8に示すデータは、図3,図
4,図5,図6に示す、実体情報(3121)、実体・
テーブル対応情報(3123)、参照制約対応情報(3
122)、変更要求テーブル(313)内のデータ値を
基にして作成されるものである。
The data example in FIG. 8 shows the contents of the change to the RDB that occurs when the name of the item “c2” in the entity C (803) is changed to “c2 ′”. The change message processing unit (314) stores the contents of the work (315) for storing a change message in the table "C813" corresponding to the entity C (803), the table Cb (821), and the item "c2" of the entity C (803). Table B referring to "
a (812) and a change of the table Db (822). In addition, 1001 to 1005
The data shown in FIG. 8 created by the procedure described in FIG. 8 is the entity information (3121), entity
Table correspondence information (3123), referential constraint correspondence information (3
122), and is created based on the data values in the change request table (313).

【0042】図8の“変更状態”欄には、メッセージの
送信状態と、RDBの変更状態をあわせて持つために5
種類の値が記録される。それぞれのデータ値の意味を示
すと、“未送信”はメッセージが送信されていない状
態、“送信済”はメッセージが送信された状態、“変更
済”は送信されたメッセージを基にしたRDBの変更が
完了した状態、“確定中”はそのRDBの変更を確定す
る命令が送信済みである状態、“確定完了”がRDBの
変更確定状態を示す。RDBの変更終了時直後はRDB
の変更を取り消しして変更前の状態に戻せる(ロールバ
ック)、またRDBの変更終了後、RDBの変更を確定
するとRDBの状態は変更前の状態に戻せなくなる。
In the "change state" column of FIG. 8, 5 is set to have both the message transmission state and the RDB change state.
The type value is recorded. The meaning of each data value is as follows: “unsent” indicates that the message has not been sent, “sent” indicates that the message has been sent, and “changed” indicates the RDB of the sent message. The state in which the change is completed, “determined” indicates a state in which an instruction to determine the change of the RDB has been transmitted, and “determination completed” indicates the RDB change confirmed state. RDB immediately after the end of RDB change
Can be canceled to return to the state before the change (rollback), and if the change of the RDB is confirmed after the change of the RDB, the state of the RDB cannot be returned to the state before the change.

【0043】これら、“変更済”と“確定完了”の状態
を持つことで、ERモデルが複数のRDBで実現される
場合に複数のRDBの変更がすべて“変更済”となり、
正常に更新できたことを確認してから、変更を確定する
命令を各RDBに送信する処理を行うことが可能とな
り、すべてのRDBがERモデルに対して整合性の取ら
れた状態にあることを保証する。
By having these “changed” and “completed” states, when the ER model is implemented by a plurality of RDBs, all changes in the plurality of RDBs become “changed”.
After confirming that the update has been performed normally, it is possible to perform a process of transmitting an instruction for confirming the change to each RDB, and all RDBs are in a state in which consistency with the ER model has been obtained. Guarantee.

【0044】さらに、図8のデータ構成は、図9に示す
データが取りうる値の組み合わせに従う。値の組み合わ
せの中には、テーブルの作成の場合、主キーの新規作成
の場合、参照制約の追加の場合、それぞれについての値
の組が記述されていないが、これらはそれぞれ、項目の
追加、項目への主キー追加、項目への参照制約設定で代
用する。
Further, the data configuration of FIG. 8 is in accordance with a combination of values that can be taken by the data shown in FIG. In the value combinations, when creating a table, when creating a new primary key, when adding a referential constraint, the value pairs for each are not described. Substitute by adding a primary key to the item and setting a referential constraint to the item.

【0045】以上に示す手順により、本発明によれば、
ERモデルの変更要求が発生した際にRDBの定義情報
を変更するための変更要求メッセージを作成することが
できる。
According to the present invention, according to the procedure described above,
A change request message for changing RDB definition information when an ER model change request occurs can be created.

【0046】以下に、作成した変更要求メッセージをも
とにERモデルの変更をRDB定義情報に反映するため
の手順を図10に示す実施例のフローに従って説明す
る。
A procedure for reflecting the change in the ER model in the RDB definition information based on the created change request message will be described below with reference to the flow of the embodiment shown in FIG.

【0047】次に、ERメッセージ変更処理部(31
4)は変更メッセージ格納用ワーク(3122)の内容
を各RDBに送信する。図2に示すようにERモデル
(80)は、異なる2つの処理装置a(81)及び処理
装置b(82)のRDBに格納されているため、図8に
示す変更メッセージ格納用ワーク領域(315)のデー
タ構成は、実体C(802)に対応するテーブルCa
(813)、テーブルCb(821)項目への変更が発
生する事を示しており、今回の例では図8に示すデータ
のうち、メッセージ番号“1”、メッセージ番号“3”
のメッセージを処理装置a(81)に送信し、メッセー
ジ番号“2”、メッセージ番号“4”のメッセージを
“処理装置b(82)”に送信する。送信後変更メッセ
ージ格納用ワーク(3122)の“変更状態”を“送信
済”に書き換える。
Next, the ER message change processing unit (31)
4) sends the contents of the change message storage work (3122) to each RDB. As shown in FIG. 2, since the ER model (80) is stored in the RDBs of two different processing devices a (81) and b (82), the change message storage work area (315) shown in FIG. ) Is a table Ca corresponding to the entity C (802).
(813) indicates that a change to the item of the table Cb (821) occurs. In this example, the message number “1” and the message number “3” of the data shown in FIG.
Is transmitted to the processing device a (81), and the message with the message number “2” and the message number “4” is transmitted to the “processing device b (82)”. After the transmission, the “change state” of the work for storing a change message (3122) is rewritten to “transmitted”.

【0048】処理装置a(81)、処理装置b(82)
それぞれの上で動作するDBMS(61)のDB変更メ
ッセージ処理部(611)は、ER変更メッセージ処理
部(314)から送信されたメッセージを元にして、R
DB定義情報(7)を変更する。処理装置a(81)上
で動作するDBMS(61)のDB変更メッセージ処理
部(611)は送信されたメッセージ番号“1”、
“3”のメッセージの“変更状態”を“変更済”に書き
換え、ER変更メッセージ処理部(314)に返信す
る。処理装置b(82)上で動作するDBMS(61)
のDB変更メッセージ処理部(611)は送信されたメ
ッセージ番号“2”、“4”のメッセージの“変更状
態”を“変更済”に書き換え、ER変更メッセージ処理
部(314)に返信する。(903) 次に、ERモデリング支援ツール(31)のER変更メ
ッセージ処理部(314)は、処理装置a(81)、b
(82)のそれぞれで動作するDBMS(61)のRD
B変更メッセージ処理部(611)から“変更状態”が
“変更済”と書き換えられた変更メッセージの返信を受
け取る。ER変更メッセージ処理部(314)はすべて
の変更メッセージの返信を受取り、その変更メッセージ
の“変更状態”が全て“変更済”であることを確認す
る。確認後、処理装置a(81)、b(82)のそれぞ
れで動作するDBMS(61)のRDB変更メッセージ
処理部(611)に変更の確認(コミット)を指示する
メッセージを送信する。
Processing unit a (81), processing unit b (82)
The DB change message processing unit (611) of the DBMS (61) operating on each of the R and R messages is transmitted based on the message transmitted from the ER change message processing unit (314).
Change the DB definition information (7). The DB change message processing unit (611) of the DBMS (61) operating on the processing device a (81) transmits the message number “1”,
The “change state” of the message “3” is rewritten to “changed” and returned to the ER change message processing unit (314). DBMS (61) operating on processing device b (82)
The DB change message processing unit (611) rewrites the “change state” of the transmitted message with the message numbers “2” and “4” to “changed” and returns it to the ER change message processing unit (314). (903) Next, the ER change message processing unit (314) of the ER modeling support tool (31) includes the processing devices a (81) and b
RD of DBMS (61) operating on each of (82)
A change message in which the "change status" is rewritten as "changed" is received from the B change message processing unit (611). The ER change message processing unit (314) receives the replies of all the change messages, and confirms that all the "change states" of the change messages are "changed". After confirmation, a message instructing confirmation (commit) of the change is transmitted to the RDB change message processing unit (611) of the DBMS (61) operating in each of the processing devices a (81) and b (82).

【0049】処理装置a(81)、b(82)のそれぞ
れのRDB変更メッセージ処理部(611)はERモデ
リング支援ツール(31)から変更を確定する指示メッ
セージを受信し、DB定義変更処理部(612)は変更
の確定(コミット)を行う。処理装置a(81)、2
(82)のそれぞれのRDB変更メッセージ(611)
は、確定が終了した後に、変更メッセージの“変更状
態”を“確定完了”に書き換え、ERモデリング支援ツ
ール(31)のER変更メッセージ処理部(314)に
返信する。(905) 次に、ER変更メッセージ処理部(314)は、処理装
置a(81)、b(82)から変更の確定を伝える変更
メッセージの返信を受け取り、確定が完了した変更メッ
セージについては変更メッセージ格納用ワーク(31
5)の“変更状態”を“確定完了”とする。変更メッセ
ージ格納用ワーク(315)中のすべての変更メッセー
ジについて“変更状態”が“確定完了”となった後に、
ER定義変更処理部(311)がER定義情報(31
2)の内容をER変更要求テーブル(313)の内容に
従って変更する。(904) 以上、本発明によれば図10、図11に示す手順に従
い、ERモデル定義情報(312)を元に変更メッセー
ジ格納用ワーク(315)に変更メッセージを書き込
み、その変更メッセージを複数のDBMS(61)に送
信することで、ERモデルの変更をRDB定義情報に反
映することが可能となる。
The RDB change message processing unit (611) of each of the processing devices a (81) and b (82) receives an instruction message for confirming the change from the ER modeling support tool (31) and receives the DB definition change processing unit (611). 612) confirms the change (commit). Processing device a (81), 2
(82) Each RDB change message (611)
Rewrites the “change state” of the change message to “completed” after the determination is completed, and returns it to the ER change message processing unit (314) of the ER modeling support tool (31). (905) Next, the ER change message processing unit (314) receives, from the processing devices a (81) and b (82), a reply of a change message indicating that the change has been confirmed, and for the change message for which the determination has been completed, the change message. Work for storage (31
The “change state” of 5) is set to “completion completed”. After the "change status" of all the change messages in the change message storage work (315) becomes "confirmed",
The ER definition change processing unit (311) executes the ER definition information (31)
The contents of 2) are changed according to the contents of the ER change request table (313). (904) As described above, according to the present invention, a change message is written in the change message storage work (315) based on the ER model definition information (312) according to the procedures shown in FIGS. By transmitting to the DBMS (61), it is possible to reflect the change of the ER model in the RDB definition information.

【0050】[0050]

【発明の効果】以上に述べたように、本発明によればシ
ステムの設計・保守において、複数のRDBに実現され
るシステム設計情報を統一したERモデルで管理し、E
Rモデルが変更された場合に複数のRDBに反映するこ
とにより、RDB管理者、システム設計者の負担を軽減
することができる。また、同様に、1個所のRDB定義
情報が変更された際に、RDBの変更情報をERモデル
を介してシステム全体に反映することが可能となり、R
DBの局部的な変更によりシステム設計情報との不整合
発生の可能性を軽減することができる。
As described above, according to the present invention, in the design and maintenance of a system, system design information realized in a plurality of RDBs is managed by a unified ER model,
By reflecting the change in the R model on a plurality of RDBs, the burden on the RDB administrator and the system designer can be reduced. Similarly, when one RDB definition information is changed, the RDB change information can be reflected in the entire system via the ER model.
The possibility of inconsistency with the system design information due to the local change of the DB can be reduced.

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

【図1】本発明の実施形態である計算機のハードウェア
およびプログラムの構成図である。
FIG. 1 is a configuration diagram of hardware and a program of a computer according to an embodiment of the present invention.

【図2】実施形態のERモデルと、それを複数のRDB
に格納した場合の概念図である。
FIG. 2 shows an ER model of the embodiment and a plurality of RDBs.
It is a conceptual diagram in the case of storing in.

【図3】実施形態の実体情報(3121)のデータ構成
図である。
FIG. 3 is a data configuration diagram of entity information (3121) of the embodiment.

【図4】実施形態の実体・テーブル対応情報(312
3)のデータ構成図である。
FIG. 4 is an entity / table correspondence information (312) according to the embodiment;
It is a data structure figure of 3).

【図5】実施形態の参照制約対応情報(3122)のデ
ータ構成図である。
FIG. 5 is a data configuration diagram of reference constraint correspondence information (3122) of the embodiment.

【図6】実施形態のER変更要求テーブル(313)の
データ構成図である。
FIG. 6 is a data configuration diagram of an ER change request table (313) of the embodiment.

【図7】実施形態のER変更要求テーブル(313)の
データがとりうる値の組あわせを示した図である。
FIG. 7 is a diagram showing combinations of values that can be taken by data of the ER change request table (313) of the embodiment.

【図8】実施形態の変更メッセージ格納用ワーク領域
(315)のデータ構成図である。
FIG. 8 is a data configuration diagram of a change message storage work area (315) according to the embodiment.

【図9】実施形態のER変更要求テーブル315のデー
タがとりうる値の組あわせを示した図である。
FIG. 9 is a diagram illustrating combinations of values that can be taken by data of the ER change request table 315 according to the embodiment.

【図10】実施形態において、入力装置からERモデル
定義情報(312)の変更指示が入力された場合の、全
体処理の流れを示すフローチャートである。
FIG. 10 is a flowchart illustrating a flow of an entire process when an instruction to change ER model definition information (312) is input from the input device in the embodiment.

【図11】実施形態において、入力装置(2)からER
モデル定義情報(312)の変更が指示された場合のE
Rモデリング支援ツール(31)の処理の流れを示すフ
ローチャートである。
FIG. 11 shows an embodiment in which the input device (2) transmits the ER
E when change of model definition information (312) is instructed
It is a flowchart which shows the flow of a process of the R modeling support tool (31).

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

1…処理装置(3)に接続されERモデル定義情報を表示
するための装置、2…処理装置(3)に接続されERモデ
ル定義情報を変更するための要求を入力する装置、 3
…ERモデリング支援ツールを実行するための処理装
置、31…ERモデリング支援ツール、 311…ER
定義変更処理部、312…ERモデル定義情報を格納す
るための記憶領域、3121…実体情報を格納するため
の記憶領域、3122…参照制約対応情報を格納するた
めの記憶領域、3123…実体・テーブル対応情報を格
納するための記憶領域、313…ERモデルの変更要求
を格納するための記憶領域、314…ER変更メッセー
ジ処理部、315…ER変更メッセージ格納用ワークエ
リア、6…リレーショナルデータベース管理システム
(DBMS)を実行するための装置、 61…リレー
ショナルデータベース管理システム(DBMS)、61
1…RDB変更メッセージ処理部、612…RDB定義
情報変更処理部、7…処理装置(6)に接続されリレーシ
ョナルデータベース(RDB)の構造を定義する情報を
格納するための装置。
1 ... A device connected to the processing device (3) for displaying ER model definition information, 2 ... A device connected to the processing device (3) to input a request for changing the ER model definition information,
... Processing device for executing the ER modeling support tool, 31 ... ER modeling support tool, 311 ... ER
Definition change processing unit, 312... Storage area for storing ER model definition information, 3121... Storage area for storing entity information, 3122... Storage area for storing reference constraint correspondence information, 3123. Storage area for storing correspondence information, 313 ... Storage area for storing ER model change request, 314 ... ER change message processing unit, 315 ... Work area for storing ER change message, 6 ... Relational database management system ( Device for executing DBMS), 61 ... Relational database management system (DBMS), 61
1 ... RDB change message processing unit, 612 ... RDB definition information change processing unit, 7 ... Device connected to the processing device (6) for storing information that defines the structure of a relational database (RDB).

───────────────────────────────────────────────────── フロントページの続き (72)発明者 奥 悦史 神奈川県横浜市都筑区加賀原二丁目2番 株式会社日立製作所システム開発本部内 Fターム(参考) 5B082 BA09 GA07 GA15  ──────────────────────────────────────────────────続 き Continuing from the front page (72) Inventor Etsushi Oku 2-chome, Kagahara, Tsuzuki-ku, Yokohama-shi, Kanagawa Prefecture F-term in the System Development Division, Hitachi, Ltd. 5B082 BA09 GA07 GA15

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】データモデルとして表現されるシステムが
ネットワークで接続される複数のDBに分散して実装さ
れる場合におけるシステムの設計・保守を支援する方式
であり、データモデル定義情報中にデータモデルの情報
をもち、かつDB上に実装されるテーブル情報をもち、
かつデータモデル定義情報管理機能、DBMS機能のそ
れぞれがメッセージ処理部をもち、データモデルの定義
情報が変更された場合にデータモデルの定義情報をもと
に変更影響を調査し、変更影響下にある複数のDBの定
義情報を変更することでデータモデルとデータモデルを
テーブルとして実装する複数のDBの定義情報間での整
合を保つことを特徴とするデータベース設計・保守支援
方式及び装置。
1. A system for supporting system design and maintenance when a system represented as a data model is distributed and implemented in a plurality of DBs connected via a network, wherein a data model is included in data model definition information. With table information implemented on the DB,
In addition, each of the data model definition information management function and the DBMS function has a message processing unit, and when the definition information of the data model is changed, investigates the influence of the change based on the definition information of the data model, and is under the influence of the change. A database design / maintenance support method and apparatus for maintaining consistency between data models and definition information of a plurality of DBs that implements the data model as a table by changing definition information of the plurality of DBs.
JP10366342A 1998-12-24 1998-12-24 System and device for supporting data base design/ maintenance Pending JP2000187603A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10366342A JP2000187603A (en) 1998-12-24 1998-12-24 System and device for supporting data base design/ maintenance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10366342A JP2000187603A (en) 1998-12-24 1998-12-24 System and device for supporting data base design/ maintenance

Publications (1)

Publication Number Publication Date
JP2000187603A true JP2000187603A (en) 2000-07-04

Family

ID=18486550

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10366342A Pending JP2000187603A (en) 1998-12-24 1998-12-24 System and device for supporting data base design/ maintenance

Country Status (1)

Country Link
JP (1) JP2000187603A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002222103A (en) * 2001-01-25 2002-08-09 Yoshikazu Shiraishi Database designing system, its method and display method
JP2009015455A (en) * 2007-07-02 2009-01-22 Gct Kenkyusho:Kk Information display device, information display method, and information display program
WO2009016700A1 (en) * 2007-07-27 2009-02-05 Fujitsu Limited Update management program, update management system, update management device, and update management method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002222103A (en) * 2001-01-25 2002-08-09 Yoshikazu Shiraishi Database designing system, its method and display method
JP4653320B2 (en) * 2001-01-25 2011-03-16 慶和 白石 Database design system, database design method, and display method
JP2009015455A (en) * 2007-07-02 2009-01-22 Gct Kenkyusho:Kk Information display device, information display method, and information display program
WO2009016700A1 (en) * 2007-07-27 2009-02-05 Fujitsu Limited Update management program, update management system, update management device, and update management method
JP5012900B2 (en) * 2007-07-27 2012-08-29 富士通株式会社 Update management system

Similar Documents

Publication Publication Date Title
US6035300A (en) Method and apparatus for generating a user interface from the entity/attribute/relationship model of a database
US5339247A (en) Distributed data CAD system
JP2996197B2 (en) Document sharing management method
US5613106A (en) Method for processing and storing a transaction in a distributed database system
US20030154197A1 (en) Flexible relational data storage method and apparatus
RU2406115C2 (en) Accessing complex data
US20150019561A1 (en) Method for generating indexes for downloading data
US20020133509A1 (en) Automatic data update
EP1607883B1 (en) A data processing system and method for monitoring database replication
WO2001016799A1 (en) Method and system for supporting multiple, historical and future designs in a relational database
EP1480130B1 (en) Method and apparatus for moving data between storage devices
US7277940B2 (en) Managing uneven authorizations in a computer data exchange
JP2002108681A (en) Replication system
JP5033322B2 (en) Information management method and apparatus using connection relation information
JP3013840B1 (en) Multiple Price Lookup Maintenance Schemes and Methods
US7016906B1 (en) Data processing method and apparatus employing OLE DB and having dual schema and auto update features
WO2001033362A1 (en) Action communication and synchronization for documents accessed by multiple users
JP3026286B2 (en) Authority management apparatus and method for computer system
JP2000187603A (en) System and device for supporting data base design/ maintenance
US6799183B2 (en) Operation assistance method and system and recording medium for storing operation assistance method
JPH11272538A (en) Document management system
EP1367503A1 (en) Method for displaying and modifying a relational database schema
JP3441155B2 (en) Information management search device
JPH10254973A (en) Family register information processing method and family register information system
JPH0822405A (en) Management system for relational data base