JPH0713829A - Data base backup system - Google Patents

Data base backup system

Info

Publication number
JPH0713829A
JPH0713829A JP5155457A JP15545793A JPH0713829A JP H0713829 A JPH0713829 A JP H0713829A JP 5155457 A JP5155457 A JP 5155457A JP 15545793 A JP15545793 A JP 15545793A JP H0713829 A JPH0713829 A JP H0713829A
Authority
JP
Japan
Prior art keywords
memory
temporary storage
storage means
writing
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
JP5155457A
Other languages
Japanese (ja)
Inventor
Akira Kobayashi
晃 小林
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP5155457A priority Critical patent/JPH0713829A/en
Publication of JPH0713829A publication Critical patent/JPH0713829A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To freely access a data base even during backup copying operation by recording data base access in the backup copying operation and reflecting it on a backup file. CONSTITUTION:A copying means 4 includes a temporary storage means 6 which temporarily stores part of information recorded in a lst large-sized memory 1, a file generation part 7 which copies the information stored in this temporary storage means 6 to a 2nd large-sized memory 2, and a data base copy part 9. Further, the system is equipped with an access log means 8 which records the position and contents of writing to the 1st large-sized memory 1 by an access means 5. Then the file generation part 7, when copying the information stored in the temporary storage means 6 to the 2nd large-sized memory 2m judges whether writing regarding the information to be transferred is done after the information is stored in the temporary storage means 6 by referring to the access log means 8 and then writes information indicating the writing in the 2nd large-sized memory 2 when the writing is done.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は電子計算機に利用する。
本発明は、データベースとしてメモリに保持される大規
模データを複製して、別のバックアップ用メモリに保持
するバックアップ方式の改良に関する。
The present invention is used in an electronic computer.
The present invention relates to an improvement of a backup method in which large-scale data stored in a memory as a database is duplicated and stored in another backup memory.

【0002】[0002]

【従来の技術】大形メモリに記録されたデータベースを
失うことがないように、常用の第一の大形メモリと同等
容量を有する第二の大形メモリを別にバックアップ用と
して用意して、この第二の大形メモリにデータベースを
そっくり複製しておくバックアップ方式が広く利用され
ている。このような従来例方式では、常用の第一の大形
メモリに記録されたデータベースをバックアップ用の第
二の大形メモリに複製する場合には、データベースへの
新たな書込を一時的に禁止しておき、第二の大形メモリ
への複製が完了してから書込禁止を解除するようにして
運用される。
2. Description of the Related Art In order not to lose the database recorded in a large memory, a second large memory having the same capacity as that of the first large memory in common use is prepared as a backup and A backup method in which a database is duplicated in the second large memory is widely used. In such a conventional method, when the database recorded in the first large-sized memory for regular use is copied to the second large-sized memory for backup, new writing to the database is temporarily prohibited. The write protection is released after the copy to the second large memory is completed.

【0003】書込禁止することができない場合には、書
込(または同一内容のアクセス)が第一の大形メモリお
よび第二の大形メモリについて並行的に実行されるよう
になっている。
When writing cannot be prohibited, writing (or access of the same contents) is executed in parallel for the first large memory and the second large memory.

【0004】なお、常用のデータベースへのアクセス履
歴を記録する技術が特開昭62−50938号公報に開
示されているが、これはデータベースが破壊されたとき
にそのデータベースを復旧するためのものであって、本
発明とはその目的が異なる技術である。
A technique for recording the access history to a regular database is disclosed in Japanese Patent Laid-Open No. 62-50938, but this is for restoring the database when it is destroyed. Therefore, the present invention is a technology whose purpose is different from that of the present invention.

【0005】[0005]

【発明が解決しようとする課題】このような従来例方式
では、第一の大形メモリの情報を第二の大形メモリに複
製する工程を実行する間は、データベースの利用者がそ
のデータベースを利用することができなくなる欠点があ
る。一方、二つの大形メモリに並行的にアクセスを実行
する構成では、装置構成が複雑化する、アクセス時間が
長くなる他に二つの大形メモリの情報が何らかの原因に
より違ってしまうことがないように管理を行うことが必
要であるなどの欠点がある。
In such a conventional example method, the user of the database can access the database while the step of copying the information in the first large memory to the second large memory is executed. There is a drawback that it cannot be used. On the other hand, in a configuration in which two large memories are accessed in parallel, the device configuration becomes complicated, the access time becomes long, and the information in the two large memories does not differ for some reason. There are drawbacks such as the need for management.

【0006】本発明はこれを改良するもので、複製を製
作中にもデータベース利用者がデータベースにアクセス
することができ、アクセス時間が長くなることはなく、
二つのメモリ内容の同一性を維持するための管理が不要
であるバックアップ方式を提供することを目的とする。
The present invention improves on this by allowing the database user to access the database even during the production of the replica, without increasing the access time.
An object of the present invention is to provide a backup method that does not require management for maintaining the identity of two memory contents.

【0007】[0007]

【課題を解決するための手段】本発明は、データベース
が記録される第一の大形メモリと、このデータベースと
等しいデータが記録されるバックアップ用の第二の大形
メモリと、前記第一の大形メモリに記録されたデータベ
ースを前記第二の大形メモリに複製する複製手段と、前
記第一の大形メモリに対し書込およびまたは読出を行う
アクセス手段とを備えたデータベース・バックアップ方
式において、前記複製手段は、前記第一の大形メモリに
記録された情報の少なくとも一部を一時記憶する一時記
憶手段と、この一時記憶手段に記憶された情報を前記第
二の大形メモリに転写するファイル生成部とを含み、前
記アクセス手段により前記第一の大形メモリに対して実
行された書込の位置および内容を記録するアクセスログ
手段を備え、前記ファイル生成部には、前記一時記憶手
段に記憶された情報を前記第二の大形メモリに転写する
際に、その転写すべき情報がその一時記憶手段に記憶さ
れてから後にその情報に関して書込があったか否かを前
記アクセスログ手段を参照し、書込があったときにはそ
の書込を実行した情報を前記第二の大形メモリに書込む
手段を含むことを特徴とする。
According to the present invention, there is provided a first large memory in which a database is recorded, a second large memory for backup in which data equivalent to the database is recorded, and the first large memory. In a database backup system comprising a duplication means for duplicating a database recorded in a large-sized memory in the second large-sized memory and an access means for writing and / or reading in the first large-sized memory The duplication means temporarily stores at least a part of the information recorded in the first large-sized memory, and the information stored in the temporary storage means is transferred to the second large-sized memory. An access log unit for recording the position and contents of the write executed by the access unit to the first large-sized memory, When the information stored in the temporary storage means is transferred to the second large-sized memory, the file generation section writes the information to be transferred after the information is stored in the temporary storage means and then writes the information. It is characterized in that it includes means for referring to the access log means to determine whether or not there has been, and for writing, when there is writing, the information for executing the writing to the second large-sized memory.

【0008】前記第一の大形メモリの容量および前記第
二の大形メモリの容量はほぼ等しく、前記一時記憶手段
の容量は前記第一の大形メモリの容量より小さく、前記
複製手段は前記一時記憶手段の容量に応じて部分毎に複
製を行う手段を備え、前記一時記憶手段の書込および読
出速度は、前記第一または第二の大形メモリの書込およ
び読出速度より高速であることが望ましい。
The capacity of the first large memory and the capacity of the second large memory are substantially equal to each other, the capacity of the temporary storage means is smaller than the capacity of the first large memory, and the copying means is The temporary storage means is provided with a means for duplicating each portion according to the capacity of the temporary storage means, and the writing and reading speeds of the temporary storage means are higher than the writing and reading speeds of the first or second large-sized memory. Is desirable.

【0009】[0009]

【作用】本発明の方式では、複製を実行するときには、
第一の大形メモリに記録された情報をいったん一時記憶
手段に移し換えて、この一時記憶手段に記憶された情報
をさらに第二の大形メモリに転写する。一時記憶手段の
書込および読出の動作は大形メモリに比べて高速のもの
を用いることが望ましく、また一時記憶手段の記憶容量
は大形メモリに比べて小さく、大形メモリの内容を部分
毎に移し換えこれを転写する動作を各部分毎に繰り返し
実行することが望ましい。
According to the method of the present invention, when performing duplication,
The information recorded in the first large-sized memory is temporarily transferred to the temporary storage means, and the information stored in this temporary storage means is further transferred to the second large-sized memory. It is desirable to use the temporary storage means for writing and reading operations at a speed higher than that of the large-sized memory. Also, the storage capacity of the temporary storage means is smaller than that of the large-sized memory. It is desirable to repeatedly perform the operation of transferring to the above and transferring this for each part.

【0010】本発明の方式では、複製作成を実行中にも
常用の大形メモリ(第一の大形メモリ)へのアクセスを
禁止しない。したがって、一時記憶手段にいったん移し
換えられたデータについて第一の大形メモリに新たな書
込が発生する場合も考えられる。これを救済するため
に、第一の大形メモリに対して実行された書込の位置お
よび内容をアクセスログ手段に記録しておき、第二の大
形メモリに転写を行う際にこのアクセスログ手段の内容
を参照して、関係する部分に新たな書込がある場合に
は、その新たな書込を実行した形で第二の大形メモリに
書込を実行する。
The system of the present invention does not prohibit access to the regular large memory (first large memory) even during execution of copy creation. Therefore, it is possible that new writing occurs in the first large-sized memory for the data once transferred to the temporary storage means. In order to remedy this, the position and contents of the writing executed in the first large-sized memory are recorded in the access log means, and this access log is recorded when the transfer is performed in the second large-sized memory. With reference to the contents of the means, when there is a new writing in the related portion, the writing is executed in the second large-sized memory in the form of executing the new writing.

【0011】[0011]

【実施例】次に、本発明実施例を図面に基づいて説明す
る。図1は本発明実施例の全体構成を示すブロック図で
ある。
Embodiments of the present invention will now be described with reference to the drawings. FIG. 1 is a block diagram showing the overall configuration of an embodiment of the present invention.

【0012】本発明実施例は、データベースが記録され
る第一の大形メモリ1と、このデータベースと等しいデ
ータが記録されるバックアップ用の第二の大形メモリ2
と、中央処理装置3とを備え、この中央処理装置3に、
第一の大形メモリ1に記録されたデータベースを第二の
大形メモリ2に複製する複製手段4と、第一の大形メモ
リ1に対し書込およびまたは読出を行うアクセス手段5
とを備え、さらに、本発明の特徴として、複製手段4
は、第一の大形メモリ1に記録された情報の少なくとも
一部を一時記憶する一時記憶手段6と、この一時記憶手
段6に記憶された情報を第二の大形メモリ2に転写する
ファイル生成部7と、データベースコピー部9とを含
み、アクセス手段5により第一の大形メモリ1に対して
実行された書込の位置および内容を記録するアクセスロ
グ手段8を備え、ファイル生成部7には、一時記憶手段
6に記憶された情報を第二の大形メモリ2に転写する際
に、その転写すべき情報がその一時記憶手段6に記憶さ
れてから後にその情報に関して書込があったか否かをア
クセスログ手段8を参照し、書込があったときにはその
書込を実行した情報を第二の大形メモリ2に書込む手段
を含む。
In the embodiment of the present invention, a first large memory 1 in which a database is recorded and a second large memory 2 for backup in which data equivalent to this database is recorded.
And a central processing unit 3, and the central processing unit 3 is
Copying means 4 for copying the database recorded in the first large-sized memory 1 to the second large-sized memory 2, and access means 5 for writing and / or reading the first large-sized memory 1.
Further, as a feature of the present invention, the duplication unit 4 is provided.
Is a temporary storage means 6 for temporarily storing at least a part of the information recorded in the first large-sized memory 1, and a file for transferring the information stored in this temporary storage means 6 to the second large-sized memory 2. The file generation unit 7 includes a generation unit 7 and a database copy unit 9, and includes an access log unit 8 for recording the position and contents of writing executed by the access unit 5 to the first large-sized memory 1. In the case of transferring the information stored in the temporary storage means 6 to the second large-sized memory 2, whether the information to be transferred has been written in the temporary storage means 6 and then the information was written. It includes means for referring to the access log means 8 to determine whether or not there is writing, and writing the written information to the second large-sized memory 2.

【0013】第一の大形メモリ1の容量および第二の大
形メモリ2の容量はほぼ等しく、一時記憶手段6の容量
は第一の大形メモリ1の容量より小さく、複製手段4は
一時記憶手段6の容量に応じて部分毎に複製を行う手段
を備え、一時記憶手段6の書込および読出速度は、第一
の大形メモリ1または第二の大形メモリ2の書込および
読出速度より高速に行われる。
The capacity of the first large-sized memory 1 and the capacity of the second large-sized memory 2 are substantially equal to each other, the capacity of the temporary storage means 6 is smaller than the capacity of the first large-sized memory 1, and the copying means 4 is temporary. The temporary storage means 6 has a writing / reading speed for writing / reading to / from the first large-sized memory 1 or the second large-sized memory 2 by providing a means for making a copy for each part according to the capacity of the storing means 6. It is done faster than speed.

【0014】中央処理装置3には、回線インタフェース
11を介して複数の回線が接続され、さらに、記憶装置
12およびCRT13aとキーボード13bとを備えた
操作卓13が接続される。
A plurality of lines are connected to the central processing unit 3 via a line interface 11, and a console 13 having a storage device 12 and a CRT 13a and a keyboard 13b is further connected.

【0015】次に、このように構成された本発明実施例
の動作について図面を参照して説明する。図2は本発明
実施例の動作の流れを示す流れ図である。
Next, the operation of the embodiment of the present invention thus constructed will be described with reference to the drawings. FIG. 2 is a flow chart showing the operation flow of the embodiment of the present invention.

【0016】第一の大形メモリ1に記録されたデータベ
ースのバックアップの開始時に、まず、複製手段4のデ
ータベースコピー部9を起動し、第一の大形メモリ1の
データベースを一時記憶手段6にコピーする。これと同
時に、アクセスログ部8aを起動し、第一の大形メモリ
1のデータベースのコピー中にそのデータベースに対し
て行われるアクセスの情報を通常のデータベースアクセ
ス処理により入手する。アクセスログ部8aは、このデ
ータベースアクセス処理から得た情報をアクセスログ8
bに記録する。データベースコピー部9による第一の大
形メモリ1のデータベースのコピー終了時に、アクセス
ログ部8aの動作も終了する。その後、ファイル生成部
7が実行を開始し、第一の大形メモリ1のデータベース
のコピー中に行われたデータベースの更新データをアク
セスログ8bより入手し、一時記憶手段6に対し更新を
行い、第二の大形メモリ2内にバックアップファイルを
生成する。
At the start of the backup of the database recorded in the first large-sized memory 1, first, the database copy section 9 of the duplicating means 4 is activated to store the database of the first large-sized memory 1 in the temporary storage means 6. make a copy. At the same time, the access log unit 8a is activated, and the information on the access to the database during the copying of the database of the first large-sized memory 1 is obtained by the normal database access processing. The access log unit 8a uses the information obtained from this database access process as the access log 8a.
Record in b. When the copying of the database in the first large memory 1 by the database copying unit 9 is completed, the operation of the access log unit 8a is also completed. After that, the file generation unit 7 starts execution, acquires the update data of the database performed during the copying of the database of the first large-sized memory 1 from the access log 8b, and updates the temporary storage unit 6, A backup file is created in the second large memory 2.

【0017】[0017]

【発明の効果】以上説明したように本発明によれば、バ
ックアップコピー中のデータベースアクセスを記録して
バックアップファイルに反映させることができるため
に、バックアップコピー中でもデータベース使用者は自
由にデータベースにアクセスすることができ、また、二
つのファイルに同時にアクセスする方式と較べた場合に
ディスクアクセス時間を大幅に短縮することができる効
果がある。
As described above, according to the present invention, since the database access during the backup copy can be recorded and reflected in the backup file, the database user can freely access the database even during the backup copy. In addition, there is an effect that the disk access time can be significantly shortened when compared with the method of simultaneously accessing two files.

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

【図1】本発明実施例の全体構成を示すブロック図。FIG. 1 is a block diagram showing the overall configuration of an embodiment of the present invention.

【図2】本発明実施例の動作の流れを示す流れ図。FIG. 2 is a flowchart showing a flow of operations of the embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 第一の大形メモリ 2 第二の大形メモリ 3 中央処理装置 4 複製手段 5 アクセス手段 6 一時記憶手段 7 ファイル生成部 8 アクセスログ手段 8a アクセスログ部 8b アクセスログ 9 データベースコピー部 11 回線インタフェース 12 記憶装置 13 操作卓 13a CRT 13b キーボード 1 First Large Memory 2 Second Large Memory 3 Central Processing Unit 4 Duplicating Means 5 Access Means 6 Temporary Storage Means 7 File Generating Unit 8 Access Log Means 8a Access Log Means 8b Access Log 9 Database Copy Means 11 Line Interface 12 storage device 13 console 13a CRT 13b keyboard

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 データベースが記録される第一の大形メ
モリと、このデータベースと等しいデータが記録される
バックアップ用の第二の大形メモリと、前記第一の大形
メモリに記録されたデータベースを前記第二の大形メモ
リに複製する複製手段と、前記第一の大形メモリに対し
書込およびまたは読出を行うアクセス手段とを備えたデ
ータベース・バックアップ方式において、 前記複製手段は、前記第一の大形メモリに記録された情
報の少なくとも一部を一時記憶する一時記憶手段と、こ
の一時記憶手段に記憶された情報を前記第二の大形メモ
リに転写するファイル生成部とを含み、 前記アクセス手段により前記第一の大形メモリに対して
実行された書込の位置および内容を記録するアクセスロ
グ手段を備え、 前記ファイル生成部には、前記一時記憶手段に記憶され
た情報を前記第二の大形メモリに転写する際に、その転
写すべき情報がその一時記憶手段に記憶されてから後に
その情報に関して書込があったか否かを前記アクセスロ
グ手段を参照し、書込があったときにはその書込を実行
した情報を前記第二の大形メモリに書込む手段を含むこ
とを特徴とするデータベース・バックアップ方式。
1. A first large memory in which a database is recorded, a second large memory for backup in which data equivalent to this database is recorded, and a database recorded in the first large memory. In a database backup system comprising: a duplication unit that duplicates the data in the second large memory, and an access unit that writes and / or reads the first large memory. A temporary storage means for temporarily storing at least a part of the information recorded in the one large memory; and a file generation section for transferring the information stored in the temporary storage means to the second large memory, An access log unit for recording the position and contents of the writing executed by the access unit to the first large-sized memory; When transferring the information stored in the temporary storage means to the second large-sized memory, the access is made as to whether or not the information to be transferred has been written after the storage in the temporary storage means. A database backup system characterized in that it includes means for referring to the log means and for writing the written information to the second large-sized memory when there is writing.
【請求項2】 前記第一の大形メモリの容量および前記
第二の大形メモリの容量はほぼ等しく、前記一時記憶手
段の容量は前記第一の大形メモリの容量より小さく、前
記複製手段は前記一時記憶手段の容量に応じて部分毎に
複製を行う手段を備えた請求項1記載のデータベース・
バックアップ方式。
2. The capacity of the first large-sized memory and the capacity of the second large-sized memory are substantially equal to each other, the capacity of the temporary storage means is smaller than the capacity of the first large-sized memory, and the duplication means. The database according to claim 1, further comprising means for copying each part according to the capacity of the temporary storage means.
Backup method.
【請求項3】 前記一時記憶手段の書込および読出速度
は、前記第一または第二の大形メモリの書込および読出
速度より高速である請求項1または2記載のデータベー
ス・バックアップ方式。
3. The database backup method according to claim 1, wherein the writing and reading speeds of the temporary storage means are higher than the writing and reading speeds of the first or second large-sized memory.
JP5155457A 1993-06-25 1993-06-25 Data base backup system Pending JPH0713829A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5155457A JPH0713829A (en) 1993-06-25 1993-06-25 Data base backup system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5155457A JPH0713829A (en) 1993-06-25 1993-06-25 Data base backup system

Publications (1)

Publication Number Publication Date
JPH0713829A true JPH0713829A (en) 1995-01-17

Family

ID=15606470

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5155457A Pending JPH0713829A (en) 1993-06-25 1993-06-25 Data base backup system

Country Status (1)

Country Link
JP (1) JPH0713829A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0381843A (en) * 1989-08-25 1991-04-08 Nec Corp File saving/restoring processor
JPH04336638A (en) * 1991-05-14 1992-11-24 Nec Corp Disk exchange system in system working mode

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0381843A (en) * 1989-08-25 1991-04-08 Nec Corp File saving/restoring processor
JPH04336638A (en) * 1991-05-14 1992-11-24 Nec Corp Disk exchange system in system working mode

Similar Documents

Publication Publication Date Title
CN100440155C (en) Method and apparatus for creating a virtual data copy
US5535381A (en) Apparatus and method for copying and restoring disk files
AU700681B2 (en) A method of operating a computer system
US6510552B1 (en) Apparatus for keeping several versions of a file
US7743227B1 (en) Volume restoration using an accumulator map
JP2002123421A (en) Remapping control method for flash memory and structure for flash memory therefor
JP2005018233A (en) Method for backing up data recorded in virtual storage medium, and backup device for data recorded in virtual storage medium
JP2810593B2 (en) Storage device
US5276878A (en) Method and system for task memory management in a multi-tasking data processing system
EP0410210A2 (en) Method for dynamically expanding and rapidly accessing file directories
US7529973B2 (en) Method of and apparatus for taking back-up and checking alteration of data, and computer product
JPH0713829A (en) Data base backup system
JP2000339104A (en) Disk sub-system and data copying method
JP4375259B2 (en) Replication volume generation management system, disk array device, and replication volume generation management program
US20060143423A1 (en) Storage device, data processing method thereof, data processing program thereof, and data processing system
JPH033046A (en) Log record control system
JP4086723B2 (en) Index file processing method, method, and program
US7715133B2 (en) Method for duplicating data
JP3074817B2 (en) File backup circuit
JPS58107976A (en) Protecting method for volume managing information
JPH0235537A (en) Multiple volume update control system
US20070260816A1 (en) RAID management apparatus, RAID management method, and computer product
JPS6167153A (en) Partial trouble recovery processing system of direct access storage device
JPH0327429A (en) Duplexing method for data in information processor
GB2162992A (en) A method of recording a computer program