JPH03266045A - Data base system - Google Patents

Data base system

Info

Publication number
JPH03266045A
JPH03266045A JP2064416A JP6441690A JPH03266045A JP H03266045 A JPH03266045 A JP H03266045A JP 2064416 A JP2064416 A JP 2064416A JP 6441690 A JP6441690 A JP 6441690A JP H03266045 A JPH03266045 A JP H03266045A
Authority
JP
Japan
Prior art keywords
database
journal
journal file
update
cpu
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
JP2064416A
Other languages
Japanese (ja)
Inventor
Kazunori Shimakawa
島川 和典
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2064416A priority Critical patent/JPH03266045A/en
Publication of JPH03266045A publication Critical patent/JPH03266045A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To correctly restore a data base to its original state even if a system fault is generated at the time when an additional processor is updating the data base by providing an auxiliary journal file separately from a journal file. CONSTITUTION:In the case data base updating by an addition processor 21 for executing data base updating requested from a process 13 on a main storage 12 instead of a CPU 11 is executed, its journal is stored in an auxiliary journal file 22, and in a journal file 17, an auxiliary journal file descriptor 18 is stored in a page secured by the CPU 11. Accordingly, even if journaling by the CPU 11 is executed in the course of journaling of the processor 21, the sequence of a journal (or a descriptor) on the journal file 17 is held correctly, and the breakdown is avoided. In such a way, even if a system fault is generated in the course of data base updating of the additional processor 21, the data base is restored correctly to its original state.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、データベースを扱うデータベースシステム
に係り、特にホストCPUに付加されるデータベースプ
ロセッサによりデータベース更新を行う際のりカバリデ
ータのジャーナリング方式に関する。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Field of Application) The present invention relates to a database system that handles databases, and in particular, the invention relates to a database system that handles databases, and in particular, to update the database by a database processor attached to a host CPU. Regarding journaling methods.

(従来の技術) 従来、データベースシステムは第4図に示すように構成
されるのが一般的である。第4図において、41はシス
テムの中枢を成すCPUである。
(Prior Art) Conventionally, a database system is generally configured as shown in FIG. In FIG. 4, 41 is a CPU that forms the core of the system.

CPU41は、主記憶42上に常駐するプロセス群のう
ちの1つ(ここではプロセス43)からデータベースフ
ァイル44の更新依頼をシステムバス46を介して受取
ると、同ファイル44の更新を行う。これにより、デー
タベースファイル44を構成する(データ格納単位であ
る)多数のページのうちの幾つか、例えばページ45i
、 45j、 45kが順次更新される。この腔、CP
U41は、ページ45i、45j。
When the CPU 41 receives a request to update the database file 44 from one of the processes residing on the main memory 42 (here, the process 43) via the system bus 46, the CPU 41 updates the file 44. As a result, some of the many pages (which are data storage units) constituting the database file 44, for example, page 45i.
, 45j, and 45k are updated sequentially. This cavity, CP
U41 has pages 45i and 45j.

45にの更新前のイメージ(ビフォアイメージ)をジャ
ーナルファイル47にジャーナルデータ481゜4sj
、48にとして順次コピーしておく。この動作はジャー
ナリングと呼ばれる。もし、この時点でシステムダウン
などのシステム障害が発生した場合には、CPU4Lは
システム再立上げ時に、ジャーナルファイル47中のジ
ャーナルデータ481゜48j、48kをデータベース
ファイル44のページ45i、 45j、 45kにコ
ピーする。これにより、プロセス43の依頼により更新
中だった論理的に壊れていたデータベースファイル44
を正しい状態にリカバリ(回復)することができる。
Journal data 481°4sj to journal file 47 the image before update to 45 (before image)
, 48 in order. This operation is called journaling. If a system failure such as a system down occurs at this point, the CPU 4L transfers the journal data 481° 48j, 48k in the journal file 47 to pages 45i, 45j, 45k of the database file 44 when restarting the system. make a copy. As a result, the logically corrupted database file 44 that was being updated at the request of the process 43
can be recovered to the correct state.

上記した第4図のシステムでは、CPU41がデータベ
ース更新処理を行うため、CPU41に多大な負荷がか
かる。そこでCPU41の負荷を軽減するために、第5
図に示すように、プロセス43からの更新依頼によりC
PU41に代わってデータベースファイル44の更新を
行う付加プロセッサ(データベースプロセッサ) 51
を設けることが考えられる。付加プロセッサ51により
データベース更新を行うためには、上記したジャーナリ
ングをCPU41に代わって行わなければならない。一
方、システムには付加プロセッサ51を用いないプロセ
ス群も存在することから、CPU41によるジャーナリ
ングも必要となる。したがって第5図のシステムでは、
CPU41と付加プロセッサ51とが並行してジャーナ
リングを行う場合が発生し得る。この場合、ジャーナル
データの破壊を招き、付加プロセッサ51のデータベー
ス更新中にシステム障害が発生すると、リカバリができ
なくなる。上記のジャーナルデータ破壊を防止するには
、例えばCPU41が付加プロセッサ51のデータベー
ス更新処理終了を待つことが考えられるが、それでは高
速処理が困難となる。
In the system shown in FIG. 4 described above, since the CPU 41 performs database update processing, a large load is placed on the CPU 41. Therefore, in order to reduce the load on the CPU 41, the fifth
As shown in the figure, C
Additional processor (database processor) 51 that updates the database file 44 in place of the PU 41
It is conceivable to provide a In order to update the database by the additional processor 51, the journaling described above must be performed in place of the CPU 41. On the other hand, since there are process groups in the system that do not use the additional processor 51, journaling by the CPU 41 is also required. Therefore, in the system shown in Figure 5,
A case may occur in which the CPU 41 and the additional processor 51 perform journaling in parallel. In this case, if a system failure occurs while the database of the additional processor 51 is being updated, the journal data will be destroyed, and recovery will not be possible. In order to prevent the journal data from being destroyed, for example, the CPU 41 may wait for the additional processor 51 to complete the database update process, but this would make high-speed processing difficult.

(発明が解決しようとする課題) 上記したようにデータベース更新処理の高速化のために
専用のデータベースプロセッサ(付加プロセッサ)が付
加された従来のデータベースシステムでは、CPU (
ホストCPU)とデータベースプロセッサとが並行して
ジャーナリングを行う状態が発生し得るが、この状態が
発生するとジャーナルデータの破壊を招き、データベー
スプロセッサがデータベース更新中にシステム障害が発
生した場合にはデータベースを元の状態に復元すること
が不可能となる問題があった。
(Problems to be Solved by the Invention) As described above, in the conventional database system in which a dedicated database processor (additional processor) is added to speed up database update processing, the CPU (
A state may occur in which the host CPU (host CPU) and database processor perform journaling in parallel, but if this state occurs, the journal data will be destroyed, and if a system failure occurs while the database processor is updating the database, the database processor will not be able to update the database. There was a problem that it was impossible to restore to the original state.

この発明は上記事情に鑑みてなされたものでその目的は
、CPUとは別に設けられたデータベースプロセッサが
データベース更新中にシステム障害が発生しても、デー
タベースを元の状態に正しく復元できるデータベースシ
ステムを提供することにある。
This invention was made in view of the above circumstances, and its purpose is to provide a database system in which a database processor provided separately from the CPU can correctly restore the database to its original state even if a system failure occurs while updating the database. It is about providing.

[発明の構成] (課題を解決するための手段) この発明は、少くとも1つのデータベースプロセッサ(
付加プロセッサ)がCPU (ホストCPU)とは別に
設けられたデータベースシステムにおいて、ジャーナル
ファイルとは別に補助ジャーナルファイルを設けると共
に、プロセスからのデータベース更新依頼に応じてジャ
ーナルファイルの空きページを確保し、そのページの位
置情報と更新依頼とをデータベースプロセッサの1つに
渡して更新要求を行うCPU内の更新要求手段と、この
更新要求手段からの更新要求に応じてデータベース更新
処理を行い、その更新に係わるジャーナルを補助ジャー
ナルファイルに出力すると共に、この出力したジャーナ
ルを補助ジャーナルファイル上で特定するためのディス
クリプタを更新要求手段によって確保されたジャーナル
ファイル上の空きページに設定するデータベースプロセ
ッサ内の更新処理手段とを設け、システム障害発生後の
再立上げ時に、CPUが上記ジャーナルファイルからジ
ャーナリングされているページを順次入力し、入力した
ページがディスクリプタの場合には同ディスクリプタに
より特定されるジャーナルを上記補助ジャーナルファイ
ルから入力してデータベースリカバリを行うことを特徴
とするものである。
[Structure of the Invention] (Means for Solving the Problems) This invention provides at least one database processor (
In a database system where an attached processor) is provided separately from the CPU (host CPU), an auxiliary journal file is provided separately from the journal file, and free pages are secured in the journal file in response to database update requests from processes. An update request means in the CPU that passes page position information and an update request to one of the database processors to request an update, and a database update process that performs a database update process in response to an update request from this update request means and is involved in the update. an update processing means within a database processor that outputs a journal to an auxiliary journal file and sets a descriptor for identifying the output journal on the auxiliary journal file in a free page on the journal file secured by the update request means; When restarting the system after a system failure occurs, the CPU sequentially inputs journaled pages from the above journal file, and if the input page is a descriptor, the journal specified by the descriptor is transferred to the above auxiliary journal file. The feature is that database recovery is performed by inputting data from

(作用) 上記の構成によれば、データベースプロセッサによるデ
ータベース更新が行われる場合には、そのジャーナルは
ジャーナルファイルではなくて補助ジャーナルファイル
に格納され、ジャーナルファイルには、そのジャーナル
のディスクリプタ(補助ジャーナルファイルディスクリ
プタ)がCPU内の更新要求手段によって確保されたペ
ージに格納される。したがって、1つのデータベースプ
ロセッサのジャーナリング中に、CPU或は他のデータ
ベースプロセッサによるジャーナリングが行われても、
ジャーナルファイル上でのジャーナル(またはディスク
リプタ)の順序は正しく保たれ、破壊されることはない
(Operation) According to the above configuration, when the database processor updates the database, the journal is stored in the auxiliary journal file instead of the journal file, and the journal file contains the journal descriptor (auxiliary journal file descriptor) is stored in a page secured by the update request means in the CPU. Therefore, even if journaling is performed by the CPU or another database processor while one database processor is journaling,
The order of journals (or descriptors) on the journal file is maintained correctly and cannot be corrupted.

(実施例) 第1図はこの発明の一実施例に係るデータベースシステ
ムのブロック構成図である。同図において、11はシス
テムの中枢を成すCPU (ホストCPU)、12は主
記憶、13は主記憶12上に常駐するプロセスである。
(Embodiment) FIG. 1 is a block diagram of a database system according to an embodiment of the present invention. In the figure, 11 is a CPU (host CPU) that forms the core of the system, 12 is a main memory, and 13 is a process residing on the main memory 12.

なお、他のプロセスについては省略されている。14は
多数のページにより構成されるデータベースファイル、
15i 、 15j 、 15にはデータベースファイ
ル14上の更新ページ、16はシステムバスである。シ
ステムバス16には、CPUII、主記憶12およびデ
ータベースファイル14の他に、後述するジャーナルフ
ァイル17、付加プロセッサ21および補助ジャーナル
ファイル22が接続されている。!7はCPUIIによ
るジャーナリングが行われるジャーナルファイル、18
はジャーナルファイル17上に確保されるページに設定
される補助ジャーナルファイルディスクリプタである。
Note that other processes are omitted. 14 is a database file composed of many pages;
15i, 15j, 15 are update pages on the database file 14, and 16 is a system bus. In addition to the CPU II, main memory 12, and database file 14, a journal file 17, an additional processor 21, and an auxiliary journal file 22, which will be described later, are connected to the system bus 16. ! 7 is a journal file in which journaling is performed by CPUII, 18
is an auxiliary journal file descriptor set in a page secured on the journal file 17.

このディスクリプタ18は、付加プロセッサ21の作る
補助ジャーナルファイル22上のジャーナルデータ列へ
のポインタとデータ数(ページ数)を有する。21は主
記憶12上のプロセスから依頼されたデータベース更新
をCPUIIに代わって実行する付加プロセッサ(デー
タベースプロセッサ)、22は付加プロセッサ21によ
るジャーナリングが行われる補助ジャーナルファイル、
231.233.23にはジャーナルデータ(ビフォア
イメージジャーナル)である。
This descriptor 18 has a pointer to the journal data string on the auxiliary journal file 22 created by the additional processor 21 and the number of data (number of pages). 21 is an additional processor (database processor) that executes a database update requested by a process on the main memory 12 on behalf of the CPU II; 22 is an auxiliary journal file on which journaling is performed by the additional processor 21;
231.233.23 is journal data (before image journal).

第2図は第1図のシステムにおけるデータベース更新時
の動作を説明するためのフローチャート、第3図は同じ
(データベースリカバリ時の動作を説明するためのフロ
ーチャートである。
FIG. 2 is a flowchart for explaining the operation at the time of database update in the system of FIG. 1, and FIG. 3 is a flowchart for explaining the same operation at the time of database recovery.

次に、この発明の一実施例の動作を、第1図乃至第3図
を参照して説明する。主記憶12上に常駐するプロセス
13からCPUIIに対し、データベースファイル14
の更新が依頼されると(第2図ステップS2)、CPU
IIはまずジャーナルファイル17上の空きの1ページ
を補助ジャーナルファイルディスクリプタ設定用に確保
する(第2図ステップS2)。次にCPUIIは、プロ
セス13からの更新依頼と確保した空きページのアドレ
スとを付加プロセッサ21に渡し、同プロセッサ21に
対する更新要求を行う(第2図ステップS3)。付加プ
ロセッサ21はCP IJ 11からの更新要求を受取
ると、同要求に応じてデータベースファイル14の例え
ばページ15i、 15j、 15にの更新を順次行う
と共に、この更新に際しては、更新に係わるジャーナル
(ここではページ15i、15j、15にのビフォアイ
メージジャーナルでとしてのジャーナルデータ23i 
、 23j 、 23k)を補助ジャーナルファイル2
2に順次出力する(i2図ステップS4)。そして付加
プロセッサ21は、出力したジャーナルの補助ジャーナ
ルファイル22上の開始ページアドレスとページ数(こ
こでは3ページ)を持つ補助ジャーナルファイルディス
クリプタ18を、CPU1lによって確保されたジャー
ナルファイル17上の空きページに設定する(第2図ス
テップS5)。
Next, the operation of one embodiment of the present invention will be explained with reference to FIGS. 1 to 3. A process 13 residing on the main memory 12 sends a database file 14 to the CPU II.
When an update is requested (step S2 in Figure 2), the CPU
II first reserves one free page on the journal file 17 for setting an auxiliary journal file descriptor (step S2 in FIG. 2). Next, the CPU II passes the update request from the process 13 and the address of the secured free page to the additional processor 21, and issues an update request to the processor 21 (step S3 in FIG. 2). When the additional processor 21 receives an update request from the CP IJ 11, it sequentially updates, for example, pages 15i, 15j, and 15 of the database file 14 in response to the request. Now, journal data 23i as before image journal on pages 15i, 15j, 15
, 23j, 23k) as auxiliary journal file 2
2 (Step S4 in Figure i2). The additional processor 21 then transfers the auxiliary journal file descriptor 18 having the start page address and number of pages (3 pages in this case) on the auxiliary journal file 22 of the output journal to an empty page on the journal file 17 secured by the CPU 1l. settings (step S5 in FIG. 2).

上記したように本実施例では、付加プロセッサ21によ
るジャーナリングは、ジャーナルファイル17ではなく
、補助ジャーナルファイル22に対して行われ、そのジ
ャーナルを指定するのに必要な情報だけが補助ジャーナ
ルファイルディスク、リプタ18として、ジャーナルフ
ァイル17、更に具体的に述べるならばCPUIIによ
って確保されたジャーナルファイル17上の空きページ
、に出力される。
As described above, in this embodiment, journaling by the additional processor 21 is performed not on the journal file 17 but on the auxiliary journal file 22, and only the information necessary to specify the journal is stored on the auxiliary journal file disk, printer. 18, it is output to the journal file 17, more specifically, to an empty page on the journal file 17 secured by CPU II.

したがって、プロセス13からの更新依頼に応じて付加
プロセッサ21がデータベース更新処理を行っている期
間中に、CPUIIが主記憶12上の他のプロセス群か
らの更新依頼を実行し、別のデータベースファイル14
の更新に伴うジャーナリングをジャーナルファイル17
に対して行っても、そのジャーナルが、付加プロセッサ
21によるジャーナリング動作によって破壊される虞は
ない。即ち本実施例によれば、CPUIIおよび付加プ
ロセッサ21によるジャーナリングを並行して行うこと
ができる。
Therefore, during the period when the additional processor 21 is performing database update processing in response to an update request from the process 13, the CPU II executes an update request from another process group on the main memory 12, and updates another database file 14.
Journal file 17
There is no risk that the journal will be destroyed by the journaling operation by the additional processor 21. That is, according to this embodiment, journaling by the CPU II and the additional processor 21 can be performed in parallel.

次に、システム障害が発生した後の再立上げ時における
データベースリカバリ処理について説明する。この場合
CPUIIは、まずジャーナルファイル17からジャー
ナリングされているページを順次入力しく第3図ステッ
プ811)、ジャーナルエンドに達していなければ、そ
のページが補助ジャーナルファイルディスクリプタ(1
8)であるか否かの判別を行う(第3図ステップS12
゜513)。もし、補助ジャーナルファイルディスクリ
プタ(18)でなければ、CPU11はそのページのデ
ータがジャーナルデータであるものとして、そのページ
のデータをデータベースファイル14の対応ページに上
書きする(第3図ステップ514)。CPUIIは、以
上の処理を、ジャーナルエンドに達するか、或は補助ジ
ャーナルファイルディスクリプタ(18)が現れるまで
繰返す。
Next, a description will be given of database recovery processing when restarting the system after a system failure occurs. In this case, the CPU II first sequentially inputs the journaled pages from the journal file 17 (step 811 in FIG.
8) (step S12 in FIG. 3).
゜513). If it is not the auxiliary journal file descriptor (18), the CPU 11 assumes that the data on that page is journal data, and overwrites the corresponding page in the database file 14 with the data on that page (step 514 in FIG. 3). The CPU II repeats the above processing until the journal end is reached or an auxiliary journal file descriptor (18) appears.

以上のようにしてデータベースファイル14へのジャー
ナルデータの上書き(データベース復元)が繰返され、
やがて補助ジャーナルファイルディスクリプタ18が設
定されているページがジャーナルファイル17からCP
UIIに入力されたものとする。c p u tiは、
補助ジャーナルファイルディスクリプタ18を入力する
と、同ディスクリプタ18から開始ページアドレスを取
出しく第3図ステップ515)、補助ジャーナルファイ
ル22から対応するページのデータ、即ちジャーナルデ
ータ(ここではジャーナルデータ231)を入力する<
13図ステップ516)。そしてCPU11は、入力し
たジャーナルデータ(23i)をデータベースファイル
14の対応ページに上書きする(第3図ステップ517
)。次にcptyttは、入力したディスクリプタ18
に記述されているページ数分のジャーナルデータの上書
きを終了したか否かを判断しく第3図ステップ518)
、ページ数に達していなければ、ステップS16に戻っ
て補助ジャーナルファイル22から次のページのデータ
(ここではジャーナルデータ23j)を入力する。この
入力ページデータは、データベースファイル14の対応
ページに上書きされる。以下同様にして、補助ジャーナ
ルファイルディスクリプタ18に記述されているページ
数分の補助ジャーナルファイル22上のジャーナルデー
タがデータベースファイル14に上書きされると、CP
UIIは再びステップSllを実行し、ジャーナルファ
イル17から次のページを入力する。
Overwriting of journal data (database restoration) to the database file 14 is repeated as described above.
Eventually, the page where the auxiliary journal file descriptor 18 is set will be transferred from the journal file 17 to the CP
It is assumed that the information has been input to the UII. c p u ti is
When the auxiliary journal file descriptor 18 is input, the start page address is extracted from the descriptor 18 (step 515 in FIG. 3), and the corresponding page data, that is, journal data (here, journal data 231) is input from the auxiliary journal file 22. <
Figure 13 step 516). Then, the CPU 11 overwrites the input journal data (23i) on the corresponding page of the database file 14 (step 517 in FIG. 3).
). Next, cptytt inputs the input descriptor 18
(Step 518 in Figure 3)
, if the number of pages has not been reached, the process returns to step S16 and data for the next page (here journal data 23j) is input from the auxiliary journal file 22. This input page data is overwritten on the corresponding page of the database file 14. Similarly, when the database file 14 is overwritten with journal data on the auxiliary journal file 22 for the number of pages described in the auxiliary journal file descriptor 18, the CP
The UII executes step Sll again and inputs the next page from the journal file 17.

そして、このページがジャーナルデータまたは補助ジャ
ーナルファイルディスクリプタのいずれでもない場合に
は、CPUIIはジャーナルエンドに達したものとして
、データベースリカバリ処理を終了する。
If this page is neither journal data nor auxiliary journal file descriptor, the CPU II assumes that the journal end has been reached and terminates the database recovery process.

なお、前記実施例では、論理障害のリカバリについて説
明したが、アフタイメージジャーナルを前記したビフォ
アイメージジャーナルと同様にジャーナリングすること
により、物理(メディア)障害のリカバリにも応用可能
である。また、前記実施例では、データベース処理の高
速化のために付加プロセッサ(データベースプロセッサ
)21が1台付加されたシステムに実施した場合につい
て説明したが、本発明は、データベース処理の一層の高
速化のためにデータベース更新処理を並行して行う複数
の付加プロセッサが付加されたシステムにも適用可能で
ある。このシステムでは、CPUIIは必ずしもデータ
ベース更新処理を行う必要はないため、データベース更
新処理の高速化を図りながら、CPUIIの負荷を一層
軽減することができる。
In the above embodiment, recovery from a logical failure has been described, but by journaling the after-image journal in the same manner as the before-image journal described above, the present invention can also be applied to recovery from a physical (media) failure. Further, in the above embodiment, a case was explained in which one additional processor (database processor) 21 was added in order to speed up database processing, but the present invention further speeds up database processing. Therefore, it is also applicable to a system with a plurality of additional processors that perform database update processing in parallel. In this system, since the CPU II does not necessarily need to perform database update processing, the load on the CPU II can be further reduced while speeding up the database update processing.

[発明の効果] 以上詳述したようにこの発明によれば、データベース更
新処理の高速化のためにCPU (ホストCPU)とは
別に設けられたデータベースプロセッサ(付加プロセッ
サ)がデータベース更新に伴うジャーナリングを行った
場合に、ジャーナルファイルが破壊されることを防止で
きるようになり、この結果データベースプロセッサのデ
ータベース更新中にシステム障害が発生してもデータベ
ースを元の状態に正しく復元することができる。
[Effects of the Invention] As detailed above, according to the present invention, a database processor (additional processor) provided separately from a CPU (host CPU) in order to speed up database update processing performs journaling associated with database updates. If this is done, the journal file can be prevented from being destroyed, and as a result, even if a system failure occurs while the database processor is updating the database, the database can be correctly restored to its original state.

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

第1図はこの発明の一実施例に係るデータベースシステ
ムのブロック構成図、第2図は同実施例におけるデータ
ベース更新時の動作を説明するためのフローチャート、
第3図は同実施例におけるデータベースリカバリ時の動
作を説明するためのフローチャート、第4図および第5
図は従来のデータベースシステムのブロック構成図であ
る。 11・・・CPU、12・・・主記憶、13・・・プロ
セス、14・・・データベースファイル、lB・・・シ
ステムバス、17・・・ジャーナルファイル、1B・・
・補助ジャーナルファイルディスクリプタ、21・・・
付加プロセッサ(データベースプロセッサ)、22・・
・補助ジャーナルファイル、23i、 23j、 21
k・・・ジャーナルデータ。
FIG. 1 is a block configuration diagram of a database system according to an embodiment of the present invention, and FIG. 2 is a flowchart for explaining the operation at the time of database update in the embodiment.
FIG. 3 is a flowchart for explaining the operation during database recovery in the same embodiment, and FIGS.
The figure is a block diagram of a conventional database system. 11...CPU, 12...Main memory, 13...Process, 14...Database file, 1B...System bus, 17...Journal file, 1B...
- Auxiliary journal file descriptor, 21...
Additional processor (database processor), 22...
・Auxiliary journal file, 23i, 23j, 21
k...Journal data.

Claims (1)

【特許請求の範囲】 データベース更新処理の高速化のために、システムの中
枢をなすCPUとは別にデータベース更新処理を行う少
くとも1つのデータベースプロセッサを備えたデータベ
ースシステムにおいて、データベース更新中にシステム
障害が発生した場合のリカバリに供されるジャーナルフ
ァイルと、 上記データベースプロセッサによるデータベース更新に
係わるジャーナルを格納するための補助ジャーナルファ
イルと、 プロセスからのデータベース更新依頼に応じて、上記ジ
ャーナルファイルの空きページを確保し、そのページ情
報と上記更新依頼とを上記データベースプロセッサの1
つに渡して更新要求を行う上記CPU内の更新要求手段
と、 この更新要求手段からの更新要求に応じてデータベース
更新処理を行い、その更新に係わるジャーナルを上記補
助ジャーナルファイルに出力すると共に、この出力した
ジャーナルを上記補助ジャーナルファイル上で特定する
ためのディスクリプタを上記更新要求手段によって確保
された上記ジャーナルファイル上の空きページに設定す
る上記データベースプロセッサ内の更新処理手段と、を
具備し、上記CPUはシステム障害発生後の再立上げ時
に、上記ジャーナルファイルからジャーナリングされて
いるページを順次入力し、入力したページが上記ディス
クリプタの場合には同ディスクリプタにより特定される
ジャーナルを上記補助ジャーナルファイルから入力して
データベースリカバリを行うことを特徴とするデータベ
ースシステム。
[Claims] In order to speed up database update processing, in a database system that includes at least one database processor that performs database update processing separately from the CPU that forms the core of the system, if a system failure occurs during database update, A journal file for recovery in the event of an error, an auxiliary journal file for storing journals related to database updates by the database processor, and free pages of the journal files are secured in response to database update requests from processes. Then, the page information and the update request are sent to one of the database processors.
an update request means in the CPU that sends an update request to the CPU, and performs database update processing in response to the update request from this update request means, outputs the journal related to the update to the auxiliary journal file, and outputs the journal related to the update to the auxiliary journal file. update processing means within the database processor for setting a descriptor for identifying the output journal on the auxiliary journal file in a free page on the journal file secured by the update request means; When the system is restarted after a system failure occurs, it sequentially inputs the journaled pages from the above journal file, and if the input page has the above descriptor, inputs the journal specified by the same descriptor from the above auxiliary journal file. A database system characterized by performing database recovery.
JP2064416A 1990-03-16 1990-03-16 Data base system Pending JPH03266045A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2064416A JPH03266045A (en) 1990-03-16 1990-03-16 Data base system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2064416A JPH03266045A (en) 1990-03-16 1990-03-16 Data base system

Publications (1)

Publication Number Publication Date
JPH03266045A true JPH03266045A (en) 1991-11-27

Family

ID=13257663

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2064416A Pending JPH03266045A (en) 1990-03-16 1990-03-16 Data base system

Country Status (1)

Country Link
JP (1) JPH03266045A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07160564A (en) * 1993-12-06 1995-06-23 Nec Corp Base journal capacity reducing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07160564A (en) * 1993-12-06 1995-06-23 Nec Corp Base journal capacity reducing system

Similar Documents

Publication Publication Date Title
JP4839091B2 (en) Database recovery method and computer system
CN109542682B (en) Data backup method, device, equipment and storage medium
JPH04229355A (en) Data access method and data processing system
JPH08328933A (en) File access control system for parallel processing system
JPH04284548A (en) Data base exclusive controlling system
EP0449660B1 (en) A method and apparatus of generating shadow process
JPH03266045A (en) Data base system
JPH04373026A (en) Program interrupting method
EP3293635B1 (en) Electronic device and method of controlling the same
JPH0588954A (en) Data base updating method
JP3037375B2 (en) File compression processing method
JP7242744B2 (en) Migration support method and system
JPH0594356A (en) On-memory table data fault restoration system
JP2666426B2 (en) Duplex auxiliary storage device
JPH10508968A (en) Data set backup method and apparatus in shared environment
JPH02257228A (en) File control system for data base system
JPH0962554A (en) Quiescent point save generation system
CN115599756A (en) Data writing method, storage medium and device for database
JPH05108388A (en) Process restoration system
JPH02138646A (en) Processing system for addition of record
JPS62209635A (en) Access system for system control file of asynchronous communication
JPH08147203A (en) Transaction processing system
JPH0812630B2 (en) Recovery processor
JPH05298125A (en) Recovery system for main memory data
JPS6360414B2 (en)