JP5621465B2 - Database system - Google Patents

Database system Download PDF

Info

Publication number
JP5621465B2
JP5621465B2 JP2010214776A JP2010214776A JP5621465B2 JP 5621465 B2 JP5621465 B2 JP 5621465B2 JP 2010214776 A JP2010214776 A JP 2010214776A JP 2010214776 A JP2010214776 A JP 2010214776A JP 5621465 B2 JP5621465 B2 JP 5621465B2
Authority
JP
Japan
Prior art keywords
database
update
data
log
sub
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.)
Expired - Fee Related
Application number
JP2010214776A
Other languages
Japanese (ja)
Other versions
JP2012069031A (en
Inventor
桂太 岩野
桂太 岩野
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 JP2010214776A priority Critical patent/JP5621465B2/en
Publication of JP2012069031A publication Critical patent/JP2012069031A/en
Application granted granted Critical
Publication of JP5621465B2 publication Critical patent/JP5621465B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Description

本発明は、データベースシステムに関する。   The present invention relates to a database system.

メモリデータベースはディスクデータベースに比べて高速に動作するが、障害発生時にはデータが失われてしまう。そのための対策として、メモリデータベースの更新時にログを作成しておき、随時バックエンドのディスクデータベースにログを反映させていく(遅延更新)構成をとることが一般的である。   The memory database operates faster than the disk database, but data is lost when a failure occurs. As a countermeasure for this, it is common to adopt a configuration in which a log is created when the memory database is updated and the log is reflected in the back-end disk database as needed (delayed update).

データベースの複製を作成する技術として、例えば特許文献1には、更新が行なわれるマスタデータベースと、マスタデータベースの複製を格納するレプリカと、レプリカ上のマスタデータベースの更新データに関して、特定のデータベーステーブル、優先テーブル項目及び優先キーのいずれか一つを更新する優先順位であって、高い優先順位を持つ特定の更新データを、低い優先順位を有する更新データよりも前に更新するように予め決められた優先順位を示す優先順位情報を保持する優先順位情報記憶部と、高い優先順位の更新データが低い優先順位の更新データよりも早く抽出されるように、優先順位情報に従って、更新データを読んで、更新データを抽出する振分部と、抽出された更新データでレプリカを更新する管理部とを備えたデータベースシステムが開示されている。   As a technique for creating a replica of a database, for example, Patent Document 1 discloses that a master database to be updated, a replica that stores a replica of the master database, and a master database update data on the replica, a specific database table, priority Precedence to update any one of the table items and the priority key, and a predetermined priority to update specific update data having a high priority before update data having a low priority A priority information storage unit that holds priority information indicating the order, and updates and reads update data according to the priority information so that update data with high priority is extracted earlier than update data with low priority A distribution unit that extracts data and a management unit that updates the replica with the extracted update data Over database system is disclosed.

特許第3686564号公報Japanese Patent No. 3686564

高可用性が求められるシステムにおいては、フロントのデータベースが何らかの理由で利用できなくなった場合には、一時的にバックエンドのデータベースをフロント側として機能させることになるが、その際、全てのデータをバックエンドのデータベースに反映させると時間を要し、その間はサービスを提供できないという問題がある。   In a system that requires high availability, if the front database becomes unavailable for some reason, the back end database will temporarily function as the front side. When reflected in the end database, it takes time, and there is a problem that the service cannot be provided during that time.

特許文献1に開示されたシステムでは、指定された優先順位に従ってレプリカへのデータ反映を行っているが、フロントのデータベースが使用できなくなった際にバックエンドのデータベースに切り替える間のサービスの停止時間を短縮することには対応できない。   In the system disclosed in Patent Document 1, data is reflected in the replica according to the specified priority. However, when the front database becomes unavailable, the service stop time during switching to the back end database is reduced. It cannot cope with shortening.

そこで、本発明の目的は、データベースの切り替え時に、最低限必要な情報を切り替え先のデータベースに反映させながら、切り替えに伴うサービスの停止時間を最小限に抑えることが可能なデータベースシステムを提供することである。   Accordingly, an object of the present invention is to provide a database system capable of minimizing the service stop time associated with switching while reflecting the minimum necessary information in the switching destination database when switching the database. It is.

本発明に係るデータベースシステムは、アプリケーションが要求するデータ更新処理を反映したデータを保持するメインデータベースと、前記メインデータベースに対する前記データ更新処理のログデータを管理し、前記ログデータをサブデータベースに随時反映させる更新ログ管理部と、を備え、前記更新ログ管理部は、前記ログデータを処理順序の保持が必要な処理のログデータと順序の保持が不要な処理のログデータに分けて管理し、前記メインデータベースが使用できなくなった時は、前記処理順序の保持が必要な処理のログデータを全て前記サブデータベースに反映させた後、前記アプリケーションからのデータ更新処理を前記サブデータベースに直接反映させることを可能にするものである。   The database system according to the present invention manages a main database holding data reflecting data update processing requested by an application, log data of the data update processing for the main database, and reflects the log data in a sub-database as needed And an update log management unit that manages the log data separately for log data of a process that needs to maintain a processing order and log data of a process that does not need to maintain the order, When the main database becomes unusable, after reflecting all the log data of the processing that needs to maintain the processing order in the sub-database, the data update processing from the application is directly reflected in the sub-database. It is what makes it possible.

本発明によれば、データベースの切り替え時に、最低限必要な情報を切り替え先のデータベースに反映させながら、切り替えに伴うサービスの停止時間を最小限に抑えることができる。   According to the present invention, when a database is switched, the minimum required information is reflected in the switching destination database, and the service stop time associated with the switching can be minimized.

本発明の実施の形態による、データベースシステムの構成を示すブロック図。The block diagram which shows the structure of the database system by embodiment of this invention. 本発明の実施の形態による、メモリデータベースの動作のフローチャート。The flowchart of operation | movement of a memory database by embodiment of this invention. 本発明の実施の形態による、更新ログ管理部の機能を説明する図。The figure explaining the function of the update log management part by embodiment of this invention. 本発明の実施の形態による、更新ログ管理テーブルの構成例を示す図。The figure which shows the structural example of the update log management table by embodiment of this invention. 本発明の実施の形態による、メモリデータベース操作とディスクデータベース操作の対応定義の例を示す図である。It is a figure which shows the example of a correspondence definition of memory database operation and disk database operation by embodiment of this invention. 本発明の実施の形態による、データベース切り替え時の処理のフローチャート。The flowchart of the process at the time of database switching by embodiment of this invention. 本発明の実施の形態による、データベース切り替え時の、アクセス制御部の処理のフローチャート。The flowchart of the process of an access control part at the time of database switching by embodiment of this invention.

次に、本発明を実施するための形態について、図面を参照して詳細に説明する。
図1は、本発明の実施の形態によるデータベースシステム1の構成を示すブロック図である。図に示すように、データベースシステム1は、アプリケーション部101、アクセス制御部102、メモリデータベース103、更新ログ管理部104、メモリ/ディスクDB操作変換部105、ディスクデータベース106を備えている。
Next, embodiments for carrying out the present invention will be described in detail with reference to the drawings.
FIG. 1 is a block diagram showing a configuration of a database system 1 according to an embodiment of the present invention. As shown in the figure, the database system 1 includes an application unit 101, an access control unit 102, a memory database 103, an update log management unit 104, a memory / disk DB operation conversion unit 105, and a disk database 106.

データベースシステム1は、CPU、ROMやRAM等のメモリ、各種の情報を格納する外部記憶装置、入力インタフェース、出力インタフェース、通信インタフェース及びこれらを結ぶバスを備える専用又は汎用のコンピュータを適用することができる。なお、データベースシステム1は、単一のコンピュータにより構成されるものであっても、通信ネットワークを介して互いに接続された複数のコンピュータにより構成されるものであってもよい。   As the database system 1, a dedicated or general-purpose computer including a CPU, a memory such as a ROM or a RAM, an external storage device that stores various information, an input interface, an output interface, a communication interface, and a bus connecting them can be applied. . The database system 1 may be configured by a single computer or may be configured by a plurality of computers connected to each other via a communication network.

アプリケーション部101、アクセス制御部102、更新ログ管理部104、メモリ/ディスクDB操作変換部105は、CPUがROM等に格納された所定のプログラムを実行することにより実現される機能のモジュールに相当する。メモリデータベース103はRAM等のメモリによって実現される。ディスクデータベース106は、ハードディスクなどの外部記憶装置によって実現される。   The application unit 101, the access control unit 102, the update log management unit 104, and the memory / disk DB operation conversion unit 105 correspond to modules of functions realized when the CPU executes a predetermined program stored in a ROM or the like. . The memory database 103 is realized by a memory such as a RAM. The disk database 106 is realized by an external storage device such as a hard disk.

次に、データベースシステム1の動作について説明する。
まず、通常の動作、すなわち、メモリデータベース103が使用可能である場合の動作について説明する。
Next, the operation of the database system 1 will be described.
First, a normal operation, that is, an operation when the memory database 103 is usable will be described.

アプリケーション部101は、アクセス制御部102を介してメモリデータベース103またはディスクデータベース106にアクセスし、データベースに格納されているデータの参照や更新を行う。   The application unit 101 accesses the memory database 103 or the disk database 106 via the access control unit 102, and refers to or updates data stored in the database.

アプリケーション部101は、データ更新処理を行う場合、更新内容が順序性の保持を要するものであれば、アクセス時にその情報も付加する。順序性保持の要不要はアプリケーション部101が決定する。例えば、データの内容が入出金情報等、矛盾があってはならない情報の場合は順序性保持要と判断し、データの参照やバッチ処理など、データベースシステムによるサービスの継続に必ずしも必要でない情報の場合は、順序性保持不要と判断する。   When the data update process is performed, the application unit 101 adds the information at the time of access if the update contents need to maintain the order. The application unit 101 determines whether or not it is necessary to maintain the order. For example, if the data content is information that should not be inconsistent, such as deposit / withdrawal information, it is determined that the order must be maintained, and the information is not necessarily required for continuation of the service by the database system, such as data reference or batch processing. Determines that it is not necessary to maintain order.

アクセス制御部102は、アプリケーション部101からのアクセスをメモリデータベース103に転送する。   The access control unit 102 transfers access from the application unit 101 to the memory database 103.

メモリデータベース103の動作について図2のフローチャートを用いて説明する。
メモリデータベース103は、アプリケーション部101からのアクセスを受信すると(ステップS11)、処理内容がデータ更新の要求であるか否かを判定する(ステップS12)。ステップS12でデータ更新要求であると判断された場合(Yes)には、ステップS13に進む。データ更新要求ではない場合(No)には、ステップS14に進んでデータを返却する。
The operation of the memory database 103 will be described with reference to the flowchart of FIG.
When receiving an access from the application unit 101 (step S11), the memory database 103 determines whether or not the processing content is a data update request (step S12). If it is determined in step S12 that the request is a data update request (Yes), the process proceeds to step S13. If it is not a data update request (No), the process proceeds to step S14 and data is returned.

ステップS13では、アプリケーション部101に記憶されている対象データの更新データ更新を行う。さらに、ステップS15では、当該データ更新処理が、順序性保持を要するものであるか否かを判定する。順序性保持を要する更新処理である場合(Yes)には、ステップS16へ進み、更新ログ管理部104に、順序性保持を要する旨と共に更新内容を通知する。順序性保持が不要な更新処理である場合(No)には、ステップS17へ進み、更新ログ管理部104に更新内容を通知する。   In step S13, the update data of the target data stored in the application unit 101 is updated. Further, in step S15, it is determined whether or not the data update process requires order retention. If the update process requires order retention (Yes), the process advances to step S16 to notify the update log management unit 104 of the update contents together with the necessity of order retention. If the update process does not require maintaining the order (No), the process proceeds to step S17, and the update content is notified to the update log management unit 104.

更新ログ管理部104は、メモリデータベース103から通知された更新内容を更新ログ管理テーブルに格納する。図3に示すように、更新ログ管理部104は、メモリデータベース103で更新された内容を記録する更新ログ管理テーブル有している。更新ログ管理テーブルは、順序性保持を要する更新ログ用のテーブルと、順序性保持が不要な更新ログ用のテーブルがそれぞれ1つずつ用意される。   The update log management unit 104 stores the update content notified from the memory database 103 in the update log management table. As shown in FIG. 3, the update log management unit 104 has an update log management table that records the contents updated in the memory database 103. As the update log management table, an update log table that needs to maintain order and an update log table that does not need to maintain order are prepared.

図4は、更新ログ管理テーブルの構成例を示す図である。更新ログ管理テーブルには、メモリデータベース103が更新された時刻、更新の操作種別(書き込み、削除等)、更新されたレコードのキー種別、更新後のレコードの内容等が記録される。   FIG. 4 is a diagram illustrating a configuration example of the update log management table. The update log management table records the time when the memory database 103 was updated, the update operation type (write, delete, etc.), the key type of the updated record, the content of the updated record, and the like.

データベースシステム1は、メモリデータベース103の更新内容のログをディスクデータベースに反映させる遅延更新を行っている。遅延更新時、更新ログ管理部104は、システムの負荷が低い時など、適切なタイミングで、各更新ログ管理テーブルのデータを更新時刻の古いログから順に随時、メモリ/ディスクDB操作変換部105を介してディスクデータベース106に反映させていく。この時、更新ログの順序性保持の要不要は区別しない。また、ディスクデータベース106への反映が完了したログは、更新ログ管理テーブルから削除される。   The database system 1 performs a delayed update in which a log of update contents of the memory database 103 is reflected in the disk database. At the time of delayed update, the update log management unit 104 sets the memory / disk DB operation conversion unit 105 to the data in each update log management table in order from the oldest update time at an appropriate timing, such as when the system load is low. Through the disk database 106. At this time, the necessity of maintaining the order of the update logs is not distinguished. In addition, the log that has been reflected in the disk database 106 is deleted from the update log management table.

メモリ/ディスクDB操作変換部105は、メモリデータベース103で実行された操作をディスクデータベース106に対応した処理に変換する。図5は、メモリデータベース103用の命令と、それに対応するSQL等、ディスクデータベース106用の命令の定義情報の例である。メモリ/ディスクDB操作変換部105は、この定義情報に従ってアプリケーション部101や更新ログ管理部104からのアクセスをディスクデータベース106用の操作に変換する。   The memory / disk DB operation conversion unit 105 converts an operation executed in the memory database 103 into a process corresponding to the disk database 106. FIG. 5 shows an example of definition information of instructions for the disk database 106, such as instructions for the memory database 103 and corresponding SQL. The memory / disk DB operation conversion unit 105 converts accesses from the application unit 101 and the update log management unit 104 into operations for the disk database 106 according to the definition information.

ディスクデータベース106は、メモリ/ディスクDB操作変換部105を介して入力される更新ログ管理部104からの遅延更新情報や、メモリデータベース103停止時にはアプリケーション部101からのデータ更新・参照要求を受けて、データの更新・返却を行う。   The disk database 106 receives delayed update information from the update log management unit 104 input via the memory / disk DB operation conversion unit 105, and receives a data update / reference request from the application unit 101 when the memory database 103 is stopped. Update and return data.

なお、アクセス制御部102はアプリケーション部101からのアクセスをディスクデータベース106に転送する場合には、メモリ/ディスクDB操作変換部105を介して転送を行う。そのため、アプリケーション部101には、どちらのデータベースにアクセスしているかは意識させない。   The access control unit 102 transfers the access from the application unit 101 to the disk database 106 via the memory / disk DB operation conversion unit 105. For this reason, the application unit 101 is not made aware of which database is being accessed.

次に、メモリデータベース103が使用できなくなった場合の動作について、図6、7を用いて説明する。   Next, an operation when the memory database 103 becomes unusable will be described with reference to FIGS.

メモリデータベース103が障害発生等の理由で使えなくなった場合、図6に示すように、更新ログ管理部104は、まず要順序性の更新ログテーブルのログだけをディスクデータベース106に全て反映させる。反映が完了したら、アクセス制御部102に反映完了通知を送信する。通常の更新ログテーブルに残っているログデータは、適切なタイミングで随時ディスクデータベース106に反映させていく。なお、これらの更新ログ反映処理もメモリ/ディスクDB操作変換部105を通して行われる。   When the memory database 103 becomes unusable due to a failure or the like, as shown in FIG. 6, the update log management unit 104 first reflects all the logs of the update log table with the required order on the disk database 106. When the reflection is completed, a reflection completion notification is transmitted to the access control unit 102. The log data remaining in the normal update log table is reflected in the disk database 106 as needed at an appropriate timing. These update log reflection processes are also performed through the memory / disk DB operation conversion unit 105.

また、アクセス制御部102は、図7に示すように、アプリケーション部101のアクセスを検知したら(ステップS21)、メモリデータベース103にアクセス可能か否かを判定する(ステップS22)。   Further, as shown in FIG. 7, when the access of the application unit 101 is detected (step S21), the access control unit 102 determines whether or not the memory database 103 is accessible (step S22).

メモリデータベース103にアクセス可能な場合(Yes)には、メモリデータベース103に処理依頼を転送する(ステップS23)。一方、メモリデータベース103にアクセスできない場合(No)には、処理の内容が順序性を要するデータへのアクセスであるか否かを判定する(ステップS24)。   If the memory database 103 is accessible (Yes), the processing request is transferred to the memory database 103 (step S23). On the other hand, when the memory database 103 cannot be accessed (No), it is determined whether or not the processing content is access to data that requires order (step S24).

ステップS24で順序性を要するデータへのアクセスではない(No)と判定された場合には、処理依頼をメモリ/ディスクDB操作変換部105を介してディスクデータベース106に転送する(ステップS26)。   If it is determined in step S24 that the access is not to data that requires order (No), the processing request is transferred to the disk database 106 via the memory / disk DB operation conversion unit 105 (step S26).

一方、ステップS24で順序性を要するデータへのアクセスである(Yes)と判定された場合には、更新ログ管理部104から、要順序性更新ログの反映完了通知を受信済みであるか否かを判定する(ステップS25)。   On the other hand, if it is determined in step S24 that the access is to data that requires order (Yes), whether or not the update update manager 104 has received the notification of completion of reflection of the required order update log has been received. Is determined (step S25).

反映完了通知を受信している場合(ステップS25;Yes)には、処理依頼をメモリ/ディスクDB操作変換部105を介してディスクデータベース106に転送する(ステップS26)。反映完了通知を受信していない場合(ステップS25;No)には、ディスクデータベース106への転送を保留し、反映完了通知を受信次第、転送を開始する。   If the reflection completion notification has been received (step S25; Yes), the processing request is transferred to the disk database 106 via the memory / disk DB operation conversion unit 105 (step S26). If the reflection completion notification has not been received (step S25; No), the transfer to the disk database 106 is suspended, and the transfer is started upon receipt of the reflection completion notification.

以上のように、本実施形態によれば、メモリデータベース103に対する更新ログデータを、順序性が必要な処理と不要な処理に分けて管理し、メモリデータベース103が使用出来なくなり、アプリケーション部101がアクセスするデータベースをディスクデータベース106に切り替える際には、順序性が必要な更新ログデータのみをディスクデータベース106に反映させたら、アプリケーション部101のディスクデータベース106へのアクセスを許可するようにした。このため、データベースの切り替え時に、最低限必要な情報を切り替え先のディスクデータベース106に反映させながら、切り替えに伴うサービスの停止時間を最小限に抑えることができる。   As described above, according to the present embodiment, update log data for the memory database 103 is managed separately for processing that requires ordering and processing that does not need to be performed, and the memory database 103 cannot be used, and the application unit 101 can access it. When the database to be switched is switched to the disk database 106, only the update log data that requires ordering is reflected in the disk database 106, and access to the disk database 106 of the application unit 101 is permitted. For this reason, at the time of database switching, the minimum required information is reflected in the switching destination disk database 106, and the service stop time associated with switching can be minimized.

また、メモリデータベース103に対する更新ログにさらに反映優先度(高、中、低など)を設け、データベース切り替え時に、例えば優先度高のログを全て反映したらサービスを再開し、その他のログについては、優先度中、低の順で順次反映させるようにしてもよい。   In addition, the update log for the memory database 103 is further provided with a reflection priority (high, medium, low, etc.), and when the database is switched, for example, when all the high priority logs are reflected, the service is restarted. You may make it reflect sequentially in order of low to moderate.

本発明は、バックエンドのデータベースに対する遅延更新を行っており、かつ障害発生などでデータベースの切り替えを行う際に、切り替えに伴うサービス停止時間を極力短縮したいシステムに適している。   The present invention is suitable for a system that performs a delayed update on a back-end database and wants to shorten the service stop time associated with the switching as much as possible when the database is switched due to a failure or the like.

上記の実施の形態の一部または全部は、以下の付記のようにも記載されうるが、以下には限られない。
(付記1)アプリケーションが要求するデータ更新処理を反映したデータを保持するメインデータベースと、
前記メインデータベースに対する前記データ更新処理のログデータを管理し、前記ログデータをサブデータベースに随時反映させる更新ログ管理部と、を備え、
前記更新ログ管理部は、
前記ログデータを処理順序の保持が必要な処理のログデータと順序の保持が不要な処理のログデータに分けて管理し、前記メインデータベースが使用できなくなった時は、前記処理順序の保持が必要な処理のログデータを全て前記サブデータベースに反映させた後、前記アプリケーションからのデータ更新処理を前記サブデータベースに直接反映させることを可能にする、データベースシステム。
A part or all of the above embodiment can be described as in the following supplementary notes, but is not limited thereto.
(Supplementary note 1) a main database that holds data reflecting data update processing requested by an application;
An update log management unit for managing log data of the data update process for the main database and reflecting the log data in a sub-database as needed,
The update log management unit
The log data is managed separately into log data for processes that need to maintain the processing order and log data for processes that do not need to be stored. When the main database becomes unavailable, the processing order must be maintained. A database system that makes it possible to directly reflect data update processing from the application to the sub-database after reflecting all log data of various processes in the sub-database.

(付記2)前記更新ログ管理部は、
各々の前記ログデータの反映優先度を管理し、前記メインデータベースから前記サブデータベースへの切り替え時には、所定の前記反映優先度を付与されたログデータを全て前記サブデータベースに反映させた後、前記アプリケーションからのデータ更新処理を前記サブデータベースに直接反映させることを可能にする、付記1に記載のデータベースシステム。
(Supplementary Note 2) The update log management unit
The reflection priority of each log data is managed, and at the time of switching from the main database to the sub database, the log data to which a predetermined reflection priority is assigned is reflected in the sub database, and then the application The database system according to supplementary note 1, which makes it possible to directly reflect data update processing from the sub-database.

1 データベースシステム、101 アプリケーション部、102 アクセス制御部、103 メモリデータベース、104 更新ログ管理部、105 メモリ/ディスクDB操作変換部、106 ディスクデータベース   DESCRIPTION OF SYMBOLS 1 Database system, 101 Application part, 102 Access control part, 103 Memory database, 104 Update log management part, 105 Memory / disk DB operation conversion part, 106 Disk database

Claims (2)

アプリケーションが要求するデータ更新処理を反映したデータを保持するメインデータベースと、
前記メインデータベースに対する前記データ更新処理のログデータを管理し、前記ログデータをサブデータベースに随時反映させる更新ログ管理部と、を備え、
前記更新ログ管理部は、
前記ログデータを処理順序の保持が必要な処理のログデータと順序の保持が不要な処理のログデータに分けて管理し、前記メインデータベースが使用できなくなった時は、前記処理順序の保持が必要な処理のログデータを全て前記サブデータベースに反映させた後、前記アプリケーションからのデータ更新処理を前記サブデータベースに直接反映させることを可能にする、データベースシステム。
A main database that holds data reflecting the data update process requested by the application;
An update log management unit for managing log data of the data update process for the main database and reflecting the log data in a sub-database as needed,
The update log management unit
The log data is managed separately into log data for processes that need to maintain the processing order and log data for processes that do not need to be stored. When the main database becomes unavailable, the processing order must be maintained. A database system that makes it possible to directly reflect data update processing from the application to the sub-database after reflecting all log data of various processes in the sub-database.
前記更新ログ管理部は、
各々の前記ログデータの反映優先度を管理し、前記メインデータベースから前記サブデータベースへの切り替え時には、所定の前記反映優先度を付与されたログデータを全て前記サブデータベースに反映させた後、前記アプリケーションからのデータ更新処理を前記サブデータベースに直接反映させることを可能にする、請求項1に記載のデータベースシステム。
The update log management unit
The reflection priority of each log data is managed, and at the time of switching from the main database to the sub database, the log data to which a predetermined reflection priority is assigned is reflected in the sub database, and then the application The database system according to claim 1, wherein the data update processing from the server can be directly reflected in the sub-database.
JP2010214776A 2010-09-27 2010-09-27 Database system Expired - Fee Related JP5621465B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010214776A JP5621465B2 (en) 2010-09-27 2010-09-27 Database system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010214776A JP5621465B2 (en) 2010-09-27 2010-09-27 Database system

Publications (2)

Publication Number Publication Date
JP2012069031A JP2012069031A (en) 2012-04-05
JP5621465B2 true JP5621465B2 (en) 2014-11-12

Family

ID=46166194

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010214776A Expired - Fee Related JP5621465B2 (en) 2010-09-27 2010-09-27 Database system

Country Status (1)

Country Link
JP (1) JP5621465B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE112014002275T5 (en) 2014-01-22 2016-01-28 Hitachi, Ltd. Database management system and method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2880828B2 (en) * 1991-07-15 1999-04-12 株式会社東芝 Message recovery method in case of system failure
JPH05233546A (en) * 1992-02-24 1993-09-10 Nippon Telegr & Teleph Corp <Ntt> Logical recovery method
JP3594248B2 (en) * 1993-03-30 2004-11-24 富士通株式会社 Log data classification acquisition system
JP3686564B2 (en) * 1999-12-21 2005-08-24 株式会社日立製作所 Database system, database replica generation method, and computer-readable recording medium recording database replica generation program
JP4434407B2 (en) * 2000-01-28 2010-03-17 株式会社日立製作所 Subsystem and integrated system thereof
JP2005242403A (en) * 2004-02-24 2005-09-08 Hitachi Ltd Computer system

Also Published As

Publication number Publication date
JP2012069031A (en) 2012-04-05

Similar Documents

Publication Publication Date Title
CN101090401B (en) Data buffer store method and system at duster environment
CN102158540A (en) System and method for realizing distributed database
KR100450400B1 (en) A High Avaliability Structure of MMDBMS for Diskless Environment and data synchronization control method thereof
JPH06162086A (en) Method and device for controlling remote data base
KR102119258B1 (en) Technique for implementing change data capture in database management system
JP4549793B2 (en) Data processing method, database system, and storage device
CN113268472B (en) Distributed data storage system and method
JP2022550401A (en) Data upload method, system, device and electronic device
US20120324436A1 (en) Method of updating versioned software using a shared cache
US7543121B2 (en) Computer system allowing any computer to copy any storage area within a storage system
US9069632B2 (en) Message processing
US8174966B2 (en) Switching program, switching method and duplex system
US20120159005A1 (en) Coordination of direct i/o with a filter
JP5154843B2 (en) Cluster system, computer, and failure recovery method
JP5621465B2 (en) Database system
US20110035748A1 (en) Data processing method, data processing program, and data processing system
US10996986B2 (en) Method and system for scheduling i/o operations for execution
JP2007011550A (en) Program control method, computer and computer control program
JP2010134583A (en) Database processing method, database processing program and database instruction apparatus
KR100324276B1 (en) method for data backup of DBMS in switching system
JP6904412B2 (en) Replicated data control device, replicated data control system, replicated data control method and replicated data control program
CN116821058B (en) Metadata access method, device, equipment and storage medium
US10908982B2 (en) Method and system for processing data
CN116501700B (en) APP formatted file offline storage method, device, equipment and storage medium
JP4492569B2 (en) File operation control device, file operation control system, file operation control method, and file operation control program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130815

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140304

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140826

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140908

R150 Certificate of patent or registration of utility model

Ref document number: 5621465

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees