JPS61844A - Data base system - Google Patents
Data base systemInfo
- Publication number
- JPS61844A JPS61844A JP59103229A JP10322984A JPS61844A JP S61844 A JPS61844 A JP S61844A JP 59103229 A JP59103229 A JP 59103229A JP 10322984 A JP10322984 A JP 10322984A JP S61844 A JPS61844 A JP S61844A
- Authority
- JP
- Japan
- Prior art keywords
- meta
- database
- data
- file
- meta data
- 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
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、データベースのリカバリを行うためのデータ
構成記述データ(メタ・データ)を、データベース管理
システムの管理下でリカバリ可能とするデータベース・
システムに関するものである。[Detailed Description of the Invention] [Industrial Application Field] The present invention provides a database system that enables data structure description data (meta data) for database recovery to be recovered under the management of a database management system.
It's about systems.
リカバリのためのログ取得環境は、複数のデータベース
間で共用されている。もし障害などが発生したとき、特
定データベースのためのログを抽出する必要がある。こ
のためデータベースをシステムに登録する毎に、新たに
システムでユニークなコードをそのデータベースに割当
て、このコードによってログを管理すると共に、回復処
理などもこのコードに基づいて行うことになる。このた
めのデータベースとコードとの対応表がメタ・データで
ある。メタ・データに障害が発生すると、リカバリを行
うことが出来ないので、メタ・データを二重化すること
などが行われているが、単にメタ・データを二重化した
だけでは、物理的に高度の管理をしなければ、処理の途
中でわけの判らない状態がメタ・データに残り、回復の
タイミングを把握するのが非常に困難となる。The log acquisition environment for recovery is shared among multiple databases. If a failure occurs, it is necessary to extract the log for a specific database. For this reason, each time a database is registered in the system, a new system-unique code is assigned to that database, and this code is used to manage logs and also perform recovery processing based on this code. Meta data is a correspondence table between databases and codes for this purpose. If a failure occurs in the meta data, it cannot be recovered, so methods such as duplicating the meta data are carried out, but simply duplicating the meta data does not require a high level of physical management. Otherwise, an incomprehensible state will remain in the meta data during processing, making it extremely difficult to understand the timing of recovery.
本発明は、上記の考察に基づくものであって、メタ・デ
ータを確実にしかも高速にリカバリできるようにしたデ
ータベース・システムを提供することを目的としている
。The present invention is based on the above considerations, and aims to provide a database system that allows meta data to be recovered reliably and at high speed.
そしてそのため、本発明のデータベース・システムは、
データベースと、データベースのメタ・データを格納す
るメタ・データ・ファイルと、該メタ・データ・ファイ
ルのコピーを保持するメタ・データベースと、上記デー
タベースおよびメタ・データベースのリカバリ用ログデ
ータを保持するログ・ファイルと、トランザクション処
理機能を有するデータベース管理システムとを具備し、
且つメタ・データの更新が依願されたとき、上記メタ・
データ・ファイルを更新すると共に、この更新を上記メ
タ・データ・ファイルに反映させ、上記ログ・ファイル
にメタ・データベースのログ情報を格納するようにした
ことを特徴とするものである。Therefore, the database system of the present invention
A database, a meta data file that stores database meta data, a meta database that holds a copy of the meta data file, and a log file that holds recovery log data for the database and meta database. It is equipped with a file and a database management system having a transaction processing function,
In addition, when a request is made to update meta data, the above meta data
The present invention is characterized in that the data file is updated, this update is reflected in the meta data file, and log information of the meta database is stored in the log file.
以下、図面を参照して本発明の詳細な説明する。 Hereinafter, the present invention will be described in detail with reference to the drawings.
第1図は本発明におけるデータ・セントの関係を示す図
である。第1図において、1はメタ・データ・ファイル
、2はメタ・データベース、3−1ないし3−nはデー
タベース、4はログ・ファイルをそれぞれ示している。FIG. 1 is a diagram showing the relationship between data cents in the present invention. In FIG. 1, 1 is a meta data file, 2 is a meta database, 3-1 to 3-n are databases, and 4 is a log file.
メタ・データ・ファイル1はデータベースのデータセッ
ト以外の一般のデータセントとして外部記録媒体上に格
納されている。メタ・データベース2の内容は、メタ・
データ・ファイル1の内容と実質的に同じである。The meta data file 1 is stored on an external recording medium as a general data center other than the data set of the database. The contents of meta database 2 are
The contents are substantially the same as data file 1.
メタ・データベース2が壊れたら何時でもメタ・データ
・ファイル1よりリカバリ可能であり、逆にメタ・デー
タ・ファイル1が壊れたらメタ・データベース2よりバ
ンク・アップできる。両方とも壊れたらメタ・データを
メタ・データベース専用に作ってメタ・データ2リカバ
リした後に、メタ・データ・ファイル1をバック・アッ
プすればよい。各データベース3−1.−・−3−nは
、メタ・データによってログ・ファイル4のリカバリ用
ログデータと対応付けられており、これによって各デー
タベース3−1.−・−3−nはリカバリ可能となる。If the meta database 2 is corrupted, it can be recovered from the meta data file 1 at any time, and conversely, if the meta data file 1 is corrupted, it can be banked up from the meta database 2. If both are corrupted, create meta data specifically for the meta database, recover meta data 2, and then back up meta data file 1. Each database 3-1. -.-3-n are associated with the recovery log data of the log file 4 by meta data, and thereby each database 3-1. -.-3-n becomes recoverable.
データベースが何百個とあると、データベースの登録や
削除が頻繁に行われる。データベースの登録や削除を行
う場合、メタ・データ更新処理を複数のトランザクショ
ン処理に分割し、第1番目ないし第N番目のトランザク
ション処理を順番に行い、各トランザクション処理毎に
メタ・データ・ファイル1の更新、この更新のメタ・デ
ータベース2への反映およびリカバリ用ログデータの取
得を行う。メタ・データ更新処理のトランザクション処
理への分割は論理的には勝手に選択できるのでメタ・デ
ータベース2上においては論理的に意味のある切れ目を
選択することが出来る。論理的に意味があるとは、メタ
・データベース2の内容をメタ・データ・ファイル1へ
のコピーしてシステムが動作可能ということである。When there are hundreds of databases, databases are frequently registered and deleted. When registering or deleting a database, divide the meta data update process into multiple transaction processes, perform the 1st to Nth transaction processes in order, and update the meta data file 1 for each transaction process. Update, reflect this update on the meta database 2, and obtain recovery log data. Since the division of meta data update processing into transaction processing can be logically arbitrarily selected, logically meaningful breaks can be selected on the meta database 2. Logically meaningful means that the system can operate by copying the contents of meta database 2 to meta data file 1.
第2図は本発明を実施するだめの構成の1例を示すもの
である。第2図において、5はデータベース管理システ
ムを示している。なお、第1図と同一符号は同一物を示
している。データベース管理システム5は、トランザク
ション処理機能を有するものである。トランザクション
処理機能を有するデータベース管理システムとは、トラ
ンザクション処理毎にデータベースの原子性、永続性お
よび無矛盾性が成立するように構成されているものであ
ることを意味している。例えば、データベース3−、n
を登録したいという登録依願が来ると、データベース3
−nに関するメタ・データがメタ・データ・ファイル1
に登録される。このメタ・データの登録処理は先に述べ
たように幾つかの直列トランザクション処理に分割して
行われ、また、メタ・データ・ファイル1の更新は同時
にメタ・データベース2へも反映される。一般に、メタ
・データ・ファイル1は、物理的にみてメタ・デークベ
ース2に比べて複雑な内部構造を持ち得るが、メタ・デ
ータベース2では物理レベル以下は捨象してもよいこと
になる。メタ・データ・ファイル1の中のメタ・データ
ベース・エントリは、始から終りまで永久に成る不変で
もあるのでメタ・データベース・エントリの内容の再現
は何時でも可能であり、これさえあれば、トランザクシ
ョン処理機能を有するデータベース管理システム4は、
メタ・データを用いてメタ・データベース2のリカバリ
を何時でも行うことが出来、従ってこのメタ・データベ
ース2から完全なメタ・データ・ファイルを復元するこ
とが出来る。FIG. 2 shows an example of a configuration for carrying out the present invention. In FIG. 2, 5 indicates a database management system. Note that the same reference numerals as in FIG. 1 indicate the same parts. The database management system 5 has a transaction processing function. A database management system having a transaction processing function means that it is configured so that atomicity, permanence, and consistency of the database are established for each transaction process. For example, database 3-, n
When a request for registration comes, database 3
- Meta data related to n is meta data file 1
will be registered. As described above, this meta data registration process is performed by dividing into several serial transaction processes, and updates to the meta data file 1 are also reflected in the meta database 2 at the same time. In general, the meta data file 1 may have a physically more complex internal structure than the meta database 2, but in the meta database 2, anything below the physical level may be abstracted. Since the meta database entries in the meta data file 1 are permanent and unchanging from start to finish, the contents of the meta database entries can be reproduced at any time, and as long as this is available, transaction processing is possible. The database management system 4 has the following functions:
Recovery of the meta database 2 can be performed at any time using the meta data, so that a complete meta data file can be restored from this meta database 2.
以上の説明から明らかなように、本発明によれば、メタ
・データ・ファイル及びメタ・データベースの内容を常
に確実にしかも高速にリカバリすることが出来る。As is clear from the above description, according to the present invention, the contents of meta data files and meta databases can always be recovered reliably and at high speed.
第1図は本発明におけるデータセントの関係を示す図、
第2図は本発明を実施するための構成の1例を示す図で
ある。
1−メタ・データ・ファイル、2−メタ・データベース
、3−1ないし3− n−データベース、4・−ログ・
ファイル、5−データベース管理システム。FIG. 1 is a diagram showing the relationship of data centers in the present invention;
FIG. 2 is a diagram showing an example of a configuration for implementing the present invention. 1-meta data file, 2-meta database, 3-1 to 3-n-database, 4--log
File, 5-Database management system.
Claims (1)
るメタ・データ・ファイルと、該メタ・データ・ファイ
ルのコピーを保持するメタ・データベースと、上記デー
タベースおよびメタ・データベースのリカバリ用ログデ
ータを保持するログ・ファイルと、トランザクション処
理機能を有するデータベース管理システムとを具備し、
且つメタ・データの更新が依頼されたとき、上記メタ・
データ・ファイルを更新すると共に、この更新を上記メ
タ・データ・ファイルに反映させ、上記ログ・ファイル
にメタ・データベースのログ情報を格納するようにした
ことを特徴とするデータベース・システム。A database, a meta data file that stores database meta data, a meta database that holds a copy of the meta data file, and a log file that holds recovery log data for the database and meta database. It is equipped with a file and a database management system having a transaction processing function,
In addition, when a meta data update is requested, the above meta data
A database system characterized in that a data file is updated, this update is reflected in the meta data file, and log information of a meta database is stored in the log file.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59103229A JPH0628041B2 (en) | 1984-05-21 | 1984-05-21 | Meta data management method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59103229A JPH0628041B2 (en) | 1984-05-21 | 1984-05-21 | Meta data management method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61844A true JPS61844A (en) | 1986-01-06 |
| JPH0628041B2 JPH0628041B2 (en) | 1994-04-13 |
Family
ID=14348637
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59103229A Expired - Lifetime JPH0628041B2 (en) | 1984-05-21 | 1984-05-21 | Meta data management method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0628041B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2017520844A (en) * | 2014-06-26 | 2017-07-27 | アマゾン・テクノロジーズ・インコーポレーテッド | Multi-database log with multi-item transaction support |
-
1984
- 1984-05-21 JP JP59103229A patent/JPH0628041B2/en not_active Expired - Lifetime
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2017520844A (en) * | 2014-06-26 | 2017-07-27 | アマゾン・テクノロジーズ・インコーポレーテッド | Multi-database log with multi-item transaction support |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0628041B2 (en) | 1994-04-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8429121B2 (en) | Apparatus and method for creating a real time database replica | |
| US5761677A (en) | Computer system method and apparatus providing for various versions of a file without requiring data copy or log operations | |
| EP0336546B1 (en) | System and method for data recovery in a database on a computer system after an error in the system | |
| EP0480009B1 (en) | Data recoverability in mass storage data base systems | |
| US6873995B2 (en) | Method, system, and program product for transaction management in a distributed content management application | |
| CA1187190A (en) | Method and apparatus for restarting a computing system | |
| KR100983300B1 (en) | Fault recovery within data processing systems | |
| EP0465019B1 (en) | Method and apparatus for managing state identifiers for efficient recovery | |
| US6934725B1 (en) | Management of file extent mapping to hasten mirror breaking in file level mirrored backups | |
| EP3796174B1 (en) | Restoring a database using a fully hydrated backup | |
| US20040260726A1 (en) | DBMS backup without suspending updates and corresponding recovery using separately stored log and data files | |
| US5740434A (en) | System for maintenance of database integrity | |
| JP2003280964A (en) | Snapshot acquisition method, storage system and disk device | |
| JP2002007187A (en) | System for transferring related data object in distributed data storage environment and method for the same | |
| US7058662B2 (en) | Maintenance of data integrity during transfer among computer networks | |
| US20130275541A1 (en) | Reparse point replication | |
| JPH08504528A (en) | Optimization method of memory space in database | |
| KR20080071131A (en) | Computer-readable media, methods, and apparatus having computer executable instructions for resource replication | |
| JPS61844A (en) | Data base system | |
| CN115658391A (en) | Backup recovery method of WAL mechanism based on QianBase MPP database | |
| KR950011056B1 (en) | Log / Recovery Management Method of Transaction Processing System | |
| JPH0512087A (en) | System for outputting pre-updating journal | |
| JPH0385650A (en) | Disk volume restoration system | |
| JPS62105245A (en) | Data control method | |
| JPH0241052B2 (en) |