JP2013149173A - Query conversion device, database server, and program - Google Patents

Query conversion device, database server, and program Download PDF

Info

Publication number
JP2013149173A
JP2013149173A JP2012010501A JP2012010501A JP2013149173A JP 2013149173 A JP2013149173 A JP 2013149173A JP 2012010501 A JP2012010501 A JP 2012010501A JP 2012010501 A JP2012010501 A JP 2012010501A JP 2013149173 A JP2013149173 A JP 2013149173A
Authority
JP
Japan
Prior art keywords
query
conversion
database
unit
definition file
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
JP2012010501A
Other languages
Japanese (ja)
Inventor
Naoki Kyoya
尚樹 京谷
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 JP2012010501A priority Critical patent/JP2013149173A/en
Publication of JP2013149173A publication Critical patent/JP2013149173A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To cause a plurality of systems corresponding to different table layouts to read/write data with respect to a common database.SOLUTION: A communication unit 101 communicates with a plurality of terminal devices (systems) via a network 30. A storage unit 102 stores a conversion definition file 1022 in which a conversion content for converting a query issued from a terminal device into a query accommodating to specifications of a commodity management DB 1021 is defined for every system. When receiving the query issued from the terminal device, the query conversion unit 1031 acquires a conversion content corresponding to the system from the conversion definition file 1022 and converts the received query on the basis of the acquired conversion content. The query conversion unit 1031 supplies a DBMS (DataBase Management System) processing unit 1032 with the query after the conversion.

Description

本発明は、システムから発行されたクエリを特定のデータベースに対応するように変換するクエリ変換装置、データベースサーバ及びプログラムに関する。   The present invention relates to a query conversion device, a database server, and a program for converting a query issued from a system so as to correspond to a specific database.

例えば、企業等の基幹業務システムにおいて、新しいシステムの導入や管理情報の拡大等により、複数のシステムで共有化するデータベースのテーブルレイアウトの変更が余儀なくされるケースは多々ある。この場合、プログラムの改修幅が膨大である等、新レイアウトに対応するための変更負荷が非常に大きく、また、新レイアウトでのメリットがさほど大きくないシステムでは、旧レイアウト仕様のままで対応する方が得策であるといえる。したがって、企業等においては、このようなシステムに、新レイアウトのデータベースではなく、旧レイアウトのデータベースに引き続きアクセスさせるという方策を取るケースも少なくない。   For example, in a basic business system of a company or the like, there are many cases in which the table layout of a database shared by a plurality of systems is inevitably changed due to introduction of a new system or expansion of management information. In this case, if the system has a very large change load to accommodate the new layout, such as a large amount of program modifications, and the benefits of the new layout are not so great, the system can be used with the old layout specifications. Is a good idea. Accordingly, there are many cases in companies and the like that take such a measure that such a system continues to access the database of the old layout instead of the database of the new layout.

上記のケースのように、データの内容は同様であるものの、レイアウトが異なる複数のデータベースを併用して使用する場合、データの整合性を保つため、バッチ処理で同期を取る等といった作業が必要である。このため、システム間でのリアルタイムの情報反映が困難であり、また、不整合発生のリスクも決して低いとはいえないという問題があった。   As in the above case, the contents of the data are the same, but when using multiple databases with different layouts in combination, work such as synchronization in batch processing is required to maintain data consistency. is there. Therefore, there is a problem that it is difficult to reflect information between systems in real time, and that the risk of inconsistency cannot be said to be low.

これに対し、例えば特許文献1では、レガシーシステムからのデータファイルを、統合化されたデータベースの仕様に合わせて変換した後、当該データベースに格納するデータ格納装置が提案されている。   On the other hand, for example, Patent Document 1 proposes a data storage device that converts a data file from a legacy system according to the specifications of an integrated database and then stores the data file in the database.

特開2001−297017号公報JP 2001-297017 A

しかしながら、上記の特許文献1には、レガシーシステムが上記の統合化されたデータベースから如何にしてデータを取得するかについての言及が一切されていない。したがって、特許文献1に記載の技術は、上記従来の問題に対する有効な解決策とはならない。   However, the above Patent Document 1 does not mention at all how a legacy system acquires data from the above integrated database. Therefore, the technique described in Patent Document 1 is not an effective solution to the conventional problem.

本発明は、このような実情に鑑みてなされたものであり、それぞれ異なるテーブルレイアウトに対応した複数のシステムが共通のデータベースに対してデータを読み書きすることができるようになるクエリ変換装置等を提供することを目的とする。   The present invention has been made in view of such circumstances, and provides a query conversion device and the like that enable a plurality of systems corresponding to different table layouts to read and write data to a common database. The purpose is to do.

上記目的を達成するため、本発明に係るクエリ変換装置は、
所定のネットワークを介して複数のシステムと通信する通信部と、
前記システムから発行されたクエリを特定のデータベースの仕様に対応可能となるようなクエリに変換するための変換内容が前記システム毎に定義された変換定義ファイルを記憶する記憶部と、
前記システムから発行されたクエリを受信すると、前記記憶部に記憶されている前記変換定義ファイルから当該システムに対応する前記変換内容を取得し、取得した前記変換内容に基づいて前記受信したクエリを変換し、変換後のクエリを前記特定のデータベースに対応したデータベース管理システムに供給するクエリ変換部と、を備える、ことを特徴とする。
In order to achieve the above object, a query conversion apparatus according to the present invention provides:
A communication unit that communicates with a plurality of systems via a predetermined network;
A storage unit for storing a conversion definition file in which conversion contents for converting a query issued from the system into a query that can correspond to a specific database specification are defined for each system;
When a query issued from the system is received, the conversion content corresponding to the system is acquired from the conversion definition file stored in the storage unit, and the received query is converted based on the acquired conversion content And a query conversion unit that supplies the converted query to a database management system corresponding to the specific database.

本発明によれば、それぞれ異なるテーブルレイアウトに対応した複数のシステムが、共通のデータベースに対してデータを読み書きすることが可能となる。   According to the present invention, a plurality of systems corresponding to different table layouts can read / write data from / to a common database.

本発明の実施形態に係るDBサーバを備えた情報管理システムの全体構成を示す図である。It is a figure showing the whole information management system composition provided with DB server concerning an embodiment of the present invention. 本実施形態のDBサーバの構成を示すブロック図である。It is a block diagram which shows the structure of DB server of this embodiment. 商品情報の構成を示す図である。It is a figure which shows the structure of merchandise information. 従来の情報管理システムを説明するための図(その1)である。It is FIG. (1) for demonstrating the conventional information management system. 従来の情報管理システムを説明するための図(その2)である。It is FIG. (2) for demonstrating the conventional information management system. クエリ変換部の機能を説明するための図である。It is a figure for demonstrating the function of a query conversion part. 変換定義ファイルで定義された変換内容の一例を示す図である。It is a figure which shows an example of the conversion content defined in the conversion definition file. クエリ変換処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of a query conversion process. 本発明の他の実施形態(その1)について説明するための図である。It is a figure for demonstrating other embodiment (the 1) of this invention. 本発明の他の実施形態(その1)における変換定義ファイルで定義された変換内容の一例を示す図である。It is a figure which shows an example of the conversion content defined by the conversion definition file in other embodiment (the 1) of this invention. 本発明の他の実施形態(その2)について説明するための図(その1)である。It is FIG. (The 1) for demonstrating other embodiment (the 2) of this invention. 本発明の他の実施形態(その2)について説明するための図(その2)である。It is FIG. (2) for demonstrating other embodiment (the 2) of this invention. 本発明の他の実施形態(その2)における変換定義ファイルで定義された変換内容の一例を示す図である。It is a figure which shows an example of the conversion content defined by the conversion definition file in other embodiment (the 2) of this invention.

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

図1は、本実施形態に係るDBサーバ10を備えた情報管理システム1の全体構成を示す図である。この情報管理システム1は、例えば、企業等の基幹業務システムにおける一部の共通情報(例えば、商品情報)を管理するためのシステムである。情報管理システム1は、DB(データベース)サーバ10と、複数の端末装置20と、から構成される。DBサーバ10と各端末装置20は、例えば、イントラネット等の所定のネットワーク30に接続し、相互にデータの送受信が可能となるように構成されている。   FIG. 1 is a diagram illustrating an overall configuration of an information management system 1 including a DB server 10 according to the present embodiment. The information management system 1 is a system for managing some common information (for example, product information) in a basic business system such as a company. The information management system 1 includes a DB (database) server 10 and a plurality of terminal devices 20. The DB server 10 and each terminal device 20 are connected to a predetermined network 30 such as an intranet, for example, and are configured to be able to transmit / receive data to / from each other.

各端末装置20は、当該基幹業務システムを構成する複数の業務システム(例えば、生産管理システム、販売管理システム、在庫管理システム等)のそれぞれで使用される情報処理装置である。各端末装置20は、一般のパーソナルコンピュータと同等のハードウェア構成を有する。   Each terminal device 20 is an information processing device used in each of a plurality of business systems (for example, a production management system, a sales management system, an inventory management system, etc.) that constitute the core business system. Each terminal device 20 has a hardware configuration equivalent to that of a general personal computer.

DBサーバ10は、図2に示すように、通信部101と、記憶部102と、制御部103と、を備える。各部はバス104を介して互いに接続されている。通信部101は、ネットワークカード等の通信インタフェースを含んで構成され、制御部103の制御の下、ネットワーク30を介して、各端末装置20と所定の通信方式に則った通信を行う。   As shown in FIG. 2, the DB server 10 includes a communication unit 101, a storage unit 102, and a control unit 103. Each unit is connected to each other via a bus 104. The communication unit 101 includes a communication interface such as a network card, and communicates with each terminal device 20 according to a predetermined communication method via the network 30 under the control of the control unit 103.

記憶部102は、例えば、ハードディスクドライブ(HDD)やフラッシュメモリ等の読み書き可能な不揮発性の半導体メモリで構成される。記憶部102には、商品管理DB1021が構築されている。商品管理DB1021は、当該企業等が扱う商品についての情報(商品情報)が登録されたデータベースである。本実施形態では、商品情報は、図3に示すように、商品ID、商品名、発売日、備考1、備考2などの項目から構成される。   The storage unit 102 is configured by a readable / writable nonvolatile semiconductor memory such as a hard disk drive (HDD) or a flash memory, for example. A product management DB 1021 is constructed in the storage unit 102. The product management DB 1021 is a database in which information (product information) about products handled by the company or the like is registered. In this embodiment, the product information includes items such as a product ID, a product name, a release date, remarks 1 and 2 as shown in FIG.

また、記憶部102は、変換定義ファイル1022を記憶する。変換定義ファイル1022は、当該基幹業務システムを構成する各システムの端末装置20から発行されたクエリを、商品管理DB1021の仕様に対応可能となるように変換するための内容が定義されたデータファイルである。ここで、商品管理DB1021の仕様とは、主として、テーブルレイアウトの仕様(例えば、各項目のデータ型など)を意味する。記憶部102は、以上のほか、様々なデータやプログラム等を記憶する。   In addition, the storage unit 102 stores a conversion definition file 1022. The conversion definition file 1022 is a data file in which contents for converting a query issued from the terminal device 20 of each system constituting the core business system so as to be compatible with the specifications of the product management DB 1021 are defined. is there. Here, the specification of the product management DB 1021 mainly means a table layout specification (for example, data type of each item). In addition to the above, the storage unit 102 stores various data, programs, and the like.

制御部103は、CPU(Central Processing Unit)、ROM(Read Only Memory)、RAM(Random Access Memory)等から構成され、バス104を介して通信部101及び記憶部102を制御する。   The control unit 103 includes a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), and the like, and controls the communication unit 101 and the storage unit 102 via the bus 104.

制御部103は、機能的には、クエリ変換部1031と、DBMS処理部1032と、を備える。クエリ変換部1031は、CPUが、ROMあるいは記憶部102に記憶されているクエリ変換プログラムを実行することで実現する機能である。また、DBMS処理部1032は、CPUが、ROMあるいは記憶部102に記憶されているDBMS用プログラムを実行することで実現する機能である。   Functionally, the control unit 103 includes a query conversion unit 1031 and a DBMS processing unit 1032. The query conversion unit 1031 is a function realized by the CPU executing a query conversion program stored in the ROM or the storage unit 102. The DBMS processing unit 1032 is a function realized by the CPU executing a program for DBMS stored in the ROM or the storage unit 102.

クエリ変換部1031は、各システムの端末装置20から発行(送信)されたクエリを受信すると、変換定義ファイル1022を参照して、商品管理DB1021の仕様に応じたクエリに変換する。そして、クエリ変換部1031は、変換したクエリをDBMS処理部1032に供給する。   When the query conversion unit 1031 receives a query issued (transmitted) from the terminal device 20 of each system, the query conversion unit 1031 refers to the conversion definition file 1022 and converts it into a query according to the specifications of the product management DB 1021. Then, the query conversion unit 1031 supplies the converted query to the DBMS processing unit 1032.

DBMS処理部1032は、商品管理DB1021を管理・運用するためのDBMS(DataBase Management System)としての役割を担う。DBMS処理部1032の機能は、周知のDBMSにおける機能と同様である。DBMS処理部1032は、商品管理DB1021にアクセスし、クエリ変換部1031から供給されたクエリに基づいて、データの読み出し又は書き込み処理を行う。そして、DBMS処理部1032は、その処理の結果をクエリ変換部1031に通知する。クエリ変換部1031は、DBMS処理部1032からの通知内容を、発行されたクエリに対する応答データとして、発行元の端末装置20(即ち、システム)に送信する。   The DBMS processing unit 1032 plays a role as a DBMS (DataBase Management System) for managing and operating the product management DB 1021. The function of the DBMS processing unit 1032 is the same as the function in the well-known DBMS. The DBMS processing unit 1032 accesses the product management DB 1021 and performs data reading or writing processing based on the query supplied from the query conversion unit 1031. Then, the DBMS processing unit 1032 notifies the query conversion unit 1031 of the processing result. The query conversion unit 1031 transmits the notification content from the DBMS processing unit 1032 to the issuing terminal device 20 (that is, the system) as response data for the issued query.

ここで、従来のこの種の情報管理システムにおいて、旧仕様のデータベースにアクセスするシステムと、新仕様のデータベースにアクセスするシステムとが混在する場合について説明する。図4において、商品管理DB1021Aは、旧仕様のテーブルAからなるデータベースを示し、商品管理DB1021Bは、新仕様のテーブルBからなるデータベースを示すものとする。なお、この説明では、理解を容易にするため、テーブルA、Bでは、上述した商品情報の項目の一部(商品ID、発売日)のみを示している。   Here, in the conventional information management system of this type, a case where a system that accesses an old specification database and a system that accesses a new specification database coexist will be described. In FIG. 4, the product management DB 1021A indicates a database including the old specification table A, and the product management DB 1021B indicates a database including the new specification table B. In this description, in order to facilitate understanding, in the tables A and B, only some of the items of the product information (product ID, release date) are shown.

この例では、旧仕様のテーブルAにおいて、商品ID及び発売日のデータ型が、何れも文字列型であることが示され、新仕様のテーブルBにおいては、商品ID及び発売日のデータ型が、それぞれ数値型及び日付型であることが示されている。   In this example, it is shown that the data type of the product ID and the release date is a character string type in the table A of the old specification, and the data type of the product ID and the release date is shown in the table B of the new specification. , Respectively, are numerical and date types.

上記のケースにおいて、商品管理DB1021Aに引き続きアクセスするレガシーなシステムと、商品管理DB1021Bにアクセスする新仕様に対応したシステムのそれぞれの端末装置からは、例えば、図5に示すようなクエリがそれぞれ発行される。   In the above case, for example, a query as shown in FIG. 5 is issued from each terminal device of the legacy system that continuously accesses the product management DB 1021A and the system corresponding to the new specification that accesses the product management DB 1021B. The

このように、データの内容は同様であるものの、レイアウトが異なる新旧のデータベース(商品管理DB1021A、商品管理DB1021B)が並行して使用される場合、双方のデータベースにおけるデータの整合性を保つため、バッチ処理等により、商品管理DB1021A及び商品管理DB1021Bの同期を取る必要がある。   As described above, when old and new databases (product management DB 1021A and product management DB 1021B) having the same data contents but different layouts are used in parallel, batches are used to maintain data consistency in both databases. It is necessary to synchronize the product management DB 1021A and the product management DB 1021B by processing or the like.

これに対し、本実施形態の情報管理システム1では、図6に示すように、上記のクエリ変換部1031により、システムAの端末装置20Aからのクエリは、商品管理DB1021Bの仕様に対応するように変換される。このケースにおいて、変換定義ファイル1022に記述されているシステムAの変換内容を図7に示す。   On the other hand, in the information management system 1 of this embodiment, as shown in FIG. 6, the query from the terminal device 20A of the system A corresponds to the specification of the product management DB 1021B by the query conversion unit 1031. Converted. In this case, the conversion contents of the system A described in the conversion definition file 1022 are shown in FIG.

クエリ変換部1031によってクエリが自動変換されることで、システムAにおいては、テーブルAのレイアウト仕様のままで継続して処理ができると共に、データの読み出し、書き込みは新仕様の商品管理DB1021Bに共通化することができる。   By automatically converting the query by the query conversion unit 1031, the system A can continue processing with the layout specification of the table A, and the reading and writing of data are shared by the new product management DB 1021B. can do.

なお、クエリ変換部1031は、新仕様に対応したシステムBの端末装置20Bからのクエリに対しては、変換の必要がないため、そのままの状態で、DBMS処理部1032に供給する。例えば、変換定義ファイル1022に、システムBが新仕様に対応したシステムであることを示す情報が含めるようにし、クエリ変換部1031は、かかる情報により、システムBが新仕様に対応しているか否かを判定してもよい。あるいは、変換定義ファイル1022において、システムB用の変換内容が定義されているか否かで、システムBが新仕様に対応しているか否かを判定してもよい。   Note that the query conversion unit 1031 supplies the query to the DBMS processing unit 1032 as it is because there is no need to convert the query from the terminal device 20B of the system B corresponding to the new specification. For example, the conversion definition file 1022 includes information indicating that the system B is a system compatible with the new specification, and the query conversion unit 1031 determines whether the system B supports the new specification based on the information. May be determined. Alternatively, whether or not the system B supports the new specification may be determined based on whether or not the conversion content for the system B is defined in the conversion definition file 1022.

図8は、クエリ変換部1031が実行するクエリ変換処理の手順を示すフローチャートである。クエリ変換部1031は、何れかのシステムの端末装置20から発行されたクエリを受信すると(ステップS101;YES)、変換定義ファイル1022を参照して、クエリの変換が必要であるか否かを判定する(ステップS102)。   FIG. 8 is a flowchart illustrating a procedure of query conversion processing executed by the query conversion unit 1031. When the query conversion unit 1031 receives a query issued from the terminal device 20 of any system (step S101; YES), the query conversion unit 1031 refers to the conversion definition file 1022 to determine whether the query needs to be converted. (Step S102).

その結果、クエリの変換が必要であると判定した場合(ステップS102;YES)、クエリ変換部1031は、変換定義ファイル1022に定義された当該発行元のシステム用の変換内容に基づいてクエリの変換、即ち、商品管理DB1021の仕様に対応するように、クエリの内容を変更する(ステップS103)。クエリ変換部1031は、変換後のクエリをDBMS処理部1032に供給する(ステップS104)。一方、クエリの変換が必要でないと判定した場合(ステップS102;NO)、クエリ変換部1031は、当該受信したクエリをそのままの内容で、DBMS処理部1032に供給する(ステップS105)。   As a result, when it is determined that query conversion is necessary (step S102; YES), the query conversion unit 1031 converts the query based on the conversion content for the issuing system defined in the conversion definition file 1022. That is, the contents of the query are changed so as to correspond to the specifications of the product management DB 1021 (step S103). The query conversion unit 1031 supplies the converted query to the DBMS processing unit 1032 (step S104). On the other hand, if it is determined that query conversion is not necessary (step S102; NO), the query conversion unit 1031 supplies the received query as it is to the DBMS processing unit 1032 (step S105).

DBMS処理部1032は、クエリ変換部1031からクエリの供給を受けると、商品管理DB1021にアクセスし、当該クエリの内容に基づくデータの読み出し又は書き込み処理を行う。そして、DBMS処理部1032は、処理結果をクエリ変換部1031に通知する。クエリ変換部1031は、DBMS処理部1032からの処理結果通知を受けると(ステップS106;YES)、当該処理結果通知に基づいて応答データを生成する(ステップS107)。かかる応答データには、読み出し又は書き込みが正常に終了したか否かを示す情報が含まれ、また、読み出しが正常に終了した場合には、読み出したデータも含まれる。   When the DBMS processing unit 1032 receives the supply of the query from the query conversion unit 1031, the DBMS processing unit 1032 accesses the product management DB 1021 and performs data reading or writing processing based on the content of the query. Then, the DBMS processing unit 1032 notifies the query conversion unit 1031 of the processing result. When receiving the processing result notification from the DBMS processing unit 1032 (step S106; YES), the query conversion unit 1031 generates response data based on the processing result notification (step S107). Such response data includes information indicating whether the reading or writing has been normally completed, and also includes the read data when the reading has been normally completed.

クエリ変換部1031は、生成した応答データを、クエリを発行したシステムの端末装置20に送信する(ステップS108)。そして、クエリ変換部1031の処理は、ステップS101に戻り、上述した一連の処理が繰り返し実行される。   The query conversion unit 1031 transmits the generated response data to the terminal device 20 of the system that issued the query (step S108). Then, the process of the query conversion unit 1031 returns to step S101, and the series of processes described above are repeatedly executed.

以上説明したように、本実施形態に係るDBサーバ10は、商品管理DB1021の仕様に対応可能となるように、クエリの変換内容が各システム毎に定義された変換定義ファイル1022を保持する。そして、DBサーバ10のクエリ変換部1031は、システムから発行されたクエリを、変換定義ファイル1022に定義された変換内容に基づいて、その内容を変更する。したがって、例えば、旧レイアウト仕様のままで処理を行う方が得策であるシステムは、引き続き旧仕様のままで処理を継続することができる。また、旧仕様のデータベースと新仕様のデータベースを並行して使用せずに済むため、データの整合性を保つための同期作業等が不要となる。   As described above, the DB server 10 according to the present embodiment holds the conversion definition file 1022 in which the conversion contents of the query are defined for each system so as to be compatible with the specifications of the product management DB 1021. Then, the query conversion unit 1031 of the DB server 10 changes the content of the query issued from the system based on the conversion content defined in the conversion definition file 1022. Therefore, for example, a system where it is better to perform processing with the old layout specification can continue processing with the old specification. In addition, since it is not necessary to use the old-specification database and the new-specification database in parallel, there is no need for synchronization work for maintaining data consistency.

なお、本発明は、上記実施形態に限定されず、本発明の要旨を逸脱しない範囲での種々の変更は勿論可能である。   In addition, this invention is not limited to the said embodiment, Of course, the various change in the range which does not deviate from the summary of this invention is possible.

例えば、図9に示すように、共通化したデータベースである商品管理DB1021を、主テーブルC1と、補助テーブルC2とを有する構成にし、主テーブルC1のレイアウトと異なるレイアウト(テーブルC)で処理を行うシステムCに対応できるようにしてもよい。図9のケースにおいて、変換定義ファイル1022に記述されているシステムCの変換内容を図10に示す。   For example, as shown in FIG. 9, the commodity management DB 1021 which is a common database is configured to include a main table C1 and an auxiliary table C2, and processing is performed with a layout (table C) different from the layout of the main table C1. The system C may be supported. In the case of FIG. 9, the conversion contents of the system C described in the conversion definition file 1022 are shown in FIG.

このようにすると、例えば、新しく追加したシステム等が要求するテーブルよりも、実際にデータベースに保持されているテーブルのレイアウトサイズが小さい(項目が足りない、桁数が少ない等)場合であっても、データベースを再構築することなく対応することが可能となる。   In this case, for example, even when the layout size of the table actually held in the database is smaller than the table required by the newly added system or the like (the number of items is insufficient, the number of digits is small). Therefore, it is possible to cope without rebuilding the database.

また、図11及び12に示すように、共通化したデータベースである商品管理DB1021を、読み出し専用の主テーブルD1と、読み書き可能な補助テーブルD2とを有する構成にし、内部的に、データの削除や書き込みも行えるテーブルDで処理を行うシステムDに対応できるようにしてもよい。図11及び12のケースにおいて、変換定義ファイル1022に記述されているシステムCの変換内容を図13に示す。   Further, as shown in FIGS. 11 and 12, the commodity management DB 1021, which is a common database, is configured to include a read-only main table D1 and a readable / writable auxiliary table D2, and internally, data deletion and It may be possible to cope with the system D that performs processing using the table D that can also perform writing. In the cases of FIGS. 11 and 12, the conversion contents of the system C described in the conversion definition file 1022 are shown in FIG.

このようにすると、読み出しの高速化を維持しつつ、書き込みも適宜行うことが可能となる。   In this way, it is possible to appropriately perform writing while maintaining high-speed reading.

また、DBサーバ10からクエリ変換機能を分離させ、かかる機能を別装置(クエリ変換装置)で行うようにしてもよい。   Alternatively, the query conversion function may be separated from the DB server 10 and the function may be performed by another device (query conversion device).

また、上記実施形態のDBサーバ10が実行したクエリ変換プログラムを、既存のパーソナルコンピュータやデータベースサーバ等に適用することで、これらを本発明に係るクエリ変換装置あるいはデータベースサーバとして機能させることも可能である。   In addition, by applying the query conversion program executed by the DB server 10 of the above embodiment to an existing personal computer, database server, or the like, it is possible to cause these to function as a query conversion device or a database server according to the present invention. is there.

このようなプログラムの配布方法は任意であり、例えば、CD−ROM(Compact Disk Read-Only Memory)、DVD(Digital Versatile Disk)、MO(Magneto Optical Disk)、メモリカードなどのコンピュータ読み取り可能な記録媒体に格納して配布してもよいし、インターネットなどの通信ネットワークを介して配布してもよい。   Such a program distribution method is arbitrary, for example, a computer-readable recording medium such as a CD-ROM (Compact Disk Read-Only Memory), a DVD (Digital Versatile Disk), an MO (Magneto Optical Disk), or a memory card. It may be stored and distributed in a network, or distributed via a communication network such as the Internet.

本発明は、本発明の広義の精神と範囲を逸脱することなく、様々な実施形態及び変形が可能とされるものである。また、上述した実施形態は、本発明を説明するためのものであり、本発明の範囲を限定するものではない。つまり、本発明の範囲は、実施形態ではなく、特許請求の範囲によって示される。そして、特許請求の範囲内及びそれと同等の発明の意義の範囲内で施される様々な変形が、本発明の範囲内とみなされる。   Various embodiments and modifications can be made to the present invention without departing from the broad spirit and scope of the present invention. Further, the above-described embodiment is for explaining the present invention, and does not limit the scope of the present invention. That is, the scope of the present invention is shown not by the embodiments but by the claims. Various modifications within the scope of the claims and within the scope of the equivalent invention are considered to be within the scope of the present invention.

1 情報管理システム
10 DBサーバ
20 端末装置
30 ネットワーク
101 通信部
102 記憶部
103 制御部
104 バス
1021 商品管理DB
1022 変換定義ファイル
1031 クエリ変換部
1032 DBMS処理部
1 Information Management System 10 DB Server 20 Terminal Device 30 Network 101 Communication Unit 102 Storage Unit 103 Control Unit 104 Bus 1021 Product Management DB
1022 Conversion definition file 1031 Query conversion unit 1032 DBMS processing unit

Claims (3)

所定のネットワークを介して複数のシステムと通信する通信部と、
前記システムから発行されたクエリを特定のデータベースの仕様に対応可能となるようなクエリに変換するための変換内容が前記システム毎に定義された変換定義ファイルを記憶する記憶部と、
前記システムから発行されたクエリを受信すると、前記記憶部に記憶されている前記変換定義ファイルから当該システムに対応する前記変換内容を取得し、取得した前記変換内容に基づいて前記受信したクエリを変換し、変換後のクエリを前記特定のデータベースに対応したデータベース管理システムに供給するクエリ変換部と、を備える、
ことを特徴とするクエリ変換装置。
A communication unit that communicates with a plurality of systems via a predetermined network;
A storage unit for storing a conversion definition file in which conversion contents for converting a query issued from the system into a query that can correspond to a specific database specification are defined for each system;
When a query issued from the system is received, the conversion content corresponding to the system is acquired from the conversion definition file stored in the storage unit, and the received query is converted based on the acquired conversion content And a query conversion unit that supplies the converted query to a database management system corresponding to the specific database,
A query conversion apparatus characterized by that.
所定のネットワークを介して複数のシステムと通信する通信部と、
データベースと、
前記データベースに対応したデータベース管理システムと、
前記システムから発行されたクエリを前記データベースの仕様に対応可能となるようなクエリに変換するための変換内容が前記システム毎に定義された変換定義ファイルを記憶する記憶部と、
前記システムから発行されたクエリを受信すると、前記記憶部に記憶されている前記変換定義ファイルから当該システムに対応する前記変換内容を取得し、取得した前記変換内容に基づいて前記受信したクエリを変換し、変換後のクエリを前記データベース管理システムに供給するクエリ変換部と、を備える、
ことを特徴とするデータベースサーバ。
A communication unit that communicates with a plurality of systems via a predetermined network;
A database,
A database management system corresponding to the database;
A storage unit for storing a conversion definition file in which conversion contents for converting a query issued from the system into a query that can correspond to the specifications of the database are defined for each system;
When a query issued from the system is received, the conversion content corresponding to the system is acquired from the conversion definition file stored in the storage unit, and the received query is converted based on the acquired conversion content And a query conversion unit that supplies the converted query to the database management system,
A database server characterized by that.
所定のネットワークを介して複数のシステムと通信する通信部と、
前記システムから発行されたクエリを特定のデータベースの仕様に対応可能となるようなクエリに変換するための変換内容が前記システム毎に定義された変換定義ファイルを記憶する記憶部と、を備えるコンピュータを、
前記システムから発行されたクエリを受信すると、前記記憶部に記憶されている前記変換定義ファイルから当該システムに対応する前記変換内容を取得し、取得した前記変換内容に基づいて前記受信したクエリを変換し、変換後のクエリを前記特定のデータベースに対応したデータベース管理システムに供給するクエリ変換部として機能させることを特徴とするプログラム。
A communication unit that communicates with a plurality of systems via a predetermined network;
A storage unit that stores a conversion definition file in which conversion contents for converting a query issued from the system into a query that can correspond to a specification of a specific database are defined for each system; ,
When a query issued from the system is received, the conversion content corresponding to the system is acquired from the conversion definition file stored in the storage unit, and the received query is converted based on the acquired conversion content And a program that functions as a query conversion unit that supplies the converted query to a database management system corresponding to the specific database.
JP2012010501A 2012-01-20 2012-01-20 Query conversion device, database server, and program Pending JP2013149173A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012010501A JP2013149173A (en) 2012-01-20 2012-01-20 Query conversion device, database server, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012010501A JP2013149173A (en) 2012-01-20 2012-01-20 Query conversion device, database server, and program

Publications (1)

Publication Number Publication Date
JP2013149173A true JP2013149173A (en) 2013-08-01

Family

ID=49046590

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012010501A Pending JP2013149173A (en) 2012-01-20 2012-01-20 Query conversion device, database server, and program

Country Status (1)

Country Link
JP (1) JP2013149173A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3316197A1 (en) 2016-10-25 2018-05-02 Hitachi, Ltd. Data provision apparatus and data provision method
EP3522028A1 (en) 2018-01-31 2019-08-07 Hitachi, Ltd. Data providing apparatus and data providing method
KR20200080073A (en) * 2018-12-26 2020-07-06 한남대학교 산학협력단 Database migration system and database migration method using the same

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3316197A1 (en) 2016-10-25 2018-05-02 Hitachi, Ltd. Data provision apparatus and data provision method
US10565224B2 (en) 2016-10-25 2020-02-18 Hitachi, Ltd. Data provision apparatus and data provision method
EP3522028A1 (en) 2018-01-31 2019-08-07 Hitachi, Ltd. Data providing apparatus and data providing method
US10795343B2 (en) 2018-01-31 2020-10-06 Hitachi, Ltd. Data providing apparatus and data providing method
KR20200080073A (en) * 2018-12-26 2020-07-06 한남대학교 산학협력단 Database migration system and database migration method using the same
KR102230821B1 (en) 2018-12-26 2021-03-19 한남대학교 산학협력단 Database migration system and database migration method using the same

Similar Documents

Publication Publication Date Title
CN102640151B (en) Transformed data recording method and system
CN105468690A (en) Inventory data processing method and device
Goss et al. Heading towards big data building a better data warehouse for more data, more speed, and more users
CN102509012A (en) Method for mapping contents of electronic medical record into electronic medical record standard database
Pham et al. Practical anti-counterfeit medicine management system based on blockchain technology
CN103034703A (en) Method for data exchange among multiple systems based on rule configuration
CN106055678A (en) Hadoop-based panoramic big data distributed storage method
CN110046287A (en) A kind of the data query method, apparatus and storage medium unrelated with type of database
CN102567204A (en) Method for managing automatic testing data
US7908243B2 (en) Considering transient data also in reports generated based on data eventually stored in a data-warehouse
JP2013149173A (en) Query conversion device, database server, and program
JP6425386B2 (en) Form output system and form output method
US11436359B2 (en) System and method for managing permissions of users for a single data type column-oriented data structure
JP2020003986A (en) Inventory reservation processing device, inventory reservation processing method, and inventory reservation processing program
JP2008009590A (en) Production management system, production management method, and storage medium for storing production management program for executing production management method
EP2479675A1 (en) Database management device using key-value store with attributes, and key-value-store structure caching-device therefor
JP6378497B2 (en) Information processing apparatus, information processing method, and program
JP2018109898A (en) Data migration system
JP6422346B2 (en) Program generation apparatus and program generation method
US10810184B1 (en) Systems for consistent modification of stored values
JP2014013470A (en) Management method for electronic form and electronic form system, and management program for electronic form
US20110099143A1 (en) Embedding and retrieving data in an application file format
JP2019164483A (en) Commodity inventory management device, commodity inventory management method, and commodity inventory management program
Griffiths ISBN: A History
CN101901435A (en) Method for processing material information