JPH07306802A - Data base management system - Google Patents

Data base management system

Info

Publication number
JPH07306802A
JPH07306802A JP6100460A JP10046094A JPH07306802A JP H07306802 A JPH07306802 A JP H07306802A JP 6100460 A JP6100460 A JP 6100460A JP 10046094 A JP10046094 A JP 10046094A JP H07306802 A JPH07306802 A JP H07306802A
Authority
JP
Japan
Prior art keywords
data
access
backup
storage medium
database
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
JP6100460A
Other languages
Japanese (ja)
Inventor
Masahiko Sakamoto
真彦 坂本
Masayoshi Minoda
政義 蓑田
Yoshio Yamauchi
賀夫 山内
Masaru Osawa
優 大澤
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
Hitachi Computer Engineering Co Ltd
Original Assignee
Hitachi Ltd
Hitachi Computer Engineering Co 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, Hitachi Computer Engineering Co Ltd filed Critical Hitachi Ltd
Priority to JP6100460A priority Critical patent/JPH07306802A/en
Publication of JPH07306802A publication Critical patent/JPH07306802A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten a backup time, to effectively utilize a secondary storage medium and a data base area, and to shorten the recovery time at data saving time. CONSTITUTION:An access frequency is decided according to the frequency of use of data, and a data necessary/unnecessary flag and a backup necessary/ unnecessary flag in a data management record 2a are set. A backup means 3 outputs data in a data base to the secondary storage medium 6 when the backup necessary/unnecessary flag indicates necessity and does not outputs the data when not. Further, data for which the data necessary/unnecessary flag indicates nonnecessity are outputted to the secondary storage medium 6 and the data are deleted from the data base 2. A recovery means 5 recovers the data whose data necessary/unnecessary flag indicates nonnecessity from the secondary storage medium 6 to the data base 2 by referring to the secondary storage medium information in the data management record 2a when a data access means 7 makes a request to access the said data. Further, even when the data base 2 is destroyed or erased owing to trouble, the data base 2 is recovered with the data on the secondary storage medium 6.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、データベースを利用し
た情報処理システムにおいて、日々増加するデータをい
かに管理、保守するかに関する。コンピュータの記憶装
置を媒体としたデータベースによって、日々増加する多
量なデータを管理していく上で、データ保全のためのバ
ックアップ時間増加が続いている。また、データベース
の格納領域が減少しており、データベースにおいて利用
頻度の少ないデータを退避してデータベースの格納可能
領域を確保し、退避したデータの管理を行う必要があ
る。データベースからのデータの管理、保守は、日常の
運用においてデータベースのすべてのデータの安全性を
保ちながら、迅速かつ効率的に行う必要がある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to how to manage and maintain data which increases daily in an information processing system using a database. In managing a large amount of data that is increasing day by day using a database that uses a computer storage device as a medium, the backup time for data preservation continues to increase. In addition, since the storage area of the database is decreasing, it is necessary to save data that is rarely used in the database, secure a storage area of the database, and manage the saved data. It is necessary to manage and maintain the data from the database quickly and efficiently while keeping all the data in the database safe in daily operation.

【0002】本発明は、バックアップ時間の短縮と2次
記憶媒体の有効利用、データベースエリアの有効利用、
データ退避時の回復時間の短縮及び退避作業の簡素化に
関する。
The present invention reduces the backup time, effectively uses the secondary storage medium, effectively uses the database area,
The present invention relates to reduction of recovery time when data is saved and simplification of save operation.

【0003】[0003]

【従来の技術】従来のデータベース管理方式は、データ
ベースの障害に備えてバックアップを取得する際、デー
タベース上のデータをすべて2次記憶媒体に出力してい
た。また、増え続けるデータの中で使用頻度の低いデー
タを2次記憶媒体に出力してデータ格納領域を確保する
場合、人手でデータを指定して削除するかまたは、2次
記憶媒体への出力プログラムを起動してデータを回復す
る必要があった。
2. Description of the Related Art In a conventional database management method, when a backup is acquired in preparation for a database failure, all data on the database is output to a secondary storage medium. Further, in the case where data that is used less frequently among the ever-increasing amount of data is output to the secondary storage medium to secure a data storage area, the data is manually specified and deleted, or an output program to the secondary storage medium is performed. Had to start and recover the data.

【0004】なお、この種のデータベース管理方式に関
する従来技術として、例えば、特開平4−252342
号公報、特開平5−100935号公報等に記載された
技術が知られている。
As a conventional technique relating to this type of database management system, for example, Japanese Patent Laid-Open No. 4-252342.
Techniques described in Japanese Patent Laid-Open No. 5-100935 and Japanese Patent Laid-Open No. 5-100935 are known.

【0005】[0005]

【発明が解決しようとする課題】従来のデータベース管
理方式では、データベース中に存在するすべてのデータ
を使用頻度に関係なくバックアップ処理を行っている。
In the conventional database management method, all the data existing in the database are backed up regardless of the frequency of use.

【0006】このため、未使用データを繰り返し、2次
記憶媒体に格納する事になりバックアップ時間及び2次
記憶媒体が無駄になっていた。データベース上のエリア
の有効利用を目的にデータを削除した後、ユーザが必要
となった際は、2次記憶媒体名をバックアップ処理の結
果情報から検索しなければならないことから、即時にア
クセスできないという問題があった。また、データベー
スから退避保存したデータの2次記憶媒体情報を当該デ
ータベース上で管理する手段とを設けた場合、退避、削
除処理を別に行う必要があり、データベース運用に作業
が発生していた。
For this reason, unused data is repeatedly stored in the secondary storage medium, and the backup time and the secondary storage medium are wasted. After deleting the data for the purpose of effective use of the area on the database, when the user needs it, the secondary storage medium name must be searched from the result information of the backup process, so it cannot be accessed immediately. There was a problem. Further, when a means for managing the secondary storage medium information of the data saved and saved from the database is provided on the database, it is necessary to perform the save and delete processes separately, which causes a work to operate the database.

【0007】本発明は、上記問題点を解決したものであ
り、データベース中のデータ毎にデータ要/不要フラグ
を設け、データベース上にデータを存在させるか否かの
コントロールを行い。また、バックアップ要/不要フラ
グを設け、バックアップを行うか否かのコントロールを
行う。これにより、バックアップ時間の短縮と2次記憶
媒体の有効利用、データベースエリアの有効利用、デー
タ退避時の回復時間の短縮及び退避作業の簡素化を目的
とする。
The present invention solves the above-mentioned problems and provides a data necessary / unnecessary flag for each data in the database, and controls whether or not the data exists in the database. Further, a backup required / unnecessary flag is provided to control whether or not to perform backup. This aims to shorten the backup time, effectively use the secondary storage medium, effectively use the database area, shorten the recovery time when saving data, and simplify the save operation.

【0008】[0008]

【課題を解決するための手段】図1は、本発明の構成を
示す構成図である。
FIG. 1 is a block diagram showing the structure of the present invention.

【0009】フラグ設定手段1は、データの使用頻度に
よって、データ管理レコード2a内のデータ要/不要フ
ラグとバックアップ要/不要フラグを設定/解除する。
The flag setting means 1 sets / cancels the data necessary / unnecessary flag and the backup necessary / unnecessary flag in the data management record 2a according to the frequency of use of the data.

【0010】また、データ管理レコード2aの削除を行
う。バックアップ手段3は、データベース2内のデータ
を2次記憶媒体6に出力する時、バックアップ要/不要
フラグが要のとき2次記憶媒体6に出力し、バックアッ
プ要/不要フラグが不要のとき2次記憶媒体6に出力し
ない。また、データ要/不要フラグが不要のデータを2
次記憶媒体6に出力し、削除手段4を起動する。削除手
段4は、データ退避処理の完了に基づいて退避処理の対
象となったデータをデータベース2から削除する。回復
手段5は、データ要/不要フラグが不要のデータをデー
タアクセス手段7によってアクセス要求された時に2次
記憶媒体6よりデータベースに回復すると共にデータベ
ース2がハードウェア障害または、ソフトウェア障害に
より、破壊または消去された場合に2次記憶媒体6より
データベース2を回復する。また、データ管理レコード
2aには、データ名、処理対象日付(作成、更新、入
力)、データ要/不要フラグ、バックアップ要/不要フ
ラグ、2次記憶媒体情報等が格納されている。2次記憶
媒体の詰め替え手段8は、データ管理レコード2aに格
納されているデータのみを2次記憶媒体6から抽出し、
別の2次記憶媒体6に出力する。
Further, the data management record 2a is deleted. When outputting the data in the database 2 to the secondary storage medium 6, the backup means 3 outputs the data to the secondary storage medium 6 when the backup required / unnecessary flag is required, and when the backup required / unnecessary flag is not required, the secondary No output to the storage medium 6. In addition, data that does not require the data required / unnecessary flag is 2
The data is output to the next storage medium 6 and the deleting means 4 is activated. The deleting unit 4 deletes the data targeted for the saving process from the database 2 based on the completion of the data saving process. The recovery unit 5 recovers data whose unnecessary / unnecessary data flag is unnecessary to the database from the secondary storage medium 6 when an access request is made by the data access unit 7, and destroys or damages the database 2 due to a hardware failure or a software failure. When erased, the database 2 is restored from the secondary storage medium 6. Further, the data management record 2a stores a data name, a processing target date (creation, update, input), a data necessary / unnecessary flag, a backup necessary / unnecessary flag, secondary storage medium information, and the like. The secondary storage medium refilling means 8 extracts only the data stored in the data management record 2a from the secondary storage medium 6,
Output to another secondary storage medium 6.

【0011】[0011]

【作用】本発明のデータベース管理方式では、データの
使用頻度によって、アクセス頻繁/アクセス中間/アク
セス僅少/アクセスなしにデータを分類し、アクセス頻
繁ならば、データ要/不要フラグは要、バックアップ要
/不要フラグは要、アクセス中間ならば、データ要/不
要フラグは要、バックアップ要/不要フラグは不要、ア
クセス僅少ならば、データ要/不要フラグは不要、バッ
クアップ要/不要フラグは不要、アクセスなしならば、
データをデータベース上から削除するために削除手段を
起動すると共にデータ管理レコードを削除する。このた
め、使用頻度が中間のデータは、フラグ設定手段1によ
り、データ管理レコード2a内にバックアップの要/不
要フラグが不要になり、バックアップ手段3は、2次記
憶媒体への出力を抑止する。また、使用頻度が僅少のデ
ータは、フラグ設定手段1によりデータ管理レコード2
a内にデータ要/不要フラグが不要になり、バックアッ
プ手段3は、2次記憶媒体への出力と共にデータ管理レ
コード2a内に2次記憶媒体のボリューム名等の情報を
登録する。その後、削除手段4によってデータをデータ
ベース2から削除する。データアクセス手段7からデー
タのアクセスが要求された時にデータ管理レコード2a
は存在するがデータベース2にデータが存在しない場
合、回復手段5は、データ管理レコード2aに記録され
た2次記憶媒体のボリューム名等の情報からデータを回
復する。データベース2がハードウェア障害またはソフ
トウェア障害により、破壊または消去された場合に2次
記憶媒体6よりデータベース2を回復する。
According to the database management method of the present invention, data is classified into frequent access / intermediate access / frequent access / no access depending on the frequency of use of the data. Unnecessary flag required, data required / unnecessary flag required if access is in progress, backup required / unnecessary flag not required, data required / unnecessary flag not required, backup required / unnecessary flag not required, access not required If
The deleting means is activated to delete the data from the database, and the data management record is deleted. Therefore, for data having an intermediate use frequency, the flag setting means 1 eliminates the need / non-necessity flag for backup in the data management record 2a, and the backup means 3 suppresses output to the secondary storage medium. In addition, for data that is rarely used, the data management record 2 is set by the flag setting means 1.
Since the data required / unnecessary flag becomes unnecessary in a, the backup means 3 registers the information such as the volume name of the secondary storage medium in the data management record 2a together with the output to the secondary storage medium. After that, the deleting unit 4 deletes the data from the database 2. The data management record 2a when data access is requested from the data access means 7
If the data exists but the data does not exist in the database 2, the recovery unit 5 recovers the data from the information such as the volume name of the secondary storage medium recorded in the data management record 2a. When the database 2 is destroyed or erased due to a hardware error or a software error, the database 2 is recovered from the secondary storage medium 6.

【0012】[0012]

【実施例】次に、本発明について図面を参照して詳細に
説明する。
The present invention will be described in detail with reference to the drawings.

【0013】図1は、本発明のデータベース管理方式の
構成を示すブロック図である。図1に示すようにデータ
ベース管理方式は、フラグ設定手段1、データ管理レコ
ード2aを持つデータベース2、バックアップ手段3、
削除手段4、回復手段5、2次記憶媒体6、データアク
セス手段7、2次記憶媒体の詰め替え手段8から構成さ
れている。
FIG. 1 is a block diagram showing the configuration of the database management system of the present invention. As shown in FIG. 1, the database management method includes a flag setting means 1, a database 2 having a data management record 2a, a backup means 3,
The deletion unit 4, the recovery unit 5, the secondary storage medium 6, the data access unit 7, and the secondary storage medium refilling unit 8 are included.

【0014】図2は、データ管理レコード2aの構成を
示している。データ管理レコード2a内には、データ
名、処理対象日付(作成、更新、入力)、データ要/不
要フラグ、バックアップ要/不要フラグ、2次記憶媒体
情報等が格納されている。
FIG. 2 shows the structure of the data management record 2a. In the data management record 2a, a data name, a processing target date (creation, update, input), a data necessary / unnecessary flag, a backup necessary / unnecessary flag, secondary storage medium information and the like are stored.

【0015】図3は、フラグ設定手段1におけるフラグ
設定の一例を示すフローチャートである。フラグ設定手
段1は、データベースの運用者によって定期的または、
任意の時期に起動される。ステップ1−1でデータ毎に
データ管理レコード2aを参考に使用期間またはデータ
の性格によってデータのアクセス頻度を判定する。例え
ば、最終アクセス日付が現時点から1年以内ならばアク
セス頻繁、1年から2年以内ならばアクセス中間、2年
から3年以内ならばアクセス僅少、3年以上アクセスし
ていなければアクセスなしと判定する。アクセス頻繁な
らばステップ1−5に進む。アクセス中間ならばステッ
プ1−2に進む。アクセス僅少ならばステップ1−3に
進む。アクセスなしならばステップ1−4に進む。ステ
ップ1−2では、データ管理レコード2aのデータ要/
不要フラグは要、バッアップ要/不要フラグは不要と
し、ステップ1−5に進む。ステップ1−3では、デー
タ管理レコード2aのデータ要/不要フラグは不要、バ
ックアップ要/不要フラグは不要にし、ステップ1−5
に進む。ステップ1−4では、該当データを削除するた
めに削除手段4を起動後、データ管理レコード2a内の
該当データの情報を削除する。ステップ1−5でデータ
ベース2内のデータすべてについて処理を行ったか判定
し、終わりならば処理を終了する。終わりでなければス
テップ1−1に戻る。
FIG. 3 is a flow chart showing an example of flag setting in the flag setting means 1. The flag setting means 1 is regularly or by a database operator.
It is started at any time. In step 1-1, the access frequency of the data is determined according to the usage period or the character of the data with reference to the data management record 2a for each data. For example, if the last access date is within 1 year from the current time, frequent access is performed if within 1 to 2 years, access is intermediate if within 2 years to 3 years, access is low, and if there is no access for 3 years or more, no access is determined. To do. If access is frequent, proceed to step 1-5. If it is in the middle of access, proceed to step 1-2. If there is little access, proceed to step 1-3. If there is no access, go to step 1-4. In step 1-2, data required for the data management record 2a /
The unnecessary flag is required, and the backup necessary / unnecessary flag is not required. In step 1-3, the data necessary / unnecessary flag of the data management record 2a is unnecessary, the backup necessary / unnecessary flag is unnecessary, and the step 1-5
Proceed to. In step 1-4, after activating the deleting means 4 to delete the corresponding data, the information of the corresponding data in the data management record 2a is deleted. In step 1-5, it is determined whether or not all the data in the database 2 have been processed. If it is not the end, return to step 1-1.

【0016】図4は、バックアップ手段3におけるバッ
クアップの一例を示すフローチャートである。データベ
ースの運用者によって定期的または、任意の時期に起動
される。ステップ3−1でデータ毎にバックアップ要/
不要フラグが要か否かを判定する。バックアップ要/不
要フラグが要ならば、ステップ3−2に進む。バックア
ップ要/不要フラグが不要ならばステップ3−4に進
む。ステップ3−2では、2次記憶媒体6に当該データ
を出力し、ステップ3−3に進む。ステップ3−3で
は、データ管理レコード2aに2次記憶媒体のボリュー
ム名称等の情報書き込み、ステップ3−10に進む。ス
テップ3−4では、データ要/不要フラグが要か否かの
判定をする。データ要/不要フラグが要ならばステップ
3−11に進む。データ要/不要フラグが不要ならば、
ステップ3−5に進む。ステップ3−5では、データ有
/無フラグが有か否かの判定をする。データ有/無フラ
グが有ならば、ステップ3−6に進む。データ有/無フ
ラグが無ならば、ステップ3−10に進む。ステップ3
−6では、当該データを2次記憶媒体6に出力し、ステ
ップ3−7に進む。ステップ3−7では、当該データを
出力した2次記憶媒体の情報をデータ管理レコード2a
に登録し、ステップ3−8に進む。ステップ3−8で
は、退避したデータを図5の削除手段4を起動し削除処
理をした後、ステップ3−9に進む。ステップ3−9で
は、データ管理レコード2a内のデータ有/無フラグを
無にし、ステップ3−10に進む。ステップ3−10で
は、データベース2内のデータすべてについて処理を行
ったか判定し、終わりならば処理を処理を終了する。終
わりでなければステップ3−1に戻る。ステップ3−1
1では、データ管理レコードに2次記憶媒体情報の有無
を調査し、2次記憶媒体情報がなければ、ステップ3−
2に進む。2次記憶媒体情報があれば、ステップ3−1
0に進む。
FIG. 4 is a flow chart showing an example of backup in the backup means 3. It is activated by the database operator regularly or at any time. Backup required for each data in step 3-1 /
It is determined whether the unnecessary flag is necessary. If the backup necessary / unnecessary flag is necessary, go to step 3-2. If the backup necessary / unnecessary flag is unnecessary, the process proceeds to step 3-4. In step 3-2, the data is output to the secondary storage medium 6, and the process proceeds to step 3-3. In step 3-3, information such as the volume name of the secondary storage medium is written in the data management record 2a, and the process proceeds to step 3-10. In step 3-4, it is determined whether the data required / unnecessary flag is required. If the data required / unnecessary flag is required, the process proceeds to step 3-11. If the data required / not required flag is unnecessary,
Go to step 3-5. In step 3-5, it is determined whether or not there is a data presence / absence flag. If the data presence / absence flag is present, the process proceeds to step 3-6. If the data presence / absence flag is not present, the process proceeds to step 3-10. Step 3
In -6, the data is output to the secondary storage medium 6, and the process proceeds to step 3-7. In step 3-7, the information of the secondary storage medium that has output the data is set to the data management record 2a.
And register to step 3-8. In step 3-8, the saved data is deleted by activating the deleting means 4 in FIG. 5, and then the process proceeds to step 3-9. In step 3-9, the data existence / non-existence flag in the data management record 2a is set to "no", and the process proceeds to step 3-10. In step 3-10, it is determined whether all the data in the database 2 have been processed, and if the processing is completed, the processing is terminated. If it is not the end, return to step 3-1. Step 3-1
In 1, the presence or absence of secondary storage medium information in the data management record is checked, and if there is no secondary storage medium information, step 3-
Go to 2. If there is secondary storage medium information, step 3-1.
Go to 0.

【0017】図5は、削除手段4における削除の一例を
示すフローチャートである。削除手段4は、バックアッ
プ手段3により起動する。ステップ4−1で当該データ
の削除処理を行い、処理を終了する。
FIG. 5 is a flow chart showing an example of deletion by the deleting means 4. The deleting means 4 is activated by the backup means 3. In step 4-1, the data is deleted, and the process ends.

【0018】図6は、回復手段5における回復の一例を
示すフローチャートである。ステップ5−1で当該デー
タの格納ボリューム名をデータ管理レコード2aから知
り、データを2次記憶媒体6からデータベース2に格納
し、ステップ5−2に進む。ステップ5−2でデータ管
理レコード2a内の当該データのデータ要/不要フラグ
を要にし、バックアップ要/不要フラグを要にし、デー
タ有/無フラグを有にして、処理を終了する。
FIG. 6 is a flow chart showing an example of recovery by the recovery means 5. In step 5-1, the storage volume name of the data is known from the data management record 2a, the data is stored in the database 2 from the secondary storage medium 6, and the process proceeds to step 5-2. In step 5-2, the data required / unnecessary flag of the data in the data management record 2a is required, the backup required / unnecessary flag is required, and the data presence / absence flag is set, and the process is ended.

【0019】図7は、データアクセス手段7におけるデ
ータアクセスの一例を示すフローチャートである。ステ
ップ7−1でデータの読出しか否かの判定をする。デー
タ読出しならばステップ7−2に進む。データ読出しで
なければステップ7−7に進む。ステップ7−2では、
データ管理レコード2a内にデータが有るか否かの判定
をする。データ管理レコード2a内にデータが無いなら
ばステップ7−3に進む。データ管理レコード2a内に
データが有るならばステップ7−4に進む。ステップ7
−3では、エラーメッセージを出力し処理を終了する。
ステップ7−4では、データ要/不要フラグが要か否か
の判定をする。データ要/不要フラグが不要ならば、ス
テップ7−5に進む。データ要/不要フラグが要ならば
ステップ7−6に進む。ステップ7−5では、図6の回
復手段5を起動し回復処理をした後、ステップ7−6に
進む。ステップ7−6では、アクセスを行い、処理を終
了する。ステップ7−7では、データ書き込みか否かの
判定をする。データ書き込みならばステップ7−8に進
む。データ書き込みでなければステップ7−10に進
む。ステップ7−8では、データの書き込みを行い、ス
テップ7−9に進む。ステップ7−9では、当該データ
に関する情報をデータ管理レコード2a内に追加し、デ
ータ要/不要フラグは要、バックアップ要/不要フラグ
は要、データ有/無フラグは有にして処理を終了する。
ステップ7−10では、データ削除か否かの判定を行
い、データ削除ならばステップ7−11に進む。データ
削除でなければステップ7−12に進む。ステップ7−
11では、削除手段4を起動し削除処理をした後、処理
を終了する。ステップ7−12では、エラーメッセージ
を出力し、処理を終了する。
FIG. 7 is a flow chart showing an example of data access by the data access means 7. In step 7-1, it is determined whether or not the data is read. If data is read, the process proceeds to step 7-2. If the data is not read, the process proceeds to step 7-7. In step 7-2,
It is determined whether or not there is data in the data management record 2a. If there is no data in the data management record 2a, the process proceeds to step 7-3. If there is data in the data management record 2a, the process proceeds to step 7-4. Step 7
At -3, an error message is output and the process ends.
In step 7-4, it is determined whether the data required / unnecessary flag is required. If the data necessary / unnecessary flag is unnecessary, the process proceeds to step 7-5. If the data required / unnecessary flag is required, the process proceeds to step 7-6. In step 7-5, the recovery means 5 in FIG. 6 is activated to perform recovery processing, and then the process proceeds to step 7-6. At step 7-6, access is performed and the process is terminated. At step 7-7, it is judged whether or not the data is written. If data writing, proceed to step 7-8. If the data is not written, the process proceeds to step 7-10. In step 7-8, data is written, and the process proceeds to step 7-9. In step 7-9, the information regarding the data is added to the data management record 2a, the data required / unnecessary flag is required, the backup required / unnecessary flag is required, and the data presence / absence flag is present, and the process is terminated.
In step 7-10, it is determined whether or not the data is deleted. If the data is deleted, the process proceeds to step 7-11. If the data is not deleted, the process proceeds to step 7-12. Step 7-
In 11, the deleting unit 4 is activated to perform the deleting process, and then the process ends. In step 7-12, an error message is output and the process ends.

【0020】図8は、2次記憶媒体の詰め替え手段8に
おける2次記憶媒体詰め替えの一例を示すフローチャー
トである。ステップ8−1でデータ管理レコード2a内
の2次記憶媒体情報を基にデータを詰め替え後の2次記
憶媒体にコピーし、ステップ8−2に進む。ステップ8
−2でデータ管理レコード2a内の2次記憶媒体情報を
更新した後、ステップ8−3に進む。ステップ8−3で
は、データベース2内のデータすべてについて処理を行
ったか判定し、終わりならば処理を終了する。終わりで
なければステップ8−1に戻る。
FIG. 8 is a flow chart showing an example of refilling the secondary storage medium in the refilling means 8 for the secondary storage medium. In step 8-1, the data is copied to the refilled secondary storage medium based on the secondary storage medium information in the data management record 2a, and the process proceeds to step 8-2. Step 8
-2, the secondary storage medium information in the data management record 2a is updated, and then the process proceeds to step 8-3. In step 8-3, it is determined whether or not all the data in the database 2 have been processed. If the processing is completed, the processing is ended. If it is not the end, return to step 8-1.

【0021】[0021]

【発明の効果】以上説明したように本発明のデータベー
ス管理方式は、データの使用頻度を判定し、使用頻度が
低いデータについては、バックアップ処理を行わないこ
とからバックアップ時間を短縮できる。また、バックア
ップ用の2次記憶媒体に未使用データを繰り返し格納す
ることを防止できるため、2次記憶媒体の媒体数を少な
くできる。データの使用頻度が特に低いデータについて
は、バックアップ処理で2次記憶媒体に退避し、データ
ベース上から削除することからエリアの有効利用ができ
る。また、退避データを格納している2次記憶媒体情報
をデータベース上に持つことから検索時間を削減でき、
データ回復時間を短縮できる。通常の運用で行うバック
アップ処理でデータの退避、削除を行うため、特別な操
作が必要なくデータベース運用の簡素化を図ることがで
きる。
As described above, according to the database management method of the present invention, the frequency of use of data is determined, and the backup processing is not performed for data with low frequency of use, so that the backup time can be shortened. Further, since it is possible to prevent the unused data from being repeatedly stored in the backup secondary storage medium, the number of secondary storage media can be reduced. For data that is used infrequently, the area can be effectively used because it is saved in the secondary storage medium in the backup process and deleted from the database. Moreover, since the secondary storage medium information storing the saved data is stored in the database, the search time can be reduced,
Data recovery time can be shortened. Since data is backed up and deleted by the backup process that is performed in normal operation, database operation can be simplified without any special operation.

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

【図1】本発明のデータベース管理方式の構成図であ
る。
FIG. 1 is a configuration diagram of a database management system of the present invention.

【図2】データ管理レコードの一例を示す図である。FIG. 2 is a diagram showing an example of a data management record.

【図3】フラグ設定手段におけるフラグ設定の一例を示
すフローチャートである。
FIG. 3 is a flowchart showing an example of flag setting in a flag setting means.

【図4】バックアップ手段におけるバックアップの一例
を示すフローチャートである。
FIG. 4 is a flowchart showing an example of backup in the backup means.

【図5】削除手段における削除の一例を示すフローチャ
ートである。
FIG. 5 is a flowchart showing an example of deletion by a deleting means.

【図6】回復手段における回復の一例を示すフローチャ
ートである。
FIG. 6 is a flowchart showing an example of recovery by a recovery means.

【図7】データアクセス手段におけるデータアクセスの
一例を示すフローチャートである。
FIG. 7 is a flowchart showing an example of data access by a data access unit.

【図8】2次記憶媒体の詰め替え手段における2次記憶
媒体詰め替えの一例を示すフローチャートである。
FIG. 8 is a flowchart showing an example of secondary storage medium refilling in the secondary storage medium refilling means.

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

1…フラグ設定手段、 2…データベース、 2a…データ管理レコード、 3…バックアップ手段、 4…削除手段、 5…回復手段、 6…2次記憶媒体、 7…データアクセス手段、 8…2次記憶媒体の詰め替え手段である。 DESCRIPTION OF SYMBOLS 1 ... Flag setting means, 2 ... Database, 2a ... Data management record, 3 ... Backup means, 4 ... Deletion means, 5 ... Recovery means, 6 ... Secondary storage medium, 7 ... Data access means, 8 ... Secondary storage medium Is a means of refilling.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 蓑田 政義 神奈川県秦野市堀山下1番地 日立コンピ ュータエンジニアリング株式会社内 (72)発明者 山内 賀夫 神奈川県秦野市堀山下1番地 日立コンピ ュータエンジニアリング株式会社内 (72)発明者 大澤 優 神奈川県秦野市堀山下1番地 株式会社日 立製作所汎用コンピュータ事業部内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Masayoshi Minoda 1 Horiyamashita, Hadano City, Kanagawa Prefecture Hitachi Computer Engineering Co., Ltd. (72) Inventor Kao Yamauchi 1 Horiyamashita, Hadano City, Kanagawa Prefecture Hitachi Computer Data Engineering Co., Ltd. (72) Inventor Yu Osawa 1 Horiyamashita, Hadano City, Kanagawa Prefecture

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】データベースシステムにおいて、データ要
/不要フラグすなわち、データベース上にデータを存在
させたいか否かを示すフラグと、バックフップ要/不要
フラグすなわち、バックアップ処理が必要か否かを示す
フラグと、2次記憶媒体情報等を格納するデータ管理レ
コードを持ち、 データの使用頻度によって、アクセス頻繁(データが頻
繁にアクセスされるためデータベース上にデータを存在
させ、バックアップを取得する)/アクセス中間(デー
タのアクセス要求時にアクセス時間を短縮するため、デ
ータベース上にデータを存在させるが、バックアップは
取得しない)/アクセス僅少(データベース上にはデー
タを存在させずにバックアップも取得しないがアクセス
要求時には、2次記憶媒体から回復する)/アクセスな
し(データベース上からデータとデータ管理レコードを
削除する)にデータを分類し、 アクセス頻繁ならば、データ要/不要フラグは要、バッ
クアップ要/不要フラグは要、アクセス中間ならば、デ
ータ要/不要フラグは要、バックアップ要/不要フラグ
は不要、アクセス僅少ならば、データ要/不要フラグは
不要、バックアップ要/不要フラグは不要、アクセスな
しならば、データをデータベース上から削除するために
削除手段を起動すると共に該データに対応するデータ管
理レコードを削除する機能を有するフラグ設定手段と、 データベース内のデータを2次記憶媒体に出力する際、
該バックアップ要/不要フラグが要の場合、2次記憶媒
体に出力し、該バックアップ要/不要フラグが不要の場
合、2次記憶媒体に出力しないと共に、データ要/不要
フラグが不要の場合、データを2次記憶媒体に出力し、
削除手段を起動するバックアップ手段と、 退避処理の対象となったデータをデータベースから削除
する削除手段と、 データ要/不要フラグが不要のデータをデータアクセス
手段によってアクセス要求された際、2次記憶媒体より
データベースに回復し、データ要/不要フラグを要にす
ると共に、バックアップ要/不要フラグを要にし、ま
た、データベースがハードウェア障害または、ソフトウ
ェア障害により、破壊または消去された際、2次記憶媒
体よりデータベースを回復する回復手段と、 該データ管理レコードに登録されたデータのみを2次記
憶媒体から抽出し、別の2次記憶媒体を作成する2次記
憶媒体詰め替え手段を備えていることを特徴とするデー
タベース管理方式。
1. In a database system, a data necessary / unnecessary flag, that is, a flag indicating whether or not data is to exist in the database, and a backhoop necessary / unnecessary flag, that is, a flag indicating whether a backup process is necessary. And a data management record that stores secondary storage medium information, etc., and depending on how often the data is used, frequent access (data exists in the database because data is frequently accessed and backups are acquired) / intermediate access (In order to shorten the access time at the time of data access request, the data exists in the database, but backup is not acquired) / Access is very small (data does not exist in the database and backup is not acquired, but at the time of access request, Recover from secondary storage medium) / no access Data is classified into (delete data and data management records from the database). If access is frequent, data required / unnecessary flag is required, backup required / unnecessary flag is required, if access is in progress data required / unnecessary flag Required, backup required / unnecessary flag not required, data required / unnecessary flag not required if access is infrequent, backup required / unnecessary flag not required, and deletion means activated to delete data from the database if no access And a flag setting means having a function of deleting the data management record corresponding to the data, and outputting the data in the database to the secondary storage medium,
If the backup required / unnecessary flag is required, the data is output to the secondary storage medium. If the backup required / unnecessary flag is not required, the data is not output to the secondary storage medium. Is output to the secondary storage medium,
A backup means for activating the deleting means, a deleting means for deleting the data that is the object of the saving process from the database, and a secondary storage medium when the data access means requests access to data for which the data required / unnecessary flag is unnecessary. Recovers to a database, requires a data required / unnecessary flag, requires a backup required / unnecessary flag, and is a secondary storage medium when the database is destroyed or erased due to a hardware failure or software failure. A recovery means for further recovering the database, and a secondary storage medium refilling means for extracting only the data registered in the data management record from the secondary storage medium and creating another secondary storage medium are provided. Database management method.
【請求項2】請求項1のフラグ設定手段において、読み
出し専用データはバックアップの必要がないというよう
なデータの性質によって、アクセス頻繁/アクセス中間
/アクセス僅少/アクセスなしにデータを分類し、 アクセス頻繁ならば、データ要/不要フラグは要、バッ
クアップ要/不要フラグは要、アクセス中間ならば、デ
ータ要/不要フラグは要、バックアップ要/不要フラグ
は不要、アクセス僅少ならば、データ要/不要フラグは
不要、バックアップ要/不要フラグは不要、アクセスな
しならば、データをデータベース上から削除するために
削除手段を起動すると共にデータ管理レコードを削除す
る機能を有するデータベース管理方式。
2. The flag setting means according to claim 1, wherein the read-only data is classified as frequent access / intermediate access / frequent access / no access according to the nature of the data such that backup is unnecessary. If so, the data required / unnecessary flag is required, the backup required / unnecessary flag is required, if the access is in progress, the data required / unnecessary flag is required, the backup required / unnecessary flag is unnecessary, and if the access is few, the data required / unnecessary flag is required. Is a database management method that has a function of activating a deleting means to delete data from the database and deleting a data management record if there is no need, a backup necessary / unnecessary flag is unnecessary, and there is no access.
JP6100460A 1994-05-16 1994-05-16 Data base management system Pending JPH07306802A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6100460A JPH07306802A (en) 1994-05-16 1994-05-16 Data base management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6100460A JPH07306802A (en) 1994-05-16 1994-05-16 Data base management system

Publications (1)

Publication Number Publication Date
JPH07306802A true JPH07306802A (en) 1995-11-21

Family

ID=14274528

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6100460A Pending JPH07306802A (en) 1994-05-16 1994-05-16 Data base management system

Country Status (1)

Country Link
JP (1) JPH07306802A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999056211A1 (en) * 1998-04-27 1999-11-04 Sony Corporation Data recording/reproducing apparatus and method therefor
GB2343033A (en) * 1998-07-27 2000-04-26 Samsung Electronics Co Ltd Backing up a database
GB2351818A (en) * 1999-03-19 2001-01-10 Fujitsu Ltd Backup and recovery system with automatic/manual file selection and automatic backup media selection
JP2006039851A (en) * 2004-07-26 2006-02-09 Toshiba Corp Programmable controller
JP2008117342A (en) * 2006-11-08 2008-05-22 Hitachi Ltd Storage system, and controller for controlling remote copying
JP2008242524A (en) * 2007-03-23 2008-10-09 Nec Software Chubu Ltd File management device, file management method, program and computer-readable recording medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999056211A1 (en) * 1998-04-27 1999-11-04 Sony Corporation Data recording/reproducing apparatus and method therefor
GB2343033A (en) * 1998-07-27 2000-04-26 Samsung Electronics Co Ltd Backing up a database
GB2351818A (en) * 1999-03-19 2001-01-10 Fujitsu Ltd Backup and recovery system with automatic/manual file selection and automatic backup media selection
GB2351818B (en) * 1999-03-19 2004-03-03 Fujitsu Ltd Computer,computer network system,and recording medium
JP2006039851A (en) * 2004-07-26 2006-02-09 Toshiba Corp Programmable controller
JP2008117342A (en) * 2006-11-08 2008-05-22 Hitachi Ltd Storage system, and controller for controlling remote copying
JP2008242524A (en) * 2007-03-23 2008-10-09 Nec Software Chubu Ltd File management device, file management method, program and computer-readable recording medium

Similar Documents

Publication Publication Date Title
US7107294B2 (en) Method and apparatus for interrupting updates to a database to provide read-only access
US7987329B2 (en) Storage system and method of controlling the same
US6877109B2 (en) Method for the acceleration and simplification of file system logging techniques using storage device snapshots
JP3440991B2 (en) File revision management system
JP5021929B2 (en) Computer system, storage system, management computer, and backup management method
EP0733235B1 (en) Incremental backup system
US7698319B2 (en) Database system management method, database system, database device, and backup program
JPH10510642A (en) Computer data storage
JPH0644010A (en) Method and system for polling under sub-file in time zero-backup-copy-process
JP4575762B2 (en) Data processing method and apparatus, storage apparatus and processing program therefor
JPH07306802A (en) Data base management system
US5230075A (en) Database shadowing system with data tags that select an operation of the save command
JP2003162438A (en) Database management system
JP2002318717A (en) Database system
JPH0385650A (en) Disk volume restoration system
JP2913774B2 (en) Editing data storage control method for data processing system
JP2610972B2 (en) Database data integrity method
JP2000137639A (en) Long-term data archive management system using optical disk library
JP2002229830A (en) Backup method of database file and its device
JP4167578B2 (en) Backup system, backup method and program
JP2643918B2 (en) File recovery system
JP2738245B2 (en) File recovery system
JPH02151945A (en) File management device
JPH05173864A (en) File recovery system
JPH05303523A (en) In-fault process restore system