JPH03276238A - Record control system - Google Patents

Record control system

Info

Publication number
JPH03276238A
JPH03276238A JP2076265A JP7626590A JPH03276238A JP H03276238 A JPH03276238 A JP H03276238A JP 2076265 A JP2076265 A JP 2076265A JP 7626590 A JP7626590 A JP 7626590A JP H03276238 A JPH03276238 A JP H03276238A
Authority
JP
Japan
Prior art keywords
data
record
generation
database
constitution
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
JP2076265A
Other languages
Japanese (ja)
Inventor
Katsuhiko Osada
長田 克彦
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2076265A priority Critical patent/JPH03276238A/en
Publication of JPH03276238A publication Critical patent/JPH03276238A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To change the record constitution without interrupting the data base service to the users by converting the data records read in the retrieving and updating states into the record constitution of the latest generation. CONSTITUTION:A record defining means 3 performs the definition and the change of the record constitution to the record constitution information on a directory 1. At the same time, a data processing means 4 processes the requests for retrieval, addition and updating of the data records and also produces a data record of the constitution of he latest generation at addition. Then a data conversion means 5 converts the data records read in the retrieving and updating states into the record constitution of the latest constitution. A data reading means 6 reads the data records out of a data base 2, and a data writing means 7 writes the data records into the base 2. Thus the record constitution is changed without interrupting the data base service to the users.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は電子計算機のデータベース管理システムにおけ
るレコード管理方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a record management method in a database management system for an electronic computer.

〔従来の技術〕[Conventional technology]

データベースシステムでは、所定のレコード構成に基づ
くデータレコードを多数格納してデータベースを構築し
ているが、種々の理由からレコード構成を変更する必要
が生じる場合がある。
In a database system, a database is constructed by storing a large number of data records based on a predetermined record structure, but it may be necessary to change the record structure for various reasons.

このようなレコード構成の変更に対し、従来のデータベ
ース管理システムは、データベースサービスを一時的に
中断し、−斉にデータベースの再構成、すなわち、旧世
代のレコード構成のデータレコードを全て最新世代のレ
コード構成のデータレコードに変換する処理を行ってい
た。
In response to such changes in the record structure, conventional database management systems temporarily suspend the database service and simultaneously restructure the database, that is, convert all data records in the old generation record structure to the latest generation records. The process was to convert the configuration data records.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述したように、従来のデータベース管理システムでは
、データベースサービスを中断して一斉にデータベース
の再構成が行われていたため、その期間中はデータベー
スが利用できず、利用者に対するサービスが大幅に低下
するという欠点があった。特に、データベースの利用分
野の拡大に応しるためにレコード構成が頻繁に変更され
るような場合には、この問題は非常に重要である。
As mentioned above, in conventional database management systems, database services are interrupted and databases are reconfigured all at once, so the database is unavailable during that period, resulting in a significant drop in service to users. There were drawbacks. This problem is particularly important when the record structure is frequently changed to accommodate the expansion of the field of use of the database.

本発明は上記の点に鑑み提案されたものであり、その目
的とするところは、利用者に対するデータベースサービ
スを中断することなく、レコード構成の変更を行うこと
ができるレコード管理方式を提供することにある。
The present invention has been proposed in view of the above points, and its purpose is to provide a record management method that allows changes to the record structure without interrupting database services to users. be.

〔課題を解決するための手段〕[Means to solve the problem]

本発明は上記の目的を達成するため、ディレクトリに格
納されたレコード構成情報に従い、データベースに格納
されたデータレコードの検索、追加および更新を行うデ
ータベース管理システムにおいて、 ディレクトリのレコード構成情報にレコード構成の定義
および変更を行うレコード定義手段と、データレコード
の検索・追加・更新の要求を処理すると共に、追加時に
は最新世代のレコード構成でデータレコードを作成する
データ処理手段と、検索時および更新時に読み込んだデ
ータレコードを最新世代のレコード構成に変換するデー
タ変換手段と、 データベースからデータレコードを読み込むデータ読み
込み手段と、 データベースにデータレコードを書き込むデータ書き込
み手段とを備えるようにしている。
To achieve the above object, the present invention provides a database management system that searches for, adds, and updates data records stored in a database according to record configuration information stored in a directory. A record definition means that performs definition and modification, a data processing means that processes requests for searching, adding, and updating data records, and creates data records with the latest generation record configuration when adding records; The system includes a data conversion means for converting data records into the latest generation record structure, a data reading means for reading data records from a database, and a data writing means for writing data records into the database.

〔作用〕[Effect]

本発明のレコード管理方式にあっては、レコード定義手
段がディレクトリのレコード構成情報にレコード構成の
定義および変更を行い、データ処理手段がデータレコー
ドの検索・追加・更新の要求を処理すると共に、追加時
には最新世代のレコード構成でデータレコードを作成し
、検索時および更新時に読み込んだデータレコードをデ
ータ変換手段が最新世代のレコード構成に変換し、デー
タ読み込み手段がデータベースからデータレコードを読
み込み、データ書き込み手段がデータベースにデータレ
コードを書き込む。
In the record management system of the present invention, the record definition means defines and changes the record structure in the record structure information of the directory, and the data processing means processes requests for searching, adding, and updating data records, as well as adding Sometimes a data record is created with the latest generation record configuration, the data conversion means converts the data record read at the time of search and update to the latest generation record configuration, the data reading means reads the data record from the database, and the data writing means writes data records to the database.

C実施例〕 以下、本発明の実施例につき図面を参照して説明する。C Example] Embodiments of the present invention will be described below with reference to the drawings.

第1図は本発明のレコード管理方式を適用したデータベ
ース管理システムの一実施例を示す構成図である。第1
図において、本実施例は、レコード構成情報を格納した
ディレクトリ1と、データレコードを格納したデータベ
ース2と、利用者の指示に基づきディレクトリ1のレコ
ード構成情報にレコード構成の定義および変更を行うレ
コード定義手段3と、利用者から与えられるデータレコ
ードの検索・追加・更新の要求を処理すると共に、追加
時には最新世代のレコード構成でデータレコードを作成
するデータ処理手段4と、検索時および更新時にデータ
ベース2から読み込んだデータレコードを最新世代のレ
コード構成に変換するデータ変換手段5と、データベー
ス2からデータレコードを読み込むデータ読み込み手段
6と、データベース2にデータレコードを書き込むデー
タ書き込み手段7とから構成されている。
FIG. 1 is a block diagram showing an embodiment of a database management system to which the record management method of the present invention is applied. 1st
In the figure, this embodiment includes a directory 1 that stores record configuration information, a database 2 that stores data records, and a record definition that defines and changes the record configuration in the record configuration information of directory 1 based on user instructions. means 3, a data processing means 4 that processes requests for searching, adding, and updating data records given by users, and creates data records with the latest generation record configuration when adding; and a database 2 when searching and updating. The data converting means 5 converts the data records read from the database into the latest generation record structure, the data reading means 6 reads the data records from the database 2, and the data writing means 7 writes the data records to the database 2. .

第2図はディレクトリ1の構成を示したものであり、複
数のレコード構成情報11から構成されている。
FIG. 2 shows the structure of the directory 1, which is composed of a plurality of record structure information 11.

第3図はレコード構成情報11の構成を示したものであ
り、世代を示す世代番号12と、その世代におけるレコ
ード構成情報の内容を含むレコード構成情報部13とか
ら構成されている。
FIG. 3 shows the structure of the record structure information 11, which is composed of a generation number 12 indicating a generation, and a record structure information section 13 containing the contents of the record structure information for that generation.

第4図はデータベース2の構成を示したものであり、複
数のデータレコード21から構成されている。
FIG. 4 shows the structure of the database 2, which is composed of a plurality of data records 21. As shown in FIG.

第5図はデータレコード21の構成を示したものであり
、世代を示す世代番号22と、データレコードの内容を
含むデータ部23とがら構成されている。
FIG. 5 shows the structure of the data record 21, which is composed of a generation number 22 indicating the generation and a data section 23 containing the contents of the data record.

第6図はデータ変換手段5の構成を示したものであり、
データレコード21の世代番号22から世代を判定する
世代判定手段51と、データレコード21が旧世代のレ
コード構成である場合にそれを最新世代のレコード構成
に変換する複数の世代データ変換手段52とから構成さ
れている。なお、世代判定手段51および世代データ変
換手段52はディレクトリ1のレコード構成情報11に
従って判定および変換を行う。
FIG. 6 shows the configuration of the data conversion means 5,
A generation determination means 51 that determines the generation from the generation number 22 of the data record 21, and a plurality of generation data conversion means 52 that converts the data record 21 to the latest generation record configuration when the data record 21 has an old generation record configuration. It is configured. Note that the generation determining means 51 and the generation data converting means 52 perform determination and conversion according to the record configuration information 11 of the directory 1.

以下、上記の実施例の動作を場合を分けて説明する。Hereinafter, the operation of the above embodiment will be explained for each case.

(1)レコード構成の変更 レコード構成に変更が必要となった場合には、レコード
定義手段3が起動される。
(1) Change of record configuration When the record configuration needs to be changed, the record definition means 3 is activated.

レコード定義手段3は、利用者からデータ項目の削除・
追加・変更の要求を受けると、ディレクトリlからレコ
ード構成情報11をサンプルとして読み込み、指定され
たレコード構成に従ってレコード構成情報部13を作成
し、世代番号12をその時点で最新の値に1を加えるこ
とにより、新たなレコード構成情報11を作成し、それ
をディレクトリ1に追加し、処理を終了する。
The record definition means 3 allows the user to delete and delete data items.
When an addition/change request is received, record configuration information 11 is read as a sample from directory l, a record configuration information section 13 is created according to the specified record configuration, and 1 is added to the latest value of generation number 12 at that time. As a result, new record configuration information 11 is created, it is added to directory 1, and the process ends.

(2)データレコードの検索 利用者からデータレコードの検索の要求があると、デー
タ処理手段4が起動される。
(2) Search for data records When a user requests a search for data records, the data processing means 4 is activated.

データ処理手段4は、指示されたデータレコードのデー
タベース2上での位置を周知の手法により決定し、デー
タ読み込み手段6を起動する。
The data processing means 4 determines the position of the designated data record on the database 2 by a well-known method, and activates the data reading means 6.

データ読み込み手段6は、データベース2上の指定され
た位置からデータレコード21を読み込み、データ処理
手段4にデータレコード21を渡し、処理を終了する。
The data reading means 6 reads the data record 21 from the specified position on the database 2, passes the data record 21 to the data processing means 4, and ends the process.

データ処理手段4は、データ変換手段5を起動し、デー
タレコード21を渡す。
The data processing means 4 activates the data conversion means 5 and passes the data record 21 to it.

データ変換手段5は世代判定手段51によりデータレコ
ード21の世代番号22から世代を判定し、最新世代で
ある場合にはデータレコード21をそのままデータ処理
手段4に返却して処理を終了し、データ処理手段4はデ
ータレコード2工をそのまま利用者に対して出力し、処
理を終了する。
The data converting means 5 determines the generation from the generation number 22 of the data record 21 by the generation determining means 51, and if it is the latest generation, returns the data record 21 as it is to the data processing means 4, ends the process, and processes the data. The means 4 outputs the two data records as they are to the user, and ends the process.

また、読み込んだデータレコード21の世代が旧世代で
ある場合には、データ変換手段5は対応する世代データ
変換手段52により旧世代のレコード構成から最新世代
のレコード構成にデータレコード2工を変換し、データ
処理手段4に変換後のデータレコード21を返却して処
理を終了する。
Further, when the generation of the read data record 21 is the old generation, the data conversion means 5 converts the data record 2 from the old generation record configuration to the latest generation record configuration by the corresponding generation data conversion means 52. , returns the converted data record 21 to the data processing means 4, and ends the process.

そして、データ処理手段4は変換後のデータレコード2
1を利用者に対して出力し、処理を終了する。
Then, the data processing means 4 converts the converted data record 2
1 is output to the user and the process ends.

(3)データレコードの追加 利用者からデータレコードの追加の要求があると、デー
タ処理手段4が起動される。
(3) Addition of data records When a user requests the addition of data records, the data processing means 4 is activated.

データ処理手段4は、ディレクトリ1のレコード構成情
報11に基づき、最新世代のレコード構成に基づき、追
加すべきデータレコード21を作成し、書き込むべきデ
ータベース2上の位置を決定し、データ書き込み手段7
を起動してデータレコード21を渡し、処理を終了する
The data processing means 4 creates a data record 21 to be added based on the record structure information 11 of the directory 1 and the record structure of the latest generation, determines the position on the database 2 where it should be written, and the data writing means 7
is started, the data record 21 is passed, and the process ends.

データ書き込み手段7は、与えられたデータレコード2
1をデータベース2上の指定された位置に書き込み、処
理を終了する。
The data writing means 7 writes the given data record 2
1 is written to the specified position on database 2, and the process ends.

(4)データレコードの更新 利用者からデータレコードの更新の要求があると、デー
タ処理手段4が起動される。
(4) Update of data record When a user requests update of a data record, the data processing means 4 is activated.

データ処理手段4は、指示されたデータレコードのデー
タベース2上での位置を周知の手法により決定し、デー
タ読み込み手段6を起動する。
The data processing means 4 determines the position of the designated data record on the database 2 by a well-known method, and activates the data reading means 6.

・データ読み込み手段6は、データベース2上の指定さ
れた位置からデータレコード21を読み込み、データ処
理手段4にデータレコード21を渡し、処理を終了する
- The data reading means 6 reads the data record 21 from the specified position on the database 2, passes the data record 21 to the data processing means 4, and ends the process.

次いで、データ処理手段4は、データ変換手段5を起動
し、データレコード21を渡す。
Next, the data processing means 4 activates the data conversion means 5 and passes the data record 21 to it.

データ変換手段5は世代判定手段51によりデータレコ
ード21の世代番号22から世代を判定し、最新世代で
ある場合にはデータレコード21をそのままデータ処理
手段4に返却して処理を終了する。また、読み込んだデ
ータレコード21の世代が旧世代である場合には、デー
タ変換手段5は対応する世代データ変換手段52により
旧世代のレコード構成から最新世代のレコード構成にデ
ータレコード21を変換し、変換後のデータレコード2
1をデータ処理手段4に返却して処理を終了する。
The data conversion means 5 uses the generation determination means 51 to determine the generation from the generation number 22 of the data record 21, and if it is the latest generation, returns the data record 21 as it is to the data processing means 4 and ends the process. Further, when the generation of the read data record 21 is the old generation, the data conversion means 5 converts the data record 21 from the old generation record configuration to the latest generation record configuration by the corresponding generation data conversion means 52, Data record 2 after conversion
1 is returned to the data processing means 4, and the process ends.

次いで、データ処理手段4は最新世代であるためそのま
まのデータレコード21もしくは変換後の最新世代のレ
コード構成のデータレコード21に対して更新を行い、
データレコード21を読み込んだデータベース2上の位
置を指定してデータ書き込み手段7を起動し、処理を終
了する。
Next, the data processing means 4 updates the data record 21 as it is because it is the latest generation, or the data record 21 having the record configuration of the latest generation after conversion,
The position on the database 2 where the data record 21 has been read is specified, the data writing means 7 is activated, and the process is completed.

データ書き込み手段7は、指定されたデータベース2の
位置にデータレコード21を書き込み、処理を終了する
The data writing means 7 writes the data record 21 to the specified position in the database 2, and ends the process.

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

以上説明したように、本発明のレコード管理方式にあっ
ては、データレコードを検索する場合には最新世代のレ
コード構成の状態で利用者に渡され、新たにデータレコ
ードを追加する場合および更新する場合には最新世代の
レコード構成の状態でデータベースに格納されるため、
普通にデータベースを利用する過程で再構成が行われて
行き、データベースサービスに影響することがないとい
う効果がある。特に、レコード構成の変更が頻繁に行わ
れるような場合には効果が大きい。
As explained above, in the record management method of the present invention, when searching for a data record, the latest generation record configuration is passed to the user, and when a new data record is added or updated, the latest generation record configuration is passed to the user. In some cases, the latest generation record structure is stored in the database, so
This has the advantage that the reconfiguration is performed during the normal use of the database and does not affect the database service. This is particularly effective when the record structure is frequently changed.

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

第1図は本発明のレコード管理方式を適用したデータベ
ース管理システムの一実施例を示す構成図、 第2図はディレクトリの構成図、 第3図はレコード構成情報の構成図、 第4図はデータベースの構成図、 第5図はデータレコードの構成図および、第6rj!J
はデータ変換手段の構成図である。 図において、 1・・・・・・ディレクトリ 11・・・レコード構成情報 12・・・世代番号 13・・・レコード構成情報部 2・・・・・・データベース 21・・・データレコード 22・・・世代番号 23・・・データ部 3・・・・・・レコード定義手段 4・・・・・・データ処理手段 5・・・・・・データ変換手段 51・・・世代判定手段 52・・・世代データ変換手段 6・・・・・・データ読み込み手段 7・・・・・・データ書き込み手段
Figure 1 is a configuration diagram showing an embodiment of a database management system to which the record management method of the present invention is applied; Figure 2 is a configuration diagram of a directory; Figure 3 is a configuration diagram of record configuration information; Figure 4 is a database Figure 5 is a diagram showing the configuration of the data record and the 6th rj! J
FIG. 2 is a configuration diagram of data conversion means. In the figure, 1... Directory 11... Record configuration information 12... Generation number 13... Record configuration information section 2... Database 21... Data record 22... Generation number 23...Data section 3...Record definition means 4...Data processing means 5...Data conversion means 51...Generation determination means 52...Generation Data conversion means 6...Data reading means 7...Data writing means

Claims (2)

【特許請求の範囲】[Claims] (1)ディレクトリに格納されたレコード構成情報に従
い、データベースに格納されたデータレコードの検索、
追加および更新を行うデータベース管理システムにおい
て、 ディレクトリのレコード構成情報にレコード構成の定義
および変更を行うレコード定義手段と、データレコード
の検索・追加・更新の要求を処理すると共に、追加時に
は最新世代のレコード構成でデータレコードを作成する
データ処理手段と、検索時および更新時に読み込んだデ
ータレコードを最新世代のレコード構成に変換するデー
タ変換手段と、 データベースからデータレコードを読み込むデータ読み
込み手段と、 データベースにデータレコードを書き込むデータ書き込
み手段とを備えたことを特徴とするレコード管理方式。
(1) Searching for data records stored in the database according to the record configuration information stored in the directory;
In a database management system that performs additions and updates, there is a record definition means that defines and changes the record structure in the record structure information of the directory, and a record definition means that processes requests for searching, adding, and updating data records. a data processing means for creating data records in a configuration; a data conversion means for converting data records read during searches and updates into the latest generation record structure; a data reading means for reading data records from a database; A record management method comprising: a data writing means for writing data.
(2)ディレクトリのレコード構成情報に世代番号とレ
コード構成情報部とを設け、 データベースのデータレコードに世代番号とデータ部と
を設け、 データ変換手段に世代判定手段と世代データ変換手段と
を設けたことを特徴とする請求項1記載のレコード管理
方式。
(2) A generation number and a record structure information section are provided in the record structure information of the directory, a generation number and a data section are provided in the data record of the database, and a generation determination means and a generation data conversion means are provided in the data conversion means. The record management system according to claim 1, characterized in that:
JP2076265A 1990-03-26 1990-03-26 Record control system Pending JPH03276238A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2076265A JPH03276238A (en) 1990-03-26 1990-03-26 Record control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2076265A JPH03276238A (en) 1990-03-26 1990-03-26 Record control system

Publications (1)

Publication Number Publication Date
JPH03276238A true JPH03276238A (en) 1991-12-06

Family

ID=13600397

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2076265A Pending JPH03276238A (en) 1990-03-26 1990-03-26 Record control system

Country Status (1)

Country Link
JP (1) JPH03276238A (en)

Similar Documents

Publication Publication Date Title
JPH0358249A (en) Access method of file
JPH08235040A (en) Data file management system
JPH03276238A (en) Record control system
JPH07334402A (en) Main memory database
JP2643811B2 (en) Database reorganization method
JP2675958B2 (en) Information retrieval computer system and method of operating storage device thereof
JP2962335B2 (en) Free space search method
JP4825504B2 (en) Data registration / retrieval system and data registration / retrieval method
JPH0456344B2 (en)
JP2785966B2 (en) Foreign key dynamic resolution processing method
JPH08328929A (en) Database partition management system
WO2002091236A1 (en) Database integration system
JPH1173353A (en) Transaction retrieval processor based on specified time
JPH0744426A (en) File system file management method
JPH0447344A (en) History journal recording system
JPH05242176A (en) Generation control system for drawing
JP3398672B2 (en) Intermediate data storage device
JPH01282635A (en) Index maintaining system
JPH0447367A (en) Data base retrieval system
JPH05204729A (en) Data base access system
JP2002202904A (en) Data management method and computer-readable recording medium
JPH03225539A (en) Record control system
JPH0324646A (en) Information processor
JPS61290532A (en) Data base retrieving system
JPS6327927A (en) Index generation system in reserved information retrieval system