JPH08328929A - Database split management system - Google Patents

Database split management system

Info

Publication number
JPH08328929A
JPH08328929A JP7139055A JP13905595A JPH08328929A JP H08328929 A JPH08328929 A JP H08328929A JP 7139055 A JP7139055 A JP 7139055A JP 13905595 A JP13905595 A JP 13905595A JP H08328929 A JPH08328929 A JP H08328929A
Authority
JP
Japan
Prior art keywords
physical
file
physical file
files
divided
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
JP7139055A
Other languages
Japanese (ja)
Inventor
Takao Yoshinaga
孝雄 吉永
Hideo Fukuda
秀夫 福田
Takashi Motokawa
隆 元川
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 Software Engineering Co Ltd
Hitachi Ltd
Original Assignee
Hitachi Software Engineering Co Ltd
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Software Engineering Co Ltd, Hitachi Ltd filed Critical Hitachi Software Engineering Co Ltd
Priority to JP7139055A priority Critical patent/JPH08328929A/en
Publication of JPH08328929A publication Critical patent/JPH08328929A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To improve efficiency for using a storage device for storing the physical files of a database and to improve the efficiency of physical file backup by performing access to the plural physical files logically as one physical file. CONSTITUTION: This system is provided with a physical file splitting means 110 for splitting a physical file 100 of the database into plural physical files 101 and 102 corresponding to the use frequency of data, a physical file moving means 120 for moving the plural split physical files 101 and 102 between plural storage devices corresponding to the use frequency of the physical files 101 and 102, a physical file access means 130 for performing access to the plural split physical files 101 and 102 logically as one physical file, and a physical file backup means 140 for backing up the updated physical file between the plural split physical files 101 and 102 after the backup.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、データベース分割管理
システムに関し、特に、多量データを有する物理ファイ
ルを複数の物理ファイルに分割してそのデータの検索と
更新を行うデータベースのデータベース分割管理システ
ムに適用して有効な技術に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database division management system, and more particularly to a database division management system for a database that divides a physical file having a large amount of data into a plurality of physical files and searches and updates the data. It is related to effective technology.

【0002】[0002]

【従来の技術】従来、データベースシステムでは、実デ
ータを格納した物理ファイルを基に定義した仮想のファ
イルである論理ファイルを作成し、前記論理ファイルを
介して前記物理ファイルにアクセスしている。
2. Description of the Related Art Conventionally, in a database system, a logical file, which is a virtual file defined based on a physical file storing actual data, is created, and the physical file is accessed via the logical file.

【0003】データベースの物理ファイルは、データベ
ースの使用者が蓄積する実データを格納しているファイ
ルであり、物理ファイル定義情報、データ、インデック
スから構成されており、物理ファイルに実データを蓄積
していくと、その物理ファイルの大きさはやがて膨大な
ものとなることがある。
The physical file of the database is a file that stores the actual data accumulated by the user of the database, and is composed of physical file definition information, data, and an index. The actual data is accumulated in the physical file. Over time, the size of the physical file may become enormous.

【0004】データベースの論理ファイルは、1つまた
は複数の物理ファイルから任意のデータを抜き出した
り、結合したりするファイルであり、使用目的に合わせ
て作成され、論理ファイル定義情報等から構成されてい
る。
The logical file of the database is a file for extracting or combining arbitrary data from one or a plurality of physical files, is created according to the purpose of use, and is composed of logical file definition information and the like. .

【0005】前記データベースシステムの運用において
は、前記物理ファイルが持つデータの量が増加するにつ
れて、前記物理ファイルを記憶する記憶領域の確保や前
記物理ファイルのバックアップ等の負担が増加する。
In the operation of the database system, as the amount of data in the physical file increases, the burden of securing a storage area for storing the physical file and backing up the physical file increases.

【0006】この為、前記記憶領域の確保やバックアッ
プ等のデータベースの運用に伴う作業を行う場合、多量
のデータを持つ物理ファイルを一時的に少量のデータの
複数の物理ファイルに分割して前記の作業を行ってい
る。
For this reason, when performing work associated with the operation of the database such as securing the storage area and backing up, a physical file having a large amount of data is temporarily divided into a plurality of physical files having a small amount of data. I'm working.

【0007】前記物理ファイルのデータを複数の物理フ
ァイルに分割した場合、分割された各物理ファイルの全
てのデータを対象としてアクセスするためには、ユーザ
自身が各物理ファイルのデータを纏めて1つの物理ファ
イルを作成し、作成された物理ファイルに対してアクセ
スを行う必要がある。
When the data of the physical file is divided into a plurality of physical files, in order to access all the data of each of the divided physical files, the user himself / herself collects the data of each physical file into one data file. It is necessary to create a physical file and access the created physical file.

【0008】前記の様な、複数の物理ファイルを1つに
統合する方法或いは装置については、特開昭60−19
5653号、特開平5−181727号、特開平5−3
5553号に記載されている。その概要は、実行時に複
数の物理ファイル群を統合して一時的な物理ファイルを
作成する方法、複数のデータベースを統合する作業を簡
略化する装置、関係するファイルの全てを退避すること
なく統合を行う方法である。
A method or apparatus for integrating a plurality of physical files into one as described above is disclosed in JP-A-60-19.
5653, JP-A-5-181727, JP-A-5-3
5553. The outline is a method of creating a temporary physical file by integrating multiple physical files at the time of execution, a device that simplifies the work of integrating multiple databases, and integration without saving all related files. Is the way to do it.

【0009】[0009]

【発明が解決しようとする課題】本発明者は、前記従来
技術を検討した結果、以下の問題点を見いだした。
The present inventor has found the following problems as a result of examining the above-mentioned prior art.

【0010】すなわち、従来のデータベースシステムの
物理ファイル中に、通常の業務では必要としない特定デ
ータが存在する時、前記特定データは前記物理ファイル
を格納している外部記憶装置の容量を無駄に占有し、前
記外部記憶装置の使用効率を低下させているという問題
がある。
That is, when the physical file of the conventional database system contains the specific data which is not required in the normal operation, the specific data wastefully occupies the capacity of the external storage device storing the physical file. However, there is a problem that the usage efficiency of the external storage device is reduced.

【0011】そこで、前記特定データを必要としない間
は、前記特定データを別の物理ファイルに分割して磁気
テープ等の記憶媒体に退避し、前記外部記憶装置上から
削除してしまえば前記外部記憶装置の使用効率を上げる
ことが可能である。
Therefore, while the specific data is not needed, the specific data is divided into different physical files, saved in a storage medium such as a magnetic tape, and deleted from the external storage device, so that the external data is stored in the external storage device. It is possible to improve the use efficiency of the storage device.

【0012】しかし、前記の分割前の物理ファイル中の
全てのデータを必要とする業務が発生した場合には、前
記外部記憶装置上から削除されている特定データを含む
物理ファイルを前記磁気テープ等の記憶媒体から外部記
憶装置上へ回復し、各物理ファイルのデータを纏めて1
つの物理ファイルを作成し直す作業をユーザ自身が行う
必要があり、この作業では、多量データを扱うことから
前記物理ファイルの作成に多くの時間を要するという問
題がある。
However, when a job that requires all the data in the undivided physical file occurs, the physical file containing the specific data deleted from the external storage device is replaced with the magnetic tape or the like. Data from each storage medium to an external storage device and collect the data of each physical file 1
It is necessary for the user to recreate one physical file, and this work has a problem that it takes a lot of time to create the physical file because a large amount of data is handled.

【0013】前記の、特開昭60−195653号、特
開平5−181727号、特開平5−35553号に記
載された複数の物理ファイルを統合する方法或いは装置
においても、統合しようとする物理ファイルが多量のデ
ータを有する場合には、その物理ファイルの統合には多
くの時間が必要である。
Even in the method or apparatus for integrating a plurality of physical files described in JP-A-60-195653, JP-A-5-181727 and JP-A-5-35553, the physical files to be integrated If has a large amount of data, integrating the physical files requires a lot of time.

【0014】本発明の目的は、物理ファイルを格納する
記憶装置の使用効率を向上させることが可能な技術を提
供することにある。
An object of the present invention is to provide a technique capable of improving the usage efficiency of a storage device that stores a physical file.

【0015】本発明の他の目的は、分割された複数の物
理ファイルを統合して1つの物理ファイルを作成するこ
となく、前記複数の物理ファイルを論理的に1つの物理
ファイルとしてアクセスすることが可能な技術を提供す
ることにある。
Another object of the present invention is to access a plurality of physical files logically as one physical file without integrating a plurality of divided physical files to create one physical file. To provide possible technology.

【0016】本発明の他の目的は、物理ファイルのバッ
クアップの効率を向上させることが可能な技術を提供す
ることにある。
Another object of the present invention is to provide a technique capable of improving the efficiency of backing up a physical file.

【0017】本発明の前記ならびにその他の目的と新規
な特徴は、本明細書の記述及び添付図面によって明らか
になるであろう。
The above and other objects and novel features of the present invention will become apparent from the description of the present specification and the accompanying drawings.

【0018】[0018]

【課題を解決するための手段】本願において開示される
発明のうち、代表的なものの概要を簡単に説明すれば、
下記のとおりである。
Of the inventions disclosed in the present application, a representative one will be briefly described below.
It is as follows.

【0019】すなわち、データベースの物理ファイルを
データの使用頻度に応じて複数の物理ファイルに分割す
る物理ファイル分割手段と、前記物理ファイル分割手段
によって分割された複数の物理ファイルの使用頻度情報
に応じて前記物理ファイルを複数の記憶装置間で移動さ
せる物理ファイル移動手段を備えたデータベース分割管
理システムであって、前記物理ファイル分割手段は、分
割の対象となる物理ファイル中の一定領域ごとに格納さ
れたデータの使用頻度を記録するデータアクセス記録手
段と、前記データアクセス記録手段によって記録された
使用頻度情報に応じて前記物理ファイルを分割して複数
の物理ファイルを作成する分割物理ファイル作成手段を
有し、前記物理ファイル移動手段は、前記使用頻度情報
に応じて使用頻度の低い物理ファイルを他の記憶装置に
退避する物理ファイル退避手段と、前記物理ファイル退
避手段によって退避された物理ファイルを退避元の記憶
装置上から削除する物理ファイル削除手段と、前記物理
ファイル退避手段によって退避された物理ファイルを必
要に応じて退避先の記憶装置から復元する物理ファイル
復元手段を有するものである。
That is, according to the physical file dividing means for dividing the physical file of the database into a plurality of physical files according to the use frequency of the data, and the use frequency information of the plurality of physical files divided by the physical file dividing means. A database division management system comprising physical file moving means for moving the physical file between a plurality of storage devices, wherein the physical file dividing means is stored for each fixed area in the physical file to be divided. Data access recording means for recording the usage frequency of data, and divided physical file creation means for creating a plurality of physical files by dividing the physical file according to the usage frequency information recorded by the data access recording means , The physical file moving means determines the usage frequency according to the usage frequency information. A physical file saving means for saving a low physical file to another storage device, a physical file deleting means for deleting the physical file saved by the physical file saving means from the save source storage device, and a physical file saving means The physical file restoring means restores the saved physical file from the save destination storage device as needed.

【0020】また、分割された複数の物理ファイルを論
理的に1つの物理ファイルとしてアクセスする物理ファ
イルアクセス手段を備えた前記のデータベース分割管理
システムであって、前記物理ファイルアクセス手段は、
前記の分割された複数の物理ファイルの名称と前記の分
割された複数の物理ファイルが物理ファイル移動手段に
よって移動されているかどうかを示す論理ファイル定義
情報を記録する論理ファイル定義手段と、前記の分割さ
れた複数の物理ファイルに対してアクセス要求があると
きに、前記論理ファイル定義手段によって記録された前
記論理ファイル定義情報を参照して前記アクセス要求を
実行する論理ファイルアクセス手段を有するものであ
る。
Further, in the above-mentioned database division management system, which is provided with a physical file access means for logically accessing a plurality of divided physical files as one physical file, wherein the physical file access means comprises:
A logical file definition means for recording the names of the plurality of divided physical files and logical file definition information indicating whether or not the plurality of divided physical files have been moved by the physical file moving means, and the division When there is an access request for a plurality of physical files that have been created, the logical file access means is provided for referring to the logical file definition information recorded by the logical file definition means and executing the access request.

【0021】また、分割された複数の物理ファイルの内
で前回のバックアップ以後に更新の行われた物理ファイ
ルのバックアップを行う物理ファイルバックアップ手段
を備えたデータベース分割管理システムであって、前記
物理ファイルバックアップ手段は、前記の分割された複
数の物理ファイルのバックアップがいつ行われたかを示
すバックアップ情報を記録するバックアップ記録手段
と、前記バックアップ記録手段によって記録された前記
バックアップ情報と当該物理ファイルの更新日時を比較
し、前回のバックアップ以後に更新の行われた物理ファ
イルを必要に応じてバックアップする部分バックアップ
手段を有するものである。
A database division management system comprising physical file backup means for backing up a physical file that has been updated since the last backup among a plurality of divided physical files, wherein the physical file backup Means, backup recording means for recording the backup information indicating when the backup of the plurality of divided physical files was performed, the backup information recorded by the backup recording means and the update date and time of the physical file. By comparison, it has a partial backup means for backing up a physical file that has been updated since the previous backup as needed.

【0022】[0022]

【作用】上述した手段によれば、本発明のデータベース
分割管理システムの物理ファイル分割手段は、データベ
ースの物理ファイルをデータの使用頻度に応じて複数の
物理ファイルに分割する。
According to the above-mentioned means, the physical file dividing means of the database division management system of the present invention divides the physical file of the database into a plurality of physical files according to the frequency of use of the data.

【0023】前記物理ファイル分割手段のデータアクセ
ス記録手段は、分割対象の物理ファイル中の一定領域に
格納されたデータにアクセスが行われたときに、前記ア
クセスが行われた時刻、回数または単位時間あたりの回
数を当該データの使用頻度として、前記物理ファイルの
一定領域ごとに記録する。
The data access recording means of the physical file dividing means, when the data stored in a fixed area in the physical file to be divided is accessed, the time, number of times or unit time at which the access is made. The number of hits is recorded as the usage frequency of the data for each fixed area of the physical file.

【0024】前記物理ファイル分割手段の分割物理ファ
イル作成手段は、前記データアクセス記録手段によって
記録された使用頻度情報を参照し、一定の使用頻度の範
囲にあるデータから成る複数の物理ファイルを作成す
る。
The divided physical file creating means of the physical file dividing means refers to the usage frequency information recorded by the data access recording means, and creates a plurality of physical files composed of data within a certain usage frequency range. .

【0025】次に、前記物理ファイル移動手段の物理フ
ァイル退避手段は、前記分割された物理ファイルの使用
頻度情報を参照し、使用頻度の低い物理ファイルを磁気
テープ等の他の記憶装置の記憶媒体に退避する。
Next, the physical file saving means of the physical file moving means refers to the usage frequency information of the divided physical files, and stores the physical files with low usage frequency as a storage medium of another storage device such as a magnetic tape. Evacuate to.

【0026】前記物理ファイル移動手段の物理ファイル
削除手段は、前記物理ファイル退避手段によって退避さ
れた使用頻度の低い物理ファイルを、退避元の記憶装置
上から削除し、また、前記物理ファイル移動手段の物理
ファイル復元手段は、前記物理ファイル退避手段によっ
て退避された物理ファイルを必要に応じて退避先の記憶
装置から復元する。
The physical file deleting means of the physical file moving means deletes the physical file with low frequency of use saved by the physical file saving means from the storage device of the save source, and the physical file deleting means of the physical file moving means. The physical file restoring means restores the physical file saved by the physical file saving means from the save destination storage device as necessary.

【0027】以上の様に、本発明のデータベース分割管
理システムでは、データベースの物理ファイルをデータ
の使用頻度に応じて複数の物理ファイルに分割し、前記
の分割された複数の物理ファイルの内、使用頻度の低い
物理ファイルを磁気テープ等の他の記憶装置の記憶媒体
に移動するので、分割対象の物理ファイルが格納されて
いた記憶装置の使用効率を向上させることが可能であ
る。
As described above, in the database division management system of the present invention, the physical file of the database is divided into a plurality of physical files according to the frequency of use of data, and the physical file is used from among the plurality of divided physical files. Since the infrequent physical file is moved to the storage medium of another storage device such as a magnetic tape, it is possible to improve the usage efficiency of the storage device in which the physical file to be divided is stored.

【0028】また、本発明のデータベース分割管理シス
テムの物理ファイルアクセス手段は、分割された複数の
物理ファイルを論理的に1つ物理ファイルとしてアクセ
スする。
Further, the physical file access means of the database division management system of the present invention logically accesses a plurality of divided physical files as one physical file.

【0029】前記物理ファイルアクセス手段の論理ファ
イル定義手段は、分割された複数の物理ファイルの名称
と当該物理ファイルが物理ファイル移動手段によって移
動されているかどうかを示す論理ファイル定義情報を記
録する。
The logical file definition means of the physical file access means records the names of the plurality of divided physical files and the logical file definition information indicating whether or not the physical file has been moved by the physical file moving means.

【0030】前記物理ファイルアクセス手段の論理ファ
イルアクセス手段は、前記の分割された複数の物理ファ
イルに対してアクセス要求があるときに、前記論理ファ
イル定義情報中の各物理ファイルの名称を参照し、前記
の分割された複数の物理ファイルへ個々にアクセスする
ことによって前記アクセス要求を実行し、前記の実行結
果を前記アクセス要求の要求元へ渡す。
The logical file access means of the physical file access means refers to the name of each physical file in the logical file definition information when an access request is made to the plurality of divided physical files, The access request is executed by individually accessing the plurality of divided physical files, and the execution result is passed to the request source of the access request.

【0031】前記の分割された複数の物理ファイルの一
部の物理ファイルが前記物理ファイル移動手段により移
動されている場合には、前記物理ファイル復元手段によ
って、当該物理ファイルを退避先の記憶装置から復元し
て前記アクセス要求を実行する。
When some of the divided physical files have been moved by the physical file moving means, the physical file restoring means moves the physical files from the save destination storage device. Restore and execute the access request.

【0032】以上の様に、本発明のデータベース分割管
理システムでは、前記の分割された複数の物理ファイル
にアクセス要求があるときに、前記の分割された複数の
物理ファイルへ個々にアクセスするので、前記の分割さ
れた複数の物理ファイルを統合して1つの物理ファイル
を作成することなく、前記の分割された複数の物理ファ
イルを論理的に1つの物理ファイルとしてアクセスする
ことが可能である。
As described above, in the database partition management system of the present invention, when there is an access request to the plurality of divided physical files, the plurality of divided physical files are individually accessed. It is possible to logically access the plurality of divided physical files as one physical file without integrating the plurality of divided physical files to create one physical file.

【0033】また、本発明のデータベース分割管理シス
テムの物理ファイルバックアップ手段は、分割された複
数の物理ファイルの内で、前回のバックアップ以後に更
新の行われた物理ファイルのバックアップを行う。
Further, the physical file backup means of the database division management system of the present invention backs up the physical files that have been updated since the previous backup among the plurality of divided physical files.

【0034】前記物理ファイルバックアップ手段のバッ
クアップ記録手段は、分割された複数の物理ファイルの
バックアップが行われたときに、前記バックアップがい
つ行われたかを示すバックアップ情報を記録する。
The backup recording means of the physical file backup means records backup information indicating when the backup is performed when the plurality of divided physical files are backed up.

【0035】前記物理ファイルバックアップ手段の部分
バックアップ手段は、前記バックアップ記録手段によっ
て記録されたバックアップ情報と当該物理ファイルの使
用頻度情報中の更新日時を比較し、前回のバックアップ
以後に更新の行われた物理ファイルを必要に応じてバッ
クアップする。
The partial backup means of the physical file backup means compares the backup information recorded by the backup recording means with the update date and time in the usage frequency information of the physical file, and the update is performed after the previous backup. Back up physical files as needed.

【0036】前記バックアップ情報と比較される更新日
時は、前記データアクセス記録手段によって使用頻度情
報として更新日時が記録されている場合には、前記使用
頻度情報中の更新日時の最新の値を用いることが可能で
あり、また、従来のファイル管理技術によって個々のフ
ァイルごとに記録された更新日時のデータから得られる
値を使用しても良い。
For the update date and time compared with the backup information, if the data access recording means records the update date and time as the usage frequency information, use the latest value of the update date and time in the usage frequency information. It is also possible to use a value obtained from the update date and time data recorded for each file by the conventional file management technique.

【0037】以上の様に、本発明のデータベース分割管
理システムでは、前記の分割された複数の物理ファイル
のバックアップを行うときに、前回のバックアップ以後
に更新された物理ファイルのみをバックアップするの
で、物理ファイルのバックアップの効率を向上させるこ
とが可能である。
As described above, in the database partition management system of the present invention, when backing up the plurality of divided physical files, only the physical files that have been updated since the previous backup are backed up. It is possible to improve the efficiency of file backup.

【0038】[0038]

【実施例】以下、本発明について、実施例とともに図を
参照して詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to the drawings together with embodiments.

【0039】なお、実施例を説明するための全図におい
て、同一機能を有するものは同一符号を付け、その繰り
返しの説明は省略する。
In all the drawings for explaining the embodiments, parts having the same functions are designated by the same reference numerals, and the repeated description thereof will be omitted.

【0040】図1は、本発明のデータベース分割管理シ
ステムを一実施例の処理概要を示す図である。
FIG. 1 is a diagram showing a processing outline of an embodiment of the database division management system of the present invention.

【0041】図1において、100〜102は物理ファ
イル、110は物理ファイル分割手段、120は物理フ
ァイル移動手段、130は物理ファイルアクセス手段、
140は物理ファイルバックアップ手段、150と17
0は磁気テープ(MT)、160は応用プログラムであ
る。
In FIG. 1, 100 to 102 are physical files, 110 is a physical file dividing means, 120 is a physical file moving means, 130 is a physical file access means,
140 is a physical file backup means, and 150 and 17
Reference numeral 0 is a magnetic tape (MT), and 160 is an application program.

【0042】図1に示す様に、本実施例のデータベース
分割管理システムは、データベースの物理ファイルをデ
ータの使用頻度に応じて複数の物理ファイルに分割する
物理ファイル分割手段と、前記の分割された複数の物理
ファイルの使用頻度に応じて使用頻度の低い物理ファイ
ルを他の記憶装置上に移動する物理ファイル移動手段1
20と、前記の分割された複数の物理ファイルを論理的
に1つの物理ファイルであるかの様なアクセスを提供す
る物理ファイルアクセス手段130と、前記の分割され
た複数の物理ファイルのバックアップを行うときに、前
回のバックアップ以後に更新の行われた物理ファイルの
バックアップを行う物理ファイルバックアップ手段14
0を備えている。
As shown in FIG. 1, the database division management system of the present embodiment has a physical file division means for dividing a physical file of a database into a plurality of physical files according to the frequency of use of data, and the aforementioned division. Physical file moving means 1 for moving a less frequently used physical file to another storage device according to the frequency of use of a plurality of physical files
20, a physical file access unit 130 that provides access as if the plurality of divided physical files were logically one physical file, and backs up the plurality of divided physical files. Sometimes, a physical file backup means 14 for backing up physical files that have been updated since the last backup
It has 0.

【0043】本実施例のデータベース分割管理システム
では、データベースの物理ファイル100を物理ファイ
ル分割手段110によって、物理ファイル101と物理
ファイル102に分割する。
In the database division management system of this embodiment, the physical file 100 of the database is divided into the physical file 101 and the physical file 102 by the physical file dividing means 110.

【0044】物理ファイル移動手段120は、物理ファ
イル102の使用頻度が低い場合には物理ファイル10
2をMT150に移動して、物理ファイル102が格納
されていた記憶装置の記憶領域を他の物理ファイルを格
納する為に使用できる様にする。
The physical file moving means 120 uses the physical file 10 when the physical file 102 is used less frequently.
2 is moved to the MT 150 so that the storage area of the storage device in which the physical file 102 was stored can be used to store another physical file.

【0045】また、応用プログラム160が物理ファイ
ル101と物理ファイル102のデータにアクセスしよ
うとしたときには、物理ファイルアクセス手段130が
物理ファイル101と物理ファイル102へ個々にアク
セスし、前記アクセスの結果を応用プログラム160に
渡す。
When the application program 160 tries to access the data of the physical file 101 and the physical file 102, the physical file access means 130 individually accesses the physical file 101 and the physical file 102, and the result of the access is applied. Pass to the program 160.

【0046】また、物理ファイルバックアップ手段14
0は、分割された物理ファイルである物理ファイル10
1、102の内、前回のバックアップ以後に更新の行わ
れた物理ファイルをMT170にバックアップする。
Further, the physical file backup means 14
0 is a physical file 10 which is a divided physical file
Of 1, 102, the physical file that has been updated since the previous backup is backed up in the MT 170.

【0047】以下に、本発明のデータベース分割管理シ
ステムにおいて、データベースの物理ファイルを分割し
て移動する処理と、分割された複数の物理ファイルにア
クセスする処理と、分割された複数の物理ファイルのバ
ックアップを行う処理について、それぞれの実施例と共
に説明する。
In the database division management system of the present invention, a process of dividing and moving a physical file of a database, a process of accessing a plurality of divided physical files, and a backup of a plurality of divided physical files will be described below. The processing for performing will be described together with each embodiment.

【0048】(実施例1)以下に、本発明のデータベー
ス分割管理システムにおいて、データベースの物理ファ
イルをデータの使用頻度に応じて複数の物理ファイルに
分割し、前記の分割された複数の物理ファイルの使用頻
度に応じて物理ファイルの移動を行う処理について説明
する。
(Embodiment 1) In the database division management system of the present invention, a physical file of a database is divided into a plurality of physical files according to the frequency of use of data, and the plurality of divided physical files are divided into physical files. A process of moving a physical file according to the frequency of use will be described.

【0049】図2は、本実施例のデータベース分割管理
システムでデータベースの物理ファイルを分割して移動
する処理概要を示す図である。
FIG. 2 is a diagram showing an outline of processing for dividing and moving a physical file of a database in the database division management system of this embodiment.

【0050】図2において、111はデータアクセス記
録手段、112は分割物理ファイル作成手段、121は
物理ファイル退避手段、122は物理ファイル復元手
段、123は物理ファイル削除手段、201は物理ファ
イル中のデータを格納したデータレコード、202は当
該レコードにアクセスが行われた時刻を記録したアクセ
ス時刻である。
In FIG. 2, 111 is a data access recording means, 112 is a divided physical file creating means, 121 is a physical file saving means, 122 is a physical file restoring means, 123 is a physical file deleting means, 201 is data in the physical file. Is stored in the data record, and 202 is an access time in which the time when the record is accessed is recorded.

【0051】図2に示す様に、本実施例のデータベース
分割管理システムの物理ファイル分割手段110は、物
理ファイル100の使用頻度を記録するデータアクセス
記録手段111と、前記使用頻度に応じて物理ファイル
100を分割する分割物理ファイル作成手段112を有
し、物理ファイル移動手段120は、分割された物理フ
ァイル101、102の使用頻度に応じて当該物理ファ
イルをMT150に退避する物理ファイル退避手段12
1と、MT150に退避された物理ファイルを前記物理
ファイルの退避元の記憶装置上から削除する物理ファイ
ル削除手段123と、MT150に退避された物理ファ
イルへのアクセスが必要となったときに、MT150か
ら当該物理ファイルを復元する物理ファイル復元手段1
22を有している。
As shown in FIG. 2, the physical file dividing means 110 of the database division management system of this embodiment comprises a data access recording means 111 for recording the frequency of use of the physical file 100, and a physical file dividing means 110 according to the frequency of use. The physical file moving means 120 has a divided physical file creating means 112 for dividing 100, and the physical file saving means 12 saves the physical file to the MT 150 according to the frequency of use of the divided physical files 101, 102.
1, physical file deletion means 123 for deleting the physical file saved in MT150 from the storage device from which the physical file was saved, and MT150 when the physical file saved in MT150 needs to be accessed. Physical file restoring means 1 for restoring the physical file
22.

【0052】本実施例のデータベース分割管理システム
では、物理ファイル分割手段110のデータアクセス記
録手段111は、物理ファイル100に格納されたデー
タにアクセスが行われる度に、当該データが格納されて
いるデータレコード201に対応するアクセス時刻20
2に、前記アクセスが行われた時刻を当該データの使用
頻度として記録する。
In the database division management system of this embodiment, the data access recording means 111 of the physical file dividing means 110 stores the data stored in the physical file 100 each time the data is accessed. Access time 20 corresponding to record 201
In 2, the time when the access is performed is recorded as the usage frequency of the data.

【0053】次に、物理ファイル分割手段110の分割
物理ファイル作成手段112は、物理ファイル100の
アクセス時刻202を参照し、アクセス時刻202が一
定の範囲にあるデータレコード201から成る複数の物
理ファイルを作成する。
Next, the divided physical file creating means 112 of the physical file dividing means 110 refers to the access time 202 of the physical file 100 and creates a plurality of physical files consisting of the data records 201 having the access time 202 within a certain range. create.

【0054】例えば、物理ファイル100のアクセス時
刻202の平均値を算出し、前記平均値以上のアクセス
時刻202を持つデータレコード201を格納した物理
ファイル101と、前記平均値未満のアクセス時刻20
2を持つデータレコード201を格納した物理ファイル
102を作成する。
For example, the average value of the access times 202 of the physical file 100 is calculated, and the physical file 101 storing the data record 201 having the access time 202 of the average value or more and the access time 20 of less than the average value.
The physical file 102 storing the data record 201 having 2 is created.

【0055】使用頻度の低いデータを格納した物理ファ
イル102を使用しない場合には、、物理ファイル移動
手段120の物理ファイル退避手段121は、物理ファ
イル102をMT150に退避する。物理ファイル10
2をMT150に退避した後、物理ファイル移動手段1
20の物理ファイル削除手段123は、退避元の記憶装
置上の物理ファイル102を削除する。
When the physical file 102 storing the data that is used less frequently is not used, the physical file saving means 121 of the physical file moving means 120 saves the physical file 102 to the MT 150. Physical file 10
2 is saved to MT150, and then physical file moving means 1
The physical file deletion unit 123 of 20 deletes the physical file 102 on the storage device of the save source.

【0056】また、MT150に退避された物理ファイ
ル102中のデータにアクセスする必要が生じたときに
は、物理ファイル移動手段120の物理ファイル復元手
段122によって、MT150中の物理ファイルを復元
する。
When it becomes necessary to access the data in the physical file 102 saved in the MT 150, the physical file restoring means 122 of the physical file moving means 120 restores the physical file in the MT 150.

【0057】以上説明した様に、本実施例のデータベー
ス分割管理システムでは、データベースの物理ファイル
をデータの使用頻度に応じて複数の物理ファイルに分割
し、前記の分割された複数の物理ファイルの内、使用頻
度の低い物理ファイルを磁気テープ等の他の記憶装置の
記憶媒体に移動するので、分割対象の物理ファイルが格
納されていた記憶装置の使用効率を向上させることが可
能である。
As described above, in the database division management system of this embodiment, the physical file of the database is divided into a plurality of physical files according to the frequency of use of the data, and the physical files of the divided plurality of physical files are divided. Since the less frequently used physical file is moved to the storage medium of another storage device such as a magnetic tape, it is possible to improve the usage efficiency of the storage device in which the physical file to be divided is stored.

【0058】(実施例2)以下に、本発明のデータベー
ス分割管理システムにおいて、分割された複数の物理フ
ァイルを論理的に1つの物理ファイルとしてアクセスす
る処理について説明する。
(Embodiment 2) In the database division management system of the present invention, a process of logically accessing a plurality of divided physical files as one physical file will be described below.

【0059】図3は、本実施例のデータベース分割管理
システムで分割された複数の物理ファイルを論理的に1
つの物理ファイルとしてアクセスする処理概要を示す図
である。
FIG. 3 shows logically a plurality of physical files divided by the database division management system of this embodiment.
It is a figure which shows the process outline which accesses as one physical file.

【0060】図3において、131は論理ファイル定義
手段、132は論理ファイルアクセス手段、310は外
部記憶装置、320はメモリ、330は論理ファイル定
義情報である。
In FIG. 3, 131 is a logical file definition means, 132 is a logical file access means, 310 is an external storage device, 320 is a memory, and 330 is logical file definition information.

【0061】図3に示す様に、本実施例のデータベース
分割管理システムの物理ファイルアクセス手段130
は、分割された複数の物理ファイルの名称と前記物理フ
ァイルが移動されているかを示す論理ファイル定義情報
330を記録する論理ファイル定義手段131と、前記
の分割された複数の物理ファイルへのアクセスを行う論
理ファイルアクセス手段132を有している。
As shown in FIG. 3, the physical file access means 130 of the database partition management system of this embodiment.
The logical file definition means 131 for recording the names of the plurality of divided physical files and the logical file definition information 330 indicating whether the physical files have been moved, and the access to the plurality of divided physical files. It has a logical file access means 132 for performing.

【0062】図4は、本実施例のデータベース分割管理
システムの論理ファイル定義情報の概略構成を示す図で
ある。
FIG. 4 is a diagram showing a schematic structure of the logical file definition information of the database partition management system of this embodiment.

【0063】図4において、410は基本部、420は
インデックス定義情報、430は関連ファイル名定義情
報、431は構成ファイル名称、432は有効/無効情
報である。
In FIG. 4, 410 is a basic part, 420 is index definition information, 430 is related file name definition information, 431 is a configuration file name, and 432 is valid / invalid information.

【0064】図4に示す様に、本実施例のデータベース
分割管理システムの論理ファイル定義情報330は、基
本部410と、インデックス定義情報420と、関連フ
ァイル名定義情報430から構成されており、基本部4
10には、ファイル区分、ファイル種別、ファイル作成
日時等のファイルに関する基本情報が格納され、インデ
ックス定義情報420には、ファイル中の木構造のイン
デックスについて、インデックス名称、インデックスキ
ー長、インデックスレコード長、インデックス属性、イ
ンデックスを定義したキー項目の情報等が格納され、関
連ファイル名定義情報430には、分割された複数の物
理ファイルのファイル名称である構成ファイル名称43
1と、当該物理ファイルが物理ファイル移動手段120
によって移動されているかを示す有効/無効情報432
が格納されている。
As shown in FIG. 4, the logical file definition information 330 of the database partition management system of this embodiment is composed of a basic section 410, index definition information 420, and related file name definition information 430. Part 4
10 stores basic information about the file, such as file classification, file type, file creation date and time, and the index definition information 420 includes an index name, index key length, index record length, and a tree structure index in the file. Information such as index attributes and key items defining the index is stored, and the related file name definition information 430 includes a configuration file name 43 that is a file name of a plurality of divided physical files.
1 and the physical file is the physical file moving means 120.
Valid / invalid information 432 indicating whether the user has been moved by
Is stored.

【0065】本実施例のデータベース分割管理システム
では、物理ファイルアクセス手段130の論理ファイル
定義手段131が、分割された物理ファイルである物理
ファイル101と物理ファイル102の名称を構成ファ
イル名称431に記録する。
In the database division management system of this embodiment, the logical file definition means 131 of the physical file access means 130 records the names of the physical files 101 and 102 which are the divided physical files in the configuration file name 431. .

【0066】また、論理ファイル定義情報131は、当
該物理ファイルが外部記憶装置310上に存在している
場合には、当該物理ファイルの有効/無効情報432に
「有効」と記録し、当該物理ファイルが物理ファイル移
動手段120によって外部記憶装置310から移動され
ている場合には、当該物理ファイルの有効/無効情報4
32に「無効」と記録する。
If the physical file exists in the external storage device 310, the logical file definition information 131 records "valid" in the valid / invalid information 432 of the physical file, and the physical file Is moved from the external storage device 310 by the physical file moving means 120, the valid / invalid information 4 of the physical file
32 is recorded as “invalid”.

【0067】次に、応用プログラム160が、物理ファ
イル100にアクセスしようとしたときに、論理ファイ
ルアクセス手段132は、論理ファイル定義情報330
を参照し、関連ファイル名定義情報430の構成ファイ
ル名称431から分割された物理ファイルの名称を読み
出して、物理ファイル101と物理ファイル102にア
クセスした後、前記のアクセス結果を応用プログラム1
60に渡す。
Next, when the application program 160 tries to access the physical file 100, the logical file access means 132 causes the logical file definition information 330.
, The name of the divided physical file is read from the configuration file name 431 of the related file name definition information 430, the physical file 101 and the physical file 102 are accessed, and the above access result is used as the application program 1
Pass to 60.

【0068】また、論理ファイルアクセス手段132
が、物理ファイル101と物理ファイル102にアクセ
スしようとしたときに、物理ファイル102の有効/無
効情報432が「無効」となっており、物理ファイル1
02がMT150に退避されている場合には、物理ファ
イル移動手段120の物理ファイル復元手段122によ
って、MT150中の物理ファイル102を外部記憶装
置310に復元した後に、アクセスを行う。
Further, the logical file access means 132
However, when trying to access the physical file 101 and the physical file 102, the valid / invalid information 432 of the physical file 102 is “invalid”, and the physical file 1
If 02 is saved in the MT 150, the physical file restoring unit 122 of the physical file moving unit 120 restores the physical file 102 in the MT 150 to the external storage device 310, and then accesses.

【0069】以下に、本実施例のデータベース分割管理
システムにおいて、分割された複数の物理ファイルにア
クセスを行う処理手順について説明する。
In the database division management system of this embodiment, a processing procedure for accessing a plurality of divided physical files will be described below.

【0070】図5は、本実施例のデータベース分割管理
システムにおけるシーケンシャル検索の処理手順を示す
フローチャートである。
FIG. 5 is a flow chart showing the sequential search processing procedure in the database partition management system of this embodiment.

【0071】図5に示す様に、本実施例のデータベース
分割管理システムにおいて、応用プログラム160が、
物理ファイル100中のデータレコード201をシーケ
ンシャルに検索し、あるレコードを読み出すシーケンシ
ャル検索処理を行う場合では、最初に、論理ファイルア
クセス手段132は、論理ファイル定義情報330への
アクセスが、1回目のアクセス要求か否かの判別を行な
う(ステップ501)。
As shown in FIG. 5, in the database division management system of this embodiment, the application program 160 is
In the case of performing a sequential search process of sequentially searching the data records 201 in the physical file 100 and reading a certain record, the logical file access unit 132 first accesses the logical file definition information 330 for the first access. It is determined whether it is a request (step 501).

【0072】論理ファイルアクセス手段132は、論理
ファイル定義情報330へのアクセスが1回目のアクセ
ス要求である場合には、関連ファイル名定義情報430
に格納されている構成ファイル名称431の順番に従
い、最初に格納されている物理ファイル101の先頭レ
コードに対してレコード位置付けを行なう(ステップ5
02、ステップ503)。
When the access to the logical file definition information 330 is the first access request, the logical file access means 132 has the associated file name definition information 430.
In accordance with the order of the configuration file name 431 stored in, the record positioning is performed for the first record of the physical file 101 stored first (step 5
02, step 503).

【0073】論理ファイルアクセス手段132は、論理
ファイル定義情報330へのアクセスが1回目のアクセ
ス要求ではない場合はステップ502、503を行わ
ず、その後、1回目のアクセス要求である場合と共通の
処理へ戻り、位置付けされたレコードより、検索したい
レコードである有効レコードを検索して前記有効レコー
ドの位置を求める(ステップ504)。
The logical file access means 132 does not perform steps 502 and 503 when the access to the logical file definition information 330 is not the first access request, and thereafter the same processing as when it is the first access request. Returning to step S504, the position of the valid record is searched by searching the positioned record for a valid record which is a record to be searched (step 504).

【0074】前記有効レコードが検索できたか否かを確
認し(ステップ505)、前記有効レコードが検索でき
た場合、前記有効レコードを読み出して応用プログラム
160に渡し、処理を終了する(ステップ506)。
It is confirmed whether or not the valid record can be retrieved (step 505). When the valid record can be retrieved, the valid record is read and passed to the application program 160, and the process is terminated (step 506).

【0075】前記有効レコードが検索できない場合に
は、関連ファイル名定義情報430に従い、現在、検索
中である物理ファイルの次に物理ファイルが存在するか
否かを確認する。また、次の物理ファイルの有効/無効
情報が「無効」である場合には、物理ファイル復元手段
122によって当該物理ファイルを外部記憶装置310
に復元する(ステップ507)。
When the valid record cannot be searched, it is confirmed according to the related file name definition information 430 whether or not there is a physical file next to the physical file currently being searched. When the validity / invalidity information of the next physical file is “invalid”, the physical file restoration unit 122 stores the physical file in the external storage device 310.
(Step 507).

【0076】次の物理ファイルが存在しないときは、デ
ータを全て検索したとして前記検索結果を応用プログラ
ム160に渡し、処理を終了する(ステップ508)。
If the next physical file does not exist, it is assumed that all the data have been searched, and the search result is passed to the application program 160, and the processing is terminated (step 508).

【0077】次の物理ファイルが存在する場合、その物
理ファイルの先頭レコードに位置付けを行ない(ステッ
プ509、ステップ510)、ステップ504へ戻る。
If the next physical file exists, it is positioned at the top record of the physical file (steps 509 and 510) and the process returns to step 504.

【0078】図6は、本実施例のデータベース分割管理
システムにおける最小データ検索の処理手順を示すフロ
ーチャートである。
FIG. 6 is a flow chart showing the minimum data search processing procedure in the database partition management system of this embodiment.

【0079】図6に示す様に、本実施例のデータベース
分割管理システムにおいて、応用プログラム160が、
物理ファイル100中のデータレコード201を検索
し、最小レコードを読み出す最小データ検索処理を行う
場合では、最初に、論理ファイルアクセス手段132
は、論理ファイル定義情報330に格納されている構成
ファイル名称431の順番に従い、最初に格納されてい
る物理ファイル101に位置付けを行なう(ステップ6
01)。
As shown in FIG. 6, in the database division management system of this embodiment, the application program 160 is
In the case of performing the minimum data search process of searching the data record 201 in the physical file 100 and reading the minimum record, first, the logical file access means 132 is used.
Positions the physical file 101 stored first according to the order of the configuration file name 431 stored in the logical file definition information 330 (step 6).
01).

【0080】検索するキー項目データを零データとし、
インデックスに対して最小データを持つインデックスレ
コードを入力する(ステップ602)。入力したインデ
ックスレコードのキー項目データを当該物理ファイルの
最小キー項目データであるとして記憶する(ステップ6
03)。
The key item data to be retrieved is zero data,
The index record having the minimum data for the index is input (step 602). The key item data of the input index record is stored as the minimum key item data of the physical file (step 6).
03).

【0081】関連ファイル名定義情報430に従い、現
在、検索中である物理ファイル101の次に物理ファイ
ルが存在するか否かを確認する(ステップ604)。
According to the related file name definition information 430, it is confirmed whether or not there is a physical file next to the physical file 101 currently being searched (step 604).

【0082】次の物理ファイルが存在する場合、その物
理ファイルに対して位置付けを行ない、また、次の物理
ファイルの有効/無効情報が「無効」である場合には、
物理ファイル復元手段122によって当該物理ファイル
を外部記憶装置310に復元して位置付けし(ステップ
605)ステップ602へ戻る。
If the next physical file exists, the physical file is positioned, and if the valid / invalid information of the next physical file is "invalid",
The physical file restoring means 122 restores and positions the physical file in the external storage device 310 (step 605) and returns to step 602.

【0083】次の物理ファイルが存在しない場合、ステ
ップ603で記憶した最小キー項目データの中から、最
も小さい値を記憶する物理ファイルの検索を行ない、そ
のレコードに対して位置付けを行なう(ステップ60
6)。ステップ606で位置付けたレコードを読み出し
て応用プログラム160に渡し、処理を終了する(ステ
ップ607)。
If the next physical file does not exist, the minimum key item data stored in step 603 is searched for the physical file that stores the smallest value, and the record is positioned (step 60).
6). The record positioned in step 606 is read out and passed to the application program 160, and the process ends (step 607).

【0084】図7は、本実施例のデータベース分割管理
システムにおけるキー昇順のシーケンシャル検索を行な
う処理手順を示すフローチャートである。
FIG. 7 is a flowchart showing a processing procedure for performing a sequential search in ascending key order in the database partition management system of this embodiment.

【0085】図7に示す様に、本実施例のデータベース
分割管理システムにおいて、応用プログラム160がキ
ー昇順のシーケンシャル検索処理を行う場合には、ま
ず、前回入力したレコードと同じキー項目データを有す
るレコードが当該物理ファイル以降に存在するか否かを
確認する(ステップ701)。
As shown in FIG. 7, in the database partition management system of this embodiment, when the application program 160 performs a sequential search process in ascending key order, first, a record having the same key item data as the previously input record. Is checked after the physical file (step 701).

【0086】同じキー項目データを有するレコードが存
在すれば、そのレコードを有する物理ファイルへ位置付
けを行なう(ステップ702)。同じキー項目を有する
物理ファイルが存在しなければ、関連ファイル名定義情
報430に格納されているファイル名称の順番に従い、
最初に格納されている物理ファイルに位置付けを行なう
(ステップ703)。
If a record having the same key item data exists, the physical file having the record is positioned (step 702). If there is no physical file having the same key item, according to the order of file names stored in the related file name definition information 430,
The physical file stored first is positioned (step 703).

【0087】前回、入力したレコードのキー項目データ
の次に大きいキー項目データを持つインデックスレコー
ドを入力する(ステップ704)。入力したインデック
スレコードのキー項目データを当該物理ファイルの最小
キー項目データとして記憶する(ステップ703)。
An index record having key item data next larger than the key item data of the record input last time is input (step 704). The key item data of the input index record is stored as the minimum key item data of the physical file (step 703).

【0088】関連ファイル名定義情報430に従い、現
在、検索中である物理ファイル101の次に物理ファイ
ルが存在するか否かを確認する(ステップ706)。
According to the related file name definition information 430, it is confirmed whether or not there is a physical file next to the physical file 101 currently being searched (step 706).

【0089】次の物理ファイルが存在する場合、その物
理ファイルに対して位置付けを行ない、また、次の物理
ファイルの有効/無効情報が「無効」である場合には、
物理ファイル復元手段122によって当該物理ファイル
を外部記憶装置310に復元して位置付けし(ステップ
707)ステップ704へ戻る。
If the next physical file exists, the physical file is positioned, and if the valid / invalid information of the next physical file is "invalid",
The physical file restoring means 122 restores and positions the physical file in the external storage device 310 (step 707) and returns to step 704.

【0090】次の物理ファイルが存在しない場合、ステ
ップ705で記憶したキー項目データの中から、最も小
さい値を記憶する物理ファイルの検索を行ない、そのレ
コードに対して位置付けを行なう(ステップ708)。
ステップ702又は、ステップ708で位置付けたレコ
ードを読み出して応用プログラム160に渡し、処理を
終了する(ステップ709)。
If the next physical file does not exist, the physical file that stores the smallest value is searched from the key item data stored in step 705, and the record is positioned (step 708).
The record located in step 702 or step 708 is read out and passed to the application program 160, and the process ends (step 709).

【0091】以上説明した様に、本実施例のデータベー
ス分割管理システムによれば、前記の分割された複数の
物理ファイルへのアクセス要求があるときに、前記の分
割された複数の物理ファイルへ個々にアクセスするの
で、前記の分割された複数の物理ファイルを統合して1
つの物理ファイルを作成することなく、前記の分割され
た複数の物理ファイルを論理的に1つの物理ファイルと
してアクセスすることが可能である。
As described above, according to the database partition management system of this embodiment, when there is an access request to the plurality of divided physical files, each of the divided physical files is individually accessed. To access, so combine the above-mentioned divided physical files into 1
The plurality of divided physical files can be logically accessed as one physical file without creating one physical file.

【0092】(実施例3)以下に、本発明のデータベー
ス分割管理システムにおいて、分割された複数の物理フ
ァイルのバックアップを行う処理について説明する。
(Embodiment 3) A process of backing up a plurality of divided physical files in the database division management system of the present invention will be described below.

【0093】図8は、本実施例のデータベース分割管理
システムにおける分割された複数の物理ファイルのバッ
クアップの処理概要を示す図である。
FIG. 8 is a diagram showing a processing outline of backup of a plurality of divided physical files in the database division management system of this embodiment.

【0094】図8において、141はバックアップ記録
手段、142は部分バックアップ手段、801はバック
アップ情報、802は参照時刻、803は更新時刻であ
る。
In FIG. 8, reference numeral 141 is backup recording means, 142 is partial backup means, 801 is backup information, 802 is reference time, and 803 is update time.

【0095】図8に示す様に、本実施例のデータベース
分割管理システムの物理ファイルバックアップ手段14
0は、バックアップがいつ行われたかを示すバックアッ
プ情報801を記録するバックアップ記録手段141
と、前回のバックアップ以後に更新の行われた物理ファ
イルをバックアップする部分バックアップ手段142を
有している。
As shown in FIG. 8, the physical file backup means 14 of the database partition management system of this embodiment.
0 is backup recording means 141 for recording backup information 801 indicating when the backup was performed.
And a partial backup means 142 for backing up a physical file that has been updated since the previous backup.

【0096】また、本実施例のデータベース分割管理シ
ステムの物理ファイル101のアクセス時刻202に
は、データを参照するアクセスが行われた時刻を示す参
照時刻802と、データを更新するアクセスが行われた
時刻を示す更新時刻803が記録されている。本実施例
の更新時刻803は、データアクセス記録手段111に
よって記録された使用頻度情報の一部である更新時刻、
または、従来のファイル管理技術によって記録された当
該物理ファイルの最新の更新時刻のいずれであっても良
い。
Further, at the access time 202 of the physical file 101 of the database division management system of this embodiment, the reference time 802 indicating the time at which the access for referring to the data was made and the access for updating the data were made. The update time 803 indicating the time is recorded. The update time 803 in this embodiment is an update time that is a part of the usage frequency information recorded by the data access recording unit 111,
Alternatively, it may be the latest update time of the physical file recorded by the conventional file management technique.

【0097】本実施例のデータベース分割管理システム
の物理ファイルバックアップ手段140のバックアップ
記録手段は、分割された複数の物理ファイルのバックア
ップを行ったときに、前記バックアップを行った時刻を
バックアップ情報801に記録する。
The backup recording means of the physical file backup means 140 of the database division management system of this embodiment records the time of the backup in the backup information 801 when the plurality of divided physical files are backed up. To do.

【0098】物理ファイルバックアップ手段の部分バッ
クアップ手段142は、物理ファイル101のバックア
ップ情報801に記録された前回のバックアップ時刻と
更新時刻803を比較し、前回のバックアップ以後に更
新が行われている物理ファイルを選択して、前記選択さ
れた物理ファイルをMT170に複写してバックアップ
処理を行う。
The partial backup means 142 of the physical file backup means compares the previous backup time recorded in the backup information 801 of the physical file 101 with the update time 803, and updates the physical file after the previous backup. Is selected, the selected physical file is copied to the MT 170 and backup processing is performed.

【0099】また、物理ファイルが分割されて最初のバ
ックアップでは、バックアップ情報801に前回のバッ
クアップ時刻は記録されていないので、分割された複数
の物理ファイル全てをMT170に複写してバックアッ
プ処理を行う。
In the first backup after the physical file is divided, since the previous backup time is not recorded in the backup information 801, all the plurality of divided physical files are copied to the MT 170 and backup processing is performed.

【0100】以上説明した様に、本実施例のデータベー
ス分割管理システムによれば、前記の分割された複数の
物理ファイルのバックアップを行うときに、前回のバッ
クアップ以後に更新された物理ファイルのみをバックア
ップするので、物理ファイルのバックアップの効率を向
上させることが可能である。
As described above, according to the database partition management system of this embodiment, when backing up the plurality of divided physical files, only the physical files updated after the previous backup are backed up. Therefore, it is possible to improve the backup efficiency of the physical file.

【0101】以上、本発明を、前記実施例に基づき具体
的に説明したが、本発明は、前記実施例に限定されるも
のではなく、その要旨を逸脱しない範囲において種々変
更可能であることは勿論である。
Although the present invention has been specifically described based on the above embodiments, the present invention is not limited to the above embodiments, and various modifications can be made without departing from the scope of the invention. Of course.

【0102】例えば、本実施例のデータベース分割管理
システムでは、データの使用頻度としてアクセス時刻を
使用したが、データの使用頻度としてアクセス回数や単
位時間当たりのアクセス回数を使用しても良く、また、
前記の様な動的に変動する測定値ではなく、格納される
データの内容に応じて静的な使用頻度を設定しても良
い。
For example, in the database division management system of this embodiment, the access time is used as the data usage frequency, but the access frequency or the access frequency per unit time may be used as the data usage frequency.
Instead of the dynamically changing measurement value as described above, the static use frequency may be set according to the content of the stored data.

【0103】また、本実施例のデータベース分割管理シ
ステムでは、分割された使用頻度の低い物理ファイルは
磁気テープに移動されていたが、光磁気ディスク等、ア
クセス速度の異なる他の記憶媒体上に移動しても良く、
また、使用頻度の高い物理ファイルを半導体ディスク等
の高速な記憶装置上に移動しても良い。
Further, in the database partition management system of the present embodiment, the divided physical files with low frequency of use are moved to the magnetic tape, but they are moved to another storage medium such as a magneto-optical disk having a different access speed. You can
Also, a physical file that is frequently used may be moved to a high-speed storage device such as a semiconductor disk.

【0104】[0104]

【発明の効果】本願において開示される発明のうち代表
的なものによって得られる効果を簡単に説明すれば、下
記のとおりである。
The effects obtained by the typical ones of the inventions disclosed in the present application will be briefly described as follows.

【0105】すなわち、データベースの物理ファイルを
データの使用頻度に応じて複数の物理ファイルに分割
し、前記の分割された複数の物理ファイルの使用頻度に
応じて物理ファイルを他の記憶装置の記憶媒体に移動す
るので、分割対象の物理ファイルが格納されていた記憶
装置の使用効率を向上させることが可能である。
That is, the physical file of the database is divided into a plurality of physical files according to the frequency of use of data, and the physical file is divided into storage media of another storage device according to the frequency of use of the plurality of divided physical files. It is possible to improve the usage efficiency of the storage device in which the physical file to be divided is stored.

【0106】また、前記の分割された複数の物理ファイ
ルへのアクセス要求があるときに、前記の分割された複
数の物理ファイルへ個々にアクセスするので、前記の分
割された複数の物理ファイルを統合して1つの物理ファ
イルを作成することなく、前記の分割された複数の物理
ファイルを論理的に1つの物理ファイルとしてアクセス
することが可能である。
Further, when there is an access request to the plurality of divided physical files, the plurality of divided physical files are individually accessed, so that the plurality of divided physical files are integrated. It is possible to access the plurality of divided physical files logically as one physical file without creating one physical file.

【0107】また、前記の分割された複数の物理ファイ
ルのバックアップを行うときに、前回のバックアップ以
後に更新された物理ファイルのみをバックアップするの
で、物理ファイルのバックアップの効率を向上させるこ
とが可能である。
Further, when backing up the plurality of divided physical files, only the physical files that have been updated since the previous backup are backed up, so the efficiency of backing up the physical files can be improved. is there.

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

【図1】本発明のデータベース分割管理システムの一実
施例の処理概要を示す図である。
FIG. 1 is a diagram showing a processing outline of an embodiment of a database division management system of the present invention.

【図2】本実施例1のデータベース分割管理システムで
データベースの物理ファイルを分割して移動する処理概
要を示す図である。
FIG. 2 is a diagram showing an outline of processing for dividing and moving a physical file of a database in the database division management system according to the first embodiment.

【図3】本実施例2のデータベース分割管理システムで
分割された複数の物理ファイルを論理的に1つの物理フ
ァイルとしてアクセスする処理概要を示す図である。
FIG. 3 is a diagram showing a processing outline for logically accessing a plurality of physical files divided by the database division management system of the second embodiment as one physical file.

【図4】本実施例2のデータベース分割管理システムの
論理ファイル定義情報の概略構成を示す図である。
FIG. 4 is a diagram showing a schematic configuration of logical file definition information of the database partition management system according to the second embodiment.

【図5】本実施例2のデータベース分割管理システムに
おけるシーケンシャル検索の処理手順を示すフローチャ
ートである。
FIG. 5 is a flowchart showing a processing procedure of sequential search in the database partition management system according to the second embodiment.

【図6】本実施例2のデータベース分割管理システムに
おける最小データ検索の処理手順を示すフローチャート
である。
FIG. 6 is a flowchart showing a processing procedure of minimum data search in the database division management system according to the second embodiment.

【図7】本実施例2のデータベース分割管理システムに
おけるキー昇順のシーケンシャル検索を行なう処理手順
を示すフローチャートである。
FIG. 7 is a flowchart showing a processing procedure for performing a sequential search in an ascending key order in the database partition management system according to the second embodiment.

【図8】本実施例3のデータベース分割管理システムに
おける分割された複数の物理ファイルのバックアップの
処理概要を示す図である。
FIG. 8 is a diagram showing a processing outline of backup of a plurality of divided physical files in the database division management system according to the third embodiment.

【符号の説明】 100…物理ファイル、101…物理ファイル、102
…物理ファイル、110…物理ファイル分割手段、12
0…物理ファイル移動手段、130…物理ファイルアク
セス手段、140…物理ファイルバックアップ手段。
[Explanation of Codes] 100 ... Physical File, 101 ... Physical File, 102
... physical file, 110 ... physical file dividing means, 12
0 ... Physical file moving means, 130 ... Physical file access means, 140 ... Physical file backup means.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 福田 秀夫 神奈川県横浜市中区尾上町6丁目81番地 日立ソフトウェアエンジニアリング株式会 社内 (72)発明者 元川 隆 神奈川県横浜市中区尾上町6丁目81番地 日立ソフトウェアエンジニアリング株式会 社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Hideo Fukuda Inventor Hideo Fukuda 6-81 Onoe-cho, Naka-ku, Yokohama-shi, Kanagawa Hitachi Software Engineering Co., Ltd. (72) Inventor Takashi Motokawa Onou-cho, Naka-ku, Yokohama-shi, Kanagawa Address 81 Hitachi Software Engineering Stock Association In-house

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 データベースの物理ファイルをデータの
使用頻度に応じて複数の物理ファイルに分割する物理フ
ァイル分割手段と、前記物理ファイル分割手段によって
分割された複数の物理ファイルの使用頻度情報に応じて
前記物理ファイルを複数の記憶装置間で移動させる物理
ファイル移動手段を備えたデータベース分割管理システ
ムであって、 前記物理ファイル分割手段は、分割の対象となる物理フ
ァイル中の一定領域ごとに格納されたデータの使用頻度
を記録するデータアクセス記録手段と、前記データアク
セス記録手段によって記録された使用頻度情報に応じて
前記物理ファイルを分割して複数の物理ファイルを作成
する分割物理ファイル作成手段を有し、 前記物理ファイル移動手段は、前記使用頻度情報に応じ
て使用頻度の低い物理ファイルを他の記憶装置に退避す
る物理ファイル退避手段と、前記物理ファイル退避手段
によって退避された物理ファイルを退避元の記憶装置上
から削除する物理ファイル削除手段と、前記物理ファイ
ル退避手段によって退避された物理ファイルを必要に応
じて退避先の記憶装置から復元する物理ファイル復元手
段を有することを特徴とするデータベース分割管理シス
テム。
1. A physical file dividing means for dividing a physical file of a database into a plurality of physical files according to the frequency of use of data, and a use frequency information of a plurality of physical files divided by the physical file dividing means. A database division management system comprising physical file moving means for moving the physical file between a plurality of storage devices, wherein the physical file dividing means is stored for each fixed area in a physical file to be divided. Data access recording means for recording the usage frequency of data, and divided physical file creation means for creating a plurality of physical files by dividing the physical file according to the usage frequency information recorded by the data access recording means The physical file moving means is an object that is used less frequently according to the use frequency information. A physical file saving means for saving a file to another storage device; a physical file deleting means for deleting the physical file saved by the physical file saving means from the save source storage device; and a physical file saving means for saving the file. A database partition management system comprising: a physical file restoring means for restoring the physical file from the storage device of the save destination as needed.
【請求項2】 分割された複数の物理ファイルを論理的
に1つの物理ファイルとしてアクセスする物理ファイル
アクセス手段を備えたデータベース分割管理システムで
あって、 前記物理ファイルアクセス手段は、前記の分割された複
数の物理ファイルの名称と前記の分割された複数の物理
ファイルが物理ファイル移動手段によって移動されてい
るかどうかを示す論理ファイル定義情報を記録する論理
ファイル定義手段と、前記の分割された複数の物理ファ
イルに対してアクセス要求があるときに、前記論理ファ
イル定義手段によって記録された前記論理ファイル定義
情報を参照して前記アクセス要求を実行する論理ファイ
ルアクセス手段を有することを特徴とする請求項1に記
載されたデータベース分割管理システム。
2. A database division management system comprising physical file access means for logically accessing a plurality of divided physical files as one physical file, wherein the physical file access means is the divided A logical file definition means for recording the names of a plurality of physical files and the logical file definition information indicating whether or not the plurality of divided physical files have been moved by the physical file moving means, and the plurality of divided physical files. The logical file access means for executing the access request by referring to the logical file definition information recorded by the logical file definition means when there is an access request for the file. Described database partition management system.
【請求項3】 分割された複数の物理ファイルの内で前
回のバックアップ以後に更新の行われた物理ファイルの
バックアップを行う物理ファイルバックアップ手段を備
えたデータベース分割管理システムであって、 前記物理ファイルバックアップ手段は、前記の分割され
た複数の物理ファイルのバックアップがいつ行われたか
を示すバックアップ情報を記録するバックアップ記録手
段と、前記バックアップ記録手段によって記録された前
記バックアップ情報と当該物理ファイルの更新日時を比
較し、前回のバックアップ以後に更新の行われた物理フ
ァイルを必要に応じてバックアップする部分バックアッ
プ手段を有することを特徴とする請求項2に記載された
データベース分割管理システム。
3. A database division management system comprising physical file backup means for backing up a physical file that has been updated since a previous backup among a plurality of divided physical files, wherein the physical file backup is provided. Means, backup recording means for recording the backup information indicating when the backup of the plurality of divided physical files was performed, the backup information recorded by the backup recording means and the update date and time of the physical file. 3. The database partition management system according to claim 2, further comprising: partial backup means for backing up a physical file that has been updated since the previous backup as needed.
JP7139055A 1995-06-06 1995-06-06 Database split management system Pending JPH08328929A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7139055A JPH08328929A (en) 1995-06-06 1995-06-06 Database split management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7139055A JPH08328929A (en) 1995-06-06 1995-06-06 Database split management system

Publications (1)

Publication Number Publication Date
JPH08328929A true JPH08328929A (en) 1996-12-13

Family

ID=15236436

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7139055A Pending JPH08328929A (en) 1995-06-06 1995-06-06 Database split management system

Country Status (1)

Country Link
JP (1) JPH08328929A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004518215A (en) * 1999-12-07 2004-06-17 エクスペリエント・テクノロジーズ・リミテッド・ライアビリティ・カンパニー Dynamic application browser and the database used with it
JP2007249772A (en) * 2006-03-17 2007-09-27 Hitachi Ltd Data processing method, data processing system, and data processing program
US8082229B2 (en) 2005-02-04 2011-12-20 International Business Machines Corporation Methods for backing up a database

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004518215A (en) * 1999-12-07 2004-06-17 エクスペリエント・テクノロジーズ・リミテッド・ライアビリティ・カンパニー Dynamic application browser and the database used with it
US8082229B2 (en) 2005-02-04 2011-12-20 International Business Machines Corporation Methods for backing up a database
US11157369B2 (en) 2005-02-04 2021-10-26 International Business Machines Corporation Backing up and recovering a database
JP2007249772A (en) * 2006-03-17 2007-09-27 Hitachi Ltd Data processing method, data processing system, and data processing program

Similar Documents

Publication Publication Date Title
US5590318A (en) Method and system for tracking files pending processing
US5617566A (en) File portion logging and arching by means of an auxilary database
KR940005775B1 (en) Method of opening disk file
US9201943B2 (en) Systems for performing an external (disk-based) sort of a large data file which take advantage of “presorted” data already present in the input
WO1995014273A9 (en) Method and system for tracking changed files
US7240172B2 (en) Snapshot by deferred propagation
IL158292A (en) System and method for reorganizing stored data
US6606631B1 (en) IMS on-line reorganization utility
JPS59220853A (en) Disc cache system
JP3378594B2 (en) Processing unit that performs database relocation
JPH08328929A (en) Database split management system
JPH06202919A (en) Dynamic change system for logical data structure of data base
JPH04141721A (en) Disk sector substituting system
JP2925042B2 (en) Information link generation method
JPH0456344B2 (en)
JP3145727B2 (en) Data retrieval device
JPH05158777A (en) Data management system
JP3178671B2 (en) File system and its file recovery method
JP3578501B2 (en) Document search method and apparatus
JP2785966B2 (en) Foreign key dynamic resolution processing method
JP2871755B2 (en) Split control method in dynamic hash
JP3398672B2 (en) Intermediate data storage device
JP2000066933A (en) Time series data management system
JPS63239540A (en) Data management system in memory medium
JPH01282635A (en) Index maintaining system