JP6648567B2 - Data update control device, data update control method, and data update control program - Google Patents

Data update control device, data update control method, and data update control program Download PDF

Info

Publication number
JP6648567B2
JP6648567B2 JP2016050384A JP2016050384A JP6648567B2 JP 6648567 B2 JP6648567 B2 JP 6648567B2 JP 2016050384 A JP2016050384 A JP 2016050384A JP 2016050384 A JP2016050384 A JP 2016050384A JP 6648567 B2 JP6648567 B2 JP 6648567B2
Authority
JP
Japan
Prior art keywords
record
update
updating
test
storage means
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.)
Active
Application number
JP2016050384A
Other languages
Japanese (ja)
Other versions
JP2017167691A (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 JP2016050384A priority Critical patent/JP6648567B2/en
Publication of JP2017167691A publication Critical patent/JP2017167691A/en
Application granted granted Critical
Publication of JP6648567B2 publication Critical patent/JP6648567B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本願発明は、データベースシステム等におけるデータの更新処理をテストする技術に関する。   The present invention relates to a technique for testing data update processing in a database system or the like.

情報化が急速に進展している現代社会においては、様々な分野において、様々なサービスを提供する大規模なデータベースシステムが構築されている。このようなデータベースシステムの可用性を向上させるために、データベースシステムにおけるデータの更新処理をテストすることを、効率的に行う様々な技術が開発されている。   2. Description of the Related Art In a modern society in which computerization is rapidly progressing, large-scale database systems that provide various services in various fields are being constructed. In order to improve the availability of such a database system, various techniques have been developed for efficiently testing data update processing in the database system.

例えば、オンラインデータベースシステム等において、マスタデータベースのデータを使用して動作をシミュレーションする場合、マスタデータベースのレプリカ(複製)を作成し、当該レプリカに対して更新処理を行う方法がある。しかしながら、この方法では、マスタデータベースに大量のレコードが格納されている場合、当該レプリカを作成するために、大容量の記憶領域が必要になるという問題がある。   For example, in an online database system or the like, when simulating an operation using data of a master database, there is a method of creating a replica (replica) of the master database and performing an update process on the replica. However, this method has a problem that when a large number of records are stored in the master database, a large-capacity storage area is required to create the replica.

また、シミュレーションを行う際に、マスタデータベースを直接更新し、シミュレーションが終了した後に、ジャーナルを適用することによって、更新したデータを元の値に戻す方法がある。しかしながら、上述したこれら方法では、当該マスタデータベースを使用した業務を一旦停止する必要がある。したがって、データベースシステムの運用を停止することなく、低コストで、システムの動作をテストする技術に対する期待が高まってきている。   Further, there is a method of directly updating a master database when performing a simulation and applying a journal after the simulation is completed, thereby returning the updated data to the original value. However, in these methods described above, it is necessary to temporarily stop the business using the master database. Therefore, there is an increasing expectation for a technique for testing the operation of the database system at a low cost without stopping the operation of the database system.

このような技術の一例として、特許文献1には、マスタデータベースに影響を与えることなく動作をシミュレーションするデータベース更新制御方式が開示されている。この方式は、検索要求があったデータの最新イメージが、データベースにあるか更新イメージファイルにあるかを判定する。この方式は、その判定結果に従って、データベースあるいは更新イメージファイルから、検索要求があったデータを取り出す。この方式は、取り出したデータを更新し、更新したデータを更新イメージファイルに登録する。そしてこの方式は、更新したデータの最新イメージが更新イメージファイルにあることを管理する。   As an example of such a technique, Patent Literature 1 discloses a database update control method that simulates an operation without affecting a master database. In this method, it is determined whether the latest image of the data requested to be searched is present in the database or the updated image file. According to this method, data requested to be retrieved is retrieved from a database or an updated image file in accordance with the determination result. This method updates the extracted data and registers the updated data in an updated image file. In this method, the latest image of the updated data is managed in the updated image file.

また、特許文献2には、データベース処理プログラムをテストする場合に、本番用とテスト用とにデータを分けることにより、テストの影響を本番用データから切り離すようにした装置が開示されている。この装置は、本番モードおよびテストモードを定める実行モード情報を記憶する。この装置は、その実行モード情報を用いてアプリケーション実行部(AP実行部)と実行モードとを関連付ける。この装置は、AP実行部がデータベースに接続要求するとき、実行モード情報を送信する。この装置は、実行モード情報に基づいて、本番用またはテスト用のコネクションを生成することによって、接続を確立する。この装置は、AP実行部が処理するデータを本番用データまたはテスト用データとしてそれぞれ格納する。この装置は、データが更新された場合、その更新された本番用データまたはテスト用データのバージョンを特定する。   Further, Patent Document 2 discloses an apparatus in which when testing a database processing program, the influence of the test is separated from the production data by dividing the data into production data and test data. This apparatus stores execution mode information that defines a production mode and a test mode. This device associates an application execution unit (AP execution unit) with an execution mode using the execution mode information. This device transmits execution mode information when the AP execution unit requests connection to the database. This apparatus establishes a connection by generating a production or test connection based on the execution mode information. This apparatus stores data processed by the AP execution unit as production data or test data. When the data is updated, the device specifies the version of the updated production data or test data.

特開平3-246737号公報JP-A-3-246737 特開2009-301352号公報JP 2009-301352 A

上述した特許文献1が示す技術では、例えば、シミュレート処理の対象とするデータをレコード単位で読み込む場合、最新レコードの所在がデータベース及び更新イメージファイルのいずれかであるかを判断して読み込む。したがって、この技術では、シミュレート処理の対象として任意の時点のデータベースを対象としてレコードを読み込むことができない。この問題は、特許文献2が示す技術においても同様である。すなわち、特許文献1乃至2が示す技術では、運用中のデータベースシステム等によるデータの更新処理を、その運用に影響を与えることなく、実際の運用状況に近い状態でテストを行うのに十分であるとは言えない。本願発明の主たる目的は、この問題を解決するデータ更新制御装置等を提供することである。   According to the technique disclosed in Patent Document 1 described above, for example, when data to be simulated is read in units of records, it is determined whether the location of the latest record is a database or an updated image file and then read. Therefore, in this technique, it is not possible to read a record from a database at an arbitrary point in time as a target of the simulation processing. This problem is the same in the technique disclosed in Patent Document 2. That is, the techniques disclosed in Patent Documents 1 and 2 are sufficient to perform a test of data update processing by an operating database system or the like in a state close to an actual operation state without affecting the operation. It can not be said. A main object of the present invention is to provide a data update control device or the like that solves this problem.

本願発明の一態様に係るデータ更新制御装置は、第一の記憶手段に格納されているレコードを、運用アプリケーションによる指示に従って更新する際に、その更新タイミングと前記レコードを使用したテストを行うテストアプリケーションが動作を開始するタイミングとの順序関係を示す順序情報と関連付けて更新する第一の更新手段と、前記第一の更新手段が、前記テストアプリケーションが動作を開始したのちに、最初に前記レコードを更新するときに、更新前の前記レコードを第二の記憶手段に格納する格納手段と、前記第一の記憶手段に格納されている前記レコードに関する更新を前記テストアプリケーションによる指示に従って行う際に、前記レコードと関連付けされた前記順序情報が前記更新タイミングの方が先であることを示す第一の場合は、前記第一の記憶手段に格納された前記レコードを読み出し、前記レコードと関連付けされた前記順序情報が前記更新タイミングの方が後であることを示す第二の場合は、前記第二の記憶手段に格納された前記レコードを読み出し、前記第一及び第二の場合において、読み出した前記レコードを更新した結果を第三の記憶手段に格納する第二の更新手段と、を備える。   A data update control device according to one aspect of the present invention is a test application that updates a record stored in a first storage unit in accordance with an instruction from an operation application and performs a test using the update timing and the record. The first updating means for updating in association with the order information indicating the order relationship with the timing at which the operation starts, and the first updating means, after the test application starts operation, first the record When updating, storing means for storing the record before the update in the second storage means, and when performing an update on the record stored in the first storage means according to an instruction from the test application, The order information associated with the record indicates that the update timing is earlier. In the first case, the record stored in the first storage means is read, and in the second case, the order information associated with the record indicates that the update timing is later, A second updating unit that reads the record stored in a second storage unit and, in the first and second cases, stores a result of updating the read record in a third storage unit. .

上記目的を達成する他の見地において、本願発明の一態様に係るデータ更新制御方法は、情報処理装置によって、第一の記憶手段に格納されているレコードを、運用アプリケーションによる指示に従って更新する際に、その更新タイミングと、前記レコードを使用したテストを行うテストアプリケーションが動作を開始するタイミングとの順序関係を示す順序情報と関連付けて更新し、前記テストアプリケーションが動作を開始したのちに、最初に前記レコードを更新するときに、更新前の前記レコードを第二の記憶手段に格納し、前記第一の記憶手段に格納されている前記レコードに関する更新を前記テストアプリケーションによる指示に従って行う際に、前記レコードと関連付けされた前記順序情報が前記更新タイミングの方が先であることを示す第一の場合は、前記第一の記憶手段に格納された前記レコードを読み出し、前記レコードと関連付けされた前記順序情報が前記更新タイミングの方が後であることを示す第二の場合は、前記第二の記憶手段に格納された前記レコードを読み出し、前記第一及び第二の場合において、読み出した前記レコードを更新した結果を第三の記憶手段に格納する。   In another aspect to achieve the above object, a data update control method according to an aspect of the present invention provides a data update control method for updating a record stored in a first storage unit according to an instruction from an operation application by an information processing apparatus. The update timing is updated in association with order information indicating the order relationship between the timing at which the test application that performs the test using the record and the timing at which the test application starts operating, and after the test application starts operating, When updating a record, storing the record before the update in the second storage means, when performing the update on the record stored in the first storage means according to the instruction by the test application, the record, The update timing is earlier than the order information associated with In the second case, the record stored in the first storage unit is read, and the order information associated with the record indicates that the update timing is later. Reads the record stored in the second storage means, and stores the result of updating the read record in the third storage means in the first and second cases.

また、上記目的を達成する更なる見地において、本願発明の一態様に係るデータ更新制御プログラムは、第一の記憶手段に格納されているレコードを、運用アプリケーションによる指示に従って更新する際に、その更新タイミングと、前記レコードを使用したテストを行うテストアプリケーションが動作を開始するタイミングとの順序関係を示す順序情報と関連付けて更新する第一の更新処理と、前記第一の更新処理が、前記テストアプリケーションが動作を開始したのちに、最初に前記レコードを更新するときに、更新前の前記レコードを第二の記憶手段に格納する格納処理と、前記第一の記憶手段に格納されている前記レコードに関する更新を前記テストアプリケーションによる指示に従って行う際に、前記レコードと関連付けされた前記順序情報が前記更新タイミングの方が先であることを示す第一の場合は、前記第一の記憶手段に格納された前記レコードを読み出し、前記レコードと関連付けされた前記順序情報が前記更新タイミングの方が後であることを示す第二の場合は、前記第二の記憶手段に格納された前記レコードを読み出し、前記第一及び第二の場合において、読み出した前記レコードを更新した結果を第三の記憶手段に格納する第二の更新処理と、をコンピュータに実行させるためのプログラムである。   Further, in a further aspect of achieving the above object, the data update control program according to an aspect of the present invention, when updating a record stored in the first storage unit in accordance with an instruction from an operation application, updates the record. A first update process for updating the timing in association with order information indicating an order relationship between a timing and a timing at which a test application that performs a test using the record starts operating; and the first update process is performed by the test application. When the record is updated for the first time after the operation is started, a storing process of storing the record before the update in the second storage unit, and a process related to the record stored in the first storage unit When updating according to instructions from the test application, prior to being associated with the record. In the first case, where the order information indicates that the update timing is earlier, the record stored in the first storage means is read, and the order information associated with the record is the update timing. In the second case indicating that the latter is later, the record stored in the second storage means is read, and in the first and second cases, the result of updating the read record is referred to as a third result. And a second update process stored in the storage means.

更に、本願発明は、係るデータ更新制御プログラム(コンピュータプログラム)が格納された、コンピュータ読み取り可能な、不揮発性の記録媒体によっても実現可能である。   Furthermore, the present invention can also be realized by a computer-readable, non-volatile recording medium that stores the data update control program (computer program).

本願発明は、運用中のデータベースシステム等が使用するデータを使用して、当該データの更新処理をテストすることを、運用に影響を与えずに、実際の運用状況に近い状態で効率的に行うことを可能とする。   The present invention efficiently tests data update processing using data used by an operating database system or the like in a state close to an actual operation state without affecting operation. To make things possible.

本願発明の第1の実施形態に係るデータ更新制御装置10の構成を示すブロック図である。FIG. 1 is a block diagram illustrating a configuration of a data update control device 10 according to a first embodiment of the present invention. 本願発明の第1の実施形態に係る運用AP用データベース130の構成を例示する図である。FIG. 2 is a diagram illustrating a configuration of a working AP database 130 according to the first embodiment of the present invention. 本願発明の第1の実施形態に係る退避レコード情報140の構成を例示する図である。FIG. 4 is a diagram illustrating a configuration of save record information 140 according to the first embodiment of the present invention. 本願発明の第1の実施形態に係るデータ更新制御装置10が運用アプリケーション20の指示により運用AP用データベース130を更新する動作を示すフローチャートである。5 is a flowchart showing an operation of the data update control device 10 according to the first embodiment of the present invention for updating the operation AP database 130 according to an instruction of the operation application 20. 本願発明の第1の実施形態に係るデータ更新制御装置10がテストアプリケーション30の指示によりテストAP用データベース160にレコードを追加する動作を示すフローチャートである。6 is a flowchart showing an operation of the data update control device 10 according to the first embodiment of the present invention adding a record to the test AP database 160 according to an instruction of the test application 30. 本願発明の第1の実施形態に係るデータ更新制御装置10がテストアプリケーション30の指示によりテストAP用データベース160のレコードを更新あるいは削除する動作を示すフローチャートである。5 is a flowchart showing an operation of the data update control device 10 according to the first embodiment of the present invention updating or deleting a record in the test AP database 160 according to an instruction of the test application 30. 本願発明の第2の実施形態に係るデータ更新制御装置40の構成を示すブロック図である。FIG. 11 is a block diagram illustrating a configuration of a data update control device 40 according to a second embodiment of the present invention. 本願発明の各実施形態に係るデータ更新制御装置を実行可能な情報処理装置の構成を示すブロック図である。It is a block diagram showing composition of an information processor which can perform a data update control device concerning each embodiment of the present invention.

以下、本願発明の実施の形態について図面を参照して詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

<第1の実施形態>
図1は、本願発明の第1の実施の形態に係るデータ更新制御装置10の構成を概念的に示すブロック図である。データ更新制御装置10は、データベースを使用したサービスを運用中に、当該データベースに対する更新処理を並行してテストすることが可能な装置である。データ更新制御装置10は、運用アプリケーション(業務アプリケーション)20による指示に従って、ユーザが使用するデータベースに対する更新処理を行う。運用アプリケーション20は、複数存在してもよい。データ更新制御装置10は、テストアプリケーション30による指示に従って、当該データベースに対する更新処理について、シミュレーションなどによるテストを行う。運用アプリケーション20、及び、テストアプリケーション30は、データ更新制御装置10と通信可能に接続された、あるいは、データ更新制御装置10を内包するサーバ装置等の情報処理装置において実行されている。
<First embodiment>
FIG. 1 is a block diagram conceptually showing a configuration of a data update control device 10 according to the first embodiment of the present invention. The data update control device 10 is a device that can test an update process on the database in parallel while operating a service using the database. The data update control device 10 performs an update process on a database used by a user according to an instruction from the operation application (business application) 20. A plurality of operation applications 20 may exist. The data update control device 10 performs a test, such as a simulation, on an update process for the database in accordance with an instruction from the test application 30. The operation application 20 and the test application 30 are communicatively connected to the data update control device 10, or are executed in an information processing device such as a server device including the data update control device 10.

本実施形態に係るデータ更新制御装置10は、運用AP(アプリケーション)用更新部(第1の更新部)11、格納部12、運用AP用記憶部(第1の記憶部)13、退避レコード記憶部(第2の記憶部)14、テストAP用更新部(第2の更新部)15、及び、テストAP用記憶部(第3の記憶部)16を備える。運用AP用更新部11、格納部12、及び、テストAP用更新部15は、電子回路の場合もあれば、コンピュータプログラムとそのコンピュータプログラムに従って動作するプロセッサによって実現される場合もある。運用AP用記憶部13、退避レコード記憶部14、及び、テストAP用記憶部16は、メモリあるいは磁気ディスク等の記憶デバイスである。これらの各記憶部は、電子回路、あるいは、コンピュータプログラムとそのコンピュータプログラムに従って動作するプロセッサによって実現される記憶制御機能を備えている。なお、これらの記憶部は、データ更新制御装置10に備えられていなくてもよい。例えば、これらの記憶部は、データ更新制御装置10と通信可能に接続された外部の記憶装置等に備えられてもよい。   The data update control device 10 according to the present embodiment includes an operation AP (application) update unit (first update unit) 11, a storage unit 12, an operation AP storage unit (first storage unit) 13, and a save record storage. A second storage unit 14, a test AP update unit (second update unit) 15, and a test AP storage unit (third storage unit) 16. The operating AP update unit 11, the storage unit 12, and the test AP update unit 15 may be electronic circuits, or may be realized by a computer program and a processor that operates according to the computer program. The working AP storage unit 13, the save record storage unit 14, and the test AP storage unit 16 are storage devices such as a memory or a magnetic disk. Each of these storage units has an electronic circuit or a storage control function realized by a computer program and a processor operating according to the computer program. Note that these storage units may not be provided in the data update control device 10. For example, these storage units may be provided in an external storage device or the like that is communicably connected to the data update control device 10.

退避レコード記憶部14、テストAP用更新部15、及び、テストAP用記憶部16は、テスト制御機能100として動作する構成である。テスト制御機能100は、テストアプリケーション30が動作を開始することを契機として、動作を開始する。例えば、テスト制御機能100が、コンピュータプログラムによって実現される場合、データ更新制御装置10は、テストAP用更新部15と、退避レコード記憶部14及びテストAP用記憶部16の記憶制御機能とを実現するプロセスを、テストアプリケーション30の動作の開始を契機として立ち上げる(活性化する)。   The save record storage unit 14, the test AP update unit 15, and the test AP storage unit 16 are configured to operate as the test control function 100. The test control function 100 starts operating when the test application 30 starts operating. For example, when the test control function 100 is realized by a computer program, the data update control device 10 realizes the test AP update unit 15 and the storage control functions of the save record storage unit 14 and the test AP storage unit 16. Is started (activated) when the operation of the test application 30 starts.

運用AP用更新部11は、運用アプリケーション20による指示に従って、運用AP用記憶部13に記憶された運用AP用データベース130に対する更新処理を行う。図2は、本実施形態に係る運用AP用データベース130の構成を例示する図である。図2に例示する通り、運用AP用データベース130は、「レコード世代」と「主キー」と「ユーザデータ」という項目が関連付けされたレコードを1以上含むデータである。   The operation AP update unit 11 performs an update process on the operation AP database 130 stored in the operation AP storage unit 13 according to an instruction from the operation application 20. FIG. 2 is a diagram illustrating a configuration of the operational AP database 130 according to the present embodiment. As illustrated in FIG. 2, the operational AP database 130 is data including one or more records in which items of “record generation”, “primary key”, and “user data” are associated.

図2において、「主キー」は、データベースにおける「ユーザデータ」を特定するキー情報である。「レコード世代」は、運用AP用更新部11によって、特定のレコードに対する更新(レコードの新規追加を含む)処理が行われたときに、運用AP用更新部11によってその特定のレコードに付与される情報である。   In FIG. 2, "primary key" is key information for specifying "user data" in the database. The “record generation” is given to the specific record by the operation AP update unit 11 when the update (including addition of a new record) to the specific record is performed by the operation AP update unit 11. Information.

図1に示す通り、運用AP用更新部11は、世代情報110を、例えば内蔵するメモリなどに記憶している。運用AP用更新部11は、運用AP用データベース130におけるいずれかのレコードに対して更新処理を行うたびに、世代情報110が示す値を「1」加算するとともに、当該レコードに世代情報110が示す値を付与する。すなわち、世代情報110は、運用AP用更新部11による運用AP用データベース130に対する更新処理が行われた回数を示す値である。したがって、運用AP用データベース130における「レコード世代」は、当該レコードに対して更新が行われたときの世代情報110が示す値、すなわち更新の世代を表す情報である。   As shown in FIG. 1, the operation AP update unit 11 stores the generation information 110 in, for example, a built-in memory or the like. The operating AP update unit 11 adds “1” to the value indicated by the generation information 110 each time an update process is performed on any record in the operating AP database 130, and the generation information 110 indicates the record. Assign a value. That is, the generation information 110 is a value indicating the number of times that the update process for the active AP database 130 has been performed by the active AP update unit 11. Therefore, the “record generation” in the operation AP database 130 is a value indicated by the generation information 110 when the record is updated, that is, information indicating the update generation.

格納部12は、運用AP用更新部11による、運用AP用データベース130におけるいずれかのレコードに対する更新が行われたときに、退避レコード記憶部14に記憶された退避レコード情報140を参照する。図3は、本実施形態に係る退避レコード情報140の構成を例示する図である。図3に例示する通り、退避レコード情報140は、「主キー」と「ユーザデータ」という項目が関連付けされたレコードを1以上含むデータである。   The storage unit 12 refers to the evacuation record information 140 stored in the evacuation record storage unit 14 when any record in the operation AP database 130 is updated by the operation AP updating unit 11. FIG. 3 is a diagram illustrating a configuration of the save record information 140 according to the present embodiment. As illustrated in FIG. 3, the save record information 140 is data including one or more records in which items “primary key” and “user data” are associated with each other.

退避レコード情報140に含まれるレコードは、テストアプリケーション30が動作を開始したのち、運用AP用更新部11によって更新された、運用AP用データベース130におけるレコードの更新前の状態を表している。格納部12は、運用AP用更新部11によって更新された、運用AP用データベース130におけるレコードと、「主キー」が等しいレコードが退避レコード情報140に存在するかどうかを確認する。   The record included in the evacuation record information 140 indicates a state before the update of the record in the operation AP database 130, which is updated by the operation AP update unit 11 after the test application 30 starts operating. The storage unit 12 confirms whether or not a record having the same “primary key” as the record in the working AP database 130 updated by the working AP updating unit 11 exists in the save record information 140.

格納部12は、そのレコードが退避レコード情報140に存在しない場合に、運用AP用更新部11によって更新される前の状態にあるそのレコードを、退避レコード情報140に追加する。格納部12は、そのレコードが退避レコード情報140に存在する場合は、運用AP用データベース130におけるレコードを、退避レコード情報140に追加する動作を行わない。   If the record does not exist in the save record information 140, the storage unit 12 adds the record in a state before being updated by the active AP update unit 11 to the save record information 140. When the record exists in the save record information 140, the storage unit 12 does not perform the operation of adding the record in the operation AP database 130 to the save record information 140.

尚、退避レコード記憶部14は、上述した通り、テストアプリケーション30が動作を開始したのちに動作を開始する。したがって、格納部12は、運用AP用更新部11が、テストアプリケーション30が動作を開始したのちに、最初に運用AP用データベース130における特定のレコードを更新するときに、更新前のその特定のレコードを、退避レコード情報140に追加する。図2及び3に示す例では、「主キー」が、「Key2」、「Key3」、「Key5」であるレコードが、テストアプリケーション30が動作を開始したのちに、運用AP用更新部11によって更新されている。そして、退避レコード情報140には、それらの更新されたレコードについて、更新前の「ユーザデータ」の値として、「Data2a」、「Data3a」、「Data5a」が、順に、「Key2」、「Key3」、「Key5」と関連付けされて格納されている。尚、図2に示す「Data2b」、「Data3b」、「Data5b」は、順に、「主キー」が「Key2」、「Key3」、「Key5」であるレコードに関して、更新後の「ユーザデータ」の値を示す。   The save record storage unit 14 starts operation after the test application 30 starts operation, as described above. Therefore, when the operation AP update unit 11 first updates a specific record in the operation AP database 130 after the test application 30 starts operating, the storage unit 12 stores the specific record before the update. Is added to the save record information 140. In the examples shown in FIGS. 2 and 3, the records in which the “primary key” is “Key2”, “Key3”, and “Key5” are updated by the operation AP updating unit 11 after the test application 30 starts operating. Have been. In the save record information 140, “Data2a”, “Data3a”, and “Data5a” are “Key2” and “Key3” as the values of the “user data” before the update for the updated records, respectively. , “Key5” and stored. It should be noted that “Data2b”, “Data3b”, and “Data5b” shown in FIG. 2 correspond to a record whose “primary key” is “Key2”, “Key3”, and “Key5” in the updated “user data”. Indicates a value.

テストAP用更新部15は、テストアプリケーション30による指示に従って、運用AP用データベース130に対する更新処理を、シミュレートすることなどによってテストする。テストAP用更新部15は、テストアプリケーション30が動作を開始したときに、運用AP用更新部11に記憶されている世代情報110が示す値を読み込んで、読み込んだ値を、開始世代情報150として、例えば内蔵するメモリなどに記憶する。すなわち、開始世代情報150は、テストアプリケーション30が動作を開始したときの、世代情報110の値を表す。   The test AP update unit 15 performs a test by simulating an update process for the operation AP database 130 according to an instruction from the test application 30. The test AP update unit 15 reads the value indicated by the generation information 110 stored in the operation AP update unit 11 when the test application 30 starts operating, and uses the read value as the start generation information 150. , For example, in a built-in memory. That is, the start generation information 150 indicates the value of the generation information 110 when the test application 30 starts operating.

テストAP用更新部15は、テストアプリケーション30による指示に従って、テスト対象とする運用AP用データベース130における何れかのレコードを更新する場合、当該レコードと「主キー」が等しいレコードが、テストAP用記憶部16に記憶されたテストAP用データベース160に存在するかどうかを確認する。   When updating any record in the operational AP database 130 to be tested according to an instruction from the test application 30, the test AP updating unit 15 determines that the record having the same “primary key” as the record is stored in the test AP storage. It is confirmed whether or not it exists in the test AP database 160 stored in the unit 16.

テストAP用データベース160は、テストアプリケーション30が動作を開始したのち、テストAP用更新部15が、テストアプリケーション30による指示に従って、運用AP用データベース130における何れかのレコードを更新した結果を格納している。テストAP用データベース160の構成は、図3に示す退避レコード情報140の構成と同様である。   After the test application 30 starts operating, the test AP database 160 stores the result of the test AP update unit 15 updating any record in the operational AP database 130 in accordance with an instruction from the test application 30. I have. The configuration of the test AP database 160 is the same as the configuration of the save record information 140 shown in FIG.

テストAP用更新部15は、テスト対象とする運用AP用データベース130におけるレコードと同じ「主キー」を有するレコードが、テストAP用データベース160に存在する場合、当該レコードに対して更新処理を行う。テストAP用更新部15は、テスト対象とするレコードと同じ「主キー」を有するレコードが、テストAP用データベース160に存在しない場合、当該レコードと同じ「主キー」を有するレコードが、運用AP用データベース130に存在するか確認する。この場合、テスト対象とする当該レコードは、テストアプリケーション30が動作を開始したのち、テストアプリケーション30による更新がまだ一度も行われていないレコードである。   When a record having the same “primary key” as the record in the operational AP database 130 to be tested exists in the test AP database 160, the test AP updating unit 15 updates the record. If the record having the same “primary key” as the record to be tested does not exist in the test AP database 160, the test AP updating unit 15 determines that the record having the same “primary key” as the record is the operating AP Check whether it exists in the database 130. In this case, the record to be tested is a record that has not yet been updated by the test application 30 after the test application 30 started operating.

ここで、当該レコードが運用AP用データベース130に存在しないことは、当該レコードが、運用AP用更新部11によって、運用AP用データベース130から削除されたことを意味する。この場合、テストAP用更新部15は、当該レコードと同じ「主キー」を有するレコードが、退避レコード情報140に存在するか否かを確認する。テストAP用更新部15は、そのレコードが存在する場合、そのレコードを退避レコード情報140から読み出したのち、読み出したレコードを更新し、その更新結果をテストAP用データベース160に追加する。   Here, the absence of the record in the active AP database 130 means that the record has been deleted from the active AP database 130 by the active AP update unit 11. In this case, the test AP updating unit 15 checks whether a record having the same “primary key” as the record exists in the save record information 140. When the record exists, the test AP update unit 15 reads the record from the save record information 140, updates the read record, and adds the update result to the test AP database 160.

テストAP用更新部15は、テスト対象とするレコードと同じ「主キー」を有するレコードが、テストAP用データベース160に存在せずに、運用AP用データベース130に存在する場合、当該レコードの「レコード世代」の値と、開始世代情報150が示す値とを比較する。ここで、開始世代情報150が示す値が当該レコードの「レコード世代」の値より大きいことは、運用AP用更新部11による当該レコードに対する更新が行われたタイミングが、テストアプリケーション30が動作を開始したタイミングに先行することを意味する。   When a record having the same “primary key” as the record to be tested does not exist in the test AP database 160 but exists in the operational AP database 130, the test AP updating unit 15 The value of “generation” is compared with the value indicated by the start generation information 150. Here, the fact that the value indicated by the start generation information 150 is larger than the value of the “record generation” of the record means that the test application 30 starts the operation when the operation AP update unit 11 updates the record. It means that it precedes the timing that was done.

テストAP用更新部15は、開始世代情報150が示す値が当該レコードの「レコード世代」の値以上である場合、運用AP用データベース130から当該レコードを読み出す。テストAP用更新部15は、開始世代情報150が示す値が当該レコードの「レコード世代」の値未満である場合、当該レコードが退避レコード情報140に存在することを確認したのち、当該レコードを退避レコード情報140から読み出す。テストAP用更新部15は、運用AP用データベース130あるいは退避レコード情報140から読み出した当該レコードを更新し、その更新結果をテストAP用データベース160に追加する。   When the value indicated by the start generation information 150 is equal to or greater than the “record generation” value of the record, the test AP update unit 15 reads the record from the operation AP database 130. When the value indicated by the start generation information 150 is less than the value of the “record generation” of the record, the test AP updating unit 15 confirms that the record exists in the save record information 140, and then saves the record. Read from the record information 140. The test AP updating unit 15 updates the record read from the operational AP database 130 or the save record information 140, and adds the update result to the test AP database 160.

次に図4乃至6のフローチャートを参照して、本実施形態に係るデータ更新制御装置10の動作(処理)について詳細に説明する。   Next, the operation (process) of the data update control device 10 according to the present embodiment will be described in detail with reference to the flowcharts of FIGS.

図4は、本実施形態に係るデータ更新制御装置10が、運用アプリケーション20の指示により運用AP用データベース130を更新する動作を示すフローチャートである。   FIG. 4 is a flowchart illustrating an operation in which the data update control device 10 according to the present embodiment updates the operation AP database 130 according to an instruction from the operation application 20.

運用AP用更新部11は、運用アプリケーション20から、運用AP用データベース130を更新する指示を受け取る(ステップS101)。運用AP用更新部11は、当該指示の内容が、レコードの更新または削除であるのかレコード追加であるのかを確認する(ステップS102)。   The operation AP update unit 11 receives an instruction to update the operation AP database 130 from the operation application 20 (step S101). The operation AP update unit 11 confirms whether the content of the instruction is update or deletion of a record or addition of a record (step S102).

当該指示の内容がレコードの更新または削除でない(すなわちレコードの追加である)場合(ステップS103でNo)、運用AP用更新部11は、世代情報110に1を加算した値を「レコード世代」として設定した追加対象レコードを、運用AP用データベース130に追加する(ステップS104)。運用AP用更新部11は、世代情報110を「1」加算して(ステップS111)、全体の処理は終了する。   If the content of the instruction is not update or deletion of a record (that is, addition of a record) (No in step S103), the operation AP updating unit 11 sets a value obtained by adding 1 to the generation information 110 as a “record generation”. The set addition target record is added to the operational AP database 130 (step S104). The operation AP updating unit 11 adds “1” to the generation information 110 (step S111), and the entire process ends.

当該指示の内容がレコードの更新または削除である場合(ステップS103でYes)、格納部12は、対象レコードと同じ「主キー」を有するレコードが退避レコード情報140に存在するか確認する(ステップS105)。当該レコードが、退避レコード情報140に存在しない場合(ステップS106でNo)、格納部12は、運用AP用データベース130における、更新または削除の対象レコードと同じ「主キー」を有するレコードを、退避レコード情報140に追加する(ステップS107)。   If the content of the instruction is to update or delete the record (Yes in step S103), the storage unit 12 checks whether a record having the same “primary key” as the target record exists in the save record information 140 (step S105). ). If the record does not exist in the save record information 140 (No in step S106), the storage unit 12 replaces the record in the active AP database 130 with the same “primary key” as the record to be updated or deleted with the save record It is added to the information 140 (step S107).

当該指示の内容がレコードの更新である場合(ステップS108でYes)、運用AP用更新部11は、運用AP用データベース130における更新対象レコードを更新し、その「レコード世代」の値を、世代情報110に1を加算した値に設定して(ステップS109)、処理はステップS111へ進む。当該指示の内容がレコードの更新でない(すなわちレコードの削除である)場合(ステップS108でNo)、運用AP用更新部11は、運用AP用データベース130から、削除対象レコードを削除して(ステップS111)、処理はステップS111へ進む。   If the content of the instruction is to update a record (Yes in step S108), the operating AP update unit 11 updates the update target record in the operating AP database 130, and sets the value of the “record generation” to the generation information. The value is set to a value obtained by adding 1 to 110 (step S109), and the process proceeds to step S111. When the content of the instruction is not the update of the record (that is, the deletion of the record) (No in step S108), the operation AP update unit 11 deletes the record to be deleted from the operation AP database 130 (step S111). ), The process proceeds to step S111.

図5は、本実施形態に係るデータ更新制御装置10が、テストアプリケーション30の指示によりテストAP用データベース160にレコードを追加する動作を示すフローチャートである。   FIG. 5 is a flowchart illustrating an operation in which the data update control device 10 according to the present embodiment adds a record to the test AP database 160 according to an instruction of the test application 30.

テストAP用更新部15は、テストアプリケーション30から、運用AP用データベース130にレコードを追加する指示を受け取る(ステップS201)。テストAP用更新部15は、追加対象レコードと同じ「主キー」を有するレコードがテストAP用データベース160に存在するか確認する(ステップS202)。   The test AP update unit 15 receives an instruction to add a record to the operational AP database 130 from the test application 30 (Step S201). The test AP updating unit 15 checks whether a record having the same “primary key” as the record to be added exists in the test AP database 160 (step S202).

当該レコードがテストAP用データベース160に存在する場合(ステップS203でYes)、テストAP用更新部15は、レコードの追加が失敗したことを、テストアプリケーション30に報告し(ステップS204)、全体の処理は終了する。   If the record exists in the test AP database 160 (Yes in step S203), the test AP update unit 15 reports to the test application 30 that the addition of the record has failed (step S204), and performs the entire process. Ends.

当該レコードがテストAP用データベース160に存在しない場合(ステップS203でNo)、テストAP用更新部15は、追加対象レコードと同じ「主キー」を有するレコードが運用AP用データベース130に存在するか確認する(ステップS205)。当該レコードが運用AP用データベース130に存在する場合(ステップS206でYes)、検索された当該レコードの「レコード世代」の値と、開始世代情報150の値とを比較する(ステップS207)。   If the record does not exist in the test AP database 160 (No in step S203), the test AP update unit 15 checks whether a record having the same “primary key” as the record to be added exists in the operation AP database 130. (Step S205). If the record exists in the operation AP database 130 (Yes in step S206), the value of the “record generation” of the searched record is compared with the value of the start generation information 150 (step S207).

開始世代情報150の値が「レコード世代」の値以上である場合(ステップS208でYes)、処理はステップS204へ進む。開始世代情報150の値が「レコード世代」の値未満である場合(ステップS208でNo)、テストAP用更新部15は、追加対象レコードと同じ「主キー」を有するレコードが退避レコード情報140に存在するか確認する(ステップS209)。   When the value of the start generation information 150 is equal to or larger than the value of the “record generation” (Yes in step S208), the process proceeds to step S204. When the value of the start generation information 150 is less than the value of the “record generation” (No in step S208), the test AP updating unit 15 determines that the record having the same “primary key” as the record to be added is included in the save record information 140. It is checked whether it exists (step S209).

当該レコードが退避レコード情報140に存在する場合(ステップS210でYes)、処理はステップS204へ進む。当該レコードが退避レコード情報140に存在しない場合(ステップS210でNo)、テストAP用更新部15は、追加対象レコードを、テストAP用データベース160に追加して(ステップS211)、全体の処理は終了する。   If the record exists in the save record information 140 (Yes in step S210), the process proceeds to step S204. If the record does not exist in the save record information 140 (No in step S210), the test AP updating unit 15 adds the addition target record to the test AP database 160 (step S211), and the entire process ends. I do.

図6は、本実施形態に係るデータ更新制御装置10が、テストアプリケーション30の指示によりテストAP用データベース160のレコードを更新あるいは削除する動作を示すフローチャートである。   FIG. 6 is a flowchart showing an operation in which the data update control device 10 according to the present embodiment updates or deletes a record in the test AP database 160 according to an instruction from the test application 30.

テストAP用更新部15は、テストアプリケーション30から、運用AP用データベース130のレコードを更新あるいは削除する指示を受け取る(ステップS301)。テストAP用更新部15は、対象レコードと同じ「主キー」を有するレコードがテストAP用データベース160に存在するか確認する(ステップS302)。   The test AP update unit 15 receives an instruction to update or delete a record in the operational AP database 130 from the test application 30 (step S301). The test AP updating unit 15 checks whether a record having the same “primary key” as the target record exists in the test AP database 160 (step S302).

当該レコードがテストAP用データベース160に存在する場合(ステップS303でYes)、テストAP用更新部15は、テストAP用データベース160における対象レコードを更新、あるいは、対象レコードを削除して(ステップS304)、全体の処理は終了する。   If the record exists in the test AP database 160 (Yes in step S303), the test AP update unit 15 updates the target record in the test AP database 160 or deletes the target record (step S304). , The entire process ends.

当該レコードがテストAP用データベース160に存在しない場合(ステップS303でNo)、テストAP用更新部15は、対象レコードと同じ「主キー」を有するレコードが運用AP用データベース130に存在するか確認する(ステップS305)。当該レコードが運用AP用データベース130に存在する場合(ステップS306でYes)、テストAP用更新部15は、検索されたレコードの「レコード世代」の値と、開始世代情報150の値とを比較する(ステップS307)。   If the record does not exist in the test AP database 160 (No in step S303), the test AP update unit 15 checks whether a record having the same “primary key” as the target record exists in the operation AP database 130. (Step S305). When the record exists in the operation AP database 130 (Yes in step S306), the test AP update unit 15 compares the value of the “record generation” of the retrieved record with the value of the start generation information 150. (Step S307).

開始世代情報150の値が「レコード世代」の値以上である場合(ステップS308でYes)、テストAP用更新部15は、運用AP用データベース130から当該レコードを読み出す(ステップS309)。テストAP用更新部15は、読み出した当該レコードを更新し、その更新結果をテストAP用データベース160に追加して(ステップS313)、全体の処理は終了する。   When the value of the start generation information 150 is equal to or larger than the value of the “record generation” (Yes in step S308), the test AP updating unit 15 reads the record from the operation AP database 130 (step S309). The test AP update unit 15 updates the read record, adds the update result to the test AP database 160 (step S313), and ends the entire process.

開始世代情報150の値が「レコード世代」の値未満である場合(ステップS308でNo)、テストAP用更新部15は、対象レコードと同じ「主キー」を有するレコードが退避レコード情報140に存在するか確認する(ステップS310)。当該レコードが退避レコード情報140に存在する場合(ステップS311でYes)、テストAP用更新部15は、退避レコード情報140から当該レコードを読み出し(ステップS312)、処理はステップS313へ進む。当該レコードが退避レコード情報140に存在しない場合(ステップS311でNo)、テストAP用更新部15は、対象レコードが存在しないことを、テストアプリケーション30に報告し(ステップS314)、全体の処理は終了する。   When the value of the start generation information 150 is less than the value of the “record generation” (No in step S308), the test AP updating unit 15 includes a record having the same “primary key” as the target record in the save record information 140. Confirmation is made (step S310). If the record exists in the save record information 140 (Yes in step S311), the test AP updating unit 15 reads the record from the save record information 140 (step S312), and the process proceeds to step S313. If the record does not exist in the save record information 140 (No in step S311), the test AP update unit 15 reports to the test application 30 that the target record does not exist (step S314), and the entire process ends. I do.

テストAP用更新部15は、対象レコードと同じ「主キー」を有するレコードが運用AP用データベース130に存在しない場合(ステップS306でNo)、処理はステップS310へ進む。   When the record having the same “primary key” as the target record does not exist in the operation AP database 130 (No in step S306), the test AP updating unit 15 proceeds to step S310.

本実施形態に係るデータ更新制御装置10は、運用中のデータベースシステム等が使用するデータを使用して、当該データの更新処理をテストすることを、運用に影響を与えずに、実際の運用状況に近い状態で効率的に行うことができる。その理由は、データ更新制御装置10が以下の通り動作するからである。すなわち、
・運用AP用更新部11は、運用AP用データベース130のレコードを、更新時の世代情報110と関連付けて更新する。
・格納部12は、運用AP用データベース130のレコードがテストアプリケーション30の動作開始後最初に更新された際に、当該レコードの更新前の値を、退避レコード情報140として格納する。
・テストAP用更新部15は、運用AP用データベース130における更新対象のレコードに関する世代情報の値と開始世代情報150の値とを比較した結果に基づいて、更新対象のレコードを、運用AP用データベース130あるいは退避レコード情報140から読み出して更新し、その更新結果をテストAP用データベース160として格納する。
The data update control device 10 according to the present embodiment can use the data used by the operating database system or the like to test the update processing of the data without affecting the operation. Can be performed efficiently in a state close to The reason is that the data update control device 10 operates as follows. That is,
The operation AP update unit 11 updates the record of the operation AP database 130 in association with the generation information 110 at the time of update.
When the record of the operation AP database 130 is updated for the first time after the operation of the test application 30 is started, the storage unit 12 stores the value before the update of the record as the save record information 140.
The test AP update unit 15 converts the record to be updated based on the result of comparison between the value of the generation information regarding the record to be updated in the operation AP database 130 and the value of the start generation information 150 into the database for the operation AP. The update is performed by reading from the save record information 140 or the save record information 140, and the update result is stored as the test AP database 160.

以下に、本実施形態に係るデータ更新制御装置10によって実現される効果について、詳細に説明する。   Hereinafter, effects achieved by the data update control device 10 according to the present embodiment will be described in detail.

運用中のデータベースシステム等が使用するデータを使用して、当該データの更新処理をテストすることを、運用に影響を与えずに、実際の運用状況に近い状態で効率的に行う技術への期待が高まっている。このような技術においては、任意の時点のデータベースを対象としてテストを行うことができるようにレコードを読み込むことができるようにすることが課題である。   Expectation for technology that efficiently tests data update processing using data used by operating database systems, etc., in a state close to the actual operation situation without affecting operation Is growing. In such a technique, a problem is to be able to read a record so that a test can be performed on a database at an arbitrary time.

このような課題に対して、本実施形態に係るデータ更新制御装置10では、運用AP用更新部11は、運用アプリケーション20による指示に従って、運用AP用記憶部13に格納された運用AP用データベース130を更新する。この際、運用AP用更新部11は、運用AP用データベース130に含まれる対象レコードを、世代情報110と関連付けることにより更新する。世代情報110は、その更新タイミングと運用AP用データベース130を使用したテストを行うテストアプリケーション30が動作を開始するタイミングとの順序関係を示す情報である。格納部12は、運用AP用更新部11が、テストアプリケーション30が動作を開始したのちに、最初に対象レコードを更新するときに、更新前の当該対象レコードを退避レコード記憶部14に格納する。テストAP用更新部15は、テストアプリケーション30による指示に従って、運用AP用データベース130に含まれる当該対象レコードに関する更新を行う。この際、テストAP用更新部15は、当該対象レコードと関連付けされた世代情報が更新タイミングの方が先であることを示す第1の場合は、運用AP用データベース130に含まれる当該対象レコードを読み出す。テストAP用更新部15は、当該対象レコードと関連付けされた世代情報が更新タイミングの方が後であることを示す第2の場合は、退避レコード記憶部14に格納された更新前の当該対象レコードを読み出す。テストAP用更新部15は、これら第1及び第2の場合において、読み出した当該対象レコードを更新し、その更新結果をテストAP用記憶部16に格納する。   In order to deal with such a problem, in the data update control device 10 according to the present embodiment, the operation AP update unit 11 operates the operation AP database 130 stored in the operation AP storage unit 13 in accordance with an instruction from the operation application 20. To update. At this time, the operating AP update unit 11 updates the target record included in the operating AP database 130 by associating the target record with the generation information 110. The generation information 110 is information indicating the order relationship between the update timing and the timing at which the test application 30 that performs a test using the operational AP database 130 starts operating. The storage unit 12 stores the target record before update in the save record storage unit 14 when the operation AP update unit 11 first updates the target record after the test application 30 starts operating. The test AP update unit 15 updates the target record included in the operation AP database 130 according to an instruction from the test application 30. At this time, in the first case, the generation information associated with the target record indicates that the update timing is earlier than the update information for the target AP. read out. If the generation information associated with the target record indicates that the update timing is later, the test AP updating unit 15 stores the target record before update stored in the save record storage unit 14 in the second case. Is read. The test AP update unit 15 updates the read target record in the first and second cases, and stores the update result in the test AP storage unit 16.

すなわち、本実施形態に係るデータ更新制御装置10は、テストアプリケーション30が動作を開始したのち、運用アプリケーション20によって更新されたレコードについて、更新前の値を退避レコード記憶部14に退避する。データ更新制御装置10は、レコードごとに、運用アプリケーション20によって更新されたタイミングと、テストアプリケーション30が動作を開始したタイミングとの順序関係を管理する。そして、データ更新制御装置10は、この順序関係に基づいて、運用AP用記憶部13あるいは退避レコード記憶部14から対象レコードを読み出して更新し、その更新結果をテストAP用記憶部16に格納する。これにより、本実施形態に係るデータ更新制御装置10は、運用中のデータベースシステム等が使用するデータを使用して、当該データの更新処理をテストすることを、運用に影響を与えずに、実際の運用状況に近い状態で効率的に行うことができる。   That is, the data update control device 10 according to the present embodiment saves the pre-update value of the record updated by the operation application 20 to the save record storage unit 14 after the test application 30 starts operating. The data update control device 10 manages, for each record, the order relationship between the timing updated by the operation application 20 and the timing at which the test application 30 starts operating. Then, the data update control device 10 reads and updates the target record from the working AP storage unit 13 or the evacuation record storage unit 14 based on the order relationship, and stores the update result in the test AP storage unit 16. . Accordingly, the data update control device 10 according to the present embodiment can use the data used by the operating database system or the like to test the updating process of the data without affecting the operation. It can be performed efficiently in a state close to the operation status of.

また、本実施形態に係るデータ更新制御装置10は、レコードを更新する際に値を加算する世代情報110と、テストアプリケーション30が動作を開始したときの世代情報110の値を示す開始世代情報150とによって、上述した順序関係を管理するが、これとは別の方法によって当該順序関係を管理してもよい。データ更新制御装置10は、例えば、レコードを更新する際の時刻とテストアプリケーション30が動作を開始したときの時刻によって、当該順序関係を管理してもよい。   Further, the data update control device 10 according to the present embodiment includes the generation information 110 that adds a value when updating a record, and the start generation information 150 that indicates the value of the generation information 110 when the test application 30 starts operating. Manages the above-described order relationship, but the order relationship may be managed by another method. The data update control device 10 may manage the order relationship based on, for example, the time when the record is updated and the time when the test application 30 starts operating.

また、本実施形態に係るデータ更新制御装置10は、例えば、開始時刻が異なる複数のテストアプリケーション30が、互いに影響を与えずに運用AP用データベース130に対する更新処理をテストできるように、テスト制御機能100を複数備えるようにしてもよい。この場合、個々のテスト制御機能100は、互いに影響を与えることなく独立して動作する。例えば、テスト制御機能100がコンピュータプログラムによって実現される場合、データ更新制御装置10は、テストアプリケーション30が動作を開始するたびに、テスト制御機能100を実現するプロセスを立ち上げる。すなわち、本実施形態に係るデータ更新制御装置10は、複数のテスト(シミュレーション)を並行して行うことにより、運用中のデータベースシステム等に対する更新処理のテストを、より効率的に行うことができる。   Further, the data update control device 10 according to the present embodiment has a test control function so that, for example, a plurality of test applications 30 having different start times can test an update process on the operation AP database 130 without affecting each other. 100 may be provided. In this case, the individual test control functions 100 operate independently without affecting each other. For example, when the test control function 100 is realized by a computer program, the data update control device 10 starts up a process for realizing the test control function 100 every time the test application 30 starts operating. That is, the data update control device 10 according to the present embodiment can more efficiently perform a test of an update process on an operating database system or the like by performing a plurality of tests (simulations) in parallel.

<第2の実施形態>
図7は、第2の実施形態に係るデータ更新制御装置40の構成を概念的に示すブロック図である。
<Second embodiment>
FIG. 7 is a block diagram conceptually showing the configuration of the data update control device 40 according to the second embodiment.

本実施形態に係るデータ更新制御装置40は、第1の更新部41、格納部42、及び、第2の更新部45を備えている。   The data update control device 40 according to the present embodiment includes a first update unit 41, a storage unit 42, and a second update unit 45.

第1の更新部41は、第1の記憶部43に格納されているレコード430を、運用アプリケーション50による指示に従って、更新する際に、その更新タイミングと、レコード430を使用したテストを行うテストアプリケーション60が動作を開始するタイミングとの順序関係を示す順序情報410と関連付けて更新する。   When updating the record 430 stored in the first storage unit 43 in accordance with an instruction from the operation application 50, the first update unit 41 performs a test using the update timing and a test using the record 430. 60 is updated in association with order information 410 indicating the order relationship with the timing at which the operation starts.

格納部42は、第1の更新部41が、テストアプリケーション60が動作を開始したのちに、最初にレコード430を更新するときに、更新前のレコード440を第2の記憶部44に格納する。   The storage unit 42 stores the record 440 before the update in the second storage unit 44 when the first update unit 41 first updates the record 430 after the test application 60 starts operating.

第2の更新部45は、第1の記憶部43に格納されているレコード430に関する更新を、テストアプリケーション60による指示に従って下記の通り行う。すなわち、第2の更新部45は、レコード430と関連付けされた順序情報410が当該更新タイミングの方が先であることを示す第1の場合は、第1の記憶部43に格納されたレコード430を読み出す。第2の更新部45は、レコード430と関連付けされた順序情報410が当該更新タイミングの方が後であることを示す第2の場合は、第2の記憶部44に格納された更新前のレコード440を読み出す。第2の更新部45は、これら第1及び第2の場合において、読み出したレコードを更新した結果460を、第3の記憶部46に格納する。   The second updating unit 45 updates the record 430 stored in the first storage unit 43 according to an instruction from the test application 60 as described below. That is, in the first case where the order information 410 associated with the record 430 indicates that the update timing is earlier, the second update unit 45 stores the record 430 stored in the first storage unit 43. Is read. If the order information 410 associated with the record 430 indicates that the update timing is later, the second update unit 45 stores the record before the update stored in the second storage unit 44. Read 440. The second update unit 45 stores the result 460 of updating the read record in the first and second cases in the third storage unit 46.

本実施形態に係るデータ更新制御装置40は、運用中のデータベースシステム等が使用するデータを使用して、当該データの更新処理をテストすることを、運用に影響を与えずに、実際の運用状況に近い状態で効率的に行うことができる。その理由は、データ更新制御装置40が以下の通り動作するからである。すなわち、
・第1の更新部41は、レコード430を、順序情報410と関連付けて更新する。
・格納部42は、レコード430がテストアプリケーション60の動作開始後最初に更新された際に、レコード430の更新前の値を、更新前のレコード440として格納する。
・第2の更新部45は、更新対象のレコード430に関する順序情報の値に基づいて、レコード430あるいは更新前のレコード440を読み出して更新し、その更新結果をレコードを更新した結果460として格納する。
The data update control device 40 according to the present embodiment uses the data used by the operating database system and the like to test the update processing of the data without affecting the operation. Can be performed efficiently in a state close to The reason is that the data update control device 40 operates as follows. That is,
The first updating unit 41 updates the record 430 in association with the order information 410.
When the record 430 is updated for the first time after the operation of the test application 60 is started, the storage unit 42 stores the value before the update of the record 430 as the record 440 before the update.
The second updating unit 45 reads and updates the record 430 or the record 440 before the update based on the value of the order information regarding the record 430 to be updated, and stores the update result as a result 460 of updating the record. .

<ハードウェア構成例>
上述した各実施形態において図1、及び、図7に示したデータ更新制御装置における各部は、専用のHW(HardWare)(電子回路)によって実現することができる。また、図1及び図7において、少なくとも、下記構成は、ソフトウェアプログラムの機能(処理)単位(ソフトウェアモジュール)と捉えることができる。
・運用AP用更新部11、及び、第1の更新部41、
・格納部12及び42、
・テストAP用更新部15、及び、第2の更新部45。
<Example of hardware configuration>
In each of the embodiments described above, each unit in the data update control device illustrated in FIGS. 1 and 7 can be realized by a dedicated HW (Hardware) (electronic circuit). 1 and 7, at least the following configuration can be regarded as a function (processing) unit (software module) of a software program.
An operation AP update unit 11 and a first update unit 41;
Storage units 12 and 42,
A test AP update unit 15 and a second update unit 45;

但し、これらの図面に示した各部の区分けは、説明の便宜上の構成であり、実装に際しては、様々な構成が想定され得る。この場合のハードウェア環境の一例を、図8を参照して説明する。   However, the division of each unit shown in these drawings is a configuration for convenience of explanation, and various configurations can be assumed at the time of mounting. An example of a hardware environment in this case will be described with reference to FIG.

図8は、本願発明の各実施形態に係るデータ更新制御装置を実行可能な情報処理装置900(コンピュータ)の構成を例示的に説明する図である。即ち、図8は、図1及び図7に示したデータ更新制御装置を実現可能なコンピュータ(情報処理装置)の構成であって、上述した実施形態における各機能を実現可能なハードウェア環境を表す。   FIG. 8 is a diagram exemplifying a configuration of an information processing device 900 (computer) that can execute the data update control device according to each embodiment of the present invention. That is, FIG. 8 shows a configuration of a computer (information processing device) capable of realizing the data update control device shown in FIGS. 1 and 7, and represents a hardware environment capable of realizing each function in the above-described embodiment. .

図8に示した情報処理装置900は、構成要素として下記を備えている。
・CPU(Central_Processing_Unit)901、
・ROM(Read_Only_Memory)902、
・RAM(Random_Access_Memory)903、
・ハードディスク(記憶装置)904、
・外部装置との通信インタフェース905、
・バス906(通信線)、
・CD−ROM(Compact_Disc_Read_Only_Memory)等の記録媒体907に格納されたデータを読み書き可能なリーダライタ908、
・入出力インタフェース909。
The information processing device 900 illustrated in FIG. 8 includes the following as components.
CPU (Central_Processing_Unit) 901,
ROM (Read_Only_Memory) 902,
RAM (Random_Access_Memory) 903;
A hard disk (storage device) 904,
A communication interface 905 with an external device;
A bus 906 (communication line),
A reader / writer 908 capable of reading and writing data stored in a recording medium 907 such as a CD-ROM (Compact_Disc_Read_Only_Memory);
An input / output interface 909;

即ち、上記構成要素を備える情報処理装置900は、これらの構成がバス906を介して接続された一般的なコンピュータである。情報処理装置900は、CPU901を複数備える場合もあれば、マルチコアにより構成されたCPU901を備える場合もある。   That is, the information processing apparatus 900 including the above components is a general computer in which these components are connected via the bus 906. The information processing device 900 may include a plurality of CPUs 901 or may include a CPU 901 configured by a multi-core.

そして、上述した実施形態を例に説明した本願発明は、図8に示した情報処理装置900に対して、次の機能を実現可能なコンピュータプログラムを供給する。その機能とは、その実施形態の説明において参照したブロック構成図(図1及び図7)における上述した構成、或いはフローチャート(図4乃至6)の機能である。本願発明は、その後、そのコンピュータプログラムを、当該ハードウェアのCPU901に読み出して解釈し実行することによって達成される。また、当該装置内に供給されたコンピュータプログラムは、読み書き可能な揮発性のメモリ(RAM903)またはハードディスク904等の不揮発性の記憶デバイスに格納すれば良い。   Then, the invention of the present application described by taking the above-described embodiment as an example supplies a computer program capable of realizing the following functions to the information processing apparatus 900 shown in FIG. The function is the above-described configuration in the block diagram (FIGS. 1 and 7) or the function of the flowchart (FIGS. 4 to 6) referred to in the description of the embodiment. The present invention is achieved by reading the computer program into the CPU 901 of the hardware, interpreting and executing the computer program. The computer program supplied to the apparatus may be stored in a readable and writable volatile memory (RAM 903) or a nonvolatile storage device such as a hard disk 904.

また、前記の場合において、当該ハードウェア内へのコンピュータプログラムの供給方法は、現在では一般的な手順を採用することができる。その手順としては、例えば、CD−ROM等の各種記録媒体907を介して当該装置内にインストールする方法や、インターネット等の通信回線を介して外部よりダウンロードする方法等がある。そして、このような場合において、本願発明は、係るコンピュータプログラムを構成するコード或いは、そのコードが格納された記録媒体907によって構成されると捉えることができる。   Further, in the above case, the method of supplying the computer program into the hardware can employ a general procedure at present. As the procedure, for example, there is a method of installing in the device via various recording media 907 such as a CD-ROM or a method of downloading from the outside via a communication line such as the Internet. Then, in such a case, the present invention can be considered to be constituted by a code constituting the computer program or a recording medium 907 storing the code.

以上、上述した実施形態を模範的な例として本願発明を説明した。しかしながら、本願発明は、上述した実施形態には限定されない。即ち、本願発明は、本願発明のスコープ内において、当業者が理解し得る様々な態様を適用することができる。   As described above, the present invention has been described using the above-described embodiment as a typical example. However, the present invention is not limited to the embodiments described above. That is, the present invention can apply various modes that can be understood by those skilled in the art within the scope of the present invention.

10 データ更新制御装置
100 テスト制御機能
11 運用AP用更新部
110 世代情報
12 格納部
13 運用AP用記憶部
130 運用AP用データベース
14 退避レコード記憶部
140 退避レコード情報
15 テストAP用更新部
150 開始世代情報
16 テストAP用記憶部
160 テストAP用データベース
20 運用アプリケーション
30 テストアプリケーション
40 データ更新制御装置
41 第1の更新部
410 順序情報
42 格納部
43 第1の記憶部
430 レコード
44 第2の記憶部
440 更新前のレコード
45 第2の更新部
46 第3の記憶部
460 レコードを更新した結果
50 運用アプリケーション
60 テストアプリケーション
900 情報処理装置
901 CPU
902 ROM
903 RAM
904 ハードディスク(記憶装置)
905 通信インタフェース
906 バス
907 記録媒体
908 リーダライタ
909 入出力インタフェース
REFERENCE SIGNS LIST 10 data update control device 100 test control function 11 active AP update unit 110 generation information 12 storage unit 13 active AP storage unit 130 active AP database 14 evacuation record storage unit 140 evacuation record information 15 test AP update unit 150 start generation Information 16 Test AP storage unit 160 Test AP database 20 Operation application 30 Test application 40 Data update control device 41 First update unit 410 Order information 42 Storage unit 43 First storage unit 430 Record 44 Second storage unit 440 Record before update 45 Second update unit 46 Third storage unit 460 Result of updating record 50 Operation application 60 Test application 900 Information processing device 901 CPU
902 ROM
903 RAM
904 Hard disk (storage device)
905 Communication interface 906 Bus 907 Recording medium 908 Reader / writer 909 I / O interface

Claims (10)

第一の記憶手段に格納されているレコードを、運用アプリケーションによる指示に従って更新する際に、その更新タイミングと、前記レコードを使用したテストを行うテストアプリケーションが動作を開始するタイミングとの順序関係を示す順序情報と関連付けて更新する第一の更新手段と、
前記第一の更新手段が、前記テストアプリケーションが動作を開始したのちに、最初に前記レコードを更新するときに、更新前の前記レコードを第二の記憶手段に格納する格納手段と、
前記第一の記憶手段に格納されている前記レコードに関する更新を前記テストアプリケーションによる指示に従って行う際に、前記レコードと関連付けされた前記順序情報が前記更新タイミングの方が先であることを示す第一の場合は、前記第一の記憶手段に格納された前記レコードを読み出し、前記レコードと関連付けされた前記順序情報が前記更新タイミングの方が後であることを示す第二の場合は、前記第二の記憶手段に格納された前記レコードを読み出し、前記第一及び第二の場合において、読み出した前記レコードを更新した結果を第三の記憶手段に格納する第二の更新手段と、
を備えるデータ更新制御装置。
When a record stored in the first storage unit is updated in accordance with an instruction from an operation application, the record indicates an order relationship between an update timing and a timing at which a test application that performs a test using the record starts operating. First updating means for updating in association with the order information;
The first updating means, after the test application starts operation, when updating the record for the first time, storage means for storing the record before the update in the second storage means,
When updating the record stored in the first storage means in accordance with an instruction from the test application, the first order information associated with the record indicates that the update timing is earlier. In the case of, the record stored in the first storage means is read out, and in the second case, the order information associated with the record indicates that the update timing is later, Reading the record stored in the storage means, in the first and second cases, the second update means for storing the result of updating the read record in the third storage means,
A data update control device comprising:
前記第一の更新手段は、前記第一の記憶手段に格納されている前記レコードを更新する際に値を加算する世代情報を記憶することによって、前記世代情報を前記順序情報として使用し、
前記第二の更新手段は、前記テストアプリケーションが動作を開始する際に、前記第一の更新手段に記憶されている前記世代情報を読み出して、開始時世代情報として記憶することによって、前記レコードと関連付けされた前記順序情報が前記更新タイミングの方が先であることを示すのか否かを判定する、
請求項1に記載のデータ更新制御装置。
The first update unit, by storing generation information to add a value when updating the record stored in the first storage unit, using the generation information as the order information,
The second update unit reads the generation information stored in the first update unit when the test application starts operation, and stores the generation information as start-time generation information. It is determined whether or not the associated order information indicates that the update timing is earlier.
The data update control device according to claim 1.
前記第一の更新手段は、前記第一の記憶手段に格納されている前記レコードを更新する際の時刻を前記順序情報として使用し、
前記第二の更新手段は、前記テストアプリケーションが動作を開始する際の時刻を記憶することによって、前記レコードと関連付けされた前記順序情報が前記更新タイミングの方が先であることを示すのか否かを判定する、
請求項1に記載のデータ更新制御装置。
The first updating means uses a time when updating the record stored in the first storage means as the order information,
The second update means stores the time when the test application starts operation, thereby determining whether the order information associated with the record indicates that the update timing is earlier. Judge,
The data update control device according to claim 1.
前記格納手段は、前記第一の更新手段が前記レコードを更新する際に、前記レコードが前記第二の記憶手段に格納済みでない場合に、更新前の前記レコードを前記第二の記憶手段に格納する、
請求項1乃至3のいずれか一項に記載のデータ更新制御装置。
The storage means stores the record before update in the second storage means when the first update means updates the record, if the record has not been stored in the second storage means. Do
The data update control device according to claim 1.
前記第二の更新手段は、前記テストアプリケーションによる指示に従って前記レコードを更新する際に、最初に前記第三の記憶手段にアクセスすることによって、前記第三の記憶手段に格納されている前記レコードを更新し、前記レコードが前記第三の記憶手段に格納済みでない場合は、前記第一あるいは前記第二の記憶手段に格納されている前記レコードを読み出す、
請求項1乃至4のいずれか一項に記載のデータ更新制御装置。
The second updating unit, when updating the record according to an instruction from the test application, first accesses the third storage unit to update the record stored in the third storage unit. Update, if the record is not stored in the third storage means, read the record stored in the first or the second storage means,
The data update control device according to claim 1.
複数の前記テストアプリケーションの個々による指示に従って前記レコードを更新する、複数の前記第二の更新手段を備え、
前記格納手段は、前記テストアプリケーション毎に設けられた前記第二の記憶手段に、更新前の前記レコードを格納し、
前記複数の第二の更新手段は、前記テストアプリケーション毎に設けられた前記第三の記憶手段に、前記レコードを更新した結果を格納する、
請求項1乃至5のいずれか一項に記載のデータ更新制御装置。
Updating the record according to an instruction by each of the plurality of test applications, comprising a plurality of the second update means,
The storage unit stores the record before update in the second storage unit provided for each test application,
The plurality of second update units store the result of updating the record in the third storage unit provided for each test application,
The data update control device according to claim 1.
前記第一乃至第三の記憶手段をさらに備える、
請求項1乃至6のいずれか一項に記載のデータ更新制御装置。
Further comprising the first to third storage means,
The data update control device according to claim 1.
前記レコードは、データベースシステムにおいて使用されるキー情報を含み、
前記テストアプリケーションは、前記運用アプリケーションによる前記レコードの更新に関するシミュレーションを行う、
請求項1乃至7のいずれか一項に記載のデータ更新制御装置。
The record includes key information used in a database system,
The test application performs a simulation related to updating of the record by the operation application,
The data update control device according to claim 1.
情報処理装置によって、
第一の記憶手段に格納されているレコードを、運用アプリケーションによる指示に従って更新する際に、その更新タイミングと、前記レコードを使用したテストを行うテストアプリケーションが動作を開始するタイミングとの順序関係を示す順序情報と関連付けて更新し、
前記テストアプリケーションが動作を開始したのちに、最初に前記レコードを更新するときに、更新前の前記レコードを第二の記憶手段に格納し、
前記第一の記憶手段に格納されている前記レコードに関する更新を前記テストアプリケーションによる指示に従って行う際に、前記レコードと関連付けされた前記順序情報が前記更新タイミングの方が先であることを示す第一の場合は、前記第一の記憶手段に格納された前記レコードを読み出し、前記レコードと関連付けされた前記順序情報が前記更新タイミングの方が後であることを示す第二の場合は、前記第二の記憶手段に格納された前記レコードを読み出し、前記第一及び第二の場合において、読み出した前記レコードを更新した結果を第三の記憶手段に格納する、
データ更新制御方法。
Depending on the information processing device,
When a record stored in the first storage unit is updated in accordance with an instruction from an operation application, the record indicates an order relationship between an update timing and a timing at which a test application that performs a test using the record starts operating. Update in association with order information,
After the test application starts operation, when updating the record for the first time, storing the record before the update in the second storage means,
When updating the record stored in the first storage means according to an instruction from the test application, the first order information associated with the record indicates that the update timing is earlier. In the case of, the record stored in the first storage means is read out, and in the second case, the order information associated with the record indicates that the update timing is later, Read the record stored in the storage means, and in the first and second cases, store the result of updating the read record in the third storage means,
Data update control method.
第一の記憶手段に格納されているレコードを、運用アプリケーションによる指示に従って更新する際に、その更新タイミングと、前記レコードを使用したテストを行うテストアプリケーションが動作を開始するタイミングとの順序関係を示す順序情報と関連付けて更新する第一の更新処理と、
前記第一の更新処理が、前記テストアプリケーションが動作を開始したのちに、最初に前記レコードを更新するときに、更新前の前記レコードを第二の記憶手段に格納する格納処理と、
前記第一の記憶手段に格納されている前記レコードに関する更新を前記テストアプリケーションによる指示に従って行う際に、前記レコードと関連付けされた前記順序情報が前記更新タイミングの方が先であることを示す第一の場合は、前記第一の記憶手段に格納された前記レコードを読み出し、前記レコードと関連付けされた前記順序情報が前記更新タイミングの方が後であることを示す第二の場合は、前記第二の記憶手段に格納された前記レコードを読み出し、前記第一及び第二の場合において、読み出した前記レコードを更新した結果を第三の記憶手段に格納する第二の更新処理と、
をコンピュータに実行させるためのデータ更新制御プログラム。
When a record stored in the first storage unit is updated in accordance with an instruction from an operation application, the record indicates an order relationship between an update timing and a timing at which a test application that performs a test using the record starts operating. A first update process for updating in association with the order information;
The first update processing, after the test application starts operation, when updating the record for the first time, storage processing to store the record before update in the second storage means,
When updating the record stored in the first storage means in accordance with an instruction from the test application, the first order information associated with the record indicates that the update timing is earlier. In the case of, the record stored in the first storage means is read out, and in the second case, the order information associated with the record indicates that the update timing is later, Reading the record stored in the storage means, in the first and second cases, a second update process of storing a result of updating the read record in a third storage means,
Update control program for causing a computer to execute.
JP2016050384A 2016-03-15 2016-03-15 Data update control device, data update control method, and data update control program Active JP6648567B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016050384A JP6648567B2 (en) 2016-03-15 2016-03-15 Data update control device, data update control method, and data update control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016050384A JP6648567B2 (en) 2016-03-15 2016-03-15 Data update control device, data update control method, and data update control program

Publications (2)

Publication Number Publication Date
JP2017167691A JP2017167691A (en) 2017-09-21
JP6648567B2 true JP6648567B2 (en) 2020-02-14

Family

ID=59910299

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016050384A Active JP6648567B2 (en) 2016-03-15 2016-03-15 Data update control device, data update control method, and data update control program

Country Status (1)

Country Link
JP (1) JP6648567B2 (en)

Also Published As

Publication number Publication date
JP2017167691A (en) 2017-09-21

Similar Documents

Publication Publication Date Title
US8832028B2 (en) Database cloning
CN109804361B (en) File synchronization in a computing system
US8918783B2 (en) Managing virtual computers simultaneously with static and dynamic dependencies
US9864736B2 (en) Information processing apparatus, control method, and recording medium
JP5161119B2 (en) File system idempotent journal mechanism
US10338910B2 (en) Multi-tenant upgrading
US8347052B2 (en) Initializing of a memory area
US11289115B1 (en) Copying a storage tape
US9513762B1 (en) Static content updates
JP4755244B2 (en) Information generation method, information generation program, and information generation apparatus
US11360966B2 (en) Information processing system and method of controlling information processing system
JP2012238061A (en) Transaction processing device, transaction processing method, and transaction processing program
US20150302021A1 (en) Storage system
CN103514004A (en) Method and device for managing system environment under Windows system
US20210124575A1 (en) Providing build avoidance without requiring local source code
JP6193406B2 (en) Serialization for differential encoding
Karresand et al. Disk cluster allocation behavior in windows and ntfs
JP6648567B2 (en) Data update control device, data update control method, and data update control program
US20230006814A1 (en) Method and apparatus for implementing changes to a file system that is emulated with an object storage system
AU2021268828B2 (en) Secure data replication in distributed data storage environments
JP2014021754A (en) Virtual machine management system, virtual machine management method, and program
CN112068925A (en) File uploading method and device based on WebUploader component, electronic equipment and readable storage medium
JP5832592B1 (en) Data management device
JP2007133632A (en) Method and program for setting security policy
US20080320447A1 (en) Method of accessing web parameters

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190215

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20191209

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: 20191217

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20191230

R150 Certificate of patent or registration of utility model

Ref document number: 6648567

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150