JP2008033778A - Computer system, database restoration method, and database restoration program - Google Patents
Computer system, database restoration method, and database restoration program Download PDFInfo
- Publication number
- JP2008033778A JP2008033778A JP2006208406A JP2006208406A JP2008033778A JP 2008033778 A JP2008033778 A JP 2008033778A JP 2006208406 A JP2006208406 A JP 2006208406A JP 2006208406 A JP2006208406 A JP 2006208406A JP 2008033778 A JP2008033778 A JP 2008033778A
- Authority
- JP
- Japan
- Prior art keywords
- data
- database
- backup data
- backup
- client device
- 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
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Cash Registers Or Receiving Machines (AREA)
Abstract
Description
本発明は、データベースの復旧方法に関し、特にトランザクションデータを含むデータベースの復旧を効率的に行う方法等に関する。 The present invention relates to a database recovery method, and more particularly to a method for efficiently recovering a database including transaction data.
コンピュータの記憶装置に格納されたデータのバックアップ方法としては、定期的に(例えば、1日1回)データ全体のバックアップ(フルバックアップ)を実行し、定期バックアップの実行から次の定期バックアップの実行までの間は、差分バックアップを実行する方法が広く用いられている。
この方法では、最後の定期または差分バックアップの実行後に追加されたデータを復旧することができないため、記憶装置に障害が発生した際に失うデータを少なくするためには、バックアップの実行を短い時間間隔で行う必要がある。あるいは、記憶装置として2個のハードディスク装置を用い、2個のハードディスク装置に同一のデータを書き込むディスクのミラーリングを併用する場合もある。
As a backup method of data stored in the storage device of a computer, the entire data is backed up regularly (for example, once a day) (full backup), from the execution of the periodic backup to the execution of the next periodic backup. In the meantime, a method of executing differential backup is widely used.
Because this method cannot recover data that was added after the last regular or differential backup run, to reduce the amount of data lost in the event of a storage device failure, perform backup runs in short time intervals. It is necessary to do in. Alternatively, two hard disk devices may be used as storage devices, and disk mirroring for writing the same data to the two hard disk devices may be used in combination.
しかし、コンピュータの性能やシステムの要件、費用等の制約から、上記のような方法をとることができない場合もある。特許文献1には、頻繁なバックアップの実行やミラーリングを行うことなく、障害発生直前のトランザクションまでの復旧を可能とするデータベース管理システムが記載されている。
However, there are cases in which the above method cannot be adopted due to restrictions on computer performance, system requirements, costs, and the like.
このシステムでは、クライアントマシンは当日に発生したトランザクションをSQL文に変換し、発生時刻データを付加してトランザクションデータファイルに順次保存し、サーバマシンは前日の最終データベースを前日データ記憶部にバックアップし、当該マシンで当日に独自に実行したトランザクションをSQL文に変換し、発生時刻データを付加してトランザクションデータファイルに順次保存していく。そして障害発生時には、当日にサーバマシンで独自に実行されたトランザクションデータと各クライアントマシンで実行されたトランザクションデータを収集して発生時刻順にソートし、前日の最終データベースを基にして、当日の全トランザクションを発生順に再実行してデータベースを障害発生直前の状態まで復旧する。 In this system, the client machine converts the transaction that occurred on the current day into an SQL statement, adds the occurrence time data and sequentially stores it in a transaction data file, the server machine backs up the last database of the previous day to the previous day data storage unit, The transaction executed independently on that day on the machine is converted into an SQL statement, and the generation time data is added and sequentially stored in the transaction data file. When a failure occurs, the transaction data executed on the server machine on the current day and the transaction data executed on each client machine are collected and sorted in the order of occurrence, and all transactions for the current day are based on the last database of the previous day. Are executed again in the order of occurrence to restore the database to the state just before the failure occurred.
しかし、特許文献1に記載されたデータベース管理システムは、再取込したトランザクションデータのすべてをデータベースに反映させるため、バックアップデータと矛盾するデータもデータベースに反映させてしまい、データベースに不整合を生じさせる恐れがあるという問題があった。
However, since the database management system described in
そこで、本発明は、効率的にデータベースのバックアップを行うと共に、記憶装置に障害が発生した場合には、矛盾なくデータベースを復旧することができるデータベース復旧方法等を提供することを目的とする。 Therefore, an object of the present invention is to provide a database recovery method and the like that can efficiently back up a database and recover a database without any contradiction when a failure occurs in a storage device.
本発明の、コンピュータシステムは、データベースのバックアップデータを生成し、このバックアップデータをクライアント装置に退避するバックアップデータ生成手段と、クライアント装置から再受信したトランザクションデータからデータベースの復旧のために必要なものを選別するデータ選別手段と、クライアント装置に退避したバックアップデータとデータ選別手段により選別されたトランザクションデータとからデータベースを復旧するデータベース復旧手段とを備えている(請求項1ないし請求項4)。
The computer system of the present invention generates backup data for a database, backup data generation means for saving the backup data to a client device, and data necessary for database recovery from transaction data re-received from the client device. Data sorting means for sorting, and database recovery means for restoring the database from the backup data saved in the client device and the transaction data sorted by the data sorting means are provided (
上記コンピュータシステムによれば、クライアントから再取込したトランザクションデータのすべてをデータベースに反映させるのではなく、データベースの復旧に必要なものを選別して反映させている。
そのため、データベースに不整合を生じさせることなく、正しく復旧することができる。
また、再受信の対象となるトランザクションデータは、クライアントに保管されているから、バックアップを頻繁に実行したり、記憶装置を2重化したりする必要もない。
According to the above computer system, not all of the transaction data re-fetched from the client is reflected in the database, but what is necessary for database recovery is selected and reflected.
Therefore, the database can be correctly restored without causing inconsistency.
Further, since the transaction data to be re-received is stored in the client, there is no need to frequently perform backup or duplicate storage devices.
上記コンピュータシステムにおいて、バックアップデータは、データベース全体のバックアップデータである定期バックアップデータと、定期バックアップデータが作成された時点以降にコンピュータ装置で生成されデータベースに追加されたデータのバックアップデータである差分バックアップデータとからなり、データベース復旧手段は、定期バックアップデータ、再受信したトランザクションデータ、差分バックアップデータの順でデータベースに格納するようにしてもよい(請求項2)。
このようにすれば、差分バックアップのデータサイズを小さくすることができる。
In the above computer system, the backup data includes regular backup data that is backup data of the entire database, and differential backup data that is backup data of data generated by the computer device and added to the database after the periodic backup data is created. The database recovery means may store the periodic backup data, the re-received transaction data, and the differential backup data in this order in the database (claim 2).
In this way, the data size of differential backup can be reduced.
上記コンピュータシステムにおいて、再受信するトランザクションデータには、データベースの復旧のために必要であるか否かを示す選別用のフラグが付され、データ選別手段はフラグに基づいて選別を行うようにしてもよい(請求項3)。
このようにすれば、再受信したトランザクションデータの選別のためにコンピュータに与える負荷を小さくすることができる。
In the computer system, transaction data to be re-received is provided with a selection flag indicating whether or not it is necessary for database restoration, and the data selection means performs selection based on the flag. (Claim 3)
In this way, it is possible to reduce the load on the computer for selecting the re-received transaction data.
上記コンピュータシステムにおいて、クライアント装置は、POS装置であり、トランザクションデータは、POS装置の設置された店舗で販売された商品に関する情報としてもよい(請求項4)。
このようなコンピュータシステムをPOS(Point Of Sale)システムのストアコンピュータとして用いれば、店舗の営業時間中は停止させることができないPOSシステムにおいても、記憶装置の障害時に、矛盾なくデータベースを復旧することができる。
In the above computer system, the client device may be a POS device, and the transaction data may be information relating to a product sold at a store where the POS device is installed.
If such a computer system is used as a store computer of a POS (Point Of Sale) system, even in a POS system that cannot be stopped during the store's business hours, the database can be restored consistently in the event of a storage device failure. it can.
本発明の、データベース復旧方法は、データベースのバックアップデータを生成し、このバックアップデータをクライアント装置に退避するバックアップデータ生成工程と、クライアント装置から再受信したトランザクションデータからデータベースの復旧のために必要なものを選別するデータ選別工程と、クライアント装置に退避したバックアップデータとデータ選別工程で選別されたトランザクションデータとからデータベースを復旧するデータベース復旧工程とを備えている(請求項5ないし請求項8)。
The database recovery method of the present invention is a database backup data generation step for generating database backup data and saving the backup data to the client device, and a database recovery method necessary for database recovery from the transaction data re-received from the client device. And a database recovery step for recovering the database from the backup data saved in the client device and the transaction data selected in the data selection step (
上記データベース復旧方法によれば、クライアントから再取込したトランザクションデータのすべてをデータベースに反映させるのではなく、データベースの復旧に必要なものを選別して反映させている。
そのため、データベースに不整合を生じさせることなく、正しく復旧することができる。
また、再受信の対象となるトランザクションデータは、クライアントに保管されているから、バックアップを頻繁に実行したり、記憶装置を2重化したりする必要もない。
According to the above database recovery method, not all of the transaction data re-fetched from the client is reflected in the database, but what is necessary for database recovery is selected and reflected.
Therefore, the database can be correctly restored without causing inconsistency.
Further, since the transaction data to be re-received is stored in the client, there is no need to frequently perform backup or duplicate storage devices.
上記データベース復旧方法において、バックアップデータは、データベース全体のバックアップデータである定期バックアップデータと、定期バックアップデータが作成された時点以降にコンピュータ装置で生成されデータベースに追加されたデータのバックアップデータである差分バックアップデータとからなり、データベース復旧工程では、定期バックアップデータ、再受信したトランザクションデータ、差分バックアップデータの順でデータベースに格納するようにしてもよい(請求項6)。
このようにすれば、差分バックアップのデータサイズを小さくすることができる。
In the above database recovery method, the backup data is backup data of regular backup data that is backup data of the entire database, and differential backup that is backup data of data generated by a computer device and added to the database after the periodic backup data is created. In the database recovery process, the periodic backup data, the re-received transaction data, and the differential backup data may be stored in the database in this order (claim 6).
In this way, the data size of differential backup can be reduced.
上記データベース復旧方法において、再受信するトランザクションデータには、データベースの復旧のために必要であるか否かを示す選別用のフラグが付され、データ選別工程ではフラグに基づいて選別を行うようにしてもよい(請求項7)。
このようにすれば、再受信したトランザクションデータの選別のためにコンピュータに与える負荷を小さくすることができる。
In the above database recovery method, transaction data to be re-received is provided with a selection flag indicating whether it is necessary for database recovery. In the data selection process, selection is performed based on the flag. (Claim 7).
In this way, it is possible to reduce the load on the computer for selecting the re-received transaction data.
上記データベース復旧方法において、クライアント装置は、POS装置であり、トランザクションデータは、POS装置の設置された店舗で販売された商品に関する情報としてもよい(請求項8)。
このようなデータベース復旧方法をPOSシステムのストアコンピュータに適用すれば、店舗の営業時間中は停止させることができないPOSシステムにおいても、記憶装置の障害時に、矛盾なくデータベースを復旧することができる。
In the database recovery method, the client device may be a POS device, and the transaction data may be information relating to a product sold at a store where the POS device is installed.
If such a database recovery method is applied to the store computer of the POS system, even in the POS system that cannot be stopped during the business hours of the store, the database can be recovered without contradiction when the storage device fails.
本発明の、データベース復旧プログラムは、コンピュータに、データベースのバックアップデータを生成し、このバックアップデータをクライアント装置に退避するバックアップデータ生成処理と、クライアント装置から再受信したトランザクションデータからデータベースの復旧のために必要なものを選別するデータ選別処理と、クライアント装置に退避したバックアップデータとデータ選別処理により選別されたトランザクションデータとからデータベースを復旧するデータベース復旧処理とを実行させる(請求項9ないし請求項12)。 The database recovery program according to the present invention generates backup data for a database in a computer, saves the backup data to a client device, and recovers the database from transaction data re-received from the client device. Data selection processing for selecting necessary data, and database recovery processing for recovering the database from backup data saved in the client device and transaction data selected by the data selection processing are executed (claims 9 to 12). .
上記データベース復旧プログラムによれば、クライアントから再取込したトランザクションデータのすべてをデータベースに反映させるのではなく、データベースの復旧に必要なものを選別して反映させている。
そのため、データベースに不整合を生じさせることなく、正しく復旧することができる。
また、再受信の対象となるトランザクションデータは、クライアントに保管されているから、バックアップを頻繁に実行したり、記憶装置を2重化したりする必要もない。
According to the above database recovery program, not all of the transaction data re-fetched from the client is reflected in the database, but what is necessary for database recovery is selected and reflected.
Therefore, the database can be correctly restored without causing inconsistency.
Further, since the transaction data to be re-received is stored in the client, there is no need to frequently perform backup or duplicate storage devices.
上記データベース復旧プログラムにおいて、バックアップデータは、データベース全体のバックアップデータである定期バックアップデータと、定期バックアップデータが作成された時点以降にコンピュータ装置で生成されデータベースに追加されたデータのバックアップデータである差分バックアップデータとからなり、データベース復旧処理では、定期バックアップデータ、再受信したトランザクションデータ、差分バックアップデータの順でデータベースに格納するようにしてもよい(請求項10)。
このようにすれば、差分バックアップのデータサイズを小さくすることができる。
In the above database recovery program, backup data is backup data for regular backup data that is backup data for the entire database, and differential backup that is backup data for data generated by a computer device and added to the database after the periodic backup data is created. In the database recovery process, periodic backup data, re-received transaction data, and differential backup data may be stored in the database in this order (claim 10).
In this way, the data size of differential backup can be reduced.
上記データベース復旧プログラムにおいて、再受信するトランザクションデータには、データベースの復旧のために必要であるか否かを示す選別用のフラグが付され、データ選別処理はフラグに基づいて選別を行うようにしてもよい(請求項11)。
このようにすれば、再受信したトランザクションデータの選別のためにコンピュータに与える負荷を小さくすることができる。
In the database recovery program, transaction data to be re-received is provided with a selection flag indicating whether or not it is necessary for database recovery, and the data selection processing is performed based on the flag. (Claim 11).
In this way, it is possible to reduce the load on the computer for selecting the re-received transaction data.
上記データベース復旧プログラムにおいて、クライアント装置は、POS装置であり、トランザクションデータは、POS装置の設置された店舗で販売された商品に関する情報であるようにしてもよい(請求項12)。
このようなデータベース復旧プログラムをコンピュータシステムをPOSシステムのストアコンピュータとして用いれば、店舗の営業時間中は停止させることができないPOSシステムにおいても、記憶装置の障害時に、矛盾なくデータベースを復旧することができる。
In the database recovery program, the client device may be a POS device, and the transaction data may be information relating to a product sold at a store where the POS device is installed.
If such a database recovery program is used as a store computer of a POS system, even in a POS system that cannot be stopped during the store's business hours, the database can be recovered consistently when a storage device fails. .
本発明によれば、クライアントから再取込したトランザクションデータのすべてをデータベースに反映させるのではなく、データベースの復旧に必要なものを選別して反映させている。
そのため、データベースに不整合を生じさせることなく、正しく復旧することができる。
また、再受信の対象となるトランザクションデータは、クライアントに保管されているから、バックアップを頻繁に実行したり、記憶装置を2重化したりする必要もない。
According to the present invention, not all of the transaction data re-fetched from the client is reflected in the database, but what is necessary for database recovery is selected and reflected.
Therefore, the database can be correctly restored without causing inconsistency.
Further, since the transaction data to be re-received is stored in the client, there is no need to frequently perform backup or duplicate storage devices.
以下、図を参照しながら本発明の一実施形態であるPOSシステム4の構成と動作について説明する。
図1は、POSシステム4の機能ブロック図である。POSシステム4は、ストアコンピュータ装置(以下、「SC装置」と書く)1とPOS装置2により構成されている。SC装置1とPOS装置2はネットワーク3に接続され、相互にデータの送受信を行うことができる。図1には、POS装置を1台だけ示しているが、実際には、POS装置2は複数設置されている。POS装置2は、例えば商品の販売により発生したトランザクションデートをネットワーク3を介してSC装置1に送信する。トランザクションデータを受信したSC装置は、受信したデータをデータベースに格納すると共に、一定時間毎に集計処理等を行う。
Hereinafter, the configuration and operation of the POS system 4 according to an embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a functional block diagram of the POS system 4. The POS system 4 includes a store computer device (hereinafter referred to as “SC device”) 1 and a
一般的にPOSシステムでは、POSのトランザクションデータを取得し、SCで選別を行ってから再度データ取り込み処理を行い、データの補完を行う。その他に、定期バックアップ以降に発生したデータの内、重要なデータのみ差分バックアップを行い、データの補完を行う。
この時、本実施の形態では更新元データのPOSのトランザクションデータを再度取り込む処理を行うため、差分バックアップで補完するデータ対象が少なくなるためバックアップデータサイズが小さくて済む特徴がある。
また、復旧時にPOSから取得したトランザクションファイルから再取り込みする際に、不要なデータの除去を行ってからデータ取り込み処理を行うことで差分バックアップとの不整合などの問題発生を回避する。この選別処理は、トランザクションデータ生成時に予め定めた規則で選別の目印を埋め込む方法ではなく、復旧時に行うことで選別処理の変更を可能としている。
In general, in a POS system, POS transaction data is acquired, and after SC is selected, a data fetching process is performed again to complement the data. In addition, differential backup is performed only for important data among the data generated after the regular backup to supplement the data.
At this time, the present embodiment has a feature that the backup data size can be reduced because the processing of re-importing the POS transaction data of the update source data is performed, and the data target to be complemented by the differential backup is reduced.
Further, when re-fetching from the transaction file acquired from the POS at the time of recovery, the occurrence of problems such as inconsistency with the differential backup is avoided by performing data fetching processing after removing unnecessary data. This sorting process is not a method of embedding a sorting mark according to a predetermined rule at the time of generating transaction data, but can be changed at the time of recovery.
SC装置1は、データ送受信装置11、データ記憶装置12、バックアップデータ生成装置13、差分バックアップデータ生成装置14、トランザクションデータ記憶装置16、データ選別装置17、トランザクションデータ格納装置18、バックアップデータ格納装置15を備えている。
The
データ送受信装置11は、POS装置2のデータ送受信装置21との間でネットワーク3を介してデータの送受信を行う。具体的には、データ記憶装置12のバックアップを実行したときに定期バックアップデータと差分バックアップデータを送信し、データ記憶装置12の復旧処理をするときにトランザクションデータとPOS装置2に退避してある定期バックアップデータ、差分バックアップデータを受信する。
The data transmission / reception device 11 transmits / receives data to / from the data transmission / reception device 21 of the
データ記憶装置12(記憶装置の一例)には、POS装置2から受信したトランザクションデータや集計結果がデータベースとして格納されている。
In the data storage device 12 (an example of a storage device), transaction data received from the
バックアップデータ生成装置13は、データ記憶装置12に格納されているデータの定期バックアップを行い定期バックアップデータを生成する。定期バックアップは、例えば1日1回POS装置が設置されている店舗等の営業終了時に行い、生成した定期バックアップデータは、データ送受信装置11を介してPOS装置2に送信し、バックアップデータ記憶装置23に格納する。すなわち、データ送受信装置11とバックアップデータ生成装置13は、バックアップデータ生成手段の一例である。
The backup data generation device 13 performs regular backup of data stored in the
差分バックアップデータ生成装置14は、データ記憶装置12に格納されているデータの差分バックアップを行い差分バックアップデータを生成する。定期バックアップは、例えば1時間ごとに行い、直前の定期バックアップ実行時点からその時点までの差分を差分パックアップデータとして生成する。ただし、差分バックアップの対象とするデータは、SC装置1で生成したデータ、例えばトランザクションデータの集計結果等とし、トランザクションデータは差分バックアップの対象としない。生成した差分バックアップデータは、データ送受信装置11を介してPOS装置2に送信し、差分バックアップデータ記憶装置24に格納する。すなわち、データ送受信装置11と差分バックアップデータ生成装置14は、バックアップデータ生成手段の一例である。
The differential backup data generation device 14 performs differential backup of data stored in the
バックアップデータ格納装置15は、データ記憶装置12の復旧処理時に、データ送受信装置11を介して、POS装置2のバックアップデータ記憶装置23に退避してある定期バックアップデータと、POS装置2の差分バックアップデータ記憶装置24に退避してある差分バックアップデータを取得し、これらをデータ記憶装置12に格納する。
The backup data storage device 15 receives the regular backup data saved in the backup
トランザクションデータ記憶装置16は、データ記憶装置12の復旧処理時に、データ送受信装置11を介して、POS装置2のトランザクションデータ記憶装置22に記憶されているトランザクションデータを取得し、一時的に記憶する。このトランザクションデータは、直前の定期バックアップ実行時点からその時点までに発生したトランザクションデータがすべて含まれている。
The transaction data storage device 16 acquires and temporarily stores the transaction data stored in the transaction data storage device 22 of the
データ選別装置17(データ選別手段の一例)は、データ記憶装置12の復旧処理時に、トランザクションデータ記憶装置16に記憶されているトランザクションデータの中から、データ記憶装置12格納すると問題を生じるトランザクションデータを除去し、データベースの復旧必要なものを選別する。問題を生じるトランザクションデータとしては、例えば、精算処理用のデータがある。このようなデータを再度取り込んでしまうと、SC装置1の障害発生前に確定済みになった精算確定データを再度作成可能となり、精算確定データが二重で本部送信されてしまう。また、作成途中で修正可能なため、障害発生前と異なる金額のデータが発生し、SC装置1内部と本部側で数字の差異が生じてしまう。
The data selection device 17 (an example of data selection means) selects transaction data that causes a problem when stored in the
トランザクションデータ格納装置18は、データ記憶装置12の復旧処理時に、データ選別装置17による選別が行われた後にトランザクションデータ記憶装置16に記憶されているトランザクションデータをデータ記憶装置16に格納する。すなわち、バックアップデータ格納装置15とトランザクションデータ格納装置18は、データベース復旧手段の一例である。
The transaction data storage device 18 stores the transaction data stored in the transaction data storage device 16 after being sorted by the data sorting device 17 during the recovery process of the
上記のSC装置1の各機能ブロックは、SC装置1のCPU(Central Processing Unit)がコンピュータプログラムを実行してSC装置1のハードウェアを制御することにより実現される。
Each functional block of the
POS装置2は、POS装置2は、店舗等に設置した端末装置で、トランザクションデータを入力するための入力装置、例えばバーコード読取装置のほか、データ送受信装置21、トランザクションデータ記憶装置22、バックアップデータ記憶装置23、差分バックアップデータ記憶装置24を備えている。
データ送受信装置21は、SC装置1のデータ送受信装置11との間でネットワーク3を介してデータの送受信を行う。具体的には、データ記憶装置12のバックアップが実行されたときに定期バックアップデータと差分バックアップデータを受信し、データ記憶装置の復旧処理が行われるときにトランザクションデータ記憶装置22に格納されているトランザクションデータと、バックアップデータ記憶装置23に格納されている定期バックアップデータと、差分バックアップデータ記憶装置24に格納されている差分バックアップデータを送信する。また、POSシステムが正常に動作しているときは、POS装置2で発生したトランザクションデータを発生直後に送信する。
The
The data transmission / reception device 21 transmits / receives data to / from the data transmission / reception device 11 of the
トランザクションデータ記憶装置22には、SC装置1に送信したトランザクションデータが格納されている。トランザクションデータは、トランザクションデータ記憶装置22の記憶容量が許す限りで、送信したデータをすべて記憶しておくようにし、SC装置1から再送信要求があったときには、記憶されているデータをすべて送信する。このようにすれば、POS装置2側で送信するデータの選別を行わずに済むため、POS装置2側の処理を単純化することができる。
The transaction data storage device 22 stores transaction data transmitted to the
バックアップデータ記憶装置23には、SC装置1から受信した定期バックアップデータが、差分バックアップデータ記憶装置24には、SC装置1から受信した差分バックアップデータが、それぞれ格納されている。
The backup
POS装置2が複数設置されている場合は、各POS装置2がトランザクションデータ記憶装置22を備え、自己が送信したトランザクションデータを格納する。また、バックアップデータ記憶装置23と差分バックアップデータ記憶装置24については、それぞれ1台以上のPOS装置2に設けるようにすればよく、全部のPOS装置2に設ける必要はない。この実施例では、定期バックアップデータと差分バックアップデータをそれぞれ2台のPOS装置2に退避している。このようにすることで、2台中1台へのバックアップデータの退避が何らかの理由で失敗しても、バックアップデータを確保することができる。
When a plurality of
次に、POSシステム4のバックアップ動作について図1と図2を参照しながら説明する。バックアップは定期的に実施する定期バックアップ処理と、その間に実施する差分バックアップ処理に分かれる。
定期バックアップ処理では、SC装置1のバックアップデータ生成装置13がデータ記憶装置12に格納されたデータから定期バックアップデータを生成する(S101)。定期バックアップデータには、その時点にデータ記憶装置12に格納されているデータがすべて含まれている。バックアップデータ生成装置13は、データ送受信装置11とデータ送受信装置21を経て、定期バックアップデータをPOS装置2のバックアップデータ記憶装置23に格納する(S102)。
Next, the backup operation of the POS system 4 will be described with reference to FIGS. The backup is divided into a periodic backup process that is periodically performed and a differential backup process that is performed in the meantime.
In the regular backup process, the backup data generation device 13 of the
定期バックアップと次の定期バックアップの間の期間は、差分バックアップデータ生成装置14がデータ記憶装置12のデータから差分バックアップデータを生成する(S103)。差分バックアップデータには、直前の定期バックアップの実行後にSC装置1で生成されたデータのみが含まれている。差分バックアップデータ生成装置14は、データ送受信装置11とデータ送受信装置21を経て、差分バックアップデータをPOS装置2の差分バックアップデータ記憶装置24に格納する(S104)。
During the period between the regular backup and the next regular backup, the differential backup data generation device 14 generates differential backup data from the data in the data storage device 12 (S103). The differential backup data includes only data generated by the
次に、復旧処理として、SC装置1の障害によりデータ記憶装置12のデータが消失した場合の復旧動作を図1と図3を参照して説明する。復旧処理は、(1)定期バックアップデータの復旧、(2)POSのトランザクションデータの再取り込み、(3)差分バックアップデータの復旧という手順で行う。
Next, as a recovery process, a recovery operation when data in the
図3を参照すると、まず、定期バックアップデータの復旧処理として、バックアップデータ格納装置15は、POS装置2のバックアップデータ記憶装置23からデータ送受信装置21とデータ送受信装置11を介して定期バックアップデータを取得し(S111)、これをデータ記憶装置12に格納する(S112)。この処理により、定期バックアップ採取時までのデータが復旧される。
Referring to FIG. 3, first, as a backup process for the regular backup data, the backup data storage device 15 acquires the regular backup data from the backup
次に、POSのトランザクションデータの再取り込み処理として、POS装置2のトランザクションデータ記憶装置22のデータをデータ送受信装置21とデータ送受信装置11によりトランザクションデータ記憶装置16に格納する(S113)。次に、データ選別装置17は、トランザクションデータ格納装置15から問題を生じるデータを除去する(S114)。選別データ格納装置18は、問題を生じるデータを序済みのトランザクションデータ(選別されたトランザクションデータ)をデータベースに反映してデータ記憶装置12に格納する(S115)。これにより、トランザクションデータを元データに処理されたデータが復旧される。
Next, as the POS transaction data re-fetching process, the data in the transaction data storage device 22 of the
上記の動作例では、トランザクションデータの再受信後にデータ選別装置17がデータの内容やその属性に基づいて選別を行うようにしているが、POS装置2がトランザクションデータをトランザクションデータ記憶装置22に保存する際に、予め選別用のフラグ等を付加し、データ選別装置17はそのフラグ等の有無により選別を行うようにしてもよい。
In the above operation example, after the transaction data is re-received, the data selection device 17 performs the selection based on the data contents and its attributes. However, the
次に、バックアップデータ格納装置15は、POS装置2の差分バックアップデータ記憶装置23からデータ送受信装置21とデータ送受信装置11を介して差分バックアップデータを取得し(S116)、これをデータ記憶装置12に格納する(S117)。これにより、定期パックアップ実行以降の差分バックアップデータの分が復旧される。
Next, the backup data storage device 15 acquires the differential backup data from the differential backup
次に、POSシステム4の効果について説明する。
POS装置2に保存されたトランザクションデータをSC装置1に再送することにより、POS装置2から送られたトランザクションデータに基づく処理を再度実施することが可能となり、定期バックアップ以降のデータの補完が可能となる。
Next, the effect of the POS system 4 will be described.
By resending the transaction data stored in the
POS装置2からのトランザクションデータをデータベースに反映した結果の分はバックアップする必要が無くなるため、差分バックアップで生成されるバックアップデータのサイズを小さくできる。
Since it is not necessary to back up the result of reflecting the transaction data from the
データ選別装置17により、POS装置2に保存されたトランザクションデータを再度処理する場合に問題データを予め取り除くことで、不具合発生を防止することができる。
When the transaction data stored in the
データ選別装置17による選別処理をトランザクションデータ生成時POS装置1側で埋め込まれたフラグ等の識別情報を使う方法ではなく、復旧時点に再受信したデータ内容に基づいて行うようにすれば、選別処理の変更を容易に行うことができる。POS装置2でトランザクションデータ記憶装置22に格納する際に、識別フラグをトランザクションデータに付加するようにし、データ選別装置17がフラグの有無により選別を行うようにすれば、データ選別装置17による選別処理の負荷を低減させることができる。
If the sorting process by the data sorting device 17 is not based on a method of using identification information such as a flag embedded on the
バックアップデータの保存先を店舗の標準構成モデルで必ず存在するPOS装置2とするため、バックアップデータ媒体(例えば、磁気テープ)の保管作業が不要である。
Since the storage destination of the backup data is the
1 SC装置
2 POS装置
3 ネットワーク
4 POSシステム
11 データ送受信装置
12 データ記憶装置
13 バックアップデータ生成装置
14 差分バックアップデータ生成装置
15 バックアップデータ格納装置
16 トランザクションデータ記憶装置
17 データ選別装置
18 トランザクションデータ格納装置
21 データ送受信装置
22 トランザクションデータ記憶装置
23 バックアップデータ記憶装置
24 差分バックアップデータ記憶装置
DESCRIPTION OF
Claims (12)
前記データベースのバックアップデータを生成し、このバックアップデータを前記クライアント装置に退避するバックアップデータ生成手段と、
前記クライアント装置から再受信した前記トランザクションデータから前記データベースの復旧のために必要なものを選別するデータ選別手段と、
前記クライアント装置に退避した前記バックアップデータと前記データ選別手段により選別されたトランザクションデータとから前記データベースを復旧するデータベース復旧手段とを備えたことを特徴としたコンピュータシステム。 In a computer system having a storage device for storing a database including transaction data received from a client device,
Backup data generation means for generating backup data of the database and saving the backup data to the client device;
Data selecting means for selecting necessary data for restoring the database from the transaction data re-received from the client device;
A computer system comprising: database recovery means for recovering the database from the backup data saved in the client device and the transaction data selected by the data selection means.
前記データベース復旧手段は、前記定期バックアップデータ、前記再受信したトランザクションデータ、前記差分バックアップデータの順で前記データベースに格納することを特徴とした請求項1に記載のコンピュータシステム。 The backup data includes regular backup data that is backup data of the entire database, and differential backup data that is backup data of data generated by the computer device and added to the database after the time when the regular backup data is created. And consist of
2. The computer system according to claim 1, wherein the database restoration unit stores the periodic backup data, the re-received transaction data, and the differential backup data in the order of the database.
前記データベースのバックアップデータを生成し、このバックアップデータを前記クライアント装置に退避するバックアップデータ生成工程と、
前記クライアント装置から再受信した前記トランザクションデータから前記データベースの復旧のために必要なものを選別するデータ選別工程と、
前記クライアント装置に退避した前記バックアップデータと前記データ選別工程で選別されたトランザクションデータとから前記データベースを復旧するデータベース復旧工程とを備えたことを特徴としたデータベース復旧方法。 In a method of recovering a database including transaction data received from a client device,
Generating backup data of the database, and backup data generating step of saving the backup data to the client device;
A data selection step of selecting what is necessary for recovery of the database from the transaction data re-received from the client device;
A database recovery method comprising: a database recovery step for recovering the database from the backup data saved in the client device and the transaction data selected in the data selection step.
前記データベース復旧工程では、前記定期バックアップデータ、前記再受信したトランザクションデータ、前記差分バックアップデータの順で前記データベースに格納することを特徴とした請求項5に記載のデータベース復旧方法。 The backup data includes regular backup data that is backup data of the entire database, and differential backup data that is backup data of data generated by the computer device and added to the database after the time when the regular backup data is created. And consist of
6. The database recovery method according to claim 5, wherein in the database recovery step, the periodic backup data, the re-received transaction data, and the differential backup data are stored in the database in this order.
コンピュータに、
前記データベースのバックアップデータを生成し、このバックアップデータを前記クライアント装置に退避するバックアップデータ生成処理と、
前記クライアント装置から再受信した前記トランザクションデータから前記データベースの復旧のために必要なものを選別するデータ選別処理と、
前記クライアント装置に退避した前記バックアップデータと前記データ選別処理により選別されたトランザクションデータとから前記データベースを復旧するデータベース復旧処理とを実行させることを特徴としたデータベース復旧プログラム。 In a program for recovering a database including transaction data received from a client device,
On the computer,
Generating backup data of the database, and generating backup data for saving the backup data to the client device;
A data selection process for selecting what is necessary for recovery of the database from the transaction data re-received from the client device;
A database recovery program for executing a database recovery process for recovering the database from the backup data saved in the client device and the transaction data selected by the data selection process.
前記データベース復旧処理では、前記定期バックアップデータ、前記再受信したトランザクションデータ、前記差分バックアップデータの順で前記データベースに格納することを特徴とした請求項9に記載のデータベース復旧プログラム。 The backup data includes regular backup data that is backup data of the entire database, and differential backup data that is backup data of data generated by the computer device and added to the database after the time when the regular backup data is created. And consist of
The database recovery program according to claim 9, wherein in the database recovery process, the periodic backup data, the re-received transaction data, and the differential backup data are stored in the database in this order.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006208406A JP2008033778A (en) | 2006-07-31 | 2006-07-31 | Computer system, database restoration method, and database restoration program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006208406A JP2008033778A (en) | 2006-07-31 | 2006-07-31 | Computer system, database restoration method, and database restoration program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008033778A true JP2008033778A (en) | 2008-02-14 |
Family
ID=39123095
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006208406A Pending JP2008033778A (en) | 2006-07-31 | 2006-07-31 | Computer system, database restoration method, and database restoration program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008033778A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011253500A (en) * | 2010-06-04 | 2011-12-15 | Mitsubishi Electric Corp | Data distribution system, distributed monitoring control system and data distribution method |
JP2014048969A (en) * | 2012-08-31 | 2014-03-17 | Nippon Telegr & Teleph Corp <Ntt> | Server, file management system, file management method and file management program |
WO2014120137A1 (en) * | 2013-01-30 | 2014-08-07 | Hewlett-Packard Development Company, L.P. | Recovering pages of a database |
US9081735B2 (en) | 2011-02-12 | 2015-07-14 | International Business Machines Corporation | Collaborative information source recovery |
JP2016122481A (en) * | 2016-04-07 | 2016-07-07 | 株式会社エヌ・ティ・ティ・データ | Virtual machine management system, virtual machine management method, and program |
JP2017097791A (en) * | 2015-11-27 | 2017-06-01 | 株式会社三菱東京Ufj銀行 | Data processing device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003058956A (en) * | 2001-08-20 | 2003-02-28 | Toshiba Tec Corp | Data processor |
JP2005141555A (en) * | 2003-11-07 | 2005-06-02 | Fujitsu General Ltd | Backup method of database, and online system using same |
JP2006065845A (en) * | 2004-08-24 | 2006-03-09 | Microsoft Corp | Generation of optimized restoration plan |
-
2006
- 2006-07-31 JP JP2006208406A patent/JP2008033778A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003058956A (en) * | 2001-08-20 | 2003-02-28 | Toshiba Tec Corp | Data processor |
JP2005141555A (en) * | 2003-11-07 | 2005-06-02 | Fujitsu General Ltd | Backup method of database, and online system using same |
JP2006065845A (en) * | 2004-08-24 | 2006-03-09 | Microsoft Corp | Generation of optimized restoration plan |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011253500A (en) * | 2010-06-04 | 2011-12-15 | Mitsubishi Electric Corp | Data distribution system, distributed monitoring control system and data distribution method |
US9081735B2 (en) | 2011-02-12 | 2015-07-14 | International Business Machines Corporation | Collaborative information source recovery |
US9858152B2 (en) | 2011-02-12 | 2018-01-02 | International Business Machines Corporation | Collaborative information source recovery |
DE112012000305B4 (en) | 2011-02-12 | 2023-08-17 | International Business Machines Corporation | Collaborative recovery from data sources |
JP2014048969A (en) * | 2012-08-31 | 2014-03-17 | Nippon Telegr & Teleph Corp <Ntt> | Server, file management system, file management method and file management program |
WO2014120137A1 (en) * | 2013-01-30 | 2014-08-07 | Hewlett-Packard Development Company, L.P. | Recovering pages of a database |
JP2017097791A (en) * | 2015-11-27 | 2017-06-01 | 株式会社三菱東京Ufj銀行 | Data processing device |
JP2016122481A (en) * | 2016-04-07 | 2016-07-07 | 株式会社エヌ・ティ・ティ・データ | Virtual machine management system, virtual machine management method, and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9015527B2 (en) | Data backup and recovery | |
TW522320B (en) | Apparatus and method for recovering a failed database data set | |
JP5075736B2 (en) | System failure recovery method and system for virtual server | |
US7480918B2 (en) | Duplicate message elimination during recovery when multiple threads are delivering messages from a message store to a destination queue | |
US7987325B1 (en) | Method and apparatus for implementing a storage lifecycle based on a hierarchy of storage destinations | |
WO2007103141A2 (en) | Method and apparatus for providing virtual machine backup | |
US10169166B2 (en) | Real-time fault-tolerant architecture for large-scale event processing | |
JP2008033778A (en) | Computer system, database restoration method, and database restoration program | |
CN101438275B (en) | Work item event procession | |
US11113252B2 (en) | User selectable data source for data recovery | |
CN105589756B (en) | Batch processing group system and method | |
CN110222039B (en) | Data storage and garbage data cleaning method, device, equipment and storage medium | |
CN110825562B (en) | Data backup method, device, system and storage medium | |
JP2006004031A (en) | Data processing method, system, storage device method, and its processing program | |
JP2004295462A (en) | Recovery processing method, execution system of the same, and processing program of the same | |
CN111488243A (en) | MongoDB database backup and recovery method and device, electronic equipment and storage medium | |
JP2009110319A (en) | Backup system, server device, backup method used for them, and its program | |
US20160139996A1 (en) | Methods for providing unified storage for backup and disaster recovery and devices thereof | |
CN111625402A (en) | Data recovery method and device, electronic equipment and computer readable storage medium | |
JP4998010B2 (en) | Database system management, database system, program and processing apparatus | |
JP2005182588A (en) | Management of backup data in storage device | |
US7065539B2 (en) | Data transfer method | |
US8589354B1 (en) | Probe based group selection | |
KR20160074587A (en) | Checkpointing a collection of data units | |
JP2007257156A (en) | Restore system and restore method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100212 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100223 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20100622 |