JPS62254246A - Control system for data base having data dictionary directory - Google Patents

Control system for data base having data dictionary directory

Info

Publication number
JPS62254246A
JPS62254246A JP61096716A JP9671686A JPS62254246A JP S62254246 A JPS62254246 A JP S62254246A JP 61096716 A JP61096716 A JP 61096716A JP 9671686 A JP9671686 A JP 9671686A JP S62254246 A JPS62254246 A JP S62254246A
Authority
JP
Japan
Prior art keywords
dictionary
directory
database
definition information
definition
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.)
Granted
Application number
JP61096716A
Other languages
Japanese (ja)
Other versions
JPH0754479B2 (en
Inventor
Mikihiko Tokunaga
徳永 幹彦
Satoru Wakayama
和歌山 哲
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 JP61096716A priority Critical patent/JPH0754479B2/en
Publication of JPS62254246A publication Critical patent/JPS62254246A/en
Publication of JPH0754479B2 publication Critical patent/JPH0754479B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To facilitate the change of a metadirectory (MD) by producing the MD by referring to a dictionary (DIC) that defines the structure of the DIC itself. CONSTITUTION:An operation command defining information 502 is used as the input to start a definition operating program 503. An MD 508 is loaded from a directory data set DDS 505 and an access is given to a DIC set 504 for production of a directory. This directory is stored in the DDS 505. When a meta MDIC is produced, an MDIC structure definition sentence 507 is stored in the set 504. Based on the sentence 507, an MDIC directory 509 is produced and stored in the DDS 505. The directory 509 is used for allocation of an MDIC data set 506. When the MD is produced, the program 503 is started with input of a control sentence 501 and the information 502. Then the directory 509 is loaded from the DDS and accessed to the MDIC and the MD 508 is produced and stored in the DDS 505.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、構造壓データベースを使用したデータディク
ショナリ・ディレクトリシステムにおけるデータディク
ショナリの構造変更に係り、特にデータディクショナリ
構造を更新するのに好適なデータディクシlテリ構造の
更新方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to changing the structure of a data dictionary in a data dictionary/directory system using a structured database, and particularly to data suitable for updating the data dictionary structure. This invention relates to an update method for a dictionary structure.

〔従来の技術〕[Conventional technology]

構造型データベースのデータディクショナリ・ディレク
トリシステムにおいて、ディクショナリ自体の構造を定
義して、これに対応するレコードの物理的格納エリアを
決定しているディクシ璽ナリの構造制御情報は、データ
セットに設定されていて、メタディレクトリといわれる
In the data dictionary directory system of structured databases, the structure control information of the dictionary, which defines the structure of the dictionary itself and determines the physical storage area of the corresponding records, is set in the dataset. This is called a metadirectory.

このメタディレクトリでは、ディクショナリ自体の構造
とメタディレクトリとは一致している必I要があり1両
者に不一致が生じないように、メタディレクトリのみの
書き替えを禁止する防護機能を設けであるのが一般的で
ある。
In this metadirectory, the structure of the dictionary itself and the metadirectory must match, and in order to prevent a mismatch between the two, a protection function is provided to prohibit rewriting only the metadirectory. Common.

従って、従来技術において、ディクショナリ自体の構造
変更を必要とする場合は、メタディレクトリを別に手書
にて生成するか、これに類する専用ツールにて生成する
必要があり、この生成したメタディレクトリを変更して
、ディクショナリの構造を新しく定義し、メタディレク
トリを更新することで新しい構造のディクショナリを更
新する必要があった。
Therefore, in the conventional technology, if it is necessary to change the structure of the dictionary itself, it is necessary to create a metadirectory separately by hand or with a similar dedicated tool, and this generated metadirectory can be changed. Then, it was necessary to define a new dictionary structure and update the dictionary with the new structure by updating the metadirectory.

尚、ディクショナリおよびメタディクトリの概念につい
て紹介しているものに、データディクショナリ1/デイ
レクトリシステム、オーム社(1986年、ベルキス、
ダブリエ、レオンホン、パーナート、ケー、プラグマン
共著、穂鷹良介監訳、成田光彰訳)第63頁から第76
頁(Data 1)ictionary /L)ira
ctory Systems Bglkiz W、 L
aony−Hang andBernard K、 P
lα!IrILan 1982 by John Wi
lay & Bone。
The concepts of dictionaries and metadirectories are introduced in Data Dictionary 1/Directory System, Ohmsha (1986, Belkis,
(Co-authored by Davlier, Leonhon, Pernat, K., and Pragman, translated by Ryosuke Hotaka, translated by Mitsuaki Narita), pages 63 to 76.
Page (Data 1) ictionary /L)ira
ctory Systems Bglkiz W, L
aony-Hang and Bernard K, P
lα! IrILan 1982 by John Wi
lay & bone.

Inc )があるが、メタディレクトリを容易に生成し
て、ディクショナリ自体の構造を更新する方式について
は述べられていない。
Inc.), but there is no mention of a method for easily generating a metadirectory and updating the structure of the dictionary itself.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来、メタディレクトリは手書き、またはこれI類する
専用ツール等を使ってディクシlテリの構造を新しく定
義する必要があり、ディクシ曹ナリデータベース構造の
変更作業は、定義文とツールの両方に修正を加える必要
があるため、簡単には行なえなかった。
Traditionally, it was necessary to newly define the structure of the metadirectory by hand or using specialized tools, etc., and changes to the metadirectory database structure required modifications to both the definition statement and the tool. It was not easy to do because it was necessary.

本発明の目的は、ディクショナリに登録されているデー
タベースの構造の定義情報をディレクトリを生成して操
作することで、データベースの論理構造の追加変更を行
うのと同様の容易さで、ディクショナリ自体の構造を更
新し、ディクショナリ構造の更新の操作性・保守性の向
上となるディクショナリ構造の更新方式を提供すること
にある。
An object of the present invention is to generate and manipulate the definition information of the structure of the database registered in the dictionary into a directory, so that the structure of the dictionary itself can be modified with the same ease as adding and changing the logical structure of the database. The purpose of this invention is to provide a dictionary structure update method that improves the operability and maintainability of dictionary structure updates.

〔問題点を解決するための手段〕[Means for solving problems]

上記目的は、ディクショナリ自体の構造の定義情報をデ
ィクショナリに、一般のデータベースの論理構造の定義
情報を登録するのと同様に登録し。
The above purpose is to register the definition information of the structure of the dictionary itself in the dictionary in the same way as registering the definition information of the logical structure of a general database.

このディクショナリ自体の構造を定義したディクショナ
リを参照してディレクトリの生成を行い(これをメタデ
ィクショナリ用デイレクトリという)。
A directory is generated by referring to the dictionary that defines the structure of this dictionary itself (this is called a meta-dictionary directory).

更にディクシ目ナリの構造をデータベースの論理−構造
とみなして、ディクショナリの構造を定義しくこれをメ
タディクシヲナリとい3)、今度はメタディクシ目ナリ
を参照してディレクトリを生成し〔これをメタディレク
トリという)、このメタディレクトリを操作してディク
ショナリの構造更新を行うことにより達成される。
Furthermore, the structure of the dictionary is regarded as the logical structure of the database, and the structure of the dictionary is defined, which is called a meta-dictionary3). Next, a directory is generated by referring to the meta-dictionary [this is called a meta-directory]. ), this is achieved by manipulating this metadirectory to update the structure of the dictionary.

〔作用〕[Effect]

本発明のディクショナリ構造の更新方式は、データベー
スの構造について定義する定義情報を記述しであるデー
タディクショナリを参照して、ユーザがデータベースを
使い易くするためのテーブル形式のディレクトリに変換
生成する定義操作プログラムを使い、ディクシ冒ナリ自
体の構造の定義情報をディクシlテリに登録し、このデ
ィクショナリ自体の構造の定義情報を登録したディ、ク
ショナリからディレクトリの生成を行い(メタディクシ
ョナリ用デイレクトリを生成する)、これをデータセッ
トに割当てて、更にディクショナリ自体の構造をデータ
セットにて定義しくメタディクショナリを生成する)、
このメタディクショナリ1)ら定義操作プログラムを使
ってディレクトリを生成しくメタディレクトリを生成す
る)、このメタブイレフ) リに変更等の操作をするこ
とで、ディクシlテリの構造の更新を容易に行なえる。
The dictionary structure update method of the present invention is a definition operation program that refers to a data dictionary that describes definition information that defines the structure of a database, and converts it into a table-format directory that makes it easier for users to use the database. , register the definition information of the structure of the dictionary itself in the dictionary, and generate a directory from the dictionary in which the definition information of the structure of the dictionary itself was registered (generate a directory for the meta dictionary). Assign this to a dataset, define the structure of the dictionary itself in the dataset, and generate a metadictionary).
The structure of the dictionary can be easily updated by performing operations such as creating a directory from this meta dictionary 1) using a definition operation program and making changes to this meta dictionary.

〔実施例〕〔Example〕

以下1本発明の一実施例を第1図から第8図により説明
する。
An embodiment of the present invention will be described below with reference to FIGS. 1 to 8.

本発明が実現されるハードウェア構成を第1図に示す。FIG. 1 shows a hardware configuration for realizing the present invention.

1は、プロセッサであり、必要な情報の検索の処理を行
う。2は、定義情報を格納してお(定義情報格納メモリ
、3は、ディクショナリを格納しておくディクショナリ
ファイル格納メモリ。
Reference numeral 1 denotes a processor, which performs processing of searching for necessary information. 2 is a definition information storage memory for storing definition information; 3 is a dictionary file storage memory for storing a dictionary.

4は、メタディクシ冒ナリを格納しておくメタディクシ
ョナリファイル格納メモリ、5は、ディレクトリを格納
しておくディレクトリファイル格納メモリ、6は1本発
明を実現した定義操作のプログラムを格納する定義操作
プログラム格納メモリ。
Reference numeral 4 denotes a meta dictionary file storage memory for storing a meta dictionary entry; 5 a directory file storage memory for storing directories; and 6 a definition operation program storage for storing a definition operation program that realizes the present invention. memory.

7は、検索した情報を格納するワークエリアを示してい
る。
7 indicates a work area in which searched information is stored.

本システムにおいて、ディクショナリフアイル格納メモ
リ3内のディクシッナリは、データベース全体の構造を
決定するもので、ディレクトリファイル格納メモリ5内
のディレクトリは、ディクショナリを利用者が利用し易
い構造に変換したものである。
In this system, the dictionary in the dictionary file storage memory 3 determines the structure of the entire database, and the directory in the directory file storage memory 5 is a dictionary converted into a structure that is easy for the user to use.

本発明は、構造型データベースを対象とし、その基本は
、ネットワーク型データモデルであり。
The present invention targets a structural database, and its basis is a network data model.

特にこの構造を持つデータディクシ曹ナリ・ディ、レフ
トリシステムである。
In particular, it is a left system that has this structure.

ネットワーク型データモデルは1階層データ構造におい
て論理レコードの分岐したフィールドの間に関連をもっ
ている場合であり、論理レコードの中のフィールドを識
別し、そのありかを知る方法としては、相対的な位置を
知ることによって行なう場合とレコードに含まれている
標識による場合とまたポインタとリストによって行なう
場合とがある。次に、ディクシ璽ナリの登録のアクセス
を説明する。
A network data model is a one-level data structure in which there is a relationship between branched fields of logical records, and the only way to identify fields in a logical record and find out where they are is by determining their relative positions. This can be done by knowledge, by indicators included in records, and by pointers and lists. Next, access to dictionary registration will be explained.

データベースの論理構造を決定するディクショナリの構
造の例を第7図に示す。このディクシ璽f9に名称9番
号、情報等をそれぞれ書き込むことにより、定義情報を
登録する。これKてディクシッナリが生成される。
FIG. 7 shows an example of the structure of a dictionary that determines the logical structure of the database. Definition information is registered by writing the name 9 number, information, etc. in this dictionary f9. After this, a dictionary is generated.

ディクシ璽ナリへのデータベースの構造に関する定義情
報の登録のアクセスは、定義操作プログラム忙よって行
なわれる例を示す。
An example is shown in which access to register definition information regarding the structure of the database in the dictionary is performed by the definition operation program.

データディクショナリ・ディレクトリの利用者は、定義
操作プログラムに対して1次に例示するような操作コマ
ンドや定義情報を与える。
The user of the data dictionary/directory provides the definition operation program with operation commands and definition information as illustrated in the first example.

定義情報のディクショナリへの登録は例えばENTR,
Y操作コマンドを用い * ENTRY  DICTIONAR,Yくディクシ
冒ナリメンバ種別〉く定義情報〉と指定する。
To register definition information in the dictionary, for example, use ENTR,
Using the Y operation command, specify * ENTRY DICTIONAR, Y entry member type, definition information.

ここで、くディクショナリメンバ種別〉とは。Here, what is dictionary member type?

ディクショナリへの定義情報の登録を、幾つかの定義単
位に分けたとき、その定義単位を識別するのに指定する
記号である。又、く定義情報〉とは。
This is a symbol specified to identify the definition unit when the definition information registered in the dictionary is divided into several definition units. Also, what is "definition information"?

ディクショナリに登録する定義ソースのことである。This is a definition source that is registered in a dictionary.

ディクショナリを参照して、テーブル形式く生成された
ディレクトリの例を第8図に示す。また。
FIG. 8 shows an example of a directory generated in table format by referring to the dictionary. Also.

ディレクトリを生成する方法は定義操作プログラムによ
る場合がある。例えば、 ENTRY操作コマンドを用
い。
A method for creating a directory may be based on a definition operation program. For example, using the ENTRY manipulation command.

* gNTf(、Y  DIRECTO凡Yくブイレフ
) IJメンバ種別〉く定義情報名〉と指定する。
*gNTf (, Y DIRECTO) Specify IJ member type〉definition information name〉.

ここで、くディレクトリメンバ種別さとは、生成したい
ディレクトリテーブルの識別記号である。
Here, the directory member type is an identification symbol of the directory table to be generated.

更に詳細にブイレフ) IJ生成処理について第6図の
フローチャートに基づき説明する。
In more detail, the IJ generation process will be explained based on the flowchart of FIG.

ディレクトリ生成の要求により、まず生成要求のあった
名称を持つディクショナリメンバをディクシ冒ナリの中
から検索しく 201 ) 、ディレクトリ生成時の履
歴情報となるブイレフ) IJ生成用ディクショナリメ
ンバテープルにディレクトリ生成要求のメンバ情報をセ
ットする( 202 )。次にこのディクショナリメン
バをもとにディレクトリ生成に必要である関連ディクシ
ョナリメンバの検索を行い(203) 、関連ディクシ
ョナリメンバが存在すれば(204) 、ディレクトリ
生成用ディクシlチリメンバテーブルにディレクトリ生
成要求のメンバ情報をセットする。処理を関連メンバ数
行い関連ディクシ曹ナリメンバが存在しなくなれば(2
0a ) 、既に生成されているディレクトリ群の中を
検索して、生成要求のあった名称を持つディレクトリメ
ンバが存在するかを調べ、存在しない場合は(203)
 、ディクショナリ中にディレクトリ生成用ディクショ
ナリメンバテーブルを格納しく 1908 ) 、更に
ディレクトリ中にディレクトリ生成用ディクショナリメ
ンバテーブルを格納する( 1909 )処理を行う。
When a directory generation request is made, the dictionary member with the name for which the generation request has been requested is first searched from among the dictionary entries. Set member information (202). Next, based on this dictionary member, a search is made for a related dictionary member necessary for directory generation (203), and if a related dictionary member exists (204), a directory generation request is entered in the dictionary member table for directory generation. Set member information. If the process is performed for the number of related members and the related Dixie member no longer exists (2
0a) Search the already created directories to see if a directory member with the name requested for creation exists, and if it does not exist (203)
, stores the directory generation dictionary member table in the dictionary (1908), and further stores the directory generation dictionary member table in the directory (1909).

生成要求のあった名称を持つディレクトリメンバが存在
する場合(203) 。
If a directory member with the name requested for generation exists (203).

ディレクトリ中に格納しておいたディレクトリ生成用デ
ィクシ田ナリメンバテーブルを検索しく20t3)。
Search the directory generation dictionary member table stored in the directory (20t3).

202の処理で作成したディレクトリ生成用ディクショ
ナリメンバテーブルの内容と同一であるかを調べる。こ
れにより同一であることが判明すれば(207)生成要
求により同一内容のブイレフ) IJメンバが作成され
ることとなるため、ディレクトリ生成処理を終了する。
It is checked whether the contents are the same as the directory generation dictionary member table created in step 202. If it is found that they are the same (207), an IJ member with the same content will be created in accordance with the generation request, and the directory generation process will be terminated.

2つのテーブルの内容が異なる場合(207) 、ディ
クシlテリ中に、202の処理で作成したディレクトリ
生成用ディクショナリメンバテーブルを格納< 208
 )すると共に。
If the contents of the two tables are different (207), store the dictionary member table for directory generation created in the process of 202 in the dictionary < 208
) with.

ディレクトリ中にも同様のテーブルを格納(209)す
る。
A similar table is also stored in the directory (209).

これにより、ディクショナリ及びディレクトリにディレ
クトリ生成時の履歴情報を持つことができ、ディレクト
リ生成時、同一の内容を持つメンバな生成することを防
ぐことも可能となる。
As a result, the dictionary and the directory can have history information at the time of directory creation, and when creating a directory, it is also possible to prevent the creation of members with the same content.

次に、ディクショナリからディレクトリを生成したのと
同様の方法によって、定義操作プログラムを使って、メ
タディレクトリを生成する場合の定義操作プログラムの
処理内容を、第2図のフローチャートにより説明する。
Next, the processing contents of the definition operation program when a metadirectory is generated using the definition operation program in the same manner as the method used to generate a directory from a dictionary will be explained with reference to the flowchart of FIG.

定義操作プログラムは、起動時に制御文を与えられると
(101)、制御文の解析を行ない(102”)。
When the definition operation program is given a control statement at startup (101), it analyzes the control statement (102'').

その制御文において、メタディクシ璽ナリの名称が指定
しであるか否かを判定する( 103 )。メタディク
ショナリの名称の指定があれば、以前にメタディレクト
リを生成するときにメタディクショナリを生成している
ので、これを本プログラムにおいてディクショナリとし
てメタディクショナリファイルを割当てる(103)。
In the control statement, it is determined whether the name of the meta dictionary is specified (103). If the name of the meta-dictionary is specified, a meta-dictionary file is assigned as a dictionary in this program since the meta-dictionary was previously generated when the meta-directory was generated (103).

制御文の指定が無い場合、または、メタディクショナリ
の指定が無い場合は1本プログラムの対象なディクショ
ナリとして、ディクシlテリファイルを割当てる( 1
04 )。今までの処理は、定義操作プログラムを使り
て、ディクショナリからメタディクショナリを生成する
ために、ディクショナリを特定し、ファイルに割当てる
作業である。
If no control statement is specified or if no meta dictionary is specified, a dictionary file is assigned as the target dictionary for this program (1
04). The process up to now involves identifying a dictionary and allocating it to a file in order to generate a meta-dictionary from the dictionary using a definition operation program.

ファイル割当て後のメタディクショナリ生成を説明する
Describe meta dictionary generation after file allocation.

定義情報格納メモリ2から、操作コマンド単位に定義情
報が入力され、ワークエリアに格納される(1o6)。
Definition information is input from the definition information storage memory 2 for each operation command and stored in the work area (1o6).

操作コマンドが入力されなければ(107)、処理を終
了する。操作コマンドが入力されると、その解析を行い
clos)、ディクシlテリ登録を指示する操作コマン
ドならば(109)。
If no operation command is input (107), the process ends. When an operation command is input, it is analyzed (clos), and if it is an operation command that instructs dictionary registration (109).

ディクシ璽ナリ登録処理を行なった( 110 )fl
k。
Performed dictionary registration process (110) fl
k.

操作コマンド人力(106)前に戻る。ディレクトリ生
成を指示する操作コマンドならば(111)。
Operation command manual (106) Return to previous page. If it is an operation command that instructs directory generation (111).

ディレクトリ生成処理を行なう(112)。Directory generation processing is performed (112).

制御文の例を次に示すと、メタディクシlテリの論理構
造を定義している論理スキーマの名称をMETADIC
al、ディクショナリの論理構造を定義している論理ス
キーマの名称をDICal とし、ディクショナリの定
義文をメタディクショナリに登録する場合には1次のよ
うに定義を記述する。
An example of a control statement is shown below.The name of the logical schema that defines the logical structure of the meta dictionary is
al, the name of the logical schema that defines the logical structure of the dictionary is DICal, and when registering the definition statement of the dictionary in the meta-dictionary, the definition is written as follows.

* 0PTION SCMID METADICa1*
 ENTRY DICTIONAR,YSCL(HMA
 DIC f(、BCORD R,ECA ITEM COMPAlCHARACTER(8)つま
り、ディクショナリにディクショナリ自体の構造を定義
した定義文を一般のデータベースの構造に関する定義情
報として登録する。
*0PTION SCMID METADICa1*
ENTRY DICTIONAR, YSCL (HMA
DIC f(, BCORD R, ECA ITEM COMPAL CHARACTER (8) In other words, a definition statement that defines the structure of the dictionary itself is registered in the dictionary as definition information regarding the structure of a general database.

ディクショナリの構造を定義した情報とは、論理スキー
マとレコード名称がどのデータセットの−どのエリアに
格納されているかに関する情報である。
The information defining the structure of the dictionary is information regarding which data set and in which area the logical schema and record name are stored.

この構造定義情報に、新たに格納するエリアを指定する
こともできる。これにて、ディクショナリへのディクシ
ョナリ構造の定義情報の登録段階より、ディクシッナリ
の構造の変更を行うことが可能となる。ディクショナリ
に登録された構造定義情報を使って、ディレクトリの生
成を行う。このディレクトリはユーザが使い易いテーブ
ル型となっており、これをメタディクショナリ用のディ
レクトリと言う。このメタディクショナリ用デイレクト
リを一般のユーザデータベースを作成するために、デー
タセットにレコードを割当てるのと同様の方法により、
データセットにレコードを割当て、ディクショナリの構
造の定義情報を書き出して登録し、メタディクショナリ
を作成する。
It is also possible to specify a new storage area in this structure definition information. This makes it possible to change the structure of the dictionary from the stage of registering definition information of the dictionary structure in the dictionary. Generate a directory using the structure definition information registered in the dictionary. This directory has a table type that is easy for users to use, and is called the metadictionary directory. To create this metadictionary directory to create a general user database, use the same method as assigning records to datasets.
Allocate records to the dataset, write out and register the dictionary structure definition information, and create a metadictionary.

一般のディレクトリを生成する場合は、第4図に示す定
義文を入力として定義操作プログラムを起動する。更に
、このメタディクショナリを基に。
When creating a general directory, the definition operation program is started with the definition statement shown in FIG. 4 as input. Furthermore, based on this meta-dictionary.

前述したディクショナリからディレクトリを生成したの
と同様に定義操作プログラムを使ってディレクトリ生成
を行う。
A directory is generated using a definition operation program in the same way as the directory was generated from the dictionary described above.

本定義操作プログラムでは、ディクショナリの代りにメ
タディクショナリを対象として、ディレクトリ生成方法
を用いてメタディレクトリの生成を行う。ここでメタデ
ィクシッナリから生成されたディレクトリがメタディレ
クトリである。メタディレクトリは、ユーザが使い易い
テーブル型となっており、ディクシ冒ナリの構造定義を
基にメタディクショナリを生成し、テーブル型に変換し
たものであるので、ディクシ冒ナリの論理構造を定義し
、これに対応するレコードの物理的格納エリアを決定し
ている制御情報である。
This definition operation program uses a directory generation method to generate a metadirectory, targeting a metadictionary instead of a dictionary. Here, the directory generated from the meta dictionary is a meta directory. The metadirectory is a table type that is easy for users to use, and the meta dictionary is generated based on the structure definition of the dictionary and converted to a table type, so the logical structure of the dictionary is defined, This is control information that determines the physical storage area of the corresponding record.

このようにディレクトリ生成方法を、メタディクショナ
リ用ディレクトリとメタディレクトリの2度の生成を行
った理由は、メタディクシ冒ナリ用ディレクトリがディ
クショナリを参照しながら生成するためメタディクショ
ナリ用デイレクトリを変更・更新する操作は、ディクシ
冒ナリの構造とその構造の定義してテーブル形式にした
ディレークトリとの間での不一致防止の保護機能が働く
ため、メタディクショナリ用デイレクトリを使用できな
い。従って、ディクショナリとは別個のメタディクシl
テリを生成し、このメタディクショナリのディレクトリ
であるメタディレクトリを生成してこのメタディレクト
の更新操作を行うことで一ディクショナリの構造更新が
可能とする。
The reason why we created the directory twice: the metadictionary directory and the metadirectory, is because the metadictionary directory is generated while referring to the dictionary, so the process of changing and updating the metadictionary directory is necessary. cannot use the meta-dictionary directory because a protection function is activated to prevent a mismatch between the structure of the dictionary and the directory in which that structure is defined in table format. Therefore, a meta-dictionary separate from the dictionary
The structure of one dictionary can be updated by generating a metadirectory, which is a directory of this metadictionary, and performing an update operation on this metadirectory.

本実施例においては、ディクシッナリの構造と同一の構
造をディクシ田ナリに登録して、処理する場合を示す。
In this embodiment, a case is shown in which the same structure as the dictionary structure is registered in the dictionary and processed.

指定する定義文は、第3図に示すディクショナリ構造定
義文と同一の定義を用い、データベース名称(401)
だけを変更したものを使用する。即ち、ディクショナリ
と同一構造を持つ別のデータベースを作成する。
The definition statement to be specified is the same as the dictionary structure definition statement shown in Figure 3, and the database name (401)
Use only the modified version. That is, create another database with the same structure as the dictionary.

メタディクシッナリを使用してディレクトリを生成する
場合は、第5図に示す形式の定義文を入力として定義操
作プログラムを起動し、ディレクトリを生成する。
When creating a directory using the meta dictionary, a definition operation program is started with a definition statement in the format shown in FIG. 5 as input, and the directory is created.

指定する定義文は、ディクショナリとして使用するデー
タベース名称(501)を指定した制御文と、データベ
ースの定義文を使用する。メタディレクトリを生成する
場合は、スキーマ名称(3O2)としてディクショナリ
データベース名称を指定し、以下ディクシ冒ナリの構造
を定義した定義文を使用する。
The specified definition statement uses a control statement specifying the database name (501) used as a dictionary and a database definition statement. When creating a metadirectory, specify the dictionary database name as the schema name (3O2), and use the following definition statement that defines the structure of the dictionary.

第5図は、定義操作プログラムが使用するファイルを示
している。一般のディレクトリを生成する場合は、操作
コマンド、及び定義情報C502)を入力として定義操
作プログラム(503)を起動すると、ディレクトリデ
ータセット(503)からメタディレクトリ(508)
をロードし、ディクショナリデータセット(504)に
対してアクセスを行ない、ディレクトリを生成し、ディ
レクトリデータセット(503)に格納する。
FIG. 5 shows files used by the definition operation program. When generating a general directory, when the definition operation program (503) is started with the operation command and definition information C502) as input, a metadirectory (508) is created from the directory data set (503).
is loaded, accesses the dictionary data set (504), generates a directory, and stores it in the directory data set (503).

メタディクショナリを生成する場合は、ディクシ目ナリ
データセット(504)にメタディクショナリ構造定義
文(507)を格納し、その定義文を基に、メタディク
ショナリ用ディレクトリ(509)を生成し、ディレク
トリデータセット(503)に格納する。このメタディ
クショナリ用デイレクトリ(509)を用いて、メタデ
ィクショナリデータセツト(506)を割り当てる。次
に、メタディレクトリを生成する場合には、制御文(5
01)と操作コマンド、定義情報(502)を入力とし
て定義操作プログラム< SOS )を起動すると、デ
ィレクトリデータセット< 505 )からメタディク
シ讐ナリ用ディレクトリ(509)をロードし、メタデ
ィクショナリに対してアクセスを行ない、メタディレク
トリ(508)を生成し、ディレクトリデータセット(
503)に格納する。
When generating a meta-dictionary, store a meta-dictionary structure definition statement (507) in a dictionaries data set (504), generate a meta-dictionary directory (509) based on the definition statement, and create a directory data set. (503). Using this meta-dictionary directory (509), a meta-dictionary data set (506) is allocated. Next, when creating a metadirectory, use the control statement (5
01), an operation command, and definition information (502) to start the definition operation program (SOS), it loads the meta dictionary directory (509) from the directory data set (505) and accesses the meta dictionary. , generate a metadirectory (508), and create a directory dataset (
503).

上記例では、ディクショナリの構造をそのままディクシ
ョナリに登録し、メタディレクトリを生成し、メタディ
レクトリの追加変更により、ディレクトリの構造の更新
を行う説明をしたが、ディクシ璽ナリにディクシ冒ナリ
の構造を定義する段階で構造変更を行う方法も可能であ
るし、またメタディクシlテリ用ディレクトリをもとに
、データセットを割当て、構造定義情報を書き込んでい
く段階で、つまりメタディクショナリを生成する段階で
ディクショナリの構造を変更して生成し。
In the above example, we explained that the structure of the dictionary is registered in the dictionary as is, a metadirectory is generated, and the structure of the directory is updated by adding and changing the metadirectory. However, the structure of the dictionary is defined in the dictionary. It is also possible to change the structure at the stage of creating the meta dictionary, or to change the structure of the dictionary at the stage of allocating datasets and writing structure definition information based on the meta dictionary directory, that is, at the stage of generating the meta dictionary. Change the structure and generate it.

ディクショナリの構造更新を行うことも可能である。It is also possible to update the structure of the dictionary.

本発明によれば、ディクショナリとメタディクショナリ
との2つのライブラリを使用することにより、1つのプ
ログラムで、容易にメタディレクトリを生成できるよう
になる。
According to the present invention, by using two libraries, a dictionary and a metadictionary, a metadirectory can be easily generated with one program.

このメタディクショナリは、一度作成しておけばメタデ
ィレクトリ生成の度に再作成する必要は無いため、ディ
クシlテリのチェーンアップをより容易にできる。
This meta dictionary, once created, does not need to be recreated each time a meta directory is generated, making it easier to chain up dictionaries.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、ディクシ冒ナリの管理情報の追加ある
いは格納構造の変更等、メタディレクトリの再生成を行
なう必要が生じた場合、特別なプログラムを使用するこ
となく、メタディクショナリフアイルの割当て、ジョブ
制御文の変更、定義操作プログラム制御文の変更、ディ
クショナリ定義文の修正を行なえば、ユーザ定義情報の
操作と同程度の簡易さでメタディレクトリを生成できる
ので、操作性、保守性の向上に効果がある。
According to the present invention, when it becomes necessary to regenerate a metadirectory such as adding management information to a dictionary or changing the storage structure, it is possible to allocate a metadictionary file and create a job without using a special program. By changing the control statements, changing the definition operation program control statements, and modifying the dictionary definition statements, you can generate a metadirectory with the same ease as manipulating user-defined information, which is effective in improving operability and maintainability. There is.

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

第1図は本発明の一実施例のハードウェア構成図、第2
図は定義操作プログラムの全体処理概要を例示した図、
第5図はディクショナリ構造定義文をメタディクショナ
リに登録し、メタディレクトリを生成するための定義例
、第4図はユーザデータベース定義をディクショナリに
登録し、ディレクトリを生成するための定義例、第5図
は定義操作プログラムが使用するファイル構成を示した
図、第6図はディレクトリ生成処理のフローチャート図
、第7図はディクショナリを示す図、第8図はディレク
トリを示す図である。 1・・・プロセッサ、2・・・定義情報格納メモリ、3
・・・ディクショナリフアイル格納メモリ、4・・・メ
タディクショナリファイル格納メモリ、5・・・ディレ
クトリファイル格納メモリ、6・・・定義操作プログラ
ム格納メモリ、7・・・ワークエリア、501・・・制
御文、502・・・定義情報・操作コマンド、5o5・
・・定義操作プログラム、5o4・・・ディクショナリ
データセット、505・・・ディレクトリデータセット
、506・・・メタディクシ曹ナリデータセット、50
7・・・メタディクショナリ、508・・・メタディレ
クトリ、509・・・メタディクシlテリ用ディレクト
リ、510・・・ディクシ冒ナリ。
Figure 1 is a hardware configuration diagram of an embodiment of the present invention, Figure 2 is a hardware configuration diagram of an embodiment of the present invention.
The figure shows an example of the overall processing overview of the definition operation program.
Figure 5 is an example of a definition for registering a dictionary structure definition statement in a meta dictionary and generating a metadirectory. Figure 4 is an example of a definition for registering a user database definition in a dictionary and generating a directory. Figure 5 6 is a flowchart of directory generation processing, FIG. 7 is a dictionary, and FIG. 8 is a directory. 1... Processor, 2... Definition information storage memory, 3
... Dictionary file storage memory, 4... Meta dictionary file storage memory, 5... Directory file storage memory, 6... Definition operation program storage memory, 7... Work area, 501... Control statement , 502... definition information/operation command, 5o5.
...Definition operation program, 5o4...Dictionary data set, 505...Directory data set, 506...Meta dictionary data set, 50
7...Meta dictionary, 508...Meta directory, 509...Meta dictionary directory, 510...Dictionary dictionary.

Claims (3)

【特許請求の範囲】[Claims] (1)構造型データベースの論理構造を定義する定義情
報を記憶するデータディクショナリと、前記定義情報の
全部または一部がデータベースのアクセスを行なうため
参照されるテーブル形式に変換されてなるディレクトリ
と、前記データディクショナリをアクセスするため参照
されるメタディレクトリとを有するデータベースシステ
ムにおいて、 前記データディクショナリに前記データディクショナリ
自体の構造を示す定義情報であるディクショナリ定義情
報を書き込み、前記ディクショナリ定義情報を変換して
第1のディレクトリを生成し、生成された第1のディレ
クトリをもとにアクセスされる1つのデータベースに前
記ディクショナリ定義情報を書き込み、前記1つのデー
タベースに書き込まれた前記ディクショナリ定義情報を
変換し、前記メタディレクトリを生成することを特徴と
するデータディクショナリ・ディレクトリをもつデータ
ベースの制御方式。
(1) a data dictionary that stores definition information that defines the logical structure of a structural database; a directory in which all or part of the definition information is converted into a table format that is referred to for accessing the database; In a database system having a metadirectory that is referred to in order to access a data dictionary, writing dictionary definition information, which is definition information indicating the structure of the data dictionary itself, into the data dictionary, converting the dictionary definition information, and converting the dictionary definition information into a first generate a directory, write the dictionary definition information to one database that is accessed based on the generated first directory, convert the dictionary definition information written to the one database, and write the dictionary definition information to one database that is accessed based on the generated first directory. A control method for a database having a data dictionary/directory, which is characterized by generating a data dictionary/directory.
(2)前記データベースは更に前記データディクショナ
リから前記ディレクトリを生成する生成手段を有し、前
記1つのデータベースに記憶されたディレクトリ定義情
報は前記生成手段により前記変換が行なわれることを特
徴とする特許請求の範囲第1項記載のデータディクショ
ナリ・ディレクトリをもつデータベースの制御方式。
(2) The database further includes a generation means for generating the directory from the data dictionary, and the conversion is performed on the directory definition information stored in the one database by the generation means. A control method for a database having a data dictionary/directory as described in item 1.
(3)前記ディクショナリ定義情報を変換し前記メタデ
ィレクトリを生成する過程において、前記ディクショナ
リ定義情報を変換して前記ディレクトリの形式のテーブ
ルを得、これに変更を加えることによって更新されたメ
タディレクトリを生成することを特徴とする特許請求の
範囲第1項記載のデータディクショナリ・ディレクトリ
をもつデータベースの制御方式。
(3) In the process of converting the dictionary definition information and generating the metadirectory, convert the dictionary definition information to obtain a table in the directory format, and generate an updated metadirectory by making changes to the table. A control method for a database having a data dictionary/directory as claimed in claim 1.
JP61096716A 1986-04-28 1986-04-28 How to control a database with a data dictionary directory Expired - Lifetime JPH0754479B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61096716A JPH0754479B2 (en) 1986-04-28 1986-04-28 How to control a database with a data dictionary directory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61096716A JPH0754479B2 (en) 1986-04-28 1986-04-28 How to control a database with a data dictionary directory

Publications (2)

Publication Number Publication Date
JPS62254246A true JPS62254246A (en) 1987-11-06
JPH0754479B2 JPH0754479B2 (en) 1995-06-07

Family

ID=14172467

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61096716A Expired - Lifetime JPH0754479B2 (en) 1986-04-28 1986-04-28 How to control a database with a data dictionary directory

Country Status (1)

Country Link
JP (1) JPH0754479B2 (en)

Also Published As

Publication number Publication date
JPH0754479B2 (en) 1995-06-07

Similar Documents

Publication Publication Date Title
US5819282A (en) Database generator
US5829006A (en) System and method for efficient relational query generation and tuple-to-object translation in an object-relational gateway supporting class inheritance
US4864497A (en) Method of integrating software application programs using an attributive data model database
EP1042721B1 (en) Integrating both modifications to an object model and modifications to a database into source code by an object-relational mapping tool
US5664177A (en) Data processing system having a data structure with a single, simple primitive
US6148296A (en) Automatic generation of database queries
US5561793A (en) System and methods for data field management in a computer database system
US5832498A (en) Device for generating object-oriented interfaces for relational data bases and a process implemented by this device
US5857195A (en) Method of developing and modifying self-describing database management system to generate a new database management system from an existing database management system
US20090106267A1 (en) Dynamic management of multiple persistent data stores
JP2001527243A (en) Method and apparatus for generating an index in a relational database corresponding to a class in an object-oriented application
JP2644728B2 (en) Data dictionary directory system
US5394546A (en) Database management system and method of extending system functions
US6301581B1 (en) Method and system for managing access to a plurality of data objects
JPH09244896A (en) Object base structuring method for permanent object, computer readable medium, and information operation system
WO2001095154A2 (en) Object-relational mapping for tables without primary keys
JPS62254246A (en) Control system for data base having data dictionary directory
JPH09305622A (en) Method and system for managing data base having document retrieval function
US20040044692A1 (en) Collection storage system
JPH07210568A (en) File management device
JPH0962696A (en) Data base managing system
JPH04348468A (en) Data base device
JP2540821B2 (en) Database search system
JP2608170B2 (en) Related database processing device
JPH03161864A (en) Document control processing system