JPH05334146A - Database management system - Google Patents
Database management systemInfo
- Publication number
- JPH05334146A JPH05334146A JP4138487A JP13848792A JPH05334146A JP H05334146 A JPH05334146 A JP H05334146A JP 4138487 A JP4138487 A JP 4138487A JP 13848792 A JP13848792 A JP 13848792A JP H05334146 A JPH05334146 A JP H05334146A
- Authority
- JP
- Japan
- Prior art keywords
- secondary storage
- file
- striping
- storage device
- area
- 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.)
- Granted
Links
- 230000008859 change Effects 0.000 claims abstract description 3
- 238000003780 insertion Methods 0.000 claims description 13
- 230000037431 insertion Effects 0.000 claims description 13
- 230000008439 repair process Effects 0.000 abstract description 5
- 238000007726 management method Methods 0.000 description 65
- 238000000034 method Methods 0.000 description 35
- 230000008569 process Effects 0.000 description 35
- 238000013500 data storage Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 239000000470 constituent Substances 0.000 description 3
- 238000010586 diagram Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、データベース管理シス
テムに関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database management system.
【0002】[0002]
【従来の技術】データベース管理システムでは、データ
をタプル(通常、レコードと呼ばれているもので、1行
分のデータ)の集合である表という形式で管理する。ま
た、表へのアクセスが集中する場合にも表を格納してい
る2次記憶装置にかかる負荷を軽減して高速な応答を実
現することから、通常、表は複数のファイルに分配し、
各ファイルを別個の2次記憶装置に格納することとして
いる。このように表を複数のファイルに分けて2次記憶
装置に分配・格納する処理は、表のストライピング処理
と呼ばれている。2. Description of the Related Art In a database management system, data is managed in the form of a table which is a set of tuples (usually called records, which is data for one row). Further, even when the access to the table is concentrated, the load on the secondary storage device that stores the table is reduced and a high-speed response is realized. Therefore, normally, the table is distributed to a plurality of files,
Each file is stored in a separate secondary storage device. The process of dividing the table into a plurality of files and distributing / storing the files in the secondary storage device is called a striping process of the table.
【0003】図2は、従来のデータベース管理システム
の概略構成を示したものである。この図2において、符
号10はデータベース管理システム、11はデータベー
ス管理システム10に装備されたファイル領域管理部、
12および13は2次記憶装置、14は2次記憶装置1
2に格納されたデータベース用ファイル、15は2次記
憶装置13に格納されたデータベース用ファイルであ
る。FIG. 2 shows a schematic configuration of a conventional database management system. In FIG. 2, reference numeral 10 is a database management system, 11 is a file area management unit equipped in the database management system 10,
12 and 13 are secondary storage devices, and 14 is a secondary storage device 1.
2 is a database file stored in 2, and 15 is a database file stored in the secondary storage device 13.
【0004】前述の各ファイル14,15は、一つの表
を分配したものである。また、データベース管理システ
ム10におけるファイル領域管理部11は、各ファイル
14,15が2次記憶装置12,13にどのように格納
されているかを管理しており、表に新たにタプルを挿入
する場合に、管理しているファイル内の空き領域の状態
に応じて、前述のストライピング処理を行う。Each of the files 14 and 15 described above is a distribution of one table. Further, the file area management unit 11 in the database management system 10 manages how the files 14 and 15 are stored in the secondary storage devices 12 and 13, and when a tuple is newly inserted in the table. First, the striping process is performed according to the state of the free area in the managed file.
【0005】次に、図2に示したデータベース管理シス
テムにおけるタプル挿入処理について、図3に基づいて
説明する。なお、タプル挿入の命令は、2次記憶装置1
2に格納されたファイル14の参照中に受けたものとす
る。Next, the tuple insertion processing in the database management system shown in FIG. 2 will be described with reference to FIG. Note that the tuple insertion instruction is issued by the secondary storage device 1.
It is assumed that the file is received while referring to the file 14 stored in 2.
【0006】タプル挿入の命令を受けた場合、まず、現
在参照中のファイル14上の取得済みのデータ格納領域
(ファイル領域)に空きがあるか否かを判断し(ステッ
プ21)、空きがある場合には、その空いている領域に
タプルを格納する(ステップ25)。しかし、前記ステ
ップ21で空きがないと判断した場合には、参照中のフ
ァイル14内の別のデータ格納領域を取得する(ステッ
プ22)。そして、新たに取得したデータ格納領域に空
きがあるか否かを判断し(ステップ23)、空きがない
場合には、参照するファイルを次のファイル(この例で
は、ファイル15)に切り替えて前記ステップ22に戻
る(ステップ24)。ステップ23において、空きがあ
ると判断した場合には、ステップ25に移行して、その
空いている領域にタプルを挿入して処理を終了する。When a tuple insertion command is received, it is first determined whether or not there is a free space in the acquired data storage area (file area) on the file 14 currently being referenced (step 21), and there is a free space. In this case, the tuple is stored in the empty area (step 25). However, if it is determined in step 21 that there is no free space, another data storage area in the file 14 being referred to is acquired (step 22). Then, it is judged whether or not there is a free space in the newly acquired data storage area (step 23), and if there is no free space, the file to be referred to is switched to the next file (file 15 in this example), and The process returns to step 22 (step 24). If it is determined in step 23 that there is a space, the process proceeds to step 25, where a tuple is inserted in the empty area and the process ends.
【0007】即ち、従来のデータベース管理システム
は、データ格納領域が不足した場合に、単純に次の2次
記憶装置上にファイルを作成することで表のストライピ
ング処理を行うもので、最終的には、システムに装備さ
れる2次記憶装置の全てにファイルが分配されることに
なる。そして、分配した表は、ファイル領域管理部11
におけるメモリアドレス等の管理等によって一括して管
理する。That is, the conventional database management system simply performs a striping process on the table by creating a file on the next secondary storage device when the data storage area is insufficient. The files will be distributed to all the secondary storage devices installed in the system. The distributed table is stored in the file area management unit 11
It is collectively managed by management of memory addresses, etc.
【0008】[0008]
【発明が解決しようとする課題】ところが、前述した従
来のデータベース管理システムの場合では、データベー
スを構成する表が複数個ある場合、それらの各表に対応
した複数個のファイルをシステムに装備される各2次記
憶装置毎にそれぞれ作成していかねばならず、2次記憶
装置の数に比例して管理すべき実在のファイル数が倍増
してしまう。従って、プロセス毎に持てるファイル情報
の数がオペレーティングシステムによって制限されるこ
とから、ストライピング処理できる数が限られてしまう
という問題が生じていた。However, in the case of the conventional database management system described above, when there are a plurality of tables constituting the database, the system is equipped with a plurality of files corresponding to the respective tables. The number of actual files to be managed is doubled in proportion to the number of secondary storage devices because each secondary storage device must be created. Therefore, since the number of file information that each process can have is limited by the operating system, the number of striping processes that can be performed is limited.
【0009】また、ストライピング処理によって、各2
次記憶装置上にはデータベースを構成している表の数だ
けファイルが作成されることになり、2次記憶装置に障
害が発生した時に、障害の対象をとなる表の数が膨大に
なるという問題もあった。Further, by striping processing, each 2
As many files as the number of tables that make up the database are created on the secondary storage device, and when a failure occurs in the secondary storage device, the number of tables subject to the failure becomes huge. There was also a problem.
【0010】本発明は前記事情に鑑みてなされたもの
で、ストライピング処理によって2次記憶装置上に作成
するファイルの数を低減させることができ、また、2次
記憶装置に障害が発生した場合にも障害の対象となる表
の数を少なく、表へのアクセスが集中した場合における
2次記憶装置への負荷を軽減させると同時に、2次記憶
装置に障害が発生した際の表の修復も容易なデータベー
ス管理システムを提供することを目的とする。The present invention has been made in view of the above circumstances, and it is possible to reduce the number of files to be created on the secondary storage device by the striping process, and in the case where a failure occurs in the secondary storage device. Also reduces the number of tables subject to failure, and reduces the load on the secondary storage device when access to the table is concentrated, and at the same time, it is easy to repair the table when the secondary storage device fails. The purpose is to provide a secure database management system.
【0011】[0011]
【課題を解決するための手段】請求項1に記載のデータ
ベース管理システムは、表形式のデータを複数の2次記
憶装置に分配して管理するデータベース管理システムで
あって、メモリアドレス等によって各2次記憶装置上に
おける表の配置等を管理するファイル領域管理部の他
に、表の分配状況を管理するための表領域分配部を具備
している。A database management system according to claim 1 is a database management system for managing tabular data by distributing it to a plurality of secondary storage devices, each of which has two memory addresses or the like. In addition to the file area management unit that manages the layout of the table on the next storage device, a table area distribution unit that manages the distribution status of the table is provided.
【0012】そして、前記表領域分配部には前回にデー
タを格納したファイルを識別するためのデータを表毎に
管理するストライピング管理情報が装備され、タプル挿
入処理の際には、前記表領域分配部の情報に基づいて空
きの領域を探索し、新たに空きの領域を確保する場合に
ファイルの変更を実行することで表を複数のファイルに
分配する。The table area distribution unit is equipped with striping management information for managing the data for identifying the file in which the data was previously stored for each table, and the table area distribution is performed during the tuple insertion process. The table is distributed to a plurality of files by searching for an empty area based on the information of the copy and executing a file change when a new empty area is secured.
【0013】請求項2に記載のデータベース管理システ
ムは、請求項1に記載のデータベース管理システムをさ
らに改善したもので、前記ストライピング管理情報に
は、処理する表が分配の対象となるか否かを示すストラ
イピング対象表データを装備し、該ストライピング対象
表データで分配の対象として設定されている表に限って
分配を実行する。A database management system according to a second aspect is a further improvement of the database management system according to the first aspect, wherein the striping management information indicates whether a table to be processed is to be distributed. The striping target table data shown is provided, and the distribution is executed only in the table set as the distribution target in the striping target table data.
【0014】[0014]
【作用】請求項1に記載のデータベース管理システム
は、メモリアドレス等によって各2次記憶装置上の表を
管理するファイル領域管理部の他に、表の分配状況を管
理するための表領域分配部を具備している。そして、前
回に表データを格納したファイルは、前記表領域分配部
のストライピング管理情報によって識別可能にしてお
り、タプル挿入時には、表領域分配部のストライピング
管理情報に基づいて空きのある2次記憶装置を選択して
ファイルを作成することによって、ストライピング処理
を行う。According to the database management system of the present invention, in addition to the file area management section for managing the table on each secondary storage device by the memory address or the like, the table area distribution section for managing the distribution status of the table. It is equipped with. The file in which the table data is stored last time can be identified by the striping management information of the table area distribution unit, and at the time of tuple insertion, the secondary storage device having a free space based on the striping management information of the table area distribution unit. Striping is performed by selecting and creating a file.
【0015】従って、表を分配するためのファイルは、
システムに装備された全2次記憶装置の中から選択する
ことが可能で、システムに装備されている各2次記憶装
置のそれぞれについて作成する必要はない。換言すれ
ば、データベースを構成する表が複数個ある場合、それ
らの各表に対応した複数個のファイルをシステムに装備
される各2次記憶装置毎にそれぞれ作成するような必要
がなく、例えば、一つの2次記憶装置には少なくとも一
つのデータベース用のファイルを装備するだけで複数の
2次記憶装置への表の分配が可能になり、2次記憶装置
の数に比例して管理すべき実在のファイル数が倍増する
といった不都合の発生を防止して、2次記憶装置上に作
成するファイルの数を低減させることができ、したがっ
て、プロセス毎に持てるファイル情報の数がオペレーテ
ィングシステムによって制限されていても、その制限内
でストライピング処理できる数を増やすこともできて、
表へのアクセスが集中した場合における2次記憶装置へ
の負荷を軽減させることができる。Therefore, the file for distributing the table is
It is possible to select from all the secondary storage devices installed in the system, and it is not necessary to create each of the secondary storage devices installed in the system. In other words, when there are a plurality of tables forming the database, it is not necessary to create a plurality of files corresponding to each of the tables for each secondary storage device installed in the system. It is possible to distribute a table to a plurality of secondary storage devices only by equipping one secondary storage device with at least one database file, and it should be managed in proportion to the number of secondary storage devices. It is possible to prevent the inconvenience of doubling the number of files in the secondary storage device and reduce the number of files created in the secondary storage device. Therefore, the number of file information that each process can have is limited by the operating system. However, you can increase the number of striping processes within that limit,
It is possible to reduce the load on the secondary storage device when access to the table is concentrated.
【0016】また、一つの2次記憶装置上に作成するフ
ァイル数自体が低減することによって、2次記憶装置に
障害が発生した場合にも障害の対象となる表の数が少な
くなり、表の修復も容易になる。Further, since the number of files created on one secondary storage device itself is reduced, the number of tables subject to the failure is reduced even when a failure occurs in the secondary storage device. Repair is also easy.
【0017】また、請求項2に記載のデータベース管理
システムでは、さらに、ストライピング管理情報のスト
ライピング対象表データによってストライピング処理を
実行する表を限定することができ、アクセスが集中する
表のみを予めストライピング処理の対象として指定して
おくことによって、無用なストライピング処理を回避し
て、より効率的にデータベースを運用することも可能に
なる。Further, in the database management system according to the second aspect, it is possible to further limit the tables for which the striping process is executed by the striping management table data of the striping management information, and only perform the striping process in advance for the tables where access is concentrated. By specifying it as the target of, it is possible to avoid unnecessary striping processing and operate the database more efficiently.
【0018】[0018]
【実施例】図1は、本発明に係るデータベース管理シス
テムの一実施例の概略構成を示したものである。この図
1において、符号30はデータベース管理システム、3
1はデータベース管理システム30に装備された表領域
管理部、34および35はそれぞれ2次記憶装置、36
は2次記憶装置34に格納されたデータベース用のファ
イル、37は2次記憶装置35に格納されたデータベー
ス用のファイルである。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows a schematic configuration of an embodiment of a database management system according to the present invention. In FIG. 1, reference numeral 30 is a database management system, 3
Reference numeral 1 is a table area management unit equipped in the database management system 30, 34 and 35 are secondary storage devices, and 36, respectively.
Is a database file stored in the secondary storage device 34, and 37 is a database file stored in the secondary storage device 35.
【0019】前述の各ファイル36,37は、一つの表
を分配したものである。また、データベース管理システ
ム30における表領域管理部31は、図示のように、表
領域分配部32と、ファイル領域管理部33とを具備し
た構成とされている。ここに、表領域分配部32は、当
該データベース管理システム30の管理するデータベー
スの構成要素となる各種の表に対してストライピング処
理の状況を管理する情報として、ストライピング管理情
報40を有している。このストライピング管理情報40
は、図4に示すように、当該データベース管理システム
30の管理するデータベースの構成要素となっている各
種の表の内でストライピング処理の対象となる表を列挙
したストライピング対象表データ41と、このストライ
ピング対象表データ41に挙げられた各表毎に前回のデ
ータ処理時に格納されたファイルの識別子を記述した前
回格納ファイル識別子データ42とで構成されている。
なお、図4では、ストライピング処理の対象となる表と
して、従業員に関する表と取引先に関する表とを例示し
ており、前回格納ファイル識別子データ42に記述した
データによって、従業員に関する表は前回のデータ格納
時には識別子が「0」のファイルに格納され、取引先に
関する表は前回のデータ格納時には識別子が「2」のフ
ァイルに格納されたとしている。また、表領域分配部3
2では、ストライピング処理の非対象の表に対しても、
前回にデータの格納を行ったファイル識別子を管理して
いる。また、さらに、表領域分配部32には、タプルの
挿入処理等の際には、ファイル識別子を所定の記憶手段
に保持させるファイル識別子保持機能43が備えられて
いる。Each of the files 36 and 37 described above is a distribution of one table. Further, the table area management unit 31 in the database management system 30 is configured to include a table area distribution unit 32 and a file area management unit 33 as illustrated. Here, the table area distribution unit 32 has striping management information 40 as information for managing the status of striping processing for various tables that are constituent elements of the database managed by the database management system 30. This striping management information 40
As shown in FIG. 4, the striping target table data 41 enumerating the tables to be subjected to striping processing among the various tables that are the constituent elements of the database managed by the database management system 30 and the striping Each table listed in the target table data 41 is composed of previously stored file identifier data 42 in which the identifier of the file stored in the previous data processing is described.
In addition, in FIG. 4, a table regarding employees and a table regarding business partners are illustrated as the tables to be subjected to the striping process. It is assumed that the data is stored in the file with the identifier “0”, and the table regarding the business partner is stored in the file with the identifier “2” at the time of the previous data storage. Also, the table area distribution unit 3
In 2, even for non-striping table,
It manages the file identifier that stored the data last time. Further, the table area distribution unit 32 is provided with a file identifier holding function 43 for holding a file identifier in a predetermined storage unit at the time of tuple insertion processing or the like.
【0020】前記ファイル領域管理部33は、従来の場
合と同様に、システム構成要素となっている各2次記憶
装置34,35内にどのようにファイル36,37が配
置されているかをメモリアドレス等によって管理してい
る。The file area management unit 33 determines, as in the conventional case, how the files 36 and 37 are arranged in the respective secondary storage devices 34 and 35, which are system constituent elements, at the memory address. Etc.
【0021】この一実施例のデータベース管理システム
では、表に新たにタプルを挿入する場合に、前記表領域
分配部32のストライピング管理情報40に基づいて、
管理しているファイル内の空き領域の状態に応じて、ス
トライピング処理を行う。In the database management system of this embodiment, when a tuple is newly inserted in the table, based on the striping management information 40 of the table area distribution unit 32,
Striping processing is performed according to the free space status in the managed file.
【0022】次に、一実施例におけるデータベース管理
システムにおけるタプル挿入処理について、図5に基づ
いて説明する。なお、タプル挿入の命令は、2次記憶装
置34に格納されたファイル36の参照中に受けたもの
とする。Next, tuple insertion processing in the database management system in one embodiment will be described with reference to FIG. It is assumed that the tuple insertion instruction is received while referring to the file 36 stored in the secondary storage device 34.
【0023】タプル挿入の命令を受けた場合、まず、現
在参照中のファイル36上の取得済みのデータ格納領域
(ファイル領域)に空きがあるか否かを判断し(ステッ
プ51)、空きがある場合には、その空いている領域に
タプルを格納して処理を終了する(ステップ59)。し
かし、前記ステップ51で空きがないと判断した場合に
は、前記ファイル識別子保持機能43によって所定の記
憶手段に保持されているファイル識別子をクリアし(ス
テップ52)、前記表領域分配部32のストライピング
管理情報40に基づいて表を格納するファイル識別子を
得る(ステップ53)。When a tuple insertion command is received, it is first determined whether or not there is a free space in the acquired data storage area (file area) of the file 36 currently being referenced (step 51), and there is a free space. In this case, the tuple is stored in the empty area and the process is terminated (step 59). However, if it is determined in step 51 that there is no free space, the file identifier holding function 43 clears the file identifier held in the predetermined storage means (step 52), and the striping of the table area distribution unit 32 is performed. A file identifier for storing the table is obtained based on the management information 40 (step 53).
【0024】次いで、ステップ53によって得たファイ
ル識別子が、前回の処理時にステップ55の処理(即
ち、ファイル識別子保持機能43によるファイル識別子
記憶処理)によって所定の記憶手段に保持されているフ
ァイル識別子と同じか否かを判断する(ステップ5
4)。そして、同じでない場合には、ステップ53で得
たファイル識別子を、前述のファイル識別子保持機能4
3によって所定の記憶手段に記憶させる(ステップ5
5)。Next, the file identifier obtained in step 53 is the same as the file identifier held in the predetermined storage means by the process of step 55 (that is, the file identifier storing process by the file identifier holding function 43) in the previous process. It is determined whether or not (step 5)
4). If they are not the same, the file identifier obtained in step 53 is used as the file identifier holding function 4 described above.
3 is stored in a predetermined storage means (step 5).
5).
【0025】次いで、タプルを挿入すべき表がストライ
ピング処理の対象であるか否かをストライピング管理情
報40に基づいて判断し、ストライピング処理の対象の
場合にはストライピング管理情報40の前回格納ファイ
ル識別子データ42に保持していたファイル識別子を次
のファイル識別子に更新し(ステップ57)、その後、
ステップ58に移行する。ステップ56でストライピン
グ処理の対象表ではないと判断された場合には、直ちに
ステップ58に移行する。Next, it is determined whether or not the table into which the tuple is to be inserted is the striping management information based on the striping management information 40. If the table is the striping processing target, the previously stored file identifier data of the striping management information 40 is determined. The file identifier held in 42 is updated to the next file identifier (step 57), and then
Go to step 58. If it is determined in step 56 that the table is not the striping process target table, the process immediately proceeds to step 58.
【0026】ステップ58では、ステップ53で得たフ
ァイル識別子のファイルに空き領域があるか否かを判断
し、空きがあれば次のステップ59に移行するが、空き
が無い場合にはステップ53に戻って処理を繰り返す。In step 58, it is judged whether or not the file having the file identifier obtained in step 53 has a free area, and if there is a free area, the process proceeds to the next step 59. If there is no free area, the process proceeds to step 53. Return and repeat the process.
【0027】前述のステップ54で、前回のファイル識
別子と同じと判断された場合には、タプル挿入の命令に
対して空き領域無しを通知して、処理を終了する(ステ
ップ60)。If it is determined in step 54 that the file identifier is the same as the previous file identifier, the tuple insertion command is notified that there is no free space, and the process ends (step 60).
【0028】即ち、一実施例のデータベース管理システ
ムでは、メモリアドレス等によって各2次記憶装置上の
表を管理するファイル領域管理部33の他に、表の分配
状況を管理するための表領域分配部32を具備してい
る。そして、前回に表データを格納したファイルは、前
記表領域分配部32のストライピング管理情報40によ
って識別可能にしており、タプル挿入時には、表領域分
配部32のストライピング管理情報40に基づいて空き
のある2次記憶装置を選択してファイルを作成すること
によって、ストライピング処理を行う。That is, in the database management system of one embodiment, in addition to the file area management unit 33 that manages the table on each secondary storage device by the memory address and the like, the table area distribution for managing the distribution status of the table is also provided. The unit 32 is provided. Then, the file in which the table data is stored last time can be identified by the striping management information 40 of the table area distribution unit 32, and at the time of tuple insertion, there is a space based on the striping management information 40 of the table area distribution unit 32. Striping processing is performed by selecting a secondary storage device and creating a file.
【0029】従って、表を分配するためのファイルは、
システムに装備された全2次記憶装置の中から選択する
ことが可能で、システムに装備されている各2次記憶装
置のそれぞれについて作成する必要はない。Therefore, the file for distributing the table is
It is possible to select from all the secondary storage devices installed in the system, and it is not necessary to create each of the secondary storage devices installed in the system.
【0030】換言すれば、データベースを構成する表が
複数個ある場合、それらの各表に対応した複数個のファ
イルをシステムに装備される各2次記憶装置毎にそれぞ
れ作成するような必要がなく、例えば、一つの2次記憶
装置には少なくとも一つのデータベース用のファイルを
装備するだけで複数の2次記憶装置への表の分配が可能
になり、2次記憶装置の数に比例して管理すべき実在の
ファイル数が倍増するといった不都合の発生を防止し
て、2次記憶装置上に作成するファイルの数を低減させ
ることができ、従って、プロセス毎に持てるファイル情
報の数がオペレーティングシステムによって制限されて
いても、その制限内でストライピング処理できる数を増
やすこともできて、表へのアクセスが集中した場合にお
ける2次記憶装置への負荷を軽減させることができる。In other words, when there are a plurality of tables constituting the database, it is not necessary to create a plurality of files corresponding to the respective tables for each secondary storage device equipped in the system. For example, it is possible to distribute a table to a plurality of secondary storage devices by equipping one secondary storage device with at least one file for a database, and to manage in proportion to the number of secondary storage devices. It is possible to prevent the inconvenience of doubling the number of existing files that should be present and reduce the number of files created in the secondary storage device. Therefore, the number of file information that can be held for each process depends on the operating system. Even if there is a limit, you can increase the number of striping processes that can be performed within that limit. It is possible to reduce the load.
【0031】また、一つの2次記憶装置上に作成するフ
ァイル数自体が低減することによって、2次記憶装置に
障害が発生した場合にも障害の対象となる表の数が少な
くなり、表の修復も容易になる。Further, by reducing the number of files themselves created in one secondary storage device, the number of tables subject to the failure is reduced even when a failure occurs in the secondary storage device. Repair is also easy.
【0032】また、前述の一実施例では、ストライピン
グ管理情報40のストライピング対象表データ41によ
ってストライピング処理を実行する表を限定することが
でき、アクセスが集中する表のみを予めストライピング
処理の対象として指定しておくことによって、無用なス
トライピング処理を回避して、より効率的にデータベー
スを運用することが可能になる。Further, in the above-described embodiment, the striping target table data 41 of the striping management information 40 can limit the tables on which the striping process is executed, and only the tables in which access is concentrated are designated in advance as the targets of the striping process. By doing so, it becomes possible to avoid unnecessary striping processing and operate the database more efficiently.
【0033】[0033]
【発明の効果】請求項1に記載のデータベース管理シス
テムは、メモリアドレス等によって各2次記憶装置上の
表を管理するファイル領域管理部の他に、表の分配状況
を管理するための表領域分配部を具備している。そし
て、前回に表データを格納したファイルは、前記表領域
分配部のストライピング管理情報によって識別可能にし
ており、タプル挿入時には、表領域分配部のストライピ
ング管理情報に基づいて空きのある2次記憶装置を選択
してファイルを作成することによって、ストライピング
処理を行う。According to the database management system of the first aspect, in addition to the file area management unit for managing the table on each secondary storage device by the memory address and the like, a table area for managing the distribution status of the table. It has a distributor. The file in which the table data is stored last time can be identified by the striping management information of the table area distribution unit, and at the time of tuple insertion, the secondary storage device having a free space based on the striping management information of the table area distribution unit. Striping is performed by selecting and creating a file.
【0034】従って、表を分配するためのファイルは、
システムに装備された全2次記憶装置の中から選択する
ことが可能で、システムに装備されている各2次記憶装
置のそれぞれについて作成する必要はない。換言すれ
ば、データベースを構成する表が複数個ある場合、それ
らの各表に対応した複数個のファイルをシステムに装備
される各2次記憶装置毎にそれぞれ作成するような必要
がなく、例えば、一つの2次記憶装置には少なくとも一
つのデータベース用のファイルを装備するだけで複数の
2次記憶装置への表の分配が可能になり、2次記憶装置
の数に比例して管理すべき実在のファイル数が倍増する
といった不都合の発生を防止して、2次記憶装置上に作
成するファイルの数を低減させることができ、したがっ
て、プロセス毎に持てるファイル情報の数がオペレーテ
ィングシステムによって制限されていても、その制限内
でストライピング処理できる数を増やすこともできて、
表へのアクセスが集中した場合における2次記憶装置へ
の負荷を軽減させることができる。Therefore, the file for distributing the table is
It is possible to select from all the secondary storage devices installed in the system, and it is not necessary to create each of the secondary storage devices installed in the system. In other words, when there are a plurality of tables forming the database, it is not necessary to create a plurality of files corresponding to each of the tables for each secondary storage device installed in the system. It is possible to distribute a table to a plurality of secondary storage devices only by equipping one secondary storage device with at least one database file, and it is necessary to manage in proportion to the number of secondary storage devices. It is possible to prevent the inconvenience of doubling the number of files in the secondary storage device and reduce the number of files created in the secondary storage device. Therefore, the number of file information that each process can have is limited by the operating system. However, you can increase the number of striping processes within that limit,
It is possible to reduce the load on the secondary storage device when access to the table is concentrated.
【0035】また、一つの2次記憶装置上に作成するフ
ァイル数自体が低減することによって、2次記憶装置に
障害が発生した場合にも障害の対象となる表の数が少な
くなり、表の修復も容易になる。Further, since the number of files created on one secondary storage device itself is reduced, the number of tables subject to the failure is reduced even when a failure occurs in the secondary storage device. Repair is also easy.
【0036】また、請求項2に記載のデータベース管理
システムでは、さらに、ストライピング管理情報のスト
ライピング対象表データによってストライピング処理を
実行する表を限定することができ、アクセスが集中する
表のみを予めストライピング処理の対象として指定して
おくことによって、無用なストライピング処理を回避し
て、より効率的にデータベースを運用することも可能に
なる。Further, in the database management system according to the second aspect, it is possible to further limit the table on which the striping process is executed by the striping management table data of the striping management information, and only the table in which the access is concentrated is previously striped. By specifying it as the target of, it is possible to avoid unnecessary striping processing and operate the database more efficiently.
【図1】本発明の一実施例の概略構成である。FIG. 1 is a schematic configuration of an embodiment of the present invention.
【図2】従来のデータベース管理システムの概略構成で
ある。FIG. 2 is a schematic configuration of a conventional database management system.
【図3】従来のシステムにおけるタプル挿入時の処理を
示す流れ図である。FIG. 3 is a flowchart showing a process when inserting a tuple in a conventional system.
【図4】本発明の一実施例におけるストライピング管理
情報の説明図である。FIG. 4 is an explanatory diagram of striping management information according to an embodiment of the present invention.
【図5】本発明の一実施例におけるタプル挿入時の処理
を示す流れ図である。FIG. 5 is a flowchart showing a process when inserting a tuple according to the embodiment of the present invention.
30 データベース管理システム 31 表領域管理部 32 表領域分配部 33 ファイル領域管理部 34,35 2次記憶装置 36,37 ファイル 40 ストライピング管理情報 43 ファイル識別子保持機能 30 database management system 31 table area management unit 32 table area distribution unit 33 file area management unit 34, 35 secondary storage device 36, 37 file 40 striping management information 43 file identifier holding function
Claims (2)
分配して管理するデータベース管理システムであって、 メモリアドレス等によって各2次記憶装置上における表
の配置等を管理するファイル領域管理部の他に、表の分
配状況を管理するための表領域分配部を具備し、 前記表領域分配部には、前回にデータを格納したファイ
ルを識別するためのデータを表毎に管理するストライピ
ング管理情報を装備しておき、 タプル挿入処理の際には、前記表領域分配部の情報に基
づいて空きの領域を探索し、新たに空きの領域を確保す
る場合にファイルの変更を実行することで表を複数のフ
ァイルに分配することを特徴としたデータベース管理シ
ステム。1. A database management system for managing tabular data by distributing it to a plurality of secondary storage devices, and managing file areas for managing the layout of tables on each secondary storage device by memory addresses and the like. In addition to the section, the table area distribution unit for managing the distribution status of the table is provided, and the table area distribution unit manages the data for identifying the file storing the previous data for each table by striping. Management information must be provided, and when tuple insertion processing is performed, a free area is searched based on the information in the table area distribution unit, and a file change is executed when a new free area is secured. A database management system that distributes tables to multiple files in.
する表が分配の対象となるか否かを示すストライピング
対象表データを装備し、該ストライピング対象表データ
で分配の対象として設定されている表に限って分配を実
行することを特徴とする請求項1に記載のデータベース
管理システム。2. The striping management information is equipped with striping target table data indicating whether or not a table to be processed becomes a target of distribution, and a table set as a target of distribution in the striping target table data is provided. The database management system according to claim 1, wherein the distribution is executed only for a limited time.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13848792A JP3290462B2 (en) | 1992-05-29 | 1992-05-29 | Database management system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13848792A JP3290462B2 (en) | 1992-05-29 | 1992-05-29 | Database management system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH05334146A true JPH05334146A (en) | 1993-12-17 |
| JP3290462B2 JP3290462B2 (en) | 2002-06-10 |
Family
ID=15223249
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP13848792A Expired - Fee Related JP3290462B2 (en) | 1992-05-29 | 1992-05-29 | Database management system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3290462B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2013502658A (en) * | 2009-08-19 | 2013-01-24 | オラクル・インターナショナル・コーポレイション | Striping technology conscious of database operation |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH03216751A (en) * | 1990-01-05 | 1991-09-24 | Internatl Business Mach Corp <Ibm> | Method of transferring file |
| JPH03225444A (en) * | 1990-01-30 | 1991-10-04 | Nec Corp | File control job start system |
| JPH04182749A (en) * | 1990-11-19 | 1992-06-30 | Hitachi Inf Syst Ltd | Relational database data storage method |
-
1992
- 1992-05-29 JP JP13848792A patent/JP3290462B2/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH03216751A (en) * | 1990-01-05 | 1991-09-24 | Internatl Business Mach Corp <Ibm> | Method of transferring file |
| JPH03225444A (en) * | 1990-01-30 | 1991-10-04 | Nec Corp | File control job start system |
| JPH04182749A (en) * | 1990-11-19 | 1992-06-30 | Hitachi Inf Syst Ltd | Relational database data storage method |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2013502658A (en) * | 2009-08-19 | 2013-01-24 | オラクル・インターナショナル・コーポレイション | Striping technology conscious of database operation |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3290462B2 (en) | 2002-06-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5287500A (en) | System for allocating storage spaces based upon required and optional service attributes having assigned piorities | |
| US7146377B2 (en) | Storage system having partitioned migratable metadata | |
| US6421687B1 (en) | Data partitioning and duplication in a distributed data processing system | |
| US20080243966A1 (en) | System and method for managing temporary storage space of a database management system | |
| US5687372A (en) | Customer information control system and method in a loosely coupled parallel processing environment | |
| US20160364407A1 (en) | Method and Device for Responding to Request, and Distributed File System | |
| SK63394A3 (en) | Method and system for creating and maintaining of multiple document versions in a library | |
| JP3044005B2 (en) | Data storage control method | |
| US20240104089A1 (en) | Methods, systems, electronic devices, and storage media for database transaction processing | |
| US5682507A (en) | Plurality of servers having identical customer information control procedure functions using temporary storage file of a predetermined server for centrally storing temporary data records | |
| CN115964444B (en) | Cloud native distributed multi-tenant database implementation method and system | |
| US6804710B1 (en) | Configuration information management system, method, program, and program storage device | |
| US5559979A (en) | Table-based inter-system serialization control system | |
| US5630133A (en) | Customer information control system and method with API start and cancel transaction functions in a loosely coupled parallel processing environment | |
| KR20130038517A (en) | System and method for managing data using distributed containers | |
| US7299218B2 (en) | System and method for multiple-threaded access to a database | |
| US6959301B2 (en) | Maintaining and reconstructing the history of database content modified by a series of events | |
| JPH05334146A (en) | Database management system | |
| CN114281269B (en) | Data caching method and device, storage medium and electronic device | |
| JPH0296213A (en) | Secondary memory control method using hierarchical bit map | |
| CN111711531B (en) | Cluster data management method and storage medium | |
| CN105760510A (en) | Database horizontal extension method of software business system | |
| CN118784439B (en) | Distributed cluster management method, device and electronic equipment | |
| JP4951326B2 (en) | Computer program for optimizing I/O request processing order | |
| US20070156724A1 (en) | Database system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |