JP2010123017A - Database apparatus - Google Patents

Database apparatus Download PDF

Info

Publication number
JP2010123017A
JP2010123017A JP2008297577A JP2008297577A JP2010123017A JP 2010123017 A JP2010123017 A JP 2010123017A JP 2008297577 A JP2008297577 A JP 2008297577A JP 2008297577 A JP2008297577 A JP 2008297577A JP 2010123017 A JP2010123017 A JP 2010123017A
Authority
JP
Japan
Prior art keywords
data
database
unit
acquisition unit
update
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2008297577A
Other languages
Japanese (ja)
Inventor
Satoru Tanaka
覚 田中
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2008297577A priority Critical patent/JP2010123017A/en
Publication of JP2010123017A publication Critical patent/JP2010123017A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To obtain a database apparatus capable of improving development efficiency of a new system, a remodeled system, or the like by enabling the new system that is newly developed to obtain data of a data providing device that continues update in a general purpose query language. <P>SOLUTION: The database apparatus includes: a data acquiring part 31 for managing data in a flat data file 11, acquiring data of a data query language A being a form unique to the data providing device 1 from the data providing device 1 which can notify the outside of data update, and converting the obtained data into a form in which the obtained data can be provided in a data query language SQL; a relational database part 32 for storing data converted by the data acquiring part 31; and an update notification receiving part 33 for receiving the notification of data update notified by the data providing device 1 to be able to control timing when the data acquiring part 31 obtains data. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

この発明は、コンピュータネットワーク上に設置されている独自のデータ問合せ言語でデータを提供するデータ提供装置を利用した新システムの開発において、開発効率を高めるためのデータベース装置に関するものである。   The present invention relates to a database apparatus for improving development efficiency in the development of a new system using a data providing apparatus that provides data in a unique data inquiry language installed on a computer network.

コンピュータネットワーク上のシステムにおいては、一度システムを設置した後でも機能の追加、他システムとの連携などという改造が必要となることが多い。   Systems on a computer network often require modifications such as adding functions and linking with other systems even after the system has been installed.

しかし、そのようなネットワーク上に存在するシステム、特に古いシステムおいては、データをフラットデータファイルに蓄積し、独自のデータ問合せ言語にてデータを提供するデータ提供装置がある。そして、そのような古いシステムと連携する新システムを開発する場合、独自のデータ問合せ言語に合わせて新システムを開発したり、古いシステムを改造することが必要となる。   However, in a system existing on such a network, particularly an old system, there is a data providing apparatus that accumulates data in a flat data file and provides the data in a unique data inquiry language. When developing a new system that cooperates with such an old system, it is necessary to develop a new system or modify the old system in accordance with a unique data query language.

例えば、リレーショナルデータベース管理システム(RDBMS:Relational DataBase Management System)へのアクセスに広く用いられている問合せ言語SQL(Structured Query Language)にてデータ取得を行うようにした新システムにおいて、SQLを古いシステムが備える独自のデータ問合せ言語に変換するデータ処理システムを設置する方法が開示されている。(例えば、特許文献1参照)   For example, in a new system in which data is acquired using a query language SQL (Structured Query Language) widely used for accessing a relational database management system (RDBMS: Relational Data Base Management System), the old system has SQL. A method of installing a data processing system that converts to a unique data query language is disclosed. (For example, see Patent Document 1)

また、古くなったデータベースサーバ交換時にデータを効率的にRDBMSに移行するようにするデータ変換方法とデータファイル変換装置が開示されている。(例えば、特許文献2参照)   In addition, a data conversion method and a data file conversion apparatus are disclosed in which data is efficiently transferred to an RDBMS when an obsolete database server is replaced. (For example, see Patent Document 2)

特開2001−350656号公報(第6頁〜第11頁、図1〜図6)JP 2001-350656 A (pages 6 to 11, FIGS. 1 to 6) 特開2000−347907号公報(第3頁〜第7頁、図1〜図5)JP 2000-347907 A (page 3 to page 7, FIGS. 1 to 5)

しかし、上記特許文献1の新システムでは、SQLが備えるような機能全てに対応するようにSQLから古いシステムの独自の問い合わせ言語に変換することは、データ処理システムの開発規模が大きくなってしまうために開発効率が悪くなるという問題があった。   However, in the new system of the above-mentioned Patent Document 1, converting the SQL to the original query language of the old system so as to support all the functions provided by SQL increases the development scale of the data processing system. However, there was a problem that the development efficiency deteriorated.

また、特許文献2のデータ変換方法とデータファイル変換装置では、変換能力は有するが、RDBMSを備えておらず、外部からのSQLによる問い合わせに対応できない。また、データベースサーバ交換時に利用者が実行指示を行う必要があるため、一定周期あるいはデータベースサーバの更新ごとにデータ変換を実行し続けることは困難であるという問題がある。   In addition, the data conversion method and data file conversion apparatus disclosed in Patent Document 2 have a conversion capability, but do not have an RDBMS and cannot respond to an inquiry by SQL from outside. In addition, since it is necessary for the user to give an execution instruction when exchanging the database server, there is a problem that it is difficult to continuously execute data conversion at regular intervals or every update of the database server.

この発明は上記のような課題を解決するためになされたものであり、新しく開発される新システムあるいは改造システムが、更新を続けるデータ提供装置のデータを問い合わせ言語SQLで取得できるようにして、新システムあるいは改造システムなどの開発効率を向上させることができるデータベース装置を得ることを目的とする。   The present invention has been made in order to solve the above-described problems. A newly developed new system or a modified system can acquire data of a data providing apparatus that is continuously updated by using an inquiry language SQL. An object of the present invention is to obtain a database device that can improve the development efficiency of a system or a modified system.

この発明に係るデータベース装置は、独自の形式であるデータ問合せ言語のデータを提供するデータ提供装置と接続されたデータベース装置であって、
上記データ提供装置から上記独自の形式であるデータ問合せ言語によりデータを取得し、該取得したデータを汎用データ問合せ言語での形式に変換するデータ取得部と、
上記データ取得部で変換されたデータを格納し、上記汎用データ問い合わせ言語によりデータを取得できるデータベース部と、
上記データ取得部がデータを取得するタイミングを制御するデータ取得制御部とを備えたものである。
A database apparatus according to the present invention is a database apparatus connected to a data providing apparatus that provides data in a data inquiry language that is in a unique format,
A data acquisition unit that acquires data from the data providing device in a data query language that is in the unique format, and converts the acquired data into a format in a general-purpose data query language;
A database unit that stores the data converted by the data acquisition unit and can acquire data by the general-purpose data inquiry language;
The data acquisition unit includes a data acquisition control unit that controls the timing of acquiring data.

この発明に係るデータベース装置によれば、独自の形式であるデータ問合せ言語のデータを提供するデータ提供装置と接続されたデータベース装置であって、
上記データ提供装置から上記独自の形式であるデータ問合せ言語によりデータを取得し、該取得したデータを汎用データ問合せ言語での形式に変換するデータ取得部と、
上記データ取得部で変換されたデータを格納し、上記汎用データ問い合わせ言語によりデータを取得できるデータベース部と、
上記データ取得部がデータを取得するタイミングを制御するデータ取得制御部とを備えたものであることにより、新システムあるいは改造システムが独自の形式であるデータ問合せ言語のデータを提供するデータ提供装置のデータを汎用データ問い合わせ言語により取得することができるので、新システムあるいは改造システムの開発効率を向上させることができる。
The database device according to the present invention is a database device connected to a data providing device that provides data in a data query language that is in a unique format,
A data acquisition unit that acquires data from the data providing device in a data query language that is in the unique format, and converts the acquired data into a format in a general-purpose data query language;
A database unit that stores the data converted by the data acquisition unit and can acquire data by the general-purpose data inquiry language;
A data providing apparatus for providing data in a data inquiry language in which the new system or the remodeling system has a unique format by including a data acquisition control unit that controls the timing at which the data acquisition unit acquires data. Since data can be acquired using a general-purpose data query language, the development efficiency of a new system or a modified system can be improved.

以下、この発明の実施の形態を図に基づいて説明する。   Embodiments of the present invention will be described below with reference to the drawings.

実施の形態1.
図1は、この発明の実施の形態1を示すデータベース装置を含むシステムのブロック図である。
図1において、データ提供装置1は、データを蓄積するためのデータファイルであるフラットデータファイル11と、その内容を外部に提供するためのデータ提供部12と、フラットデータファイル11を更新するデータ収集部13を持つ。データ提供部12は、独自の形式であるデータ問合せ言語Aによりデータを装置外部に提供する。データ収集部13は、外部システム2に接続されており、外部システム2の処理終了タイミングや一定時間おきに外部システム2からデータを収集し、フラットデータファイル11を更新する。また、データ収集部13はフラットデータファイル11を更新したタイミングで、装置外部にデータ更新処理を通知する機能を持つ。
Embodiment 1 FIG.
1 is a block diagram of a system including a database apparatus according to Embodiment 1 of the present invention.
In FIG. 1, the data providing apparatus 1 includes a flat data file 11 that is a data file for storing data, a data providing unit 12 for providing the contents to the outside, and data collection for updating the flat data file 11. It has part 13. The data providing unit 12 provides data to the outside of the apparatus using the data inquiry language A that is a unique format. The data collection unit 13 is connected to the external system 2, collects data from the external system 2 at the processing end timing of the external system 2 and at regular intervals, and updates the flat data file 11. Further, the data collection unit 13 has a function of notifying a data update process outside the apparatus at a timing when the flat data file 11 is updated.

この発明に係る部分であるデータベース装置3は、データ問合せ言語Aによりデータ提供装置1からデータを取得し、取得したデータをデータ問合せ言語SQLで提供する形式に変換するするデータ取得部31と、データ取得部31で変換したデータを蓄積するデータベース部であるリレーショナルデータベース部32と、データ提供装置1のデータ更新通知を取得しデータ取得部31を動作させるタイミングを制御するタイミング制御部である更新通知受信部33を備える。   The database device 3 which is a part according to the present invention acquires data from the data providing device 1 by the data query language A, converts the acquired data into a format provided by the data query language SQL, The relational database unit 32 that is a database unit that stores the data converted by the acquisition unit 31 and the update notification reception that is a timing control unit that controls the timing of operating the data acquisition unit 31 by acquiring the data update notification of the data providing apparatus 1 The unit 33 is provided.

データ取得部31は、更新通知受信部33から動作要求があったときにデータ提供部12に対してデータ問合せを行い、取得したデータをRDBMS部32のテーブル構造に合わせるように変換してRDBMS部32に蓄積する。RDBMS部32は、アクセスした新システム4に対してデータ問合せ言語SQLにより蓄積されているデータを提供する。この実施の形態1において、主キーやカラムの内容などのテーブル構造はあらかじめ決定しておき、データ取得部31を設計する。   The data acquisition unit 31 makes a data inquiry to the data providing unit 12 when there is an operation request from the update notification receiving unit 33, converts the acquired data to match the table structure of the RDBMS unit 32, and converts the RDBMS unit 32. The RDBMS unit 32 provides the stored data in the data inquiry language SQL to the accessed new system 4. In the first embodiment, a table structure such as a primary key and column contents is determined in advance, and the data acquisition unit 31 is designed.

次に動作について説明する。
図2は、この発明の実施の形態1によるデータベース装置の処理の流れを示すフローチャートである。
まず、データ収集部13が外部システム2のデータを収集し、フラットデータファイル11を更新する。フラットデータファイル11を更新したら、データ提供装置1外部に対してデータ更新を通知する。データベース装置3は、ステップST11において、データ提供装置1からデータの更新を通知された更新通知受信部33が、データ取得部31に対して動作要求を行う。
Next, the operation will be described.
FIG. 2 is a flowchart showing a process flow of the database apparatus according to the first embodiment of the present invention.
First, the data collection unit 13 collects data of the external system 2 and updates the flat data file 11. When the flat data file 11 is updated, the data update apparatus 1 is notified of the data update. In the database device 3, the update notification receiving unit 33 notified of the data update from the data providing device 1 makes an operation request to the data acquisition unit 31 in step ST <b> 11.

次に、ステップST12において、要求を受けたデータ取得部31は、データ問合せ言語Aを使用してデータ提供部12にデータ問合せを行い、フラットデータファイル11の内容を一括して取得する。そして、ステップST13において、取得したデータはデータ問合せ言語SQLで提供する形式に変換してRDBMS部32に蓄積する。これにより、RDBMS部32の内容は、フラットデータファイル11と同等になる。
そして、新システム4は、データ問合せ言語SQLを使用してデータベース装置3のRDBMS部32にアクセスして、フラットデータファイル11に記録されている内容と同等のデータをデータベース装置3から取得することができる。
Next, in step ST12, the data acquisition unit 31 that has received the request makes a data inquiry to the data providing unit 12 using the data inquiry language A, and acquires the contents of the flat data file 11 collectively. In step ST13, the acquired data is converted into a format provided by the data query language SQL and stored in the RDBMS unit 32. As a result, the contents of the RDBMS unit 32 are equivalent to the flat data file 11.
Then, the new system 4 can use the data query language SQL to access the RDBMS unit 32 of the database device 3 and acquire data equivalent to the content recorded in the flat data file 11 from the database device 3. it can.

以上のように、この実施の形態1によれば、データベース装置3にRDBMS部32を設け、データ取得部31において古いシステムのデータをデータ問合せ言語SQLで提供できる形式に変換してRDBMS部32に格納するようにしたので、広く使用されているデータ問合せ言語SQLで古いシステムのデータと同等のデータをデータベース装置3を介して提供できるようになり、古いシステムのデータ提供装置1のデータを利用する新システム4の開発効率を向上させることができる。
データベース装置3にアクセスする新システム4は、新規に開発するシステムでなくでもよく、既にあるシステムを改造するなどしてデータ提供装置1が管理するデータを利用するシステムにも適用できる。データ提供装置1は、データをフラットデータファイル以外の形式で格納してもよい。また、SQL以外の汎用データ問い合わせ言語を使用してもよい。なお、汎用データ問い合わせ言語とは、使用するデータベースを限定しないで、よく使用される標準的なデータ問い合わせ言語である。
As described above, according to the first embodiment, the RDBMS unit 32 is provided in the database device 3, and the data acquisition unit 31 converts the old system data into a format that can be provided in the data query language SQL. Since the data is stored, the data query language SQL widely used can provide data equivalent to the data of the old system via the database device 3, and the data of the data providing device 1 of the old system is used. The development efficiency of the new system 4 can be improved.
The new system 4 that accesses the database device 3 may not be a newly developed system, but can also be applied to a system that uses data managed by the data providing device 1 by modifying an existing system. The data providing apparatus 1 may store data in a format other than a flat data file. A general-purpose data inquiry language other than SQL may be used. The general-purpose data inquiry language is a standard data inquiry language that is often used without limiting the database to be used.

また、データ更新を続けるデータ提供装置1の更新通知を受け取る更新通知受信部33を設け、データの更新を通知された際に更新通知受信部33が、データ取得部31に対して動作要求を行うようにしたので人手を介さずに古いシステムのデータをSQLでアクセスできるようにデータ変換してRDBMS部32に格納することができる。   In addition, an update notification receiving unit 33 that receives an update notification of the data providing apparatus 1 that continues to update data is provided, and the update notification receiving unit 33 makes an operation request to the data acquisition unit 31 when the data update is notified. As a result, the data of the old system can be converted and stored in the RDBMS unit 32 so that it can be accessed by SQL without human intervention.

また、古いシステムであるデータ提供装置1が想定していたデータアクセス頻度よりも、新システム4が必要とするデータアクセス頻度の方が大きい場合にも、データベース装置3が新システム4からのデータ問合せに対応するのでデータ提供装置1の処理性能が足りなくなるという問題を回避することができる。   Further, when the data access frequency required by the new system 4 is larger than the data access frequency assumed by the data providing device 1 which is an old system, the database device 3 makes a data inquiry from the new system 4. Therefore, the problem that the processing performance of the data providing device 1 is insufficient can be avoided.

実施の形態2.
図3は、この発明の実施の形態2を示すデータベース装置を含むシステムのブロック図である。
上記実施の形態1では、フラットデータファイル11の内容を一括して取得する例について述べた。この実施の形態2では、データ更新時刻やデータIDなどによりフラットデータファイル11の中の追加、変更、削除など更新データ部分111を特定できる場合である。この場合、特定した更新データ部分111のみを取得するようにする。例えば、図3に示したように、差分データ取得部34を設ける。データ取得部31がデータ提供装置1から取得し、取得したデータをRDBMS部32に格納した後、差分データ取得部34は、データ提供装置1のデータ更新時の際にデータ取得部31が取得したデータと、その時点でデータ取得部31が有するデータとの差分を独自の形式であるデータ問合せ言語により更新データ部分111を取得し、RDBMS部32に格納する。
Embodiment 2. FIG.
FIG. 3 is a block diagram of a system including a database apparatus according to Embodiment 2 of the present invention.
In the first embodiment, the example in which the contents of the flat data file 11 are acquired at once has been described. In the second embodiment, the update data portion 111 such as addition, change, or deletion in the flat data file 11 can be specified by the data update time, the data ID, or the like. In this case, only the specified update data portion 111 is acquired. For example, as shown in FIG. 3, a difference data acquisition unit 34 is provided. After the data acquisition unit 31 acquires from the data providing device 1 and stores the acquired data in the RDBMS unit 32, the difference data acquisition unit 34 acquires the data acquisition unit 31 at the time of data update of the data providing device 1. The difference between the data and the data that the data acquisition unit 31 has at that time is acquired by the data query language that is a unique format, and the update data portion 111 is acquired and stored in the RDBMS unit 32.

この実施の形態2によれば、データ更新時刻やデータIDなどによりフラットデータファイル11の中の更新データ部分111が特定できる場合に、特定した更新データ部分111のみを取得するようにしたので、取得するデータが限定され、データ取得にかかる処理負荷を低減することができる。   According to the second embodiment, when the update data portion 111 in the flat data file 11 can be specified by the data update time or the data ID, only the specified update data portion 111 is acquired. The data to be processed is limited, and the processing load for data acquisition can be reduced.

実施の形態3.
図4は、この発明の実施の形態3を示すデータベース装置を含むシステムのブロック図である。
上記実施の形態2では、差分データ取得部34によりデータ提供装置1のデータ更新時の際にデータ取得部31が取得したデータと、その時点でデータ取得部31が有するデータとの差分をRDBMS部32に格納する場合について延べたが、図4に示したように、更新データ部分の中でフラットデータファイル11へ追加されたデータと変更されたデータのみをRDBMS部32に格納する追加・変更データ取得部39を設け、フラットファイルデータ11から削除されたデータをRDBMS部32からは削除しないようにすることができる。なお、追加・変更データ取得部39は、差分データ取得部の一種である。
Embodiment 3 FIG.
FIG. 4 is a block diagram of a system including a database apparatus showing Embodiment 3 of the present invention.
In the second embodiment, the RDBMS unit calculates the difference between the data acquired by the data acquisition unit 31 at the time of data update of the data providing device 1 by the differential data acquisition unit 34 and the data included in the data acquisition unit 31 at that time. As shown in FIG. 4, the addition / change data for storing only the data added to the flat data file 11 and the changed data in the RDBMS unit 32 as shown in FIG. An acquisition unit 39 may be provided so that data deleted from the flat file data 11 is not deleted from the RDBMS unit 32. The addition / change data acquisition unit 39 is a kind of difference data acquisition unit.

この実施の形態3によれば、記録できるデータ容量の制限からデータ提供装置1では削除されていたデータをデータベース装置3は保持していることになり、新システム4に対してより多くのデータを提供できるという効果がある。   According to the third embodiment, the database device 3 holds the data deleted in the data providing device 1 due to the limitation of the data capacity that can be recorded, and more data is stored in the new system 4. There is an effect that it can be provided.

実施の形態4.
この実施の形態4は、データ提供装置1が所定周期でデータを更新するものであり、データ取制御得部31が、データ提供装置1でのデータ更新のタイミングを把握しており、データ提供装置1のデータ更新の周期と同期させて、データ取得部31を起動してデータを取得するものである。
Embodiment 4 FIG.
In the fourth embodiment, the data providing apparatus 1 updates data at a predetermined cycle, and the data acquisition control obtaining unit 31 grasps the data update timing in the data providing apparatus 1, and the data providing apparatus The data acquisition unit 31 is activated to acquire data in synchronization with the data update cycle 1.

図5は、この発明の実施の形態4を示すデータベース装置を含むシステムのブロック図である。
上記実施の形態1ないし3では、データ提供装置1から外部に提供されているデータ更新通知によりデータ取得部31を動作させる例について述べたが、図5において、データ収集部13が定周期で動作する場合は、データベース装置3にタイマー部35を設け、タイマー部35はデータ収集部13の動作に同期させてデータ取得部31を動作させる。なお、タイマー部35は、一種のデータ取得制御部である。
FIG. 5 is a block diagram of a system including a database apparatus showing Embodiment 4 of the present invention.
In the first to third embodiments, the example in which the data acquisition unit 31 is operated by the data update notification provided to the outside from the data providing apparatus 1 has been described. However, in FIG. In order to do so, a timer unit 35 is provided in the database device 3, and the timer unit 35 operates the data acquisition unit 31 in synchronization with the operation of the data collection unit 13. The timer unit 35 is a kind of data acquisition control unit.

この実施の形態4によれば、データ収集部13が定周期で動作する場合に、タイマー部35により定周期でデータ取得部31が動作するので、データベース装置3はデータ提供装置2のデータを遅延なく更新することができる。   According to the fourth embodiment, when the data collection unit 13 operates at a regular cycle, the data acquisition unit 31 operates at a regular cycle by the timer unit 35, so that the database device 3 delays the data of the data providing device 2 It can be updated without.

実施の形態5.
図6は、この発明の実施の形態5を示すデータベース装置を含むシステムのブロック図である。
上記実施の形態1ないし4では、データ収集部13によってのみフラットデータファイル11が更新される場合について述べた。この実施の形態5では、図6に示したように、データ提供装置1が新システム4などの外部からのデータ変更要求を受信しフラットデータファイル11を更新するデータ変更処理部14を備える場合である。この場合、データベース装置3がデータ変更検知部36を備えることにより、例えば外部システム2の故障によって正しいデータが得られていないことに気づいた新システム4などの外部からデータ変更要求があった場合に、外部からのデータ変更要求をデータベース装置3が受けてデータ変更検知部36はデータベーストリガーなどにより検知しRDBMS部32を更新しその更新した内容をデータ変更検知部36からデータ変更処理部14を通じてデータ提供装置1に送信して、RDBMS部32とフラットデータファイル11の内容とを同期させることができる。
Embodiment 5 FIG.
FIG. 6 is a block diagram of a system including a database apparatus according to Embodiment 5 of the present invention.
In the first to fourth embodiments, the case where the flat data file 11 is updated only by the data collection unit 13 has been described. In the fifth embodiment, as shown in FIG. 6, the data providing apparatus 1 includes a data change processing unit 14 that receives a data change request from the outside such as the new system 4 and updates the flat data file 11. is there. In this case, when the database device 3 includes the data change detection unit 36, for example, when there is a data change request from the outside such as the new system 4 that notices that correct data is not obtained due to a failure of the external system 2. When the database device 3 receives an external data change request, the data change detection unit 36 detects the database trigger or the like, updates the RDBMS unit 32, and updates the updated content from the data change detection unit 36 through the data change processing unit 14. It can transmit to the provision apparatus 1 and the content of the RDBMS part 32 and the flat data file 11 can be synchronized.

以上のように、この実施の形態4によれば、データベース装置3は、新システム4にSQLによるデータ更新機能を提供し、RDBMS部32の変更をデータ提供装置1に送信することができる。なお、図6は、図1(上記実施の形態1)にデータ変更処理部14を設けた例を示したが、図3ないし5(上記実施の形態2ないし4)において、データ変更処理部14を設けることができる。   As described above, according to the fourth embodiment, the database apparatus 3 can provide the new system 4 with a data update function based on SQL, and can transmit changes in the RDBMS unit 32 to the data providing apparatus 1. FIG. 6 shows an example in which the data change processing unit 14 is provided in FIG. 1 (the first embodiment), but in FIGS. 3 to 5 (the second to fourth embodiments), the data change processing unit 14 is provided. Can be provided.

実施の形態6.
図7及び8は、この発明の実施の形態6を示すデータベース装置を含むシステムのブロック図である。
上記実施の形態1ないし3では、データ提供装置1から外部に提供されているデータ更新通知によりデータ取得部31を動作させる場合、上記実施の形態4では、データ提供装置1の更新周期に同期させてデータ取得部31を動作させる場合について述べたが、図7に示したように、この実施の形態6では、さらに、データベース装置3の再起動処理を検知しデータ取得部31に動作要求を行う復旧処理部37を設け、データ収集部13からの更新通知を待たずにRDBMS部32の更新を行うようにしたものである。
Embodiment 6 FIG.
7 and 8 are block diagrams of a system including a database apparatus according to Embodiment 6 of the present invention.
In the first to third embodiments, when the data acquisition unit 31 is operated by the data update notification provided from the data providing apparatus 1 to the outside, the fourth embodiment is synchronized with the update period of the data providing apparatus 1. In the sixth embodiment, as shown in FIG. 7, the restart processing of the database device 3 is further detected and an operation request is made to the data acquisition unit 31. A recovery processing unit 37 is provided, and the RDBMS unit 32 is updated without waiting for an update notification from the data collection unit 13.

また、図8に示したように、データベース装置3が停止していた期間のRDBMS部32とフラットデータファイル11との差分データまたは更新データ部分111が判断できる場合には、復旧処理部37に加えて復旧データ取得部38を設け、更新データ部分のみをRDBMS部32に反映することでさらにデータベース装置3の復旧までの時間を短くすることができる。   Further, as shown in FIG. 8, when the difference data or the update data portion 111 between the RDBMS unit 32 and the flat data file 11 during the period when the database device 3 is stopped can be determined, in addition to the recovery processing unit 37 By providing the recovery data acquisition unit 38 and reflecting only the update data portion in the RDBMS unit 32, the time until the database device 3 is recovered can be further shortened.

以上のように、この実施の形態6によれば、故障などによりデータベース装置3のデータ更新が一時的に停止していたデータベース装置3が再起動してデータ更新を再開した場合に、データ更新通知を待つことなくRDBMS部32の更新処理を開始することができるので、データベース装置3の復旧までの時間を短くすることができる。   As described above, according to the sixth embodiment, when the database device 3 that has been temporarily stopped due to a failure or the like is restarted and the data update is restarted, the data update notification is performed. Since the update process of the RDBMS unit 32 can be started without waiting, the time until the database device 3 is restored can be shortened.

なお、この実施の形態6では、図1ないし4(実施の形態1ないし3)に復旧処理部37を設けた例を示したが、図5および6(実施の形態4及び5)に復旧処理部37を設けることもできる。   In the sixth embodiment, an example in which the restoration processing unit 37 is provided in FIGS. 1 to 4 (Embodiments 1 to 3) is shown, but the restoration process is shown in FIGS. 5 and 6 (Embodiments 4 and 5). The part 37 can also be provided.

この発明の実施の形態1を示すデータベース装置を含むシステムのブロック図である。1 is a block diagram of a system including a database device according to Embodiment 1 of the present invention. この発明の実施の形態1によるデータベース装置の処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of the database apparatus by Embodiment 1 of this invention. この発明の実施の形態2を示すデータベース装置を含むシステムのブロック図である。It is a block diagram of the system containing the database apparatus which shows Embodiment 2 of this invention. この発明の実施の形態3を示すデータベース装置を含むシステムのブロック図である。It is a block diagram of the system containing the database apparatus which shows Embodiment 3 of this invention. この発明の実施の形態4を示すデータベース装置を含むシステムのブロック図である。It is a block diagram of the system containing the database apparatus which shows Embodiment 4 of this invention. この発明の実施の形態5を示すデータベース装置を含むシステムのブロック図である。It is a block diagram of the system containing the database apparatus which shows Embodiment 5 of this invention. この発明の実施の形態6を示すデータベース装置を含むシステムのブロック図である。It is a block diagram of the system containing the database apparatus which shows Embodiment 6 of this invention. この発明の実施の形態6を示すデータベース装置を含むシステムのブロック図である。It is a block diagram of the system containing the database apparatus which shows Embodiment 6 of this invention.

符号の説明Explanation of symbols

1 データ提供装置、2 外部システム、3 データベース装置、4 新システム、
11 フラットデータファイル、12 データ提供部、13 データ収集部、
31 データ取得部、32 リレーショナルデータベース部、33 更新通知受信部、
34 差分データ取得部、35 タイマー部、36 データ変更検知部、
37 復旧処理部、38 復旧データ取得部、39 追加・変更データ取得部。
1 data provision device, 2 external system, 3 database device, 4 new system,
11 flat data file, 12 data provider, 13 data collector,
31 data acquisition unit, 32 relational database unit, 33 update notification receiving unit,
34 difference data acquisition unit, 35 timer unit, 36 data change detection unit,
37 recovery processing unit, 38 recovery data acquisition unit, 39 addition / change data acquisition unit.

Claims (8)

独自の形式であるデータ問合せ言語のデータを提供するデータ提供装置と接続されたデータベース装置であって、
上記データ提供装置から上記独自の形式であるデータ問合せ言語によりデータを取得し、該取得したデータを汎用データ問合せ言語での形式に変換するデータ取得部と、
上記データ取得部で変換されたデータを格納し、上記汎用データ問い合わせ言語によりデータを取得できるデータベース部と、
上記データ取得部がデータを取得するタイミングを制御するデータ取得制御部とを備えたことを特徴とするデータベース装置。
A database device connected to a data providing device that provides data in an original format data query language,
A data acquisition unit that acquires data from the data providing device in a data query language that is in the unique format, and converts the acquired data into a format in a general-purpose data query language;
A database unit that stores the data converted by the data acquisition unit and can acquire data by the general-purpose data inquiry language;
A database apparatus comprising: a data acquisition control unit that controls a timing at which the data acquisition unit acquires data.
上記データ提供装置がデータの更新を外部に通知することができ、
上記データ取得制御部が、上記データ提供装置が通知するデータ更新の通知を受信した際に、上記データ取得制御部が上記データ取得部を起動してデータを取得することを特徴とする請求項1に記載のデータベース装置。
The data providing device can notify the outside of data update,
The data acquisition control unit activates the data acquisition unit to acquire data when the data acquisition control unit receives a data update notification notified by the data providing device. The database device described in 1.
上記データ取得部がデータを取得した後に、上記データ取制御得部が、上記データ提供装置が通知するデータ更新の通知を受信した際に、上記データ取得部が取得したデータと、その時点で上記データ提供装置が有するデータとの差分を上記独自の形式であるデータ問合せ言語により取得し、該取得した差分データを汎用データ問合せ言語での形式に変換する差分データ取得部を備え、
上記データベース部が上記差分データ取得部で変換されたデータを格納することを特徴とする請求項2に記載のデータベース装置。
After the data acquisition unit acquires data, when the data acquisition control acquisition unit receives a data update notification notified by the data providing device, the data acquired by the data acquisition unit, and the data acquired at that time The difference between the data provided by the data providing device is acquired by a data query language that is the above unique format, and the difference data acquisition unit that converts the acquired difference data into a format in a general-purpose data query language,
The database apparatus according to claim 2, wherein the database unit stores data converted by the difference data acquisition unit.
上記差分データ取得部は、上記データ提供装置の更新データのうちで追加データと変更データのみを取得することを特徴とする請求項3に記載のデータベース装置。 The database apparatus according to claim 3, wherein the difference data acquisition unit acquires only additional data and change data among update data of the data providing apparatus. 上記データベース装置の起動処理を検知した場合に、上記差分データ取得部の動作要求を行う復旧処理部を備えたことを特徴とする請求項3または請求項4に記載のデータベース装置。 5. The database device according to claim 3, further comprising a recovery processing unit that makes an operation request for the difference data acquisition unit when a startup process of the database device is detected. 上記データ提供装置が所定周期でデータを更新するものであり、
上記データ取制御得部が、上記データ提供装置でのデータ更新のタイミングを把握しており、上記データ提供装置のデータ更新の周期と同期させて、上記データ取得部を起動してデータを取得することを特徴とする請求項1に記載のデータベース装置。
The data providing apparatus updates data at a predetermined cycle,
The data acquisition control unit grasps the data update timing in the data providing device, and activates the data acquisition unit to acquire data in synchronization with the data update cycle of the data providing device. The database apparatus according to claim 1.
上記データベース装置の起動処理を検知した場合に、上記データ取得部の動作要求を行う復旧処理部を備えたことを特徴とする請求項2または請求項6に記載のデータベース装置。 7. The database device according to claim 2, further comprising a recovery processing unit that makes an operation request for the data acquisition unit when a startup process of the database device is detected. 上記データ提供装置が外部からのデータ変更要求を処理するデータ変更処理部を備えており、
外部からの上記データベース部の更新を可能とし、上記データベース部の外部からの更新を検知し、上記検知した更新内容を上記データ提供装置に送信するデータ変更検知部を備えたことを特徴とする請求項1ないし請求項7のいずれか1項に記載のデータベース装置。
The data providing apparatus includes a data change processing unit that processes a data change request from the outside,
A data change detection unit that enables updating of the database unit from the outside, detects an update from the outside of the database unit, and transmits the detected update content to the data providing device. The database device according to any one of claims 1 to 7.
JP2008297577A 2008-11-21 2008-11-21 Database apparatus Pending JP2010123017A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008297577A JP2010123017A (en) 2008-11-21 2008-11-21 Database apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008297577A JP2010123017A (en) 2008-11-21 2008-11-21 Database apparatus

Publications (1)

Publication Number Publication Date
JP2010123017A true JP2010123017A (en) 2010-06-03

Family

ID=42324290

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008297577A Pending JP2010123017A (en) 2008-11-21 2008-11-21 Database apparatus

Country Status (1)

Country Link
JP (1) JP2010123017A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10289719B2 (en) 2015-07-10 2019-05-14 Mitsubishi Electric Corporation Data acquisition device, data acquisition method and computer readable medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10289719B2 (en) 2015-07-10 2019-05-14 Mitsubishi Electric Corporation Data acquisition device, data acquisition method and computer readable medium

Similar Documents

Publication Publication Date Title
WO2017067230A1 (en) Software function expansion method and apparatus based on micro service architecture
CN107291869B (en) Distributed service system and data query method thereof
JP5652228B2 (en) Database server device, database update method, and database update program
US11449391B2 (en) Network folder resynchronization
CN102262544A (en) Method and device for upgrading software
CN106341244B (en) Configuration file updating method, client, server and system
CN105320718B (en) Transaction completion in a synchronous replication environment
JP2007122643A (en) Data retrieval system, meta data synchronization method and data retrieval device
US20140156595A1 (en) Synchronisation system and method
US9032386B1 (en) Product upgrade location identifier for software upgrade
JP2017045454A (en) Concurrent, incremental, and generational mark and sweep garbage collection
JP2009199321A (en) Relevancy inspection apparatus, relevancy inspection method, and relevancy inspection program
JP2009064269A (en) Network device, network device management method, network device management system, and program
JP2010044519A (en) User information management program, information management program, information management device, user information management device, and information management system
JP2010123017A (en) Database apparatus
CN110221988B (en) Cache optimization method and system for third-party data
JP2016091201A (en) Information processing device, synchronization control method, and program
JPWO2015145587A1 (en) Database system, information processing apparatus, method, and program
CN103559264B (en) Widget data timely updating method and device
JP2016052743A (en) Image processor, control method of initial installation information management system and program
JP2017045455A (en) Systems and methods for organizing data
US20110113010A1 (en) Synchronizing an auxiliary data system with a primary data system
US20160335225A1 (en) Information processing apparatus, information processing method, and non-transitory computer readable medium
CN113468143A (en) Data migration method, system, computing device and storage medium
JP2011164962A (en) Device and method for data duplication