JPH0754479B2 - How to control a database with a data dictionary directory - Google Patents
How to control a database with a data dictionary directoryInfo
- Publication number
- JPH0754479B2 JPH0754479B2 JP61096716A JP9671686A JPH0754479B2 JP H0754479 B2 JPH0754479 B2 JP H0754479B2 JP 61096716 A JP61096716 A JP 61096716A JP 9671686 A JP9671686 A JP 9671686A JP H0754479 B2 JPH0754479 B2 JP H0754479B2
- Authority
- JP
- Japan
- Prior art keywords
- dictionary
- directory
- database
- meta
- 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.)
- Expired - Lifetime
Links
- 238000000034 method Methods 0.000 claims description 21
- 230000008859 change Effects 0.000 claims description 9
- 230000008569 process Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 238000013499 data model Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 102100022928 DNA repair protein RAD51 homolog 1 Human genes 0.000 description 1
- 101000620735 Homo sapiens DNA repair protein RAD51 homolog 1 Proteins 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、構造型データベースを使用したデータディク
ショナリ・ディレクトリシステムにおけるデータディク
ショナリの構造変更に係り、特にデータディクショナリ
構造を更新するのに好適なデータディクショナリ構造の
更新方式に関する。Description: TECHNICAL FIELD The present invention relates to a structure change 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. A method for updating a dictionary structure.
構造型データベースのデータディクショナリ・ディレク
トリシステムにおいて、ディクショナリ自体の構造を定
義して、これに対応するレコードの物理的格納エリアを
決定しているディクショナリの構造制御情報は、データ
セットに設定されていて、メタディレクトリといわれ
る。In the data dictionary directory system of the structured database, the structure of the dictionary itself is defined and the physical storage area of the corresponding record is determined. The structure control information of the dictionary is set in the data set, It is called a metadirectory.
このメタディレクトリでは、ディクショナリ自体の構造
とメタディレクトリとは一致している必要があり、両者
に不一致が生じないように、メタディレクトリのみの書
き替えを禁止する防護機能を設けてあるのが一般的であ
る。In this metadirectory, the structure of the dictionary itself and the metadirectory must match, and it is common to provide a protection function that prohibits rewriting of the metadirectory only to prevent inconsistencies between the two. Is.
従って、従来技術において、ディクショナリ自体の構造
変更を必要とする場合は、メタディレクトリを別に手書
にて生成するか、これに類する専用ツールにて生成する
必要があり、この生成したメタディレクトリを変更し
て、ディクショナリの構造を新しく定義し、メタディレ
クトリを更新することで新しい構造のディクショナリを
更新する必要があった。Therefore, in the conventional technology, when it is necessary to change the structure of the dictionary itself, it is necessary to generate a metadirectory separately by handwriting or by using a dedicated tool similar to this, and change the generated metadirectory. Then, it was necessary to define a new dictionary structure and update the dictionary with the new structure by updating the metadirectory.
尚、ディクショナリ及びメタディレクトリの概念につい
て紹介しているものに、データディクショナリ/ディレ
クトリシステム、オーム社(1986年、ベルキス.ダブリ
ュ.レオンホン,バーナード.ケー.プラグマン共著、
穂鷹良介監訳、成田光彰訳)第63頁から第76頁(Data D
ictionary/Directory Systems Belkis W.Leong-Hong an
d Bernard K. Plagman 1982 by John Wiley & Sons,In
c)があるが、メタディレクトリを容易に生成して、デ
ィクショナリ自体の構造を更新する方式については述べ
られていない。Data dictionary / directory system, Ohmsha Co., Ltd. (1986, Berkiss. W. Leonhon, Bernard K. Pragman,
Translated by Ryosuke Hotaka and translated by Mitsuaki Narita, pp. 63-76 (Data D
ictionary / Directory Systems Belkis W. Leong-Hong an
d Bernard K. Plagman 1982 by John Wiley & Sons, In
There is c), but there is no mention of a method for easily generating a metadirectory and updating the structure of the dictionary itself.
従来、メタディレクトリは手書き、またはこれに類する
専用ツール等を使ってディクショナリの構造を新しく定
義する必要があり、ディクショナリデータベース構造の
変更作業は、定義文とツールの両方に修正を加える必要
があるため、簡単には行なえなかった。Conventionally, the metadirectory needs to define the dictionary structure newly by handwriting or by using a dedicated tool similar to this, and the modification work of the dictionary database structure requires modification to both the definition statement and the tool. , It wasn't easy.
本発明の目的は、ディクショナリに登録されているデー
タベースの構造の定義情報をディレクトリを生成して操
作することで、データベースの論理構造の追加変更を行
うのと同様の容易さで、ディクショナリ自体の構造を更
新し、ディクショナリ構造の更新の操作性・保守性の向
上となるディクショナリ構造の更新方式を提供すること
にある。An object of the present invention is to generate a directory for manipulating definition information of the structure of a database registered in the dictionary and operate the same, thereby making it possible to add and change the logical structure of the database with the same ease as the structure of the dictionary itself. To provide a dictionary structure updating method that improves the operability and maintainability of updating the dictionary structure.
上記目的は、ディクショナリ自体の構造の定義情報をデ
ィクショナリに、一般のデータベースの論理構造の定義
情報を登録するのと同時に登録し、このディクショナリ
自体の構造を定義したディクショナリを参照してディレ
クトリの生成を行い(これをメタディクショナリ用ディ
レクトリという)、更にディクショナリの構造をデータ
ベースの論理構造とみなして、ディクショナリの構造を
定義し(これをメタディクショナリという)、今度はメ
タディクショナリを参照してディレクトリを生成し(こ
れをメタディレクトリという)、このメタディレクトリ
を操作してディクショナリの構造更新を行うことにより
達成される。For the above purpose, the definition information of the structure of the dictionary itself is registered in the dictionary at the same time as the definition information of the logical structure of the general database is registered, and a directory is created by referring to the dictionary that defines the structure of the dictionary itself. Do this (this is called the meta-dictionary directory), further consider the structure of the dictionary as the logical structure of the database, define the structure of the dictionary (this is called the meta-dictionary), and then refer to the meta-dictionary to generate the directory. (This is referred to as a metadirectory), which is achieved by manipulating this metadirectory to update the structure of the dictionary.
本発明のディクショナリ構造の更新方式は、データベー
スの構造について定義する定義情報を記述してあるデー
タディクショナリを参照して、ユーザがデータベースを
使い易くするためのテーブル形式のディレクトリに変換
生成する定義操作プログラムを使い、ディクショナリ自
体の構造の定義情報をディクショナリに登録し、このデ
ィクショナリ自体の構造の定義情報を登録したディクシ
ョナリからディレクトリの生成を行い(メタディクショ
ナリ用ディレクトリを生成する)、これをデータセット
に割当てて、更にディクショナリ自体の構造をデータセ
ットにて定義し(メタディクショナリを生成する)、こ
のメタディクショナリから定義操作プログラムを使って
ディレクトリを生成し(メタディレクトリを生成す
る)、このメタディレクトリに変更等の操作をすること
で、ディクショナリの構造の更新を容易に行なえる。A dictionary structure updating method of the present invention refers to a data dictionary in which definition information defining a structure of a database is described, and a definition operation program for converting and generating into a table format directory for making a database easy for a user to use. Use, to register the definition information of the structure of the dictionary itself in the dictionary, generate a directory from the dictionary in which the definition information of the structure of this dictionary itself is registered (generate a directory for meta-dictionary), and assign this to a dataset. Then, the structure of the dictionary itself is defined in the data set (meta-dictionary is generated), the directory is generated from this meta-dictionary using the definition operation program (meta-directory is generated), and this meta-directory is generated. By an operation such as changing the birds, easily to update the structure of the dictionary.
以下、本発明の一実施例を第1図から第8図により説明
する。An embodiment of the present invention will be described below with reference to FIGS. 1 to 8.
本発明が実現されるハードウェア構成を第1図に示す。
1は、プロセッサであり、必要な情報の検索の処理を行
う。2は、定義情報を格納しておく定義情報格納メモ
リ、3は、ディクショナリを格納しておくディクショナ
リファイル格納メモリ、4は、メタディクショナリを格
納しておくメタディクショナリファイル格納メモリ、5
は、ディレクトリを格納しておくディレクトリファイル
格納メモリ、6は、本発明を実現した定義操作のプログ
ラムを格納する定義操作プログラム格納メモリ、7は、
検索した情報を格納するワークエリアを示している。A hardware configuration for implementing the present invention is shown in FIG.
Reference numeral 1 is a processor, which performs a process of searching for necessary information. Reference numeral 2 is a definition information storage memory for storing definition information, 3 is a dictionary file storage memory for storing a dictionary, 4 is a meta dictionary file storage memory for storing a meta dictionary, 5
Is a directory file storage memory for storing a directory, 6 is a definition operation program storage memory for storing a definition operation program realizing the present invention, and 7 is
A work area for storing the retrieved information is shown.
本システムにおいて、ディクショナリファイル格納メモ
リ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 is directed to a structured database, the basis of which is a networked data model, and in particular a data dictionary directory system having this structure.
ネットワーク型データモデルは、階層データ構造におい
て論理レコードの分岐したフィールドの間に関連をもっ
ている場合であり、論理レコードの中のフィールドを識
別し、そのありかを知る方法としては、相対的な位置を
知ることによって行なう場合とレコードに含まれている
標識による場合とまたポインタとリストによって行なう
場合とがある。次に、ディクショナリの登録のアクセス
を説明する。The network type data model is a case where there is a relation between the branched fields of the logical record in the hierarchical data structure. As a method of identifying the field in the logical record and knowing its existence, the relative position is determined. It may be done by knowing, by the indicator contained in the record, or by pointers and lists. Next, the access to register the dictionary will be described.
データベースの論理構造を決定するディクショナリの構
造の例を第7図に示す。このディクショナリに名称,番
号,情報等をそれぞれ書き込むことにより、定義情報を
登録する。これにてディクショナリが生成される。An example of the structure of the dictionary that determines the logical structure of the database is shown in FIG. The definition information is registered by writing the name, number, information, etc. in this dictionary. This produces a dictionary.
ディクショナリへのデータベースの構造に関する定義情
報の登録のアクセスは、定義操作プログラムによって行
なわれる例を示す。An example of accessing the dictionary to register definition information about the structure of the database by a definition operation program is shown.
データディクショナリ・ディレクトリの利用者は、定義
操作プログラムに対して、次に例示するような操作コマ
ンドや定義情報を与える。A user of the data dictionary directory gives an operation command and definition information as exemplified below to the definition operation program.
定義情報のディクショナリへの登録は例えばENTRY操作
コマンドを用い *ENTRY DICTIONARY 〈ディクショナリメンバ種別〉〈定義情報〉と指定す
る。To register definition information in the dictionary, use the ENTRY operation command, for example, and specify * ENTRY DICTIONARY <dictionary member type><definitioninformation>.
ここで、〈ディクショナリメンバ種別〉とは、ディクシ
ョナリへの定義情報の登録を、幾つかの定義単位に分け
たとき、その定義単位を識別するのに指定する記号であ
る。又、〈定義情報〉とは、ディクショナリに登録する
定義ソースのことである。Here, the <dictionary member type> is a symbol that is specified to identify the definition unit when the definition information registration in the dictionary is divided into some definition units. Also, <definition information> is a definition source registered in the dictionary.
ディクショナリを参照して、テーブル形式に生成された
ディレクトリの例を第8図に示す。また、ディレクトリ
を生成する方法は定義操作プログラムによる場合があ
る。例えば、ENTRY操作コマンドを用い、 *ENTRY DIRECTORY 〈ディレクトリメンバ種別〉〈定義情報名〉と指定す
る。FIG. 8 shows an example of the directory created in the table format with reference to the dictionary. The method of creating the directory may depend on the definition operation program. For example, using the ENTRY operation command, specify * ENTRY DIRECTORY <directory member type><definition information name>.
ここで、〈ディレクトリメンバ種別〉とは、生成したい
ディレクトリテーブルの識別記号である。Here, <directory member type> is an identification symbol of the directory table to be generated.
更に詳細にディレクトリ生成処理について第6図のフロ
ーチャートに基づき説明する。The directory generation process will be described in more detail with reference to the flowchart of FIG.
ディレクトリ生成の要求により、まず生成要求のあった
名称を持つディクショナリメンバをディクショナリの中
から検索し(201)、ディレクトリ生成時の履歴情報と
なるディレクトリ生成用ディクショナリメンバテーブル
にディレクトリ生成要求のメンバ情報をセットする(20
2)。次にこのディクショナリメンバをもとにディレク
トリ生成に必要である関連ディクショナリメンバの検索
を行い(203)、関連ディクショナリメンバが存在すれ
ば(204)、ディレクトリ生成用ディクショナリメンバ
テーブルにディレクトリ生成要求のメンバ情報をセット
する。処理を関連メンバ数行い関連ディクショナリメン
バが存在しなくなれば(204)、既に生成されているデ
ィレクトリ群の中を検索して、生成要求のあった名称を
持つディレクトリメンバが存在するかを調べ、存在しな
い場合は(205)、ディクショナリ中にディレクトリ生
成用ディクショナリメンバテーブルを格納し(1908)、
更にディレクトリ中にディレクトリ生成用ディクショナ
リメンバテーブルを格納する(1909)処理を行う。生成
要求のあった名称を持つディレクトリメンバが存在する
場合(205)、ディレクトリ中に格納しておいたディレ
クトリ生成用ディクショナリメンバテーブルを検索し
(206)、202の処理で作成したディレクトリ生成用ディ
クショナリメンバテーブルの内容と同一であるかを調べ
る。これにより同一であることが判明すれば(207)生
成要求により同一内容のディレクトリメンバが作成され
ることとなるため、ディレクトリ生成処理を終了する。
2つのテーブルの内容が異なる場合(207)、ディクシ
ョナリ中に、202の処理で作成したディレクトリ生成用
ディクショナリメンバテーブルを格納(208)すると共
に、ディレクトリ中にも同様のテーブルを格納(209)
する。In response to a directory creation request, first search the dictionary for the dictionary member with the requested name in the dictionary (201), and store the directory creation request member information in the directory creation dictionary member table, which is the history information when creating the directory. Set (20
2). Next, based on this dictionary member, the related dictionary member required for directory generation is searched (203), and if the related dictionary member exists (204), the member information of the directory generation request is stored in the dictionary generation dictionary member table. Set. When the number of related members is processed and the related dictionary members no longer exist (204), the directory group that has already been created is searched to see if there is a directory member with the name requested to be created If not (205), store the directory generation dictionary member table in the dictionary (1908),
Further, the processing for storing the directory generation dictionary member table in the directory (1909) is performed. If there is a directory member with the name requested to be created (205), the directory creation dictionary member table stored in the directory is searched (206), and the directory creation dictionary member created in the process of 202 is searched. Check if it is the same as the contents of the table. If it is found that they are the same (207), a directory member having the same content is created by the creation request, and the directory creation process is terminated.
When the contents of the two tables are different (207), the dictionary generation dictionary member table created in the process of 202 is stored in the dictionary (208), and the same table is also stored in the directory (209).
To do.
これにより、ディクショナリ及びディレクトリにディレ
クトリ生成時の履歴情報を持つことができ、ディレクト
リ生成時、同一の内容を持つメンバを生成することを防
ぐことも可能となる。As a result, the dictionary and the directory can have history information at the time of directory generation, and it is possible to prevent the generation of members having the same contents at the time of directory generation.
次に、ディクショナリからディレクトリを生成したのと
同様の方法によって、定義操作プログラムを使って、メ
タディレクトリを生成する場合の定義操作プログラムの
処理内容を、第2図のフローチャートにより説明する。Next, the processing contents of the definition operation program when the meta-directory is generated by using the definition operation program by the same method as the method of generating the directory from the dictionary will be described with reference to the flowchart of FIG.
定義操作プログラムは、起動時に制御文を与えられると
(101)、制御文の解析を行ない(102)、その制御文に
おいて、メタディクショナリの名称が指定してあるか否
かを判定する(103)。メタディクショナリの名称の指
定があれば、以前にメタディレクトリを生成するときに
メタディクショナリを生成しているので、これを本プロ
グラムにおいてディクショナリとしてメタディクショナ
リファイルを割当てる(105)。When the definition operation program is given a control statement at startup (101), it analyzes the control statement (102) and determines whether or not the name of the meta-dictionary is specified in the control statement (103). . If the name of the meta-dictionary is specified, the meta-dictionary is generated when the meta-directory was generated previously, so this program assigns the meta-dictionary file as the dictionary (105).
制御文の指定が無い場合、または、メタディクショナリ
の指定が無い場合は、本プログラムの対象をディクショ
ナリとして、ディクショナリファイルを割当てる(10
4)。今までの処理は、定義操作プログラムを使って、
ディクショナリからメタディクショナリを生成するため
に、ディクショナリを特定し、ファイルに割当てる作業
である。If no control statement is specified or if no meta-dictionary is specified, assign a dictionary file with this program as the dictionary (10
Four). The processing so far uses the definition operation program,
This is a task to specify a dictionary and assign it to a file in order to generate a meta dictionary from the dictionary.
ファイル割当て後のメタディクショナリ生成を説明す
る。Generation of meta-dictionary after file allocation will be described.
定義情報格納メモリ2から、操作コマンド単位に定義情
報が入力され、ワークエリアに格納される(106)。操
作コマンドが入力されなければ(107)、処理を終了す
る。操作コマンドが入力されると、その解析を行い(10
8)、ディクショナリ登録を指示する操作コマンドなら
ば(109)、ディクショナリ登録処理を行なった(110)
後、操作コマンド入力(106)前に戻る。ディレクトリ
生成を指示する操作コマンドならば(111)、ディレク
トリ生成処理を行なう(112)。Definition information is input from the definition information storage memory 2 in units of operation commands and stored in the work area (106). If no operation command is input (107), the process ends. When an operation command is entered, it is analyzed (10
8) If it is an operation command to instruct dictionary registration (109), dictionary registration processing was performed (110).
After that, the procedure returns to the step before the operation command input (106). If it is an operation command for instructing directory generation (111), directory generation processing is performed (112).
制御文の例を次に示すと、メタディクショナリの論理構
造を定義している論理スキーマの名称をMETADIC 01、デ
ィクショナリの論理構造を定義している論理スキーマの
名称をDIC 01とし、ディクショナリの定義文をメタディ
クショナリに登録する場合には、次のように定義を記述
する。The following is an example of a control statement.The name of the logical schema that defines the logical structure of the meta-dictionary is METADIC 01, the name of the logical schema that defines the logical structure of the dictionary is DIC 01, and the definition statement of the dictionary is When registering in the meta dictionary, describe the definition as follows.
*OPTION SCMID METADIC 01 *ENTRY DICTIONARY SCHEMA DIC RECORD RECA ITEM COMPA1 CHARACTER(8) つまり、ディクショナリにディクショナリ自体の構造を
定義した定義文を一般のデータベースの構造に関する定
義情報として登録する。* OPTION SCMID METADIC 01 * ENTRY DICTIONARY SCHEMA DIC RECORD RECA ITEM COMPA1 CHARACTER (8) In other words, the definition statement that defines the structure of the dictionary itself is registered in the dictionary as definition information about the structure of the general database.
ディクショナリの構造を定義した情報とは、論理スキー
マとレコード名称がどのデータセットのどのエリアに格
納されているかに関する情報である。The information that defines the structure of the dictionary is the information on which area of which data set the logical schema and record name are stored.
この構造定義情報に、新たに格納するエリアを指定する
こともできる。これにて、ディクショナリへのディクシ
ョナリ構造の定義情報の登録段階より、ディクショナリ
の構造の変更を行うことが可能となる。ディクショナリ
に登録された構造定義情報を使って、ディレクトリの生
成を行う。このディレクトリはユーザが使い易いテーブ
ル型となっており、これをメタディクショナリ用のディ
レクトリと言う。このメタディクショナリ用ディレクト
リを一般のユーザデータベースを作成するために、デー
タセットにレコードを割当てるのと同様の方法により、
データセットにレコードを割当て、ディクショナリの構
造の定義情報を書き出して登録し、メタディクショナリ
を作成する。An area to be newly stored can be designated in this structure definition information. With this, it is possible to change the structure of the dictionary from the stage of registering the definition information of the dictionary structure in the dictionary. Create a directory using the structure definition information registered in the dictionary. This directory is a table type that is easy for the user to use, and this is called the meta-dictionary directory. This meta-dictionary directory is created in the same way that records are assigned to a dataset to create a general user database.
Allocate a record to the data set, write out the definition information of the dictionary structure and register it, and create a meta dictionary.
一般のディレクトリを生成する場合は、第4図に示す定
義文を入力として定義操作プログラムを起動する。更
に、このメタディクショナリを基に、前述したディクシ
ョナリからディレクトリを生成したのと同様に定義操作
プログラムを使ってディレクトリ生成を行う。When a general directory is generated, the definition operation program is activated by inputting the definition statement shown in FIG. Further, based on this meta-dictionary, the definition operation program is used to generate a directory in the same manner as the case where the directory is generated from the above-mentioned dictionary.
本定義操作プログラムでは、ディクショナリの代りにメ
タディクショナリを対象として、ディレクトリ生成方法
を用いてメタディレクトリの生成を行う。ここでメタデ
ィクショナリから生成されたディレクトリがメタディレ
クトリである。メタディレクトリは、ユーザが使い易い
テーブル型となっており、ディクショナリの構造定義を
基にメタディクショナリを生成し、テーブル型に変換し
たものであるので、ディクショナリの論理構造を定義
し、これに対応するレコードの物理的格納エリアを決定
している制御情報である。In this definition operation program, a metadirectory is created by using the directory creation method for the meta dictionary instead of the dictionary. Here, the directory generated from the meta dictionary is the meta directory. The metadirectory is a table type that is easy for the user to use. Since the meta dictionary is created based on the structure definition of the dictionary and converted into the table type, the logical structure of the dictionary is defined and the corresponding This is control information that determines the physical storage area of the record.
このようにディレクトリ生成方法を、メタディクショナ
リ用ディレクトリとメタディレクトリの2度の生成を行
った理由は、メタディクショナリ用ディレクトリがディ
クショナリを参照しながら生成するためメタディクショ
ナリ用ディレクトリを変更・更新する操作は、ディクシ
ョナリの構造とその構造の定義してテーブル形式にした
ディレクトリとの間での不一致防止の保護機能が働くた
め、メタディクショナリ用ディレクトリを使用できな
い。従って、ディクショナリとは別個のメタディクショ
ナリを生成し、このメタディクショナリのディレクトリ
であるメタディレクトリを生成してこのメタディレクト
リの更新操作を行うことで、ディクショナリの構造更新
が可能とする。The reason why the directory generation method is used to generate the meta-dictionary directory and the meta-directory twice is that the meta-dictionary directory is generated while referencing the dictionary, so the operation for changing / updating the meta-dictionary directory is , The directory for meta-dictionary cannot be used because the protection function for preventing the inconsistency between the structure of the dictionary and the directory in which the structure is defined and made into the table format works. Therefore, the structure of the dictionary can be updated by generating a meta-dictionary separate from the dictionary, generating a meta-directory that is a directory of this meta-dictionary, and performing an updating operation of this meta-directory.
本実施例においては、ディクショナリの構造と同一の構
造をディクショナリに登録して、処理する場合を示す。In this embodiment, the case where the same structure as the dictionary is registered in the dictionary and processed is shown.
指定する定義文は、第3図に示すディクショナリ構造定
義文と同一の定義を用い、データベース名称(401)だ
けを変更したものを使用する。即ち、ディクショナリと
同一構造を持つ別のデータベースを作成する。As the definition sentence to be specified, the same definition as the dictionary structure definition sentence shown in FIG. 3 is used, and only the database name (401) is changed. That is, another database having the same structure as the dictionary is created.
メタディクショナリを使用してディレクトリを生成する
場合は、第3図に示す形式の定義文を入力として定義操
作プログラムを起動し、ディレクトリを生成する。When a directory is created using the meta-dictionary, the definition operation program is started by using the definition statement in the format shown in FIG. 3 as input, and the directory is created.
指定する定義文は、ディクショナリとして使用するデー
タベース名称(301)を指定した制御文と、データベー
スの定義文を使用する。メタディレクトリを生成する場
合は、スキーマ名称(302)としてディクショナリデー
タベース名称を指定し、以下ディクショナリの構造を定
義した定義文を使用する。As the definition statement to be specified, the control statement specifying the database name (301) used as a dictionary and the definition statement of the database are used. To generate a metadirectory, specify the dictionary database name as the schema name (302) and use the following definition statement that defines the structure of the dictionary.
第5図は、定義操作プログラムが使用するファイルを示
している。一般のディレクトリを生成する場合は、操作
コマンド、及び定義情報(502)を入力として定義操作
プログラム(503)を起動すると、ディレクトリデータ
セット(505)からメタディレクトリ(508)をロード
し、ディクショナリデータセット(504)に対してアク
セスを行ない、ディレクトリを生成し、ディレクトリデ
ータセット(505)に格納する。FIG. 5 shows files used by the definition operation program. When a general directory is created, the definition operation program (503) is started by using the operation command and definition information (502) as input, and the metadirectory (508) is loaded from the directory data set (505) and the dictionary data set is loaded. (504) is accessed to generate a directory and stored in the directory data set (505).
メタディクショナリを生成する場合は、ディクショナリ
データセット(504)にメタディクショナリ構造定義文
(507)を格納し、その定義文を基に、メタディクショ
ナリ用ディレクトリ(509)を生成し、ディレクトリデ
ータセット(505)に格納する。このメタディクショナ
リ用ディレクトリ(509)を用いて、メタディクショナ
リデータセット(506)を割り当てる。次に、メタディ
レクトリを生成する場合には、制御文(501)と操作コ
マンド、定義情報(502)を入力として定義操作プログ
ラム(503)を起動すると、ディレクトリデータセット
(505)からメタディクショナリ用ディレクトリ(509)
をロードし、メタディクショナリに対してアクセスを行
ない、メタディレクトリ(508)を生成し、ディレクト
リデータセット(505)に格納する。When generating a meta-dictionary, store the meta-dictionary structure definition statement (507) in the dictionary data set (504), generate the meta-dictionary directory (509) based on the definition statement, and then generate the directory data set (505). ). A meta-dictionary data set (506) is allocated using this meta-dictionary directory (509). Next, when generating a metadirectory, when the definition operation program (503) is started by inputting the control statement (501), operation command, and definition information (502), the directory for the meta dictionary from the directory data set (505). (509)
Is loaded, the meta dictionary is accessed, a meta directory (508) is generated, and the meta directory (508) is stored in the directory data set (505).
上記例では、ディクショナリの構造をそのままディクシ
ョナリに登録し、メタディレクトリを生成し、メタディ
レクトリの追加変更により、ディレクトリの構造の更新
を行う説明をしたが、ディクショナリにディクショナリ
の構造を定義する段階で構造変更を行う方法も可能であ
るし、またメタディクショナリ用ディレクトリをもと
に、データセットを割当て、構造定義情報を書き込んで
いく段階で、つまりメタディクショナリを生成する段階
でディクショナリの構造を変更して生成し、ディクショ
ナリの構造更新を行うことも可能である。In the above example, the structure of the dictionary is registered as it is in the dictionary, the metadirectory is generated, and the directory structure is updated by adding or changing the metadirectory.However, when the structure of the dictionary is defined in the dictionary, the structure is changed. It is also possible to change it, and change the dictionary structure at the stage of allocating a dataset and writing the structure definition information based on the meta-dictionary directory, that is, at the stage of generating the meta-dictionary. It is also possible to generate and update the structure of the dictionary.
本発明によれば、ディクショナリとメタディクショナリ
との2つのライブラリを使用することにより、1つのプ
ログラムで、容易にメタディレクトリを生成できるよう
になる。According to the present invention, by using two libraries, a dictionary and a meta dictionary, a single program can easily generate a meta directory.
このメタディクショナリは、一度作成しておけばメタデ
ィレクトリ生成の度に再作成する必要は無いため、ディ
クショナリのチューンアップをより容易にできる。Once this meta-dictionary has been created, it is not necessary to re-create it each time a meta-directory is created, so that the dictionary can be tuned up easily.
本発明によれば、ディクショナリの管理情報の追加ある
いは格納構造の変更等、メタディレクトリの再生成を行
なう必要が生じた場合、特別なプログラムを使用するこ
となく、メタディクショナリファイルの割当て、ジョブ
制御文の変更、定義操作プログラム制御文の変更、ディ
クショナリ定義文の修正を行なえば、ユーザ定義情報の
操作と同程度の簡易さでメタディレクトリを生成できる
ので、操作性、保守性の向上に効果がある。According to the present invention, when it becomes necessary to regenerate a metadirectory such as adding dictionary management information or changing a storage structure, metadictionary file allocation and job control statements are performed without using a special program. Change the definition operation, control the definition operation program control statement, and modify the dictionary definition statement, a metadirectory can be created with the same degree of simplicity as the operation of user-defined information, which is effective in improving operability and maintainability. .
第1図は本発明の一実施例のハードウェア構成図、第2
図は定義操作プログラムの全体処理概要を例示した図、
第3図はディクショナリ構造定義文をメタディクショナ
リに登録し、メタディレクトリを生成するための定義
例、第4図はユーザデータベース定義をディクショナリ
に登録し、ディレクトリを生成するための定義例、第5
図は定義操作プログラムが使用するファイル構成を示し
た図、第6図はディレクトリ生成処理のフローチャート
図、第7図はディクショナリを示す図、第8図はディレ
クトリを示す図である。 1……プロセッサ、2……定義情報格納メモリ、3……
ディクショナリファイル格納メモリ、4……メタディク
ショナリファイル格納メモリ、5……ディレクトリファ
イル格納メモリ、6……定義操作プログラム格納メモ
リ、7……ワークエリア、501……制御文、502……定義
情報・操作コマンド、503……定義操作プログラム、504
……ディクショナリデータセット、505……ディレクト
リデータセット、506……メタディクショナリデータセ
ット、507……メタディクショナリ、508……メタディレ
クトリ、509……メタディクショナリ用ディレクトリ、5
10……ディクショナリ。FIG. 1 is a hardware configuration diagram of an embodiment of the present invention, and FIG.
The figure shows an example of the overall processing of the definition operation program.
3 is a definition example for registering a dictionary structure definition statement in the meta dictionary and creating a meta directory, FIG. 4 is a definition example for registering a user database definition in the dictionary, and creating a directory, 5
FIG. 6 is a diagram showing a file structure used by the definition operation program, FIG. 6 is a flowchart diagram of a directory generation process, FIG. 7 is a diagram showing a dictionary, and FIG. 8 is a diagram showing directories. 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, 503 ... Definition operation program, 504
...... Dictionary data set, 505 ...... Directory data set, 506 ...... Meta-dictionary data set, 507 ...... Meta-dictionary, 508 ...... Meta-directory, 509 ...... Meta-dictionary directory, 5
10 ... Dictionary.
Claims (3)
定義情報を記憶するデータディクショナリと、前記定義
情報の全部または一部がデータベースのアクセスを行な
うため参照されるテーブル形式に変換されてなるディレ
クトリと、前記データディクショナリをアクセスするた
め参照されるメタディレクトリとを有するデータベース
システムにおいて、 前記データディクショナリに前記データディクショナリ
自体の構造を示す定義情報であるディクショナリ定義情
報を書き込み、前記ディクショナリ定義情報を変換して
第1のディレクトリを生成し、生成された第1のディレ
クトリをもとにアクセスされる1つのデータベースに前
記ディクショナリ定義情報を書き込み、前記1つのデー
タベースに書き込まれた前記ディクショナリ定義情報を
変換し、前記メタディレクトリを生成することを特徴と
するデータディクショナリ・ディレクトリをもつデータ
ベースの制御方法。1. A data dictionary storing definition information defining a logical structure of a structural database, and a directory formed by converting all or part of the definition information into a table format referred to for accessing the database. A database system having a metadirectory referred to for accessing the data dictionary, writing dictionary definition information that is definition information indicating a structure of the data dictionary itself to the data dictionary, and converting the dictionary definition information. The first directory is generated, the dictionary definition information is written in one database accessed based on the generated first directory, and the dictionary definition information written in the one database Is converted to generate the metadirectory, and a method for controlling a database having a data dictionary directory.
ショナリから前記ディレクトリを生成する生成手段を有
し、前記1つのデータベースに記憶されたディレクトリ
定義情報は前記生成手段により前記変換が行なわれるこ
とを特徴とする特許請求の範囲第1項記載のデータディ
クショナリ・ディレクトリをもつデータベースの制御方
法。2. The database further comprises generating means for generating the directory from the data dictionary, and the directory defining information stored in the one database is converted by the generating means. A method of controlling a database having a data dictionary directory according to claim 1.
メタディレクトリを生成する過程において、前記ディク
ショナリ定義情報を変換して前記ディレクトリの形式の
テーブルを得、これに変更を加えることによって更新さ
れたメタディレクトリを生成することを特徴とする特許
請求の範囲第1項記載のデータディクショナリ・ディレ
クトリをもつデータベースの制御方法。3. A metadirectory updated by converting the dictionary definition information to generate the metadirectory, converting the dictionary definition information to obtain a table of the directory format, and making a change to the table. A method of controlling a database having a data dictionary directory according to claim 1, wherein
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 JPS62254246A (en) | 1987-11-06 |
JPH0754479B2 true 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) |
-
1986
- 1986-04-28 JP JP61096716A patent/JPH0754479B2/en not_active Expired - Lifetime
Non-Patent Citations (1)
Title |
---|
情報処理案32回(昭和61年前期)全国大会講演論文集(昭和61年3月11日)P.845−846 |
Also Published As
Publication number | Publication date |
---|---|
JPS62254246A (en) | 1987-11-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5832498A (en) | Device for generating object-oriented interfaces for relational data bases and a process implemented by this device | |
JP3437849B2 (en) | Database management system and method for supporting object-oriented programming | |
US5706506A (en) | Method and apparatus for managing relational data in an object cache | |
US6366921B1 (en) | System and method for data manipulation in a dynamic object-based format | |
US5440735A (en) | Simplified relational data base snapshot copying | |
US4864497A (en) | Method of integrating software application programs using an attributive data model database | |
JP3041528B2 (en) | File system module | |
US5412808A (en) | System for parsing extended file names in an operating system | |
US6163776A (en) | System and method for exchanging data and commands between an object oriented system and relational system | |
JP2708331B2 (en) | File device and data file access method | |
US5664177A (en) | Data processing system having a data structure with a single, simple primitive | |
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 | |
JP4179557B2 (en) | System, method and computer program for performing legacy application migration | |
RU2676018C2 (en) | System and method for creating selective snapshots of database | |
JPH07104808B2 (en) | Method and apparatus for dynamic volume tracking in an installable file system | |
US5394546A (en) | Database management system and method of extending system functions | |
JP2644728B2 (en) | Data dictionary directory system | |
KR100419836B1 (en) | System and method for accessing non-relational data by relational access method | |
EP1091295B1 (en) | Data management system using a plurality of data operation modules | |
US5742809A (en) | Database generic composite structure processing system | |
JPH0358249A (en) | Access method of file | |
JPH0754479B2 (en) | How to control a database with a data dictionary directory | |
US20060218174A1 (en) | Method for coordinating schema and data access objects | |
JP2001527241A (en) | Method and apparatus for loading stored procedures in a database corresponding to object-oriented data dependencies | |
JPH08329093A (en) | Distributed directory system and knowledge information changing method |