JPH052517A - Data base journal control system - Google Patents
Data base journal control systemInfo
- Publication number
- JPH052517A JPH052517A JP3181867A JP18186791A JPH052517A JP H052517 A JPH052517 A JP H052517A JP 3181867 A JP3181867 A JP 3181867A JP 18186791 A JP18186791 A JP 18186791A JP H052517 A JPH052517 A JP H052517A
- Authority
- JP
- Japan
- Prior art keywords
- journal
- file
- journal file
- switching
- 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
Links
- 238000000034 method Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 2
- 230000003213 activating effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【0001】[0001]
【技術分野】本発明はデータベースジャーナル制御シス
テムに関し、特に情報処理におけるデータベースシステ
ムのジャーナルを制御する方式に関するものである。TECHNICAL FIELD The present invention relates to a database journal control system, and more particularly to a method of controlling a journal of a database system in information processing.
【0002】[0002]
【従来技術】従来、データベースシステムでは、障害の
発生に備えて、データベースファイルを更新したときは
更新後のイメージをジャーナルレコードとしてジャーナ
ルファイルに出力するジャーナル制御機構を備えてい
る。また、データベースファイルを格納する磁気ディス
ク装置が媒体障害を起こした場合には、更新前のデータ
ベースファイルのセーブを別の媒体に戻し、採取したジ
ャーナルファイルによって障害発生直前の時点までにデ
ータベースファイルを復旧するリカバリ制御機構を備え
ている。2. Description of the Related Art Conventionally, a database system is equipped with a journal control mechanism for outputting an updated image as a journal record to a journal file when the database file is updated in preparation for a failure. Also, if the magnetic disk device that stores the database file has a media failure, save the database file before update to another media, and recover the database file by the collected journal file up to the point immediately before the failure. It has a recovery control mechanism.
【0003】ところで、ジャーナルファイルは、磁気デ
ィスク装置あるいは磁気テープ装置上にとることができ
る。ジャーナルファイル磁気テープ装置上にとった場合
には、データベースシステムの運用中に磁気テープ装置
を占有して使用し、ジャーナルレコードを磁気テープ上
に出力し、1巻目の磁気テープがオーバーフローする
と、2巻目、3巻目と順次切替わり、続けて処理され
る。By the way, the journal file can be stored in a magnetic disk device or a magnetic tape device. When the journal file is stored on the magnetic tape device, the magnetic tape device is occupied and used during operation of the database system, the journal record is output on the magnetic tape, and if the first magnetic tape overflows, The first and third volumes are sequentially switched, and processing is continued.
【0004】また、ジャーナルファイルを磁気ディスク
装置上にとった場合には、複数のジャーナルファイルを
事前に準備する。ジャーナルレコードは準備されたジャ
ーナルファイルに出力されていき、オーバーフローした
時点で自動的にあるいはオペレータによる切替えの指示
により強制的に、次のジャーナルファイルに切替えが行
われる。When the journal files are stored on the magnetic disk device, a plurality of journal files are prepared in advance. The journal record is output to the prepared journal file, and at the time of overflow, switching to the next journal file is performed automatically or compulsorily by the operator's switching instruction.
【0005】ジャーナルファイルの切替えはいずれの場
合も事前に準備したジャーナルファイルの順序で行われ
る。準備したジャーナルファイルをすべて使用した場合
には、先頭のジャーナルファイルに戻り、サイクリック
に使用する手段を備えている。この場合、サイクリック
に使用する前に、事前にジャーナルレコードの出力が完
了したジャーナルファイルは別のファイルへの退避が必
要である。In any case, the journal file switching is performed in the order of the journal files prepared in advance. When all the prepared journal files are used, a means for returning to the top journal file and cyclically using it is provided. In this case, it is necessary to save the journal file for which journal record output has been completed beforehand to another file before cyclically using it.
【0006】磁気テープ装置あるいは磁気ディスク装置
によるいずれのデータベースジャーナル制御方式も、ジ
ャーナルファイルのオーバフローの発生時点でのデータ
ベースシステムの運用停止を防ぐものである。特に、運
用が長時間に及ぶ近年のデータベースシステムでは非常
に重要な技術である。Any of the database journal control methods using the magnetic tape device or the magnetic disk device prevents the operation of the database system from being stopped at the time of overflow of the journal file. In particular, it is a very important technology in a recent database system in which the operation takes a long time.
【0007】上述した従来のデータベースジャーナル制
御方式では、次のような問題点がある。すなわち、磁気
テープ装置による方式では、データベースシステムの運
用中に磁気テープ装置が常に占有されてしまい、磁気テ
ープ装置をデータベースシステムのジャーナル専用に用
意する必要がある。The above-mentioned conventional database journal control system has the following problems. That is, in the method using the magnetic tape device, the magnetic tape device is always occupied during the operation of the database system, and it is necessary to prepare the magnetic tape device only for the journal of the database system.
【0008】また、磁気テープ装置に代わる技術として
登場した磁気ディスク装置による方式では、ジャーナル
ファイルの切替えは、予め準備された順序で切替えが行
われる。そのため、オペレータがジャーナルファイルの
オーバフローを事前に感知してコマンドでジャーナルフ
ァイルを強制的に切替えようとしたときに、次に切替え
るべき先のジャーナルファイルが何らかの理由によって
準備されていないときには、ジャーナルファイルの切替
えができない。Further, in the method using a magnetic disk device, which has appeared as a technique replacing the magnetic tape device, the journal files are switched in a prepared order. Therefore, when the operator detects the overflow of the journal file in advance and forcibly switches the journal file with a command, and the journal file to be switched next is not prepared for some reason, the journal file Cannot switch.
【0009】これは、通常起こり得にくい状態である
が、データベースシステムの運用が長時間に及ぶと、か
なり高い確率で起き得る事態である。切替え先のジャー
ナルファイルが準備されていない状態として次のものが
考えられる。This is a situation that is unlikely to occur normally, but it can occur with a fairly high probability when the database system is operated for a long time. The following are possible statuses in which the journal file at the switchover destination has not been prepared.
【0010】 ジャーナルレコードを採取した後、ジ
ャーナルファイルの内容を別ファイルに退避をしていな
い。After collecting the journal record, the contents of the journal file are not saved in another file.
【0011】 磁気ディスク装置のジャーナルファイ
ルの領域を別の目的で使用し、ファイルが準備されてい
ない。The area of the journal file of the magnetic disk device is used for another purpose, and the file is not prepared.
【0012】 ジャーナルファイルのある磁気ディス
ク装置が媒体障害を起こし、復旧されていない。A magnetic disk device having a journal file has a medium failure and is not recovered.
【0013】また、自動的にジャーナルファイルの切替
えが行われたかどうかは、コマンドによりジャーナルフ
ァイルの使用状況を確認しなければわからず、切替えが
行われたときの使用済みのジャーナルファイルの退避を
即時に行うことてができず、十分にジャーナルファイル
の容量がないときは、使用済みジャーナルファイルの退
避を行う前に、ジャーナルファイルの先頭に戻ってしま
う。Whether or not the journal file is automatically switched is not known unless the usage status of the journal file is confirmed by a command. Immediately save the used journal file when the switching is performed. If the journal file does not have sufficient capacity and the journal file does not have sufficient capacity, it will return to the beginning of the journal file before saving the used journal file.
【0014】[0014]
【発明の目的】本発明の目的は、ジャーナルファイルの
切替えを必ず行えるようにして、長時間にわたるデータ
ベースシステムの運用を安全に行うことでができるよう
にしたデータベースジャーナル制御システムを提供する
ことである。SUMMARY OF THE INVENTION It is an object of the present invention to provide a database journal control system capable of safely operating a database system for a long time by always switching journal files. ..
【0015】[0015]
【発明の構成】本発明によるデータベースジャーナル制
御システムは、データベースジャーナルレコードを格納
するための複数のジャーナルファイルと、予め指定され
たジャーナルファイルへ前記ジャーナルレコードを書込
む手段と、書込み中のジャーナルファイルがオーバフロ
ーしたときに他のジャーナルファイルに自動的に切替え
る手段と、外部からの指示により書込み中のジャーナル
ファイルを他のジャーナルファイルに強制的に切替える
手段と、前記ジャーナルファイルの切替えの発生に応答
して、切替え直前の前記書込み中のジャーナルファイル
をセーブする手段とを含むことを特徴とする。The database journal control system according to the present invention comprises a plurality of journal files for storing database journal records, a means for writing the journal records to a predesignated journal file, and a journal file being written. A means to automatically switch to another journal file when overflow occurs, a means to forcibly switch the journal file being written to another journal file by an external instruction, and a means to respond to the occurrence of the journal file switching. , Means for saving the journal file being written immediately before switching.
【0016】[0016]
【発明の作用】本発明のデータベースジャーナル制御方
式では、ジャーナル環境設定手段が使用するジャーナル
ファイルの環境を事前に設定しておき、ジャーナルファ
イル初期化手段がジャーナル環境設定手段により環境が
設定されたジャーナルファイルを出力可能な状態にし、
ジャーナルレコード出力手段がジャーナルファイル初期
化手段によって準備されたジャーナルファイルにジャー
ナルレコードを出力し、ジャーナルファイル自動スワッ
プ手段がジャーナルレコード出力手段により出力中のジ
ャーナルファイルがオーバフローしたときに次のジャー
ナルファイルに出力を切替える。According to the database journal control method of the present invention, the environment of the journal file used by the journal environment setting means is set in advance, and the journal file initialization means sets the environment by the journal environment setting means. Make the file ready for output,
The journal record output means outputs the journal record to the journal file prepared by the journal file initialization means, and the journal file automatic swap means outputs to the next journal file when the journal file output means overflows the journal file being output. Switch.
【0017】また、ジャーナルファイル強制スワップ手
段がコマンドによりジャーナルレコード出力手段による
ジャーナルレコードの出力先のジャーナルファイルを強
制的に切替え、自動ジョブ起動手段がジャーナルファイ
ル強制スワップ手段およびジャーナルファイル自動スワ
ップ手段により、ジャーナルファイルの切替えが行われ
たときに、ジャーナルファイル退避手段を起動して、こ
のジャーナルファイル退避手段がジャーナルファイル強
制スワップ手段およびジャーナルファイル自動スワップ
手段により切替えられた出力済みのジャーナルファイル
をセーブして再度使用可能とする。Further, the journal file forced swap means forcibly switches the journal file output destination of the journal record by the journal record output means by a command, and the automatic job starting means uses the journal file forced swap means and the journal file automatic swap means. When the journal files are switched, the journal file save means is started, and this journal file save means saves the output journal files that have been switched by the journal file forced swap means and the journal file automatic swap means. Reusable.
【0018】[0018]
【実施例】次に、本発明の実施例について図面を参照し
て詳細に説明する。Embodiments of the present invention will now be described in detail with reference to the drawings.
【0019】図1は本発明の一実施例の構成を示すブロ
ック図である。本実施例のデータベースジャーナル制御
システムは、ジャーナル環境設定手段1と、ジャーナル
ファイル初期化手段2と、ジャーナルレコード出力手段
3と、ジャーナルファイル自動スワップ手段4と、ジャ
ーナルファイル退避手段5と、ジャーナルファイル強制
スワップ手段6と、自動ジョブ起動手段7と、アプリケ
ーションプログラム11と、データベース操作機構12
と、データベースファイル13と、コンソール14と、
磁気テープ装置15と、ジャーナルファイル#1〜#4
とから構成されている。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. The database journal control system according to this embodiment includes a journal environment setting unit 1, a journal file initializing unit 2, a journal record output unit 3, a journal file automatic swapping unit 4, a journal file saving unit 5, and a journal file forcing. Swap means 6, automatic job starting means 7, application program 11, and database operation mechanism 12
, Database file 13, console 14,
Magnetic tape device 15 and journal files # 1 to # 4
It consists of and.
【0020】ジャーナル環境設定手段1は、データベー
スシステムでジャーナルを採取して運用するときに、事
前にジャーナルの環境を設定する手段であり、ジャーナ
ルファイルの個数を指定し、指定した個数分のジャーナ
ルファイルのカタログ登録を行う。カタログ登録とは、
ジャーナルファイルがアロケーションされる磁気ディス
ク装置の媒体名とファイル名とを登録することである。
本例では、ジャーナル環境設定手段1は、ジャーナルフ
ァイルとしてジャーナルファイル#1〜#4を設定して
いる。The journal environment setting means 1 is means for setting the journal environment in advance when collecting and operating journals in the database system, by designating the number of journal files, and by specifying the specified number of journal files. Register the catalog of. What is catalog registration?
To register the medium name and file name of the magnetic disk device to which the journal file is allocated.
In this example, the journal environment setting means 1 sets journal files # 1 to # 4 as journal files.
【0021】ジャーナルファイル初期化手段2はジャー
ナル環境設定手段1によって指定された個数分のジャー
ナルファイルを初期化する。初期化とは、ジャーナルフ
ァイルの領域を確保することと、ジャーナルファイルの
先頭ブロックに制御情報を書込むことである。本例で
は、ジャーナルファイル初期化手段2により、ジャーナ
ルファイル#1〜#4の領域が確保され、先頭ブロック
に制御情報が書かれている。The journal file initialization means 2 initializes the number of journal files designated by the journal environment setting means 1. Initialization means securing a journal file area and writing control information in the first block of the journal file. In this example, the journal file initialization means 2 secures the areas of the journal files # 1 to # 4, and the control information is written in the head block.
【0022】なお、ジャーナルファイル初期化手段2に
よるジャーナルファイルの初期化は、ジャーナル環境設
定手段1によって設定されたすべてのジャーナルファイ
ルについて事前に行っておく必要はなく、ジャーナルレ
コード出力手段3がジャーナルレコードを出力する前ま
で行っておけばよい。It is not necessary to initialize the journal file by the journal file initializing means 2 for all the journal files set by the journal environment setting means 1, and the journal record output means 3 will set the journal records. Just go before you output.
【0023】ジャーナルレコード出力手段3はジャーナ
ルファイル初期化手段2によって準備されたジャーナル
ファイルにジャーナルレコードを出力する手段である。The journal record output means 3 is means for outputting a journal record to the journal file prepared by the journal file initialization means 2.
【0024】ジャーナルファイル自動スワップ手段4
は、ジャーナルレコード出力手段3により出力中のジャ
ーナルファイルがオーバフローしたときに次のジャーナ
ルファイルに出力を切替える手段である。Journal file automatic swap means 4
Is a means for switching the output to the next journal file when the journal file being output by the journal record output means 3 overflows.
【0025】ジャーナルファイル退避手段5は、ジャー
ナルファイル自動スワップ手段4およびジャーナルファ
イル強制スワップ手段6により切替えられた出力済みの
ジャーナルファイルを磁気テープ装置15にセーブして
再度使用可能とする手段である。The journal file saving means 5 is means for saving the output journal file switched by the journal file automatic swapping means 4 and the journal file forced swapping means 6 in the magnetic tape device 15 and making it available again.
【0026】ジャーナルファイル強制スワップ手段6
は、オペレータがコンソール14から投入したコマンド
によりジャーナルレコード出力手段3によるジャーナル
レコードの出力先のジャーナルファイルを強制的に切替
える手段である。Journal file forced swap means 6
Is a means for forcibly switching the journal file output destination of the journal record by the journal record output means 3 by a command entered from the console 14 by the operator.
【0027】自動ジョブ起動手段7は、ジャーナルファ
イル自動スワップ手段4およびジャーナルファイル強制
スワップ手段6によりジャーナルファイルの切替えが行
われたときに、ジャーナルファイル退避手段5を自動的
に起動し、コンソール14に磁気テープの磁気テープ装
置15へのマウント情報を通知する手段である。The automatic job activating means 7 automatically activates the journal file saving means 5 when the journal file is switched by the journal file automatic swapping means 4 and the journal file compulsory swapping means 6 and causes the console 14 to operate. It is means for notifying the mount information of the magnetic tape to the magnetic tape device 15.
【0028】次に、このように構成された本実施例の動
作について説明する。アプリケーションプログラム11
がデータベースファイル13に対して更新要求を行う
と、データベース操作機構12がその要求を解析し、デ
ータベースファイル13を更新する。この際、データベ
ース操作機構12はデータベースファイル13の更新後
の状態をジャーナルレコード出力手段3に通知する。Next, the operation of this embodiment thus constructed will be described. Application program 11
When an update request is made to the database file 13, the database operation mechanism 12 analyzes the request and updates the database file 13. At this time, the database operation mechanism 12 notifies the journal record output means 3 of the updated state of the database file 13.
【0029】ジャーナルレコード出力手段3はデータベ
ース操作機構12から通知を受けると、ジャーナル環境
設定手段1により設定されたジャーナルファイルのうち
の最初のジャーナルファイル、つまりジャーナルファイ
ル#1にジャーナルレコードの出力を行う。Upon receiving the notification from the database operation mechanism 12, the journal record output means 3 outputs the journal record to the first journal file among the journal files set by the journal environment setting means 1, that is, the journal file # 1. ..
【0030】ジャーナルレコード出力手段3はデータベ
ース操作機構12からの通知に基づき、ジャーナルファ
イル#1にジャーナルレコードを繰返し出力する。ジャ
ーナルレコードの出力により、ジャーナルファイル#1
がオーバフローすることを検出すると、ジャーナルレコ
ード出力手段3はジャーナルファイル自動スワップ手段
4にジャーナルファイルの切替え要求を通知する。The journal record output means 3 repeatedly outputs the journal record to the journal file # 1 based on the notification from the database operation mechanism 12. Journal file # 1 by output of journal record
When it detects that the file overflows, the journal record output means 3 notifies the journal file automatic swapping means 4 of the journal file switching request.
【0031】ジャーナルレコード出力手段3からジャー
ナルファイルの切替え要求の通知を受けたジャーナル自
動スワップ手段4は、ジャーナル環境設定手段1によっ
てカタログ登録された情報に基づき、ジャーナルファイ
ル#1の次に使用すべき、ジャーナルファイル#2のカ
タログ情報を得る。The journal automatic swap means 4 which has received the notification of the journal file switching request from the journal record output means 3 should be used next to the journal file # 1 based on the information registered in the catalog by the journal environment setting means 1. , Get catalog information of journal file # 2.
【0032】次に、ジャーナルファイル自動スワップ手
段4はジャーナルファイル#2をオープンしてジャーナ
ル出力可能な状態にし、ジャーナルファイル#1をクロ
ーズして資源を解放する。続いて、ジャーナルファイル
自動スワップ手段4は、ジャーナルレコード出力手段3
および自動ジョブ起動手段7にジャーナルファイルの切
替えが完了したことを通知する。Next, the journal file automatic swap means 4 opens the journal file # 2 to make it possible to output the journal, closes the journal file # 1 and releases the resources. Subsequently, the journal file automatic swap means 4 causes the journal record output means 3
And it notifies the automatic job starting means 7 that the switching of the journal file is completed.
【0033】ジャーナルレコード出力手段3は、ジャー
ナル自動スワップ手段4からジャーナルファイルの切替
えが完了したという通知を受けると、ジャーナルレコー
ドの出力をジャーナルファイル#2に行う。When the journal record output means 3 is notified by the journal automatic swap means 4 that the journal file switching is completed, it outputs the journal record to the journal file # 2.
【0034】自動ジョブ起動手段7は、ジャーナルファ
イル自動スワップ手段4から切替えが完了したという通
知を受けると、ジャーナルファイル退避手段5を起動し
コンソール14に磁気テープの磁気テープ装置15への
マウント情報を通知する。このマウント情報の通知はコ
ンソール14上に、赤色で表示しオペレータの注意を喚
起する。このマウント情報の通知はオペレータが退避用
の磁気テープをマウントするまで消えない。オペレータ
が磁気テープを磁気テープ装置15にマウントすると、
ジャーナルファイル退避手段5によって、ジャーナルフ
ァイル#1の内容を磁気テープ装置15に退避する。When the automatic job starting means 7 is notified by the journal file automatic swapping means 4 that the switching is completed, the automatic job starting means 7 starts the journal file saving means 5 and provides the console 14 with the mount information of the magnetic tape on the magnetic tape device 15. Notice. This mount information notification is displayed in red on the console 14 to call the operator's attention. This notification of mount information does not disappear until the operator mounts the evacuation magnetic tape. When the operator mounts the magnetic tape on the magnetic tape device 15,
The journal file saving means 5 saves the contents of the journal file # 1 in the magnetic tape device 15.
【0035】以上の切替えおよび退避処理は、ジャーナ
ルファイル#2のオーバフローが検出されると、ジャー
ナルファイル#3に切替わりジャーナルファイル#2の
内容が退避され、以下同様に、ジャーナルファイル#3
からジャーナルファイル#4へ、また、ジャーナルファ
イル#4からジャーナルファイル#1へと順次行われ
る。In the above switching and saving processing, when the overflow of the journal file # 2 is detected, the contents are switched to the journal file # 3 and the contents of the journal file # 2 are saved.
To journal file # 4, and from journal file # 4 to journal file # 1.
【0036】いま、ジャーナルレコード出力手段3がジ
ャーナルファイル#1にジャーナルレコードを出力中と
仮定した場合、次に出力が予定されているジャーナルフ
ァイルはジャーナルファイル#2である。このときに、
ジャーナルファイル#2をアロケーションしている磁気
ディスク装置が媒体障害を起こしていて使用できない状
態で、またジャーナルファイル#2をアロケーションす
るだけの容量が別の磁気ディスク装置にないときに、オ
ペレータはコンソール14からジャーナルファイル#3
への強制切替え要求をジャーナルファイル強制スワップ
手段6に通知する。Now, assuming that the journal record output means 3 is outputting a journal record to the journal file # 1, the journal file scheduled to be output next is the journal file # 2. At this time,
When the magnetic disk device allocating the journal file # 2 is in a state of being unusable due to a medium failure, and when another magnetic disk device does not have enough capacity to allocate the journal file # 2, the operator operates the console 14 From journal file # 3
The journal file compulsory swap means 6 is notified of the compulsory switching request to the journal file.
【0037】コンソール14から強制切替え要求の通知
を受けたジャーナルファイル強制スワップ手段6は、ジ
ャーナルレコード出力手段3にジャーナルファイル#1
へのジャーナルレコードの出力を中止するように指示
し、ジャーナルファイル#3のカタログ情報をジャーナ
ル環境設定手段1から得て、ジャーナルファイル#3を
オープンしてジャーナルレコードが出力できる状態にす
る。The journal file forced swap means 6 which receives the notification of the forced switching request from the console 14 sends the journal file # 1 to the journal record output means 3.
To output the journal record to the journal file, the catalog information of the journal file # 3 is obtained from the journal environment setting means 1, and the journal file # 3 is opened so that the journal record can be output.
【0038】次に、ジャーナルファイル強制スワップ手
段6はジャーナルファイル#1をクローズし資源を解放
する。ジャーナルファイルのスワップが完了すると、そ
の旨をジャーナルレコード出力手段3および自動ジョブ
起動手段7に通知する。Next, the journal file forced swap means 6 closes the journal file # 1 and releases the resources. When the swap of the journal files is completed, the fact is notified to the journal record output means 3 and the automatic job starting means 7.
【0039】ジャーナルファイル強制スワップ手段6か
らの切替え完了の通知を受けジャーナルレコード出力手
段3は、ジャーナルファイル自動スワップ手段4からの
切替え完了の通知を受けたときと同様に、ジャーナルフ
ァイル#3へのジャーナルレコードの出力を開始する。Upon receiving the notification of the completion of switching from the journal file forced swap means 6, the journal record output means 3 transfers to the journal file # 3 in the same manner as when it receives the notification of completion of switching from the journal file automatic swap means 4. Start outputting journal records.
【0040】また、ジャーナルファイル強制スワップ手
段6からの切替え完了の通知を受けた自動ジョブ起動手
段7が、ジャーナルファイル退避手段5によって、ジャ
ーナルファイル#1の内容の磁気テープ装置15への退
避を行う。Upon receipt of the notification of completion of switching from the journal file forced swapping means 6, the automatic job starting means 7 causes the journal file saving means 5 to save the contents of the journal file # 1 to the magnetic tape device 15. ..
【0041】[0041]
【発明の効果】以上述べた如く、本発明によれば、ジャ
ーナルファイルがオーバフローしたときに自動的に他の
ジャーナルファイルに切替え、また外部からのコマンド
により強制的に他のジャーナルファイルに切替えるよう
にし、切替え直前のジャーナルファイルは磁気テープ等
にセーブすることで、ジャーナルファイルシステムの種
々の障害によってもジャーナルファイルを切替えること
ができるので、データベースの運用を止めることなくサ
ービスの提供が継続可能となるという効果がある。As described above, according to the present invention, when the journal file overflows, the journal file is automatically switched to another journal file, and the journal file is forcibly switched to another journal file by an external command. By saving the journal file just before switching to a magnetic tape, etc., the journal file can be switched due to various failures of the journal file system, so that the service can be continued without stopping the database operation. effective.
【0042】今後、データベースシステムは増々長時間
にわたりサービスを提供し続けていくと考えられ、よっ
てジャーナルファイルの障害でデータベースシステムの
運用を止めずに済むことは、極めて重要となり、本発明
による効果は大きなものといえる。It is considered that the database system will continue to provide the service for a long time in the future. Therefore, it is extremely important not to stop the operation of the database system due to the failure of the journal file. It's a big one.
【図1】本発明の実施例のシステムブロック図である。FIG. 1 is a system block diagram of an embodiment of the present invention.
#1〜#4 ジャーナルファイル 1 ジャーナル環境設定手段 2 ジャーナルファイル初期化手段 3 ジャーナルレコード出力手段 4 ジャーナルファイル自動スワップ手段 5 ジャーナルファイル退避手段 6 ジャーナルファイル強制スワップ手段 7 自動ジョブ起動手段 15 磁気テープ装置 # 1 to # 4 journal file 1 journal environment setting means 2 journal file initialization means 3 journal record output means 4 journal file automatic swapping means 5 journal file saving means 6 journal file forced swapping means 7 automatic job starting means 15 magnetic tape device
Claims (1)
するための複数のジャーナルファイルと、予め指定され
たジャーナルファイルへ前記ジャーナルレコードを書込
む手段と、書込み中のジャーナルファイルがオーバフロ
ーしたときに他のジャーナルファイルに自動的に切替え
る手段と、外部からの指示により書込み中のジャーナル
ファイルを他のジャーナルファイルに強制的に切替える
手段と、前記ジャーナルファイルの切替えの発生に応答
して、切替え直前の前記書込み中のジャーナルファイル
をセーブする手段とを含むことを特徴とするデータベー
スジャーナル制御システム。Claim: What is claimed is: 1. A plurality of journal files for storing database journal records, a unit for writing the journal records to a predesignated journal file, and a journal file being written overflows. Means for automatically switching to another journal file, means for forcibly switching the journal file being written to another journal file in response to an external instruction, and immediately before switching in response to the occurrence of the journal file switching. And a means for saving the journal file being written.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3181867A JPH052517A (en) | 1991-06-26 | 1991-06-26 | Data base journal control system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3181867A JPH052517A (en) | 1991-06-26 | 1991-06-26 | Data base journal control system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH052517A true JPH052517A (en) | 1993-01-08 |
Family
ID=16108235
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3181867A Pending JPH052517A (en) | 1991-06-26 | 1991-06-26 | Data base journal control system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH052517A (en) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH06259290A (en) * | 1993-03-03 | 1994-09-16 | Toshiba Corp | Acquiring system for check point journal |
| JP2001306368A (en) * | 2000-04-07 | 2001-11-02 | Digitalsecu Co Ltd | Device and method for storing log data of communication network |
| JP2002024068A (en) * | 2000-07-06 | 2002-01-25 | Nec Corp | Journal merge control system and journal merge control method |
| US7111136B2 (en) | 2003-06-26 | 2006-09-19 | Hitachi, Ltd. | Method and apparatus for backup and recovery system using storage based journaling |
| US7167880B2 (en) | 2004-04-14 | 2007-01-23 | Hitachi, Ltd. | Method and apparatus for avoiding journal overflow on backup and recovery system using storage based journaling |
| US7398422B2 (en) | 2003-06-26 | 2008-07-08 | Hitachi, Ltd. | Method and apparatus for data recovery system using storage based journaling |
| US7555505B2 (en) | 2003-07-25 | 2009-06-30 | Hitachi, Ltd. | Method and apparatus for synchronizing applications for data recovery using storage based journaling |
| US8145603B2 (en) | 2003-07-16 | 2012-03-27 | Hitachi, Ltd. | Method and apparatus for data recovery using storage based journaling |
| US8943025B2 (en) | 2003-06-27 | 2015-01-27 | Hitachi, Ltd. | Data replication among storage systems |
-
1991
- 1991-06-26 JP JP3181867A patent/JPH052517A/en active Pending
Cited By (20)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH06259290A (en) * | 1993-03-03 | 1994-09-16 | Toshiba Corp | Acquiring system for check point journal |
| JP2001306368A (en) * | 2000-04-07 | 2001-11-02 | Digitalsecu Co Ltd | Device and method for storing log data of communication network |
| JP2002024068A (en) * | 2000-07-06 | 2002-01-25 | Nec Corp | Journal merge control system and journal merge control method |
| US8234473B2 (en) | 2003-06-26 | 2012-07-31 | Hitachi, Ltd. | Method and apparatus for backup and recovery using storage based journaling |
| US7111136B2 (en) | 2003-06-26 | 2006-09-19 | Hitachi, Ltd. | Method and apparatus for backup and recovery system using storage based journaling |
| US9092379B2 (en) | 2003-06-26 | 2015-07-28 | Hitachi, Ltd. | Method and apparatus for backup and recovery using storage based journaling |
| US7243197B2 (en) | 2003-06-26 | 2007-07-10 | Hitachi, Ltd. | Method and apparatus for backup and recovery using storage based journaling |
| US7398422B2 (en) | 2003-06-26 | 2008-07-08 | Hitachi, Ltd. | Method and apparatus for data recovery system using storage based journaling |
| US7162601B2 (en) | 2003-06-26 | 2007-01-09 | Hitachi, Ltd. | Method and apparatus for backup and recovery system using storage based journaling |
| US7761741B2 (en) | 2003-06-26 | 2010-07-20 | Hitachi, Ltd. | Method and apparatus for data recovery system using storage based journaling |
| US7783848B2 (en) | 2003-06-26 | 2010-08-24 | Hitachi, Ltd. | Method and apparatus for backup and recovery using storage based journaling |
| US7979741B2 (en) | 2003-06-26 | 2011-07-12 | Hitachi, Ltd. | Method and apparatus for data recovery system using storage based journaling |
| US8943025B2 (en) | 2003-06-27 | 2015-01-27 | Hitachi, Ltd. | Data replication among storage systems |
| US8868507B2 (en) | 2003-07-16 | 2014-10-21 | Hitachi, Ltd. | Method and apparatus for data recovery using storage based journaling |
| US8145603B2 (en) | 2003-07-16 | 2012-03-27 | Hitachi, Ltd. | Method and apparatus for data recovery using storage based journaling |
| US7555505B2 (en) | 2003-07-25 | 2009-06-30 | Hitachi, Ltd. | Method and apparatus for synchronizing applications for data recovery using storage based journaling |
| US8296265B2 (en) | 2003-07-25 | 2012-10-23 | Hitachi, Ltd. | Method and apparatus for synchronizing applications for data recovery using storage based journaling |
| US8005796B2 (en) | 2003-07-25 | 2011-08-23 | Hitachi, Ltd. | Method and apparatus for synchronizing applications for data recovery using storage based journaling |
| US7574462B2 (en) | 2004-04-14 | 2009-08-11 | Hitachi, Ltd. | Method and apparatus for avoiding journal overflow on backup and recovery system using storage based journaling |
| US7167880B2 (en) | 2004-04-14 | 2007-01-23 | Hitachi, Ltd. | Method and apparatus for avoiding journal overflow on backup and recovery system using storage based journaling |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20020065999A1 (en) | Data backup system, method therefor and data storage | |
| GB2234373A (en) | Storage back-up system | |
| JP2002297456A (en) | Backup processing method, its execution system, and its processing program | |
| EP0483174B1 (en) | A method of operating a data processing system | |
| US6654880B1 (en) | Method and apparatus for reducing system down time by restarting system using a primary memory before dumping contents of a standby memory to external storage | |
| JPH052517A (en) | Data base journal control system | |
| JPH07253917A (en) | File backup processing method and computer system | |
| JPH1153123A (en) | Backup system | |
| JPH10154087A (en) | Memory contents dump processing method | |
| JP3493368B2 (en) | Communications system | |
| JPS629929B2 (en) | ||
| JPH07121418A (en) | File management method | |
| JP4167000B2 (en) | Backup system in wide area storage area network | |
| JPH0385650A (en) | Disk volume restoration system | |
| JP2666426B2 (en) | Duplex auxiliary storage device | |
| JPH07160651A (en) | Backup mode for system data | |
| JPH0563824B2 (en) | ||
| JP2002207642A (en) | Data backup system, data backup method, and computer program | |
| JPH03252834A (en) | Control system for data base journal | |
| JPH04328649A (en) | Method and device for temporarily storing deleted data | |
| JP2005018484A (en) | Backup device | |
| JPH0736761A (en) | Online reliable copy processing method for external storage device | |
| JPH03269719A (en) | Back-up adaptor for disk device | |
| JPS6019528B2 (en) | Automatic volume recognition processing method | |
| JPH05173863A (en) | Data base recovery control system |