JP2004054816A - Database management method and apparatus - Google Patents

Database management method and apparatus Download PDF

Info

Publication number
JP2004054816A
JP2004054816A JP2002214818A JP2002214818A JP2004054816A JP 2004054816 A JP2004054816 A JP 2004054816A JP 2002214818 A JP2002214818 A JP 2002214818A JP 2002214818 A JP2002214818 A JP 2002214818A JP 2004054816 A JP2004054816 A JP 2004054816A
Authority
JP
Japan
Prior art keywords
data
log
file
database management
database
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002214818A
Other languages
Japanese (ja)
Inventor
Masamichi Senda
千田  理路
Ryuichi Hoshino
星野  隆一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
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 Ltd filed Critical Hitachi Ltd
Priority to JP2002214818A priority Critical patent/JP2004054816A/en
Publication of JP2004054816A publication Critical patent/JP2004054816A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To prevent a system from stopping due to the shortage of a log recording region due to logging that is generated during data loading. <P>SOLUTION: The amount of log that is generated during the execution of a data load program 24 is estimated from an input data file 42 for recording added data, and the processing of the data load program 24 is completed when there is not any sufficient free space after comparing with the free space of a log file 32. The free space of the log file 32 is monitored during the addition of data, and transaction for adding data is settled when there are no sufficient regions for recording a log, thus suspending processing for loading data. After the supervisor of a database management apparatus secures the free space of the log file 32, the data load program 24 is executed again, and data addition processing is resumed. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、複数のトランザクションからアクセスされるデータを管理し、更新情報をログとして記録するデータベース管理装置の技術に関する。
【0002】
【従来の技術】
データベース管理装置は、データを記録し保持するコンピュータ化システムである。データベース管理装置において、一連のデータの検索および更新から成る論理的な処理単位をトランザクションという。
トランザクションが正常に終了した場合、トランザクションで処理された更新は、他のトランザクションによる更新があるまで永久的なものとみなされ、トランザクションの正常終了後に障害が発生した場合でも、データベース管理装置がデータの回復を保証する。
また、トランザクションが終了する前に障害が発生した場合やトランザクションを取り消した場合は、それまでに更新されたデータが更新前のデータに戻ること(ロールバック)が保証される。
このようなトランザクションの回復を保証するために、データベース管理装置はログといわれるトランザクションで発生する更新履歴を記録する。
通常、ログは更新前のデータおよび更新後のデータを含み、トランザクションのロールバック時にはログ中の更新前のデータによりデータベースを更新前の状態に戻し(UNDO処理)、障害発生後のデータの回復にはログ中の更新後のデータによりデータベースを更新後のデータに回復する(REDO処理)。
これらの従来技術は、J.Gray, A.Reuter等の”Transaction Processing: Concepts and Techniques”, Morgan Kaufman Publishers, Inc.に記載されている。
【0003】
【発明が解決しようとする課題】
上述した従来技術では、トランザクションの回復には回復対象のトランザクションで生成されたログが必要であるため、ログを記録する領域が不足するとトランザクションの回復を保証できない。
このとき、データベース管理装置はトランザクション処理を続行することができず、処理中のトランザクションを中断して新たなトランザクションを受け付けられない状態になるか、トランザクションを中断するために必要なログも記録する領域がない場合にはシステムを停止せざるを得ない。
そのためデータベース管理装置の管理者は運用中に発生するトランザクションにより発生するログの量を見積り、十分な量のログを記録する領域を確保しておく必要がある。
しかし、大量のデータを登録することを目的にするデータロードを実施する場合には、データベースの更新で発生するログは更新量に比例して多くなるため、見積りを誤るとログを記録する領域が不足してしまい、データベース管理装置が停止に至ることになる。
ログの見積りが不足する場合として、例えば、データベース管理装置を運用する過程で日々追加するデータ量が増えて登録するデータ量が大量となり、当初のログ量の見積り値では不足する場合や、突発的な業務が発生し追加するデータ量が増えて登録するデータ量が大量となる場合がある。
本発明の目的は、データロード中、特に大量のデータのデータロード中にログを記録する領域が不足することによるシステムの停止を防ぐことにある。
【0004】
【課題を解決するための手段】
上記目的を達成するために、本発明は、受信したトランザクションに応じて、追加するデータを記録した入力データファイルを入力としてデータベースにデータを追加するデータロード処理を行うものであり、データ追加処理の開始前に入力データファイル内の追加データにより発生するログ量を見積り、ログファイル内の空き容量が該見積もったログ量より少ないか否か判定し、少ない場合にはデータ追加処理の開始前にデータロード処理を終了する。
また、入力データファイルからデータベースへのデータ追加処理中にログファイル内の空き容量を監視し、該空き容量が予め定めた量より少なくなった時点で前記トランザクションをコミツトしてデータロード処理を終了する。
また、前記トランザクションをコミツトしたとき、入力データファイルにおける次ぎの追加対象となるデータの位置情報を更新情報ファイルに記録し、データの追加処理中断のメッセージを前記トランザクションを発した端末装置に表示する。
【0005】
【発明の実施の形態】
以下、本発明の実施例を図面を用いて具体的に説明する。
図2は、本発明による大量のデータを登録する場合に適合するデータベース管理装置10の構成を示す。
データベース管理装置10は外部記憶装置11を備え、ネットワーク12を介して端末13と結ばれ、外部記憶装置11にはデータベース管理装置10が管理するデータを記録するデータベース31及びデータの更新履歴であるログを記録する領域であるログファイル32が格納される。
データベース管理装置10は、
端末13において実行されるプログラムから発行される問い合せ要求、あるいはデータロードプログラム24から発行される問い合せ要求を受け付け解析して、データベースに対するアクセス経路を決定し(すなわち、データベース31の中の必要とするデータに関する表がいくつかに分かれて格納されているため、これらの表をどのような順番で組み合わせ、あるいはどのようなインデックス構造を使ってアクセスするかといった順番を決定する)、データのアクセス要求をデータベースアクセス制御部22に指示する問い合せ制御部21、
データベース31への入出力および入出力回数の削減を目的としたデータバッファ26を制御するデータベースアクセス制御部22、
データベースに格納するデータの定義情報を管理するディクショナリ管理部23、
データベース31の更新の際に発生するログレコードを受け付けログバッファ27とログファイル32への入出力を管理するログ管理部25、
追加するデータの内容が記録されたデータロード入力データファイル41を読み込み、データ追加処理を制御するデータロードプログラム24で構成される。
上記データロード入力データファイル41は、データベースに格納するデータのファイルであり、ファイルのデータは、例えば、端末からネットワークを介して入力されたり、データベース管理装置により入力されたりする。
【0006】
次に、本発明による大量のデータを登録する場合に適合するデータロード処理時の動作を図1の処理フローに従い説明する。
オペレータは端末13よりデータロードプログラム24の実行を指示する。このとき、データの追加対象であるデータベース31内の表と、データベース管理装置10からアクセス可能で追加するデータが記録されたデータロード入力データファイル41が指定される。
データロードプログラム24は、指示されたデータロードの実行により発生するログ量をデータロード入力データファイル内の追加するデータの量を基に見積もり(ステップ201)、ログファイル32の空き容量を求める(ステップ202)。
次に求められたログ量の見積り値が、ログファイルの空き容量に予めデータベース管理装置に登録されたある割合(この割合は、例えば、ディクショナリ管理部に予め登録したり、あるいは図示していないシステム定義ファイルに登録したりしておく。)を乗じた値を下回るか否かを判定する(ステップ203)。
ステップ203において偽と判定された場合は、データロードの実行でログファイルの空き容量が不足する恐れがあるため、端末13に警告メッセージを表示し(ステップ216)、処理を終了する。
特に、大量のデータの登録の場合に、ログファイルの空き容量が不足する恐れが多く、不足した場合に、オペレータに速やかに通知することができる。
図3に端末13で表示される警告メッセージの例を示す。
ステップ203においてログ量の見積り値がログファイルの空き容量のある割合を超えないと判定された場合、データロード入力データファイル41から複数件分からなる追加するデータの内の一件分(1レコード)を読み込み(ステップ204)、データベースにデータを追加する問い合わせを生成し(ステップ205)、問い合わせ制御部21に問い合わせの実行を要求する(ステップ206)。
このとき、問い合わせの要求の電文には、問い合わせの要求元の識別子が含まれ、ステップ206における問い合わせ要求時はデータロードプログラムであることを示す値を設定する。
【0007】
問い合わせ制御部21は、問い合わせを受け付け(ステップ207)、問い合わせを解析し(ステップ208)、ステップ206において要求された問い合わせの場合は解析の結果としてデータの追加であることが得られ、データベースアクセス制御部22にデータの追加を指示する(ステップ209)。
【0008】
データベースアクセス制御部22は、データベース31でデータを追加する部分に格納するデータによりデータバッファ26のデータを更新し(ステップ210)、データ追加のログを編集する(ステップ211)。
ここで、ログは追加、更新、削除等のログの内容を識別するためのログ種別を含み、問い合わせ電文に含まれる問い合わせ要求元の識別子がデータロードプログラムのものであれば、ログ種別としてデータロードプログラムによるデータ追加であることが設定される。
ログを編集後、ログ管理部25に更新ログの出力を要求する(ステップ212)。
【0009】
ログ管理部25は、ログレコードをログバッファへ書き出す(ステップ213)。
ログバッファに記録されたログレコードは、ログバッファが満杯になるか、任意のトランザクションのコミットまたはロールバックが発生した時点でログファイル32に書き込まれる。
ここで、データバッファ26およびログバッファ27の制御は一般によく知られたライトアヘッドロギング(WAL)プロトコルに従い、データバッファ26の更新内容がデータベース31に書き込まれる前に、ログバッファ27の内容がログファイル32に書き込まれるよう制御される。
ログ管理部25は、出力要求を受けたログの種別を判定し、ログがデータロードプログラム24によるデータの追加で発生したログである場合はログファイル32の空き容量を調べ、ログファイル32の空き容量に予めデータベース管理装置に登録されたある割合を乗じた値よりログバッファに書き込んだログのサイズが大きくなければ(ステップ214)、問い合わせの応答として「正常終了」を返す。
【0010】
問い合わせの応答を受けたデータロードプログラム24は、データロード入力データファイル41の追加データが残っているか否かを判定し(ステップ215)、追加データが残っていればステップ204以降の処理を繰返し、追加データが残っていなければデータロード処理を終了する。
【0011】
ステップ214においてログファイル32の空き容量に予めデータベース管理装置に登録されたある割合を乗じた値よりログバッファに書き込んだログのサイズが大きい場合、ログファイル32への書き込み要求が発生する時点でログを記録できない恐れがあるため、データロードプログラム24の実行により発生したトランザクションをコミットし(ステップ218)、問い合わせの応答として「自動コミットあり」をデータロードプログラムに返す。
【0012】
データロードプログラム24は問い合わせの応答として「自動コミットあり」を受け取り、データロード入力データファイル41における次の追加対象となる追加データの位置を更新情報ファイル42に記録し(ステップ219)、データの追加処理が中断したことを示すメッセージを端末13に表示し(ステップ220)、処理を終了する。図4に端末13で表示されるデータロード中断のメッセージ例を示す。
【0013】
ステップ220により端末にメッセージが表示された場合、オペレータはデータロード処理がログファイル32の空き容量が不足したために終了したことを知ることができる。
オペレータはログファイル32の空き容量を増やす処置を行った後にデータロード入力データファイル41と更新情報ファイル42を指定してデータロードプログラム24の実行を端末13よりデータロードプログラム24に指示する。
特に、大量のデータの登録の場合に、ログファイルの空き容量が不足し易く、本実施形態によれば、オペレータはログファイルの空き容量の不足を速やかに知ることができ、ログファイルの空き容量の不足に対して適切に対処することが可能となる。
データロードプログラムは、ステップ219において更新情報ファイル42に記録されたデータロード入力データファイル41における次の追加データの位置を取得し、図1の処理フローに従いデータロード処理を続行する。
【0014】
また、本発明の別の実施形態では、ステップ216において端末13に警告メッセージを表示した後、ステップ204以下の処理を続行する。
データロードプログラム24の実行を指示したオペレータは、実行を指示した直後に端末13に表示されたメッセージによりログファイル32の空き領域が不足していることに気付くことができ、直ちにログファイル32の空き容量を増やす処理を行うことでデータロード中のログファイル32の空き領域の不足を回避することができる。
また、オペレータがログ記録領域を増やす処置をとらずとも、ステップ214においてデータロード実行中のログファイル32の空き容量が少なくなれば、データロード処理が終了するため、データベース管理装置がログファイル32の空き領域の不足により停止することがない。
【0015】
【発明の効果】
本発明のデータベース管理装置によれば、データロードの処理中にログを記録する領域が不足するとみられるデータロード処理をデータ追加処理を開始する前にオペレータに警告することができ、データベース管理装置の停止を未然に防ぐことができ、特に大量のデータのデータロードの場合に大きな効果がある。
また、データロードによる大量のデータ追加によりログを記録する領域の空き容量が少なくなる場合は自動的にデータ追加処理を中断し、システムの停止を防ぐことができる。
【図面の簡単な説明】
【図1】データロード処理の概略フローを示す図である。
【図2】本発明を実施するためのデータベース管理装置の構成を示す図である。
【図3】端末における警告メッセージの表示例を示す図である。
【図4】端末におけるデータロード中断のメッセージの表示例を示す図である。
【符号の説明】
10  データベース管理装置
11  外部記憶装置
12  ネットワーク
13  端末
21  問い合わせ制御部
22  データベースアクセス制御部
23  ディクショナリ管理部
24  データロードプログラム
25  ログ管理部
26  データバッファ
27  ログバッファ
31  データベース
32  ログファイル
41  データロード入力データファイル
42  更新情報ファイル
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a technology of a database management device that manages data accessed from a plurality of transactions and records update information as a log.
[0002]
[Prior art]
The database management device is a computerized system that records and holds data. In the database management device, a logical processing unit including a series of data search and update is called a transaction.
If a transaction ends normally, updates processed by the transaction are considered permanent until updated by another transaction, and even if a failure occurs after the normal end of the transaction, the database management device can update the data. Guarantee recovery.
If a failure occurs or the transaction is canceled before the transaction ends, it is guaranteed that the data updated so far returns to the data before the update (rollback).
In order to guarantee the recovery of such a transaction, the database management apparatus records an update history generated in a transaction called a log.
Normally, the log includes data before update and data after update. When the transaction is rolled back, the database is returned to the state before update by the data before update in the log (UNDO processing), and the data is recovered for recovery after a failure occurs. Recovers the database to the updated data using the updated data in the log (REDO process).
These prior arts are described in J. Gray, A.J. Reuter et al., "Transaction Processing: Concepts and Techniques", Morgan Kaufman Publishers, Inc. It is described in.
[0003]
[Problems to be solved by the invention]
In the above-described related art, since a log generated by a transaction to be recovered is necessary for recovering a transaction, if the log recording area is insufficient, recovery of the transaction cannot be guaranteed.
At this time, the database management device cannot continue the transaction processing, suspends the transaction being processed, and becomes unable to accept a new transaction, or an area for recording a log necessary for suspending the transaction. If not, the system must be shut down.
For this reason, the administrator of the database management apparatus needs to estimate the amount of logs generated by transactions occurring during operation and secure an area for recording a sufficient amount of logs.
However, when performing data loading for the purpose of registering a large amount of data, the log generated by updating the database increases in proportion to the update amount. Insufficient, and the database management device will be stopped.
When the log estimate is insufficient, for example, the amount of data added daily increases in the process of operating the database management device, the amount of data to be registered becomes large, and the estimated value of the initial log amount is insufficient, In some cases, the amount of data to be added increases and the amount of data to be registered becomes large.
An object of the present invention is to prevent the system from being stopped due to a shortage of a log recording area during data loading, particularly during data loading of a large amount of data.
[0004]
[Means for Solving the Problems]
In order to achieve the above object, the present invention performs a data load process of adding data to a database by inputting an input data file recording data to be added, according to a received transaction. Before starting, estimate the amount of log generated by the additional data in the input data file, and determine whether the free space in the log file is smaller than the estimated log amount. End the loading process.
Further, during the process of adding data from the input data file to the database, the free space in the log file is monitored, and when the free space becomes smaller than a predetermined amount, the transaction is committed and the data loading process is terminated. .
Further, when the transaction is committed, the position information of the next data to be added in the input data file is recorded in the update information file, and a message of interruption of the data addition processing is displayed on the terminal device which issued the transaction.
[0005]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be specifically described with reference to the drawings.
FIG. 2 shows a configuration of a database management apparatus 10 suitable for registering a large amount of data according to the present invention.
The database management device 10 includes an external storage device 11 and is connected to a terminal 13 via a network 12. The external storage device 11 has a database 31 for recording data managed by the database management device 10 and a log as a data update history. Is stored in the log file 32, which is an area for recording.
The database management device 10
An inquiry request issued from a program executed in the terminal 13 or an inquiry request issued from the data load program 24 is received and analyzed to determine an access route to the database (that is, a required data in the database 31). Tables are stored in several parts, so determine the order in which these tables are combined or accessed using what kind of index structure) An inquiry control unit 21 for instructing the access control unit 22;
A database access control unit 22 for controlling a data buffer 26 for the purpose of inputting / outputting to / from the database 31 and reducing the number of input / output operations;
A dictionary management unit 23 for managing definition information of data stored in the database,
A log management unit 25 that receives a log record generated when the database 31 is updated and manages input / output to / from the log buffer 27 and the log file 32;
It comprises a data load program 24 that reads a data load input data file 41 in which the contents of data to be added are recorded, and controls data addition processing.
The data load input data file 41 is a file of data to be stored in a database, and the data of the file is input from a terminal via a network or by a database management device, for example.
[0006]
Next, the operation at the time of data loading processing suitable for registering a large amount of data according to the present invention will be described with reference to the processing flow of FIG.
The operator instructs the terminal 13 to execute the data load program 24. At this time, a table in the database 31 to which data is to be added and a data load input data file 41 in which data to be added and accessible by the database management apparatus 10 are recorded are specified.
The data load program 24 estimates the amount of log generated by execution of the instructed data load based on the amount of data to be added in the data load input data file (step 201), and obtains the free space of the log file 32 (step 201). 202).
Next, the estimated value of the log amount obtained is calculated as a percentage of the free space of the log file registered in the database management apparatus in advance (for example, the percentage may be registered in the dictionary management unit in advance, or a system not shown or It is determined whether or not the value is smaller than the value obtained by multiplying by (registered in the definition file) (step 203).
If it is determined to be false in step 203, a warning message is displayed on the terminal 13 (step 216) because there is a possibility that the free space of the log file may become insufficient due to the execution of the data load, and the process ends.
In particular, when registering a large amount of data, the free space of the log file is likely to be insufficient, and the operator can be immediately notified of the shortage.
FIG. 3 shows an example of a warning message displayed on the terminal 13.
When it is determined in step 203 that the estimated value of the log amount does not exceed a certain ratio of the free space of the log file, one data (one record) of the data to be added consisting of a plurality of data from the data load input data file 41 is determined. Is read (step 204), an inquiry for adding data to the database is generated (step 205), and execution of the inquiry is requested to the inquiry control unit 21 (step 206).
At this time, the message of the inquiry request includes the identifier of the request source of the inquiry, and at the time of the inquiry request in step 206, a value indicating the data load program is set.
[0007]
The inquiry control unit 21 receives the inquiry (Step 207), analyzes the inquiry (Step 208), and in the case of the inquiry requested in Step 206, obtains that the data is added as a result of the analysis, and obtains the database access control. It instructs the section 22 to add data (step 209).
[0008]
The database access control unit 22 updates the data in the data buffer 26 with the data stored in the part where the data is added in the database 31 (step 210), and edits the data addition log (step 211).
Here, the log includes a log type for identifying the contents of the log such as addition, update, and deletion. If the identifier of the inquiry request source included in the inquiry message is that of the data load program, the log type is data load. It is set that data is added by the program.
After editing the log, the log management unit 25 is requested to output an update log (step 212).
[0009]
The log management unit 25 writes the log record to the log buffer (Step 213).
The log records recorded in the log buffer are written to the log file 32 when the log buffer becomes full or when any transaction commits or rolls back.
Here, the control of the data buffer 26 and the log buffer 27 conforms to a generally well-known write-ahead logging (WAL) protocol, and the contents of the log buffer 27 are stored in a log file before the updated contents of the data buffer 26 are written to the database 31. 32 is controlled.
The log management unit 25 determines the type of the log for which the output request has been received, and if the log is a log generated by adding data by the data load program 24, checks the free space of the log file 32. If the size of the log written to the log buffer is not larger than a value obtained by multiplying the capacity by a certain percentage registered in the database management apparatus in advance (step 214), "normal termination" is returned as a response to the inquiry.
[0010]
The data load program 24 that has received the response to the inquiry determines whether or not additional data remains in the data load input data file 41 (step 215), and if additional data remains, repeats the processing from step 204 onward. If no additional data remains, the data loading process ends.
[0011]
If the size of the log written to the log buffer is larger than the value obtained by multiplying the free space of the log file 32 by a certain percentage registered in the database management device in advance in step 214, the log is written at the time when a write request to the log file 32 is generated. Since the data load program 24 may not be recorded, the transaction generated by the execution of the data load program 24 is committed (step 218), and "auto commit" is returned to the data load program as a response to the inquiry.
[0012]
The data load program 24 receives "automatic commit" as a response to the inquiry, records the position of the additional data to be added next in the data load input data file 41 in the update information file 42 (step 219), and adds the data. A message indicating that the processing has been interrupted is displayed on the terminal 13 (step 220), and the processing ends. FIG. 4 shows an example of a data load interruption message displayed on the terminal 13.
[0013]
If a message is displayed on the terminal in step 220, the operator can know that the data loading process has been terminated due to lack of free space in the log file 32.
The operator specifies the data load input data file 41 and the update information file 42 after instructing the data load program 24 to execute the data load program 24 from the terminal 13 after performing the measure for increasing the free space of the log file 32.
In particular, in the case of registering a large amount of data, the free space of the log file is likely to be insufficient, and according to the present embodiment, the operator can quickly know the lack of the free space of the log file, and It is possible to appropriately cope with the shortage.
The data load program obtains the position of the next additional data in the data load input data file 41 recorded in the update information file 42 in step 219, and continues the data load processing according to the processing flow of FIG.
[0014]
Further, in another embodiment of the present invention, after displaying a warning message on the terminal 13 in step 216, the processing from step 204 onward is continued.
The operator who has instructed the execution of the data load program 24 can recognize from the message displayed on the terminal 13 immediately after instructing the execution that the free space of the log file 32 is insufficient, and immediately the free space of the log file 32 is obtained. By performing the process of increasing the capacity, it is possible to avoid a shortage of free space in the log file 32 during data loading.
Further, even if the operator does not take any measures to increase the log recording area, if the free space of the log file 32 during the data loading is reduced in step 214, the data loading process is terminated. It does not stop due to lack of free space.
[0015]
【The invention's effect】
According to the database management apparatus of the present invention, it is possible to warn the operator before starting the data addition processing of the data loading processing in which the log recording area is considered to be insufficient during the data loading processing. Stopping can be prevented beforehand, and is particularly effective when loading a large amount of data.
Further, when the free space of the area for recording the log becomes small due to the large amount of data added by the data loading, the data addition process is automatically interrupted, and the system can be prevented from being stopped.
[Brief description of the drawings]
FIG. 1 is a diagram showing a schematic flow of a data loading process.
FIG. 2 is a diagram showing a configuration of a database management device for implementing the present invention.
FIG. 3 is a diagram showing a display example of a warning message on a terminal.
FIG. 4 is a diagram showing a display example of a data load interruption message on a terminal.
[Explanation of symbols]
Reference Signs List 10 database management device 11 external storage device 12 network 13 terminal 21 inquiry control unit 22 database access control unit 23 dictionary management unit 24 data load program 25 log management unit 26 data buffer 27 log buffer 31 database 32 log file 41 data load input data file 42 Update information file

Claims (6)

受信したトランザクションに応じて、追加するデータを記録した入力データファイルを入力としてデータベースにデータを追加するデータロード処理を行うデータベース管理方法であって、
データ追加処理の開始前に入力データファイル内の追加データにより発生するログ量を見積り、ログファイル内の空き容量が該見積もったログ量より少ないか否か判定し、少ない場合にはデータ追加処理の開始前にデータロード処理を終了することを特徴とするデータベース管理方法。
A database management method for performing a data load process of adding data to a database with an input data file recording data to be added as an input according to a received transaction,
Before starting the data addition processing, the amount of log generated due to the additional data in the input data file is estimated, and it is determined whether the free space in the log file is smaller than the estimated log amount. A database management method, wherein a data loading process is completed before starting.
受信したトランザクションに応じて、追加するデータを記録した入力データファイルを入力としてデータベースにデータを追加するデータロード処理を行うデータベース管理方法であって、
入力データファイルからデータベースへのデータ追加処理中にログファイル内の空き容量を監視し、該空き容量が予め定めた量より少なくなった時点で前記トランザクションをコミツトしてデータロード処理を終了することを特徴とするデータベース管理方法。
A database management method for performing a data load process of adding data to a database with an input data file recording data to be added as an input according to a received transaction,
During the process of adding data from the input data file to the database, the free space in the log file is monitored, and when the free space becomes smaller than a predetermined amount, the transaction is committed and the data loading process is terminated. Characteristic database management method.
請求項2記載のデータベース管理方法において、
前記トランザクションをコミツトしたとき、前記入力データファイルにおける次ぎの追加対象となるデータの位置情報を更新情報ファイルに記録し、データの追加処理中断のメッセージを前記トランザクションを発した端末装置に表示することを特徴とするデータベース管理方法。
The database management method according to claim 2,
When the transaction is committed, the location information of the next data to be added in the input data file is recorded in the update information file, and a message of the interruption of the data addition process is displayed on the terminal device that issued the transaction. Characteristic database management method.
受信したトランザクションに応じて、追加するデータを記録した入力データファイルを入力としてデータベースにデータを追加するデータロード処理を行うデータベース管理装置であって、
データ追加処理の開始前に入力データファイル内の追加データにより発生するログ量を見積る手段と、
ログファイル内の空き容量が該見積もったログ量より少ないか否か判定する手段と、
該判定の結果が少ない場合にデータ追加処理の開始前にデータロード処理を終了する手段を有することを特徴とするデータベース管理装置。
A database management device that performs a data load process of adding data to a database by inputting an input data file recording data to be added according to a received transaction,
Means for estimating the amount of log generated by the additional data in the input data file before starting the data addition processing;
Means for determining whether the free space in the log file is smaller than the estimated log amount,
A database management device comprising means for terminating a data load process before starting a data addition process when a result of the determination is small.
受信したトランザクションに応じて、追加するデータを記録した入力データファイルを入力としてデータベースにデータを追加するデータロード処理を行うデータベース管理装置であって、
入力データファイルからデータベースへのデータ追加処理中にログファイル内の空き容量を監視する手段と、
該空き容量が予め定めた量より少なくなった時点で前記トランザクションをコミツトしてデータロード処理を終了する手段を有することを特徴とするデータベース管理装置。
A database management device that performs a data load process of adding data to a database by inputting an input data file recording data to be added according to a received transaction,
Means for monitoring the free space in the log file during the process of adding data from the input data file to the database;
A database management device comprising means for committing the transaction and ending the data loading process when the free space becomes smaller than a predetermined amount.
請求項5記載のデータベース管理装置において、
前記トランザクションをコミツトしたとき、前記入力データファイルにおける次ぎの追加対象となるデータの位置情報を更新情報ファイルに記録する手段と、データの追加処理中断のメッセージを前記トランザクションを発した端末装置に表示する手段を有することを特徴とするデータベース管理装置。
The database management device according to claim 5,
Means for recording the position information of the next data to be added in the input data file in the update information file when the transaction is committed, and displaying a data addition interruption message on the terminal device that issued the transaction. A database management device having means.
JP2002214818A 2002-07-24 2002-07-24 Database management method and apparatus Pending JP2004054816A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002214818A JP2004054816A (en) 2002-07-24 2002-07-24 Database management method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002214818A JP2004054816A (en) 2002-07-24 2002-07-24 Database management method and apparatus

Publications (1)

Publication Number Publication Date
JP2004054816A true JP2004054816A (en) 2004-02-19

Family

ID=31937013

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002214818A Pending JP2004054816A (en) 2002-07-24 2002-07-24 Database management method and apparatus

Country Status (1)

Country Link
JP (1) JP2004054816A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006119688A (en) * 2004-10-19 2006-05-11 Hitachi Ltd System and method for controlling update of storage device
JP2007166175A (en) * 2005-12-13 2007-06-28 Fuji Xerox Co Ltd Image processing program, image processing method, image processing apparatus, and image processing system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006119688A (en) * 2004-10-19 2006-05-11 Hitachi Ltd System and method for controlling update of storage device
US7721055B2 (en) 2004-10-19 2010-05-18 Hitachi, Ltd. System and method for controlling the updating of storage device
JP4507249B2 (en) * 2004-10-19 2010-07-21 株式会社日立製作所 System and method for controlling storage device updates
JP2007166175A (en) * 2005-12-13 2007-06-28 Fuji Xerox Co Ltd Image processing program, image processing method, image processing apparatus, and image processing system

Similar Documents

Publication Publication Date Title
JP2703479B2 (en) Data processing method and system having security function of time zero backup session
US7107294B2 (en) Method and apparatus for interrupting updates to a database to provide read-only access
US7904426B2 (en) System and method for identifying a removable storage device
JP3386823B2 (en) File management method and device
JP2000259456A (en) File revision management system
JP2004171249A (en) Backup execution decision method for database
JPH0644010A (en) Method and system for polling under sub-file in time zero-backup-copy-process
JP2003242010A (en) Optimizing log usage for temporary object
JPH1063557A (en) Distributed file synchronization system
US20070234114A1 (en) Method, apparatus, and computer program product for implementing enhanced performance of a computer system with partially degraded hardware
CN111897626A (en) Cloud computing scene-oriented virtual machine high-reliability system and implementation method
JP2004054816A (en) Database management method and apparatus
JP3687565B2 (en) Log data storage method, log data storage method, and log data storage program
JP2000155708A (en) Automatic monitoring method for use state of journal file
JPH0594353A (en) Database management system
JPH11203193A (en) Shared memory management device and method
JP2000315190A (en) Job recovery system
JP2001188690A (en) Computer system and checkpoint information preserving method
US20050165723A1 (en) System and method for database management
JPS60250447A (en) Post-replacement system of magnetic disk file
JP2010033131A (en) Management device and program
JPH1049405A (en) Device and method for collecting and storage medium stored with trace
JP3109656B2 (en) Portable storage medium management system and information storage medium used to realize the system
JP2003108410A (en) Method and device for processing computer operation, program, and recording medium
JP4160279B2 (en) Database operation timing detection program, computer-readable recording medium storing the program, database operation timing detection method, and database operation timing detection device

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20040318