JPH0512090A - Saving system of data base - Google Patents
Saving system of data baseInfo
- Publication number
- JPH0512090A JPH0512090A JP3158863A JP15886391A JPH0512090A JP H0512090 A JPH0512090 A JP H0512090A JP 3158863 A JP3158863 A JP 3158863A JP 15886391 A JP15886391 A JP 15886391A JP H0512090 A JPH0512090 A JP H0512090A
- Authority
- JP
- Japan
- Prior art keywords
- database
- data base
- storage
- storing
- record
- 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.)
- Withdrawn
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明はデータベースの格納論理
の正当性を確認する方式に関し、特にデータベースの退
避時における確認方式に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for confirming the validity of a database storage logic, and more particularly to a confirmation method for saving a database.
【0002】[0002]
【従来の技術】従来、データベースを磁気テープのよう
な記憶媒体に退避させる場合には、一旦退避させたデー
タベースを退避記憶媒体から読みだし、退避されたデー
タベースの格納論理の正当性を確認した後、再び退避媒
体に読み込んでいた。すなわち、従来はデータベースの
退避操作と退避されたデータベースの格納論理の正当性
確認操作とは同時に行われていなかった。2. Description of the Related Art Conventionally, when a database is saved in a storage medium such as a magnetic tape, the once saved database is read from the save storage medium and the validity of the storage logic of the saved database is confirmed. , It was read again to the evacuation medium. That is, conventionally, the saving operation of the database and the correctness confirming operation of the storage logic of the saved database have not been performed at the same time.
【0003】[0003]
【発明が解決しようとする課題】このように従来のデー
タベースの退避においては、退避されたデータベースの
格納論理の正当性確認のためには、データベースを退避
媒体に2度に亘って読み込む必要があり、時間の無駄が
あった。As described above, in the conventional database saving, it is necessary to read the database into the save medium twice in order to confirm the validity of the storage logic of the saved database. , There was a waste of time.
【0004】従って本発明は、データベースの退避時に
退避されたデータベースの格納論理の正当性の確認を同
時に行うことにより、上記従来の欠点を除去したデータ
ベースの退避方式を提供することを目的とするものであ
る。Therefore, it is an object of the present invention to provide a database saving method that eliminates the above-mentioned conventional drawbacks by simultaneously confirming the correctness of the storage logic of the saved database when saving the database. Is.
【0005】[0005]
【課題を解決するための手段】本発明によれば、データ
ベースのレコード格納状態を評価するために必要な定義
情報を記憶する記憶手段と、この記憶手段に記憶された
定義情報を用いて、一時的記憶手段に記憶したデータベ
ースのページ毎にデータベースレコードの格納状態を評
価する第1の評価手段と、この第1の評価手段により得
られた全てのページに対する評価結果からデータベース
全体の格納状態を評価する第2の評価手段と、この第2
の評価手段によりデータベース全体の格納状態を評価し
た後、前記一時的記憶手段に記憶したデータベースを退
避記憶手段に記憶する手段とから構成されていることを
特徴とするデータベースの退避方式が提供される。According to the present invention, the storage means for storing the definition information necessary for evaluating the record storage state of the database and the definition information stored in the storage means are used for temporary storage. First evaluation means for evaluating the storage state of the database record for each page of the database stored in the dynamic storage means, and the storage state of the entire database is evaluated from the evaluation results for all the pages obtained by the first evaluation means. The second evaluation means and the second
And a means for storing the database stored in the temporary storage means in the save storage means after the storage state of the entire database is evaluated by the evaluation means of 1. .
【0006】なお、前記前記定義情報はレコードタイプ
番号およびレコード長情報を含んでいる。The definition information includes record type number and record length information.
【0007】[0007]
【実施例】以下に図面を用いて本発明の一実施例を説明
する。An embodiment of the present invention will be described below with reference to the drawings.
【0008】図1は本発明のデータベースの退避方式を
示すブロック図である。磁気ディスク11はデータベー
ス12を格納しており、データベース12の退避はデー
タベース退避システム13によって行われる。データベ
ース退避システム13はデータベース12をデータベー
ス退避システム13内の一時記憶手段である読み込みエ
リア14に順次読み込む。データベース退避システム1
3はデータベース定義情報記憶手段15を備えている。
このデータベース定義情報記憶手段15は、データベー
ス12のページ毎のレコード格納状態を評価するために
必要な定義情報、たとえばレコードタイプ番号、レコー
ド長などを記憶する手段である。FIG. 1 is a block diagram showing a database saving method according to the present invention. The magnetic disk 11 stores a database 12, and the database 12 is saved by a database saving system 13. The database saving system 13 sequentially reads the database 12 into the reading area 14 which is a temporary storage unit in the database saving system 13. Database evacuation system 1
3 includes a database definition information storage unit 15.
The database definition information storage means 15 is a means for storing definition information necessary for evaluating the record storage state of each page of the database 12, such as a record type number and a record length.
【0009】データベース定義情報記憶手段15に記憶
された定義情報は、ページ内格納状態評価手段16(第
1の評価手段)に供給され、ここで読み込みエリア14
に記憶されたデータベース12のページ毎にデータベー
スレコードの格納状態が評価される。この評価結果は順
次データベース格納状態評価手段17(第2の評価手
段)に供給されると共に、データベース12の内容も各
ページの評価が終了する都度磁気テープ18に順次書き
込まれる。データベース格納状態評価手段17は、デー
タベース12における全ページのデータベースレコード
の格納状態の評価結果に基づいてデータベース12全体
の格納論理の正当性の評価を行い、その結果をデータベ
ース退避システム13の利用者に通知する。従って、デ
ータベース退避システム13の利用者は、データベース
12の退避とその格納論理の正当性の確認とを同時に行
ったことになる。The definition information stored in the database definition information storage means 15 is supplied to the in-page storage state evaluation means 16 (first evaluation means), where the reading area 14 is read.
The storage state of the database record is evaluated for each page of the database 12 stored in. The evaluation results are sequentially supplied to the database storage state evaluation means 17 (second evaluation means), and the contents of the database 12 are sequentially written to the magnetic tape 18 each time the evaluation of each page is completed. The database storage status evaluation means 17 evaluates the validity of the storage logic of the entire database 12 based on the evaluation results of the storage status of the database records of all pages in the database 12, and sends the result to the user of the database saving system 13. Notice. Therefore, the user of the database saving system 13 simultaneously saves the database 12 and confirms the correctness of its storage logic.
【0010】データベース12の各ページにおけるデー
タベースレコードの格納状態の正当性を評価するための
項目は、データベースの種類や属性によって異なるが、
一般的には次のような項目が挙げられる。
(1)データベース上のレコードがデータベースのレコ
ードの定義と矛盾していないこと。
(2)同じページ内に複数のレコードが存在する場合に
は、レコードの格納領域が重複していないこと。
(3)空きレコードが存在する場合には、他のレコード
と格納領域が重複すること無くページ内で正しくチェー
ンされていること。
(4)レコードが他のデータベースのページをポイント
している場合には、ポイントされたページがデータベー
スの有効範囲であること。Items for evaluating the correctness of the storage state of the database record in each page of the database 12 differ depending on the type and attribute of the database.
Generally, the following items are listed. (1) Records in the database are consistent with the definition of records in the database. (2) If multiple records exist in the same page, the storage areas of the records do not overlap. (3) If an empty record exists, it must be correctly chained within the page without overlapping the storage area with other records. (4) If the record points to a page in another database, the pointed page must be within the valid range of the database.
【0011】[0011]
【発明の効果】以上説明したように本発明によれば、デ
ータベースの退避時にデータベースの格納論理の正当性
確認が同時にできるため、データベースの退避の後に格
納論理の正当性確認を行う従来方式に比較して、1/2
の処理時間で退避時の格納論理の正当性確認を行うこと
ができる。As described above, according to the present invention, since the validity of the storage logic of the database can be checked at the same time when the database is saved, the method is compared with the conventional method in which the validity of the storage logic is checked after the save of the database. And then 1/2
The validity of the storage logic at the time of saving can be confirmed in the processing time of.
【図1】本発明のデータベースの退避方式を示すブロッ
ク図である。FIG. 1 is a block diagram showing a database saving method of the present invention.
11 磁気ディスク 12 データベース 13 データベース退避システム 14 読み込みエリア 15 データベース定義情報記憶手段 16 ページ内格納状態評価手段 17 データベース格納状態評価手段 18 磁気テープ 11 magnetic disk 12 Database 13 Database evacuation system 14 reading area 15 Database definition information storage means 16 Page storage status evaluation means 17 Database storage status evaluation means 18 magnetic tape
Claims (2)
するために必要な定義情報を記憶する手段と、この記憶
手段に記憶された定義情報を用いて、一時的記憶手段に
記憶したデータベースのページ毎にデータベースレコー
ドの格納状態を評価する第1の評価手段と、この第1の
評価手段により得られた全てのページに対する評価結果
からデータベース全体の格納状態を評価する第2の評価
手段と、この第2の評価手段によりデータベース全体の
格納状態を評価した後、前記一時的記憶手段に記憶した
データベースを退避記憶手段に記憶する手段とから構成
されていることを特徴とするデータベースの退避方式。1. A means for storing definition information necessary for evaluating a record storage state of a database, and definition information stored in this storage means for each page of the database stored in the temporary storage means. First evaluation means for evaluating the storage status of the database record, second evaluation means for evaluating the storage status of the entire database from the evaluation results for all pages obtained by the first evaluation means, and the second evaluation means. And a means for storing the database stored in the temporary storage means in the save storage means after the storage status of the entire database is evaluated by the evaluation means.
びレコード長情報を含むことを特徴とする請求項1記載
のデータベースの退避方式。2. The database save method according to claim 1, wherein the definition information includes a record type number and record length information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3158863A JPH0512090A (en) | 1991-06-28 | 1991-06-28 | Saving system of data base |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3158863A JPH0512090A (en) | 1991-06-28 | 1991-06-28 | Saving system of data base |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0512090A true JPH0512090A (en) | 1993-01-22 |
Family
ID=15681046
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3158863A Withdrawn JPH0512090A (en) | 1991-06-28 | 1991-06-28 | Saving system of data base |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0512090A (en) |
-
1991
- 1991-06-28 JP JP3158863A patent/JPH0512090A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU97113713A (en) | DEVICE AND METHOD FOR PROCESSING INFORMATION | |
JPH0512090A (en) | Saving system of data base | |
JPH0588957A (en) | Directory format | |
JPS63104284A (en) | Disk file access system | |
JPH0641089B2 (en) | Manufacturing information management system by work | |
JP2822869B2 (en) | Library file management device | |
JP3196112B2 (en) | Method of duplicating card type storage medium | |
JPH0430632B2 (en) | ||
JPH0514359Y2 (en) | ||
JPS6055855B2 (en) | Input data memory aggregation system | |
JPS6029990A (en) | Index recording system of magnetic tape | |
JPS63228323A (en) | System for recording draw type memory card | |
JPH09146816A (en) | Table expansion system | |
JPH022598A (en) | Method and device for data editing | |
JP3309803B2 (en) | Sorting method, method, and recording medium recording sort processing program | |
JPH05210556A (en) | Double registration system for image data | |
JPH05216596A (en) | Virtual disk device | |
JPH0764835A (en) | Data storage system for relational data base | |
JPH06168275A (en) | Electronic filing system | |
JPS63291145A (en) | Method for managing file | |
JPH03226829A (en) | Information processor | |
JPH0212346A (en) | Data assurance system | |
JPH04114244A (en) | File reading system | |
JPH04236639A (en) | File space management system | |
JPH04256210A (en) | Data compression/storage system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 19980903 |