JP2009271587A - Data management system - Google Patents
Data management system Download PDFInfo
- Publication number
- JP2009271587A JP2009271587A JP2008118910A JP2008118910A JP2009271587A JP 2009271587 A JP2009271587 A JP 2009271587A JP 2008118910 A JP2008118910 A JP 2008118910A JP 2008118910 A JP2008118910 A JP 2008118910A JP 2009271587 A JP2009271587 A JP 2009271587A
- Authority
- JP
- Japan
- Prior art keywords
- data
- server
- database
- data file
- 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.)
- Granted
Links
Images
Abstract
Description
この発明は、少なくとも1つがデータベースを有する複数の機器からなり、これら機器の相互間でデータベースに対する操作用のデータを共有するベース管理システムに関する。 The present invention relates to a base management system that includes a plurality of devices, at least one of which has a database, and shares operation data for the database among these devices.
少なくとも1つがデータベースを有する複数の機器からなり、これら機器の相互間でデータベースに対する操作用のデータを送受信する業務システムがある(例えば特許文献1)。 There is a business system in which at least one device includes a plurality of devices having a database, and data for operating the database is transmitted and received between these devices (for example, Patent Document 1).
このような業務システムでは、データベースに対する操作用のデータを各機器で共有する際に、データを送る側の機器におけるデータのフォーマット形式がデータを受取る側の機器におけるデータのフォーマット形式と合致しない場合がある。この場合、送るデータのフォーマット形式を受取り側のフォーマット形式に合せて変換する処理プログラムたとえばEXEファイルを作成し、それを送り側の機器に格納しておく必要がある。
しかしながら、EXEファイル等の処理プログラムの作成には、多くのコストと手間がかかるという問題がある。 However, the creation of a processing program such as an EXE file has a problem that it takes a lot of cost and labor.
この発明は、上記の事情を考慮したもので、その目的は、データベースに対する操作用のデータを、低コストで簡単に、各機器の相互間で共有することが可能なデータ管理システムを提供することにある。 The present invention has been made in consideration of the above circumstances, and an object of the present invention is to provide a data management system capable of easily sharing data for operation with respect to a database between devices at low cost. It is in.
請求項1に係る発明のデータ管理システムは、少なくとも1つがデータベースを有する複数の機器からなるものであって、前記データベースを有する機器に設けられ、そのデータベースに対する操作用のデータが記憶された第1記憶手段と、前記データベースを有する機器に設けられ、前記第1記憶手段内のデータを他の機器に適したフォーマット形式に変換するためのストアドプロシージャが記憶された第2記憶手段と、前記データベースを有する機器に設けられ、前記ストアドプロシージャにより変換されたデータを前記他の機器に提供する提供手段と、を備える。 A data management system according to a first aspect of the present invention comprises a plurality of devices, at least one of which has a database. The data management system is provided in the device having the database, and stores data for operating the database. A storage means; a second storage means provided in a device having the database; and a stored procedure for converting data in the first storage means into a format suitable for other devices; and the database And providing means for providing the data converted by the stored procedure to the other device.
このデータ管理システムによれば、データベースに対する操作用のデータを、低コストで簡単に、各機器の相互間で共有することが可能となる。 According to this data management system, operation data for a database can be easily shared between devices at low cost.
以下、この発明の一実施形態について図面を参照して説明する。
図1に示すように、複数の機器たとえばセンターサーバ1および店舗サーバ20が通信ネットワーク10を介して相互に接続され、いわゆるクライアント・サーバ・システム型のデータ管理システムが構成されている。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
As shown in FIG. 1, a plurality of devices such as a
このデータ管理システムは、例えばPOS等の商品販売処理装置に適用されるもので、センターサーバ1が販売センターに設置され、その販売センターにより管理される複数の店舗にそれぞれ店舗サーバ20が設置される。
This data management system is applied to a merchandise sales processing apparatus such as a POS, for example. The
センターサーバ1は、制御部2、制御プログラム記憶用のROM3、データ記憶用のRAM4、大容量の記憶手段であるハードディスクドライブ(HDD)5、表示部6、操作部7、およびネットワークインターフェース(I/F)8、およびプリンタ9などを有している。
The
上記ROM3には、後述のストアドプロシージャを実行するためのSP処理アプリケーションプログラムが格納されている。 The ROM 3 stores an SP processing application program for executing a stored procedure described later.
上記ハードディスクドライブ5には、例えば図2に示す複数のデータテーブルA1,A2,B,…Cが記憶されたデータベース(DB)5a、このデータベース5aに対する操作用(検索操作、更新操作、削除操作など)の複数のSQL(Structured Query Language)データファイルが記憶されたSQLデータファイルフォルダ(第1記憶手段)5b、このSQLデータファイルフォルダ5b内の各SQLデータファイルを本部のホストサーバ(図示しない)や各店舗サーバ20に適したフォーマット形式に変換するためのストアドプロシージャ(SP)が記憶されたSPフォルダ(第2記憶手段)5cなどが格納されている。
The
データベース5a内のデータテーブルA1,A2,B,…Cのうち、A1は親データテーブル、A2は親データテーブルA1を基本マスタとして生成される子データテーブルである。親データテーブルA1は所定の項目を主キーとして有し、その主キーと同じ内容の外部キーを子データテーブルA2が有し、この主キーおよび外部キーのリレーションにより、親データテーブルA1と子データテーブルA2が互いにリンクする関係となっている。
Of the data tables A1, A2, B,... C in the
また、各店舗サーバ20は、制御部21、制御プログラム記憶用のROM22、データ記憶用のRAM23、データ記憶用のハードディスクドライブ(HDD)24、表示部25、操作部26、およびネットワークインターフェース(I/F)27などを有している。
Each
このような構成のデータ管理システムにおいて、センターサーバ1における制御部2は、データベース管理に関する主要な機能として、次の(1)(2)を有している。
(1)ROM3内のSP処理アプリケーションプログラムを起動してSPフォルダ5c内のストアドプロシージャを実行し、これによりSQLデータファイルフォルダ5b内の各SQLデータファイルをホストサーバや各店舗サーバ20に適したフォーマット形式に変換する制御手段。各SQLデータファイルの内容として、例えば引数1(ファイル名),引数2(対象日付),…引数nがある。
In the data management system having such a configuration, the
(1) The SP processing application program in the ROM 3 is started and the stored procedure in the
(2)上記変換されたデータファイルをホストサーバや各店舗サーバ20からの要求に応じて同サーバに提供する提供手段。具体的には、変換されたデータファイルをファイルフォルダ5dに一旦保持し、その保持したデータファイルを要求元のサーバの受取り形式に合せて提供する。
(2) Providing means for providing the converted data file to the server in response to a request from the host server or each
つぎに、図3および図4を参照しながら作用について説明する。
センターサーバ1に他のサーバからSQLデータファイルの要求があると、センターサーバ1のSQLデータファイルフォルダ5bにおける各SQLデータファイルの1つが読出される(ステップ101)。そして、読出されたSQLデータファイルが、カンマで区切られたCSV(Comma Separated Values)であるか、テーブルデータそのままのBCP(Bridge Control Protocol)であるかが、判定される(ステップ102)。
Next, the operation will be described with reference to FIGS.
When the
読出されたSQLデータファイルがCSVの場合、店舗別作成フラグが“1”で(ステップ103の“1”)、本部から販売センターに対してSQLデータファイルが要求されていれば、ストアドプロシージャの実行により、SQLデータファイルが本部のホストサーバに適したフォーマット形式のデータファイルに変換される(ステップ104)。変換されたデータファイルは、ファイルフォルダ5dに保持される。
If the read SQL data file is CSV, the store-specific creation flag is “1” (“1” in step 103), and if the SQL data file is requested from the head office to the sales center, the stored procedure is executed. Thus, the SQL data file is converted into a data file in a format suitable for the headquarters host server (step 104). The converted data file is held in the
店舗別作成フラグが“0”で(ステップ103の“0”)、各店舗から販売センターに対してSQLデータファイルが要求されている状況では、ストアドプロシージャの実行により、SQLデータファイルが各店舗サーバ20に適したフォーマット形式のデータファイルにそれぞれ変換される(ステップ105)。変換されたデータファイルは、ファイルフォルダ5dに保持される。
When the store-specific creation flag is “0” (“0” in step 103) and an SQL data file is requested from each store to the sales center, the SQL data file is stored in each store server by executing the stored procedure. Each data file is converted into a data file having a format suitable for the file 20 (step 105). The converted data file is held in the
ここで、店舗ヘッダ付加フラグが“0”であれば(ステップ106の“0”)、店舗ヘッダが作成され、それが上記保持されたデータファイルに付加される(ステップ107)。店舗ヘッダ付加フラグが“1”の場合(ステップ106の“1”)、店舗ヘッダは作成されない。 If the store header addition flag is “0” (“0” in step 106), a store header is created and added to the stored data file (step 107). When the store header addition flag is “1” (“1” in step 106), the store header is not created.
続いて、HDS(Hierarchy Data Set)ファイル付加フラグが“0”であれば(ステップ108の“0”)、HDSヘッダが作成され、それが上記保持されたデータファイルに付加される(ステップ109)。つまり、上記店舗ヘッダ付加フラグが“0”となっていれば店舗コードとして実際の店舗コードがセットされたHDSヘッダが付加され、店舗ヘッダ付加フラグが“1”となっていれば店舗コードとしてホストコードがセットされたHDSヘッダが付加される。HDSファイル付加フラグが“1”の場合(ステップ108の“1”)、HDSファイルヘッダは付加されない。 Subsequently, if the HDS (Hierarchy Data Set) file addition flag is “0” (“0” in step 108), an HDS header is created and added to the held data file (step 109). . That is, if the store header addition flag is “0”, an HDS header in which the actual store code is set is added as the store code, and if the store header addition flag is “1”, the store code is hosted. An HDS header in which a code is set is added. When the HDS file addition flag is “1” (“1” in step 108), the HDS file header is not added.
さらに、日付時刻付加フラグが“0”であれば(ステップ110の“0”)、上記保持されたデータファイルに現時点の日付及び時刻データが付加される(ステップ111)。日付時刻付加フラグが“1”の場合(ステップ110の“1”)、日付及び時刻データは付加されない。 Further, if the date / time addition flag is “0” (“0” in step 110), the current date and time data are added to the held data file (step 111). When the date / time addition flag is “1” (“1” in step 110), date and time data are not added.
そして、上記保持されたデータファイルを受取る側のサーバの受取り形式がFTP(File Transfer Protocol)であるか指定フォルダであるかが判定される(ステップ112)。受取り形式がFTPであれば、上記保持されたデータファイルがFTP形式で受取り側のサーバに送信される。受取り形式が指定フォルダであれば、上記保持されたデータファイルが受取り側のサーバからのアクセスにより同サーバ内の指定フォルダにコピーされる。 Then, it is determined whether the receiving format of the server that receives the held data file is FTP (File Transfer Protocol) or a designated folder (step 112). If the receiving format is FTP, the held data file is transmitted to the receiving server in FTP format. If the receiving format is a designated folder, the stored data file is copied to the designated folder in the server by access from the receiving server.
一方、上記読出されたSQLデータファイルがBCPの場合(ステップ102のBCP)、そのBCPの出力形式が全件であるか一部であるかが判定される(ステップ115)。全件であれば、上記読出されたSQLデータファイルの全件が抽出されてファイルフォルダ5dに一旦保持される(ステップ116)。一部であれば、上記読出されたSQLデータファイルの一部のみ抽出されてファイルフォルダ5dに一旦保持される(ステップ117)。
On the other hand, if the read SQL data file is a BCP (BCP in step 102), it is determined whether the output format of the BCP is all or part (step 115). If there are all cases, all cases of the read SQL data file are extracted and temporarily held in the
ここで、HDS(Hierarchy Data Set)ファイル付加フラグが“0”であれば(ステップ108の“0”)、HDSヘッダが作成され、それが上記保持されたSQLデータファイルに付加される(ステップ109)。すなわち、店舗ヘッダ付加フラグが“0”となっていれば、店舗コードとして実際の店舗コードがセットされたHDSヘッダが付加される。店舗ヘッダ付加フラグが“1”となっていれば、店舗コードとしてホストコードがセットされたHDSヘッダが付加される。HDSファイル付加フラグが“1”の場合(ステップ108の“1”)、HDSファイルヘッダは付加されない。 If the HDS (Hierarchy Data Set) file addition flag is “0” (“0” in step 108), an HDS header is created and added to the stored SQL data file (step 109). ). That is, if the store header addition flag is “0”, an HDS header in which an actual store code is set as a store code is added. If the store header addition flag is “1”, an HDS header in which a host code is set as a store code is added. When the HDS file addition flag is “1” (“1” in step 108), the HDS file header is not added.
さらに、日付時刻付加フラグが“0”であれば(ステップ110の“0”)、上記保持されたSQLデータファイルに現時点の日付及び時刻データが付加される(ステップ111)。日付時刻付加フラグが“1”の場合(ステップ110の“1”)、日付及び時刻データは付加されない。 Further, if the date / time addition flag is “0” (“0” in step 110), the current date and time data are added to the held SQL data file (step 111). When the date / time addition flag is “1” (“1” in step 110), date and time data are not added.
そして、上記保持されたSQLデータファイルの受取り側のサーバの受取り形式がFTP(File Transfer Protocol)であるか指定フォルダであるかが判定される(ステップ112)。受取り形式がFTPであれば、上記保持されたSQLデータファイルがFTP形式で受取り側のサーバに送信される。受取り形式が指定フォルダあれば、上記保持されたSQLデータファイルが受取り側のサーバからのアクセスにより同サーバ内の指定フォルダにコピーされる。 Then, it is determined whether the reception format of the server on the side of receiving the held SQL data file is FTP (File Transfer Protocol) or a designated folder (step 112). If the receiving format is FTP, the held SQL data file is transmitted to the receiving server in FTP format. If the receiving format is a designated folder, the held SQL data file is copied to the designated folder in the server by access from the receiving server.
以上のように、センターサーバ1のデータベース5aに対する操作用のSQLデータファイルを同センターサーバ1に記憶しておき、さらに、SQLデータファイルを他のサーバに適したフォーマット形式に変換するためのストアドプロシージャを同センターサーバ1に記憶しておき、センターサーバ1に対し他のサーバからSQLデータファイルの要求があるとき、SQLデータファイルを要求元のサーバに適したフォーマット形式のデータファイルに変換して同要求元に提供する構成としたので、多くのコストと手間のかかるEXEファイル等の処理プログラムを要することなく、データベース5aに対する操作用のデータファイルを、低コストで簡単に、各サーバの相互間で共有することが可能となる。
As described above, an SQL data file for operation with respect to the
なお、上記実施形態では、センターサーバ1および複数の店舗サーバ20からなるクライアント・サーバ・システム型のデータ管理システムを例に説明したが、データベースを有するものであれば、他のシステムにも同様に適用可能である。その他、この発明は上記実施形態に限定されるものではなく、要旨を変えない範囲で種々変形実施可能である。
In the above embodiment, the client server system type data management system including the
1…センターサーバ、2…制御部、4…RAM、5…ハードディスクドライブ、5a…データベース、5b…SQLデータファイルフォルダ、5c…SPフォルダ、5d…ファイルフォルダ、10…通信ネットワーク、20…店舗サーバ(クライアント)、21…制御部
DESCRIPTION OF
Claims (3)
前記データベースを有する機器に設けられ、そのデータベースに対する操作用のデータが記憶された第1記憶手段と、
前記データベースを有する機器に設けられ、前記第1記憶手段内のデータを他の機器に適したフォーマット形式に変換するためのストアドプロシージャが記憶された第2記憶手段と、
前記データベースを有する機器に設けられ、前記ストアドプロシージャにより変換されたデータを前記他の機器に提供する提供手段と、
を備えることを特徴とするデータ管理システム。 In a data management system comprising a plurality of devices, at least one of which has a database,
A first storage means provided in a device having the database, in which operation data for the database is stored;
A second storage means provided in a device having the database and storing stored procedures for converting data in the first storage means into a format suitable for other devices;
Providing means provided in the device having the database and providing the data converted by the stored procedure to the other device;
A data management system comprising:
前記他の機器は、前記センターサーバにネットワーク接続された店舗サーバである、
ことを特徴とする請求項1または請求項2に記載のデータ管理システム。 The device having the database is a center server of a sales center,
The other device is a store server network-connected to the center server.
The data management system according to claim 1 or 2, characterized by the above.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008118910A JP4820841B2 (en) | 2008-04-30 | 2008-04-30 | Data management system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008118910A JP4820841B2 (en) | 2008-04-30 | 2008-04-30 | Data management system |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009271587A true JP2009271587A (en) | 2009-11-19 |
JP4820841B2 JP4820841B2 (en) | 2011-11-24 |
Family
ID=41438111
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008118910A Expired - Fee Related JP4820841B2 (en) | 2008-04-30 | 2008-04-30 | Data management system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4820841B2 (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0765032A (en) * | 1993-08-27 | 1995-03-10 | Toshiba Corp | Information processing system having data base language converting function |
JPH07175697A (en) * | 1993-12-20 | 1995-07-14 | Hitachi Ltd | Heterogeneous database access system and controlling method for the same |
JP2000305823A (en) * | 1999-04-23 | 2000-11-02 | Mitsubishi Electric Corp | Shared data server for data conversion and combined data generation device |
JP2001034634A (en) * | 1999-07-26 | 2001-02-09 | Nec Software Chugoku Ltd | Data base retrieval system and program recording medium for the system |
JP2002108886A (en) * | 2000-09-28 | 2002-04-12 | Yamatake Sangyo Systems Co Ltd | Database management system |
JP2002259238A (en) * | 2001-03-05 | 2002-09-13 | Nippon Telegr & Teleph Corp <Ntt> | Device, method and program for managing network device and recording medium |
JP2006039767A (en) * | 2004-07-23 | 2006-02-09 | Toshiba Tec Corp | Data relay device |
JP2007328623A (en) * | 2006-06-08 | 2007-12-20 | Fuji Xerox Co Ltd | Access controller |
-
2008
- 2008-04-30 JP JP2008118910A patent/JP4820841B2/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0765032A (en) * | 1993-08-27 | 1995-03-10 | Toshiba Corp | Information processing system having data base language converting function |
JPH07175697A (en) * | 1993-12-20 | 1995-07-14 | Hitachi Ltd | Heterogeneous database access system and controlling method for the same |
JP2000305823A (en) * | 1999-04-23 | 2000-11-02 | Mitsubishi Electric Corp | Shared data server for data conversion and combined data generation device |
JP2001034634A (en) * | 1999-07-26 | 2001-02-09 | Nec Software Chugoku Ltd | Data base retrieval system and program recording medium for the system |
JP2002108886A (en) * | 2000-09-28 | 2002-04-12 | Yamatake Sangyo Systems Co Ltd | Database management system |
JP2002259238A (en) * | 2001-03-05 | 2002-09-13 | Nippon Telegr & Teleph Corp <Ntt> | Device, method and program for managing network device and recording medium |
JP2006039767A (en) * | 2004-07-23 | 2006-02-09 | Toshiba Tec Corp | Data relay device |
JP2007328623A (en) * | 2006-06-08 | 2007-12-20 | Fuji Xerox Co Ltd | Access controller |
Also Published As
Publication number | Publication date |
---|---|
JP4820841B2 (en) | 2011-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11509729B2 (en) | Field service management mobile offline synchronization | |
US9460307B2 (en) | Managing sensitive data in cloud computing environments | |
US8612393B2 (en) | Application server provisioning system and method based on disk image profile | |
US10331697B2 (en) | Synchronization of data between systems | |
EP1758042B1 (en) | Document distribution system and method | |
JP2003091393A (en) | Printing system and method thereof | |
US10476936B1 (en) | Plugin-based file transfer systems and/or methods | |
EP1955210A2 (en) | Web services-based data replication for heterogeneous storage systems | |
JP2013152666A (en) | Management system, image forming apparatus, control method of management system, control method of image forming apparatus and program | |
US20120030166A1 (en) | System integration architecture | |
US11841842B2 (en) | Method and system for using external content type object types | |
JP5936865B2 (en) | Cache system using cache cloud structure and method for providing caching service | |
US20090172166A1 (en) | Relay server and relay communication system | |
JP2007164535A (en) | Business integration method, business integration apparatus, business integration system, and business integration program | |
JP4820841B2 (en) | Data management system | |
JP2007079773A (en) | Software distribution server and method for distributing software | |
US11546405B2 (en) | Methods for exposing mainframe data as a web service and devices thereof | |
JP2006279725A (en) | Data relaying method and data relaying device | |
EP3561673B1 (en) | Data processing system and method | |
US20190205069A1 (en) | Data processing apparatus and non-transitory computer-readable storage medium for storing program | |
JP5351746B2 (en) | Data processing apparatus and method | |
JP4492569B2 (en) | File operation control device, file operation control system, file operation control method, and file operation control program | |
JP2011060174A (en) | Multi-tenant database system, access control method, and program | |
JP2005215903A (en) | Information processing system | |
JP4724491B2 (en) | Resource distribution management program, resource distribution management method, and resource distribution management apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110502 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110517 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110715 |
|
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: 20110809 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110905 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140909 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4820841 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |