CN101771594B - Data storage system and data storage method - Google Patents
Data storage system and data storage method Download PDFInfo
- Publication number
- CN101771594B CN101771594B CN2008103067690A CN200810306769A CN101771594B CN 101771594 B CN101771594 B CN 101771594B CN 2008103067690 A CN2008103067690 A CN 2008103067690A CN 200810306769 A CN200810306769 A CN 200810306769A CN 101771594 B CN101771594 B CN 101771594B
- Authority
- CN
- China
- Prior art keywords
- data
- web server
- measuring instrument
- route
- network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Computer And Data Communications (AREA)
- Debugging And Monitoring (AREA)
Abstract
一种数据存储方法,该方法包括如下步骤:提供一个Web服务器,该Web服务器通过网络连接数据库服务器及多个量测仪器;该Web服务器根据所存储的路由发送采集指令给量测仪器;该量测仪器将采集到的数据反馈给所述Web服务器;当连接Web服务器和数据库服务器的第一网络正常工作时,发送所述数据至数据库服务器中进行保存;当该第一网络工作异常时,将该数据暂存于Web服务器的历史记录文档中;每隔一定时间检测第一网络是否工作正常;当检测到该第一网络工作正常时,从历史记录文档中获取数据并发送至所述数据库服务器进行保存。另外,本发明还提供一种数据存储系统。
A data storage method, the method includes the following steps: providing a web server, the web server is connected to a database server and a plurality of measuring instruments through a network; the web server sends a collection instruction to the measuring instrument according to the stored route; the quantity The measuring instrument feeds back the collected data to the Web server; when the first network connecting the Web server and the database server works normally, send the data to the database server for storage; when the first network works abnormally, send the data to the database server The data is temporarily stored in the historical record file of the Web server; whether the first network is detected at regular intervals is working normally; when it is detected that the first network is working normally, the data is obtained from the historical record file and sent to the database server to save. In addition, the invention also provides a data storage system.
Description
技术领域 technical field
本发明涉及一种数据存储系统及方法。The invention relates to a data storage system and method.
背景技术 Background technique
目前,企业的计算机网络已成为企业进行技术改造及提高企业管理水平的重要手段。随着我国与世界信息高速公路的接轨,企业通过计算机网络获得信息必将为企业带来巨大的经济效益和社会效益,企业的办公及管理都将朝着高效、快速、无纸化的方向发展。At present, the computer network of enterprises has become an important means for enterprises to carry out technological transformation and improve enterprise management level. With the integration of our country and the world's information superhighway, the information obtained by enterprises through computer networks will definitely bring huge economic and social benefits to enterprises, and the office and management of enterprises will develop in the direction of high efficiency, rapidity and paperless .
利用计算机网络采集数据时,通常会因为网络的不顺畅,导致了采集数据的失败。采集数据成功后,需要将采集到的数据储存于数据库中,往往因为网络的不正常,导致了数据存储失败,需要管理人员重新采集数据。这样浪费了大量的时间,降低了工作效率。When using a computer network to collect data, it usually fails to collect data due to the unsmooth network. After the data is collected successfully, the collected data needs to be stored in the database, often due to the abnormality of the network, the data storage fails, and the management personnel need to collect the data again. This wastes a lot of time and reduces work efficiency.
发明内容 Contents of the invention
鉴于以上内容,有必要提供一种数据存储系统。该系统可以有效采集资料,并存储该资料。In view of the above, it is necessary to provide a data storage system. The system can efficiently collect data and store the data.
鉴于以上内容,还有必要提供一种数据存储方法。该方法可以有效采集资料,并存储该资料。In view of the above, it is also necessary to provide a data storage method. The method can effectively collect data and store the data.
一种数据存储系统,应用于Web服务器,该Web服务器通过网络连接数据库服务器及多个量测仪器,该Web服务器包括一个数据采集与监视控制器,所述数据采集与监视控制器包括:发送模块,用于根据Web服务器中存储的路由发送采集指令至量测仪器,该路由为所述数据采集与监视控制器和量测仪器上一次通信所使用的路由,所述量测仪器回馈采集到的数据至该Web服务器,当连接Web服务器和数据库服务器的第一网络工作正常时,该发送模块还用于发送所述数据至数据库服务器中进行保存;存储模块,用于当所述第一网络工作异常时,将该数据暂存于Web服务器的历史记录文档中;判断模块,用于每隔一定时间检测第一网络是否工作正常;及获取模块,用于当判断模块检测到该第一网络工作正常时,从所述历史记录文档中获取数据,并通过发送模块将该获取到的数据发送至所述数据库服务器进行保存。A data storage system, applied to a web server, the web server is connected to a database server and a plurality of measuring instruments through a network, the web server includes a data acquisition and monitoring controller, and the data acquisition and monitoring controller includes: a sending module , for sending the collection instruction to the measuring instrument according to the route stored in the web server, the route is the route used for the last communication between the data acquisition and monitoring controller and the measuring instrument, and the measuring instrument feeds back the collected Data to the Web server, when the first network connecting the Web server and the database server works normally, the sending module is also used to send the data to the database server for storage; the storage module is used to store the data when the first network is working When abnormal, the data is temporarily stored in the history file of the Web server; the judgment module is used to detect whether the first network is working normally at regular intervals; and the acquisition module is used to detect that the first network is working when the judgment module Normally, data is obtained from the historical record file, and the obtained data is sent to the database server through the sending module for storage.
一种数据存储方法,该方法包括如下步骤:提供一个Web服务器,该Web服务器通过网络连接数据库服务器及多个量测仪器;该Web服务器根据所存储的路由发送采集指令给量测仪器,该路由即为数据采集与监视控制器和量测仪器上一次通信所使用的路由;该量测仪器将采集到的数据反馈给所述Web服务器;当连接Web服务器和数据库服务器的第一网络正常工作时,发送所述数据至数据库服务器中进行保存;当该第一网络工作异常时,将该数据暂存于Web服务器的历史记录文档中;每隔一定时间检测第一网络是否工作正常;及当检测到该第一网络工作正常时,从历史记录文档中获取数据并发送至所述数据库服务器进行保存。A data storage method, the method includes the following steps: providing a web server, the web server is connected to a database server and a plurality of measuring instruments through a network; the web server sends a collection instruction to the measuring instrument according to a stored route, and the route That is, the route used for the last communication between the data acquisition and monitoring controller and the measuring instrument; the measuring instrument feeds back the collected data to the Web server; when the first network connecting the Web server and the database server works normally , sending the data to the database server for storage; when the first network is working abnormally, temporarily storing the data in the history file of the Web server; checking whether the first network is working normally at regular intervals; and when detecting When the first network works normally, the data is obtained from the historical record file and sent to the database server for storage.
相较于现有技术,所述数据存储系统及方法,可以及时纠正与更换数据传送路由,确保数据能够存储于数据库服务器中。Compared with the prior art, the data storage system and method can correct and replace the data transmission route in time to ensure that the data can be stored in the database server.
附图说明 Description of drawings
图1是本发明数据存储系统较佳实施例的硬件架构图。FIG. 1 is a hardware architecture diagram of a preferred embodiment of the data storage system of the present invention.
图2是图1中SCADA的功能模块图。Fig. 2 is a functional block diagram of SCADA in Fig. 1 .
图3是本发明数据存储方法较佳实施例的作业流程图。Fig. 3 is a flow chart of the preferred embodiment of the data storage method of the present invention.
图4是本发明更换数据采集路径较佳实施例的作业流程图。Fig. 4 is a flow chart of the preferred embodiment of changing the data collection path in the present invention.
具体实施方式 Detailed ways
如图1所示,是本发明数据存储系统较佳实施例的硬件架构图。该系统应用于Web服务器1,通过第一网络4连接一个数据库服务器2,并通过第二网络5连接于多个量测仪器3。所述多个量测仪器3用于测量同一个被测物体6。该量测仪器3是指流量计、电表等量测仪器。As shown in FIG. 1 , it is a hardware architecture diagram of a preferred embodiment of the data storage system of the present invention. The system is applied to a
其中,Web服务器1包括一个数据采集与监视控制器(Supervisory Control And DataAcquisition,SCADA)10,用于采集量测仪器3所测量的数据。本较佳实施例中,该量测仪器3为流量计,所述SCADA10采集的数据包括电流、电压等。Wherein, the
具体而言,所述SCADA 10发送采集指令给量测仪器3,该量测仪器3反馈所采集的数据给SCADA 10,然后,SCADA 10将该数据发送给数据库服务器2进行保存。本实施例中,该数据库服务器2还存有SCADA 10与量测仪器3通信的多条路由,而Web服务器1中存有SCADA 10与量测仪器3上次通信的路由,如路由A。当SCADA 10发送采集指令至该量测仪器3时,优选该路由A作为SCADA 10与该量测仪器3的通信路由。所述Web服务器1还存有一个历史记录文档12。该历史记录文档12用于当第一网络4出现故障时,存储所述SCADA 10发送给数据库服务器2的所有数据。Specifically, the SCADA 10 sends a collection instruction to the
如图2所示,是图1中SCADA 10的功能模块图。所述模块是具有特定功能的软件程序段,该软件存储于计算机可读存储介质或其它存储设备,可被计算机或其它包含处理器的计算装置执行,从而完成数据存储的系列流程。所述SCADA 10包括:发送模块101、判断模块102、获取模块103、更新模块104及存储模块105。As shown in Figure 2, it is a functional block diagram of SCADA 10 in Figure 1. The module is a software program segment with specific functions. The software is stored in a computer-readable storage medium or other storage device, and can be executed by a computer or other computing device including a processor, thereby completing a series of processes of data storage. The SCADA 10 includes: a
其中,发送模块101用于通过所述Web服务器1中存储的路由A发送采集指令至量测仪器3Wherein, the
判断模块102用于判断该Web服务器1是否接收到该量测仪器3所反馈的数据。当没有接收到量测仪器3所反馈的数据时,该判断模块102还用于检测所述第二网络5是否正常工作,即判断Web服务器1与量测仪器3之间是否可以正常通信。The
获取模块103用于当所述第二网络5工作正常时,从数据库服务器2中获取另外一条路由,例如,路由B,发送模块101通过该路由B发送采集指令给该量测仪器3。更新模块104用于根据该路由B更换Web服务器1中所存储的路由A。The obtaining
所述发送模块101还用于当所述第二网络5工作异常时,根据Web服务器1中存储的路由A发送采集指令至另一个与该Web服务器1相连的量测仪器3。The
所述发送模块101还用于当Web服务器1接收到量测仪器3所反馈的数据时,将该数据发送至数据库服务器2中进行保存。The
所述存储模块105还用于当发送模块101发送数据至数据库服务器2失败时,将该数据暂存至所述历史记录文档12中。The
另外,所述判断模块102还用于每隔一定时间检测一次第一网络4,确定该第一网络4是否能够正常工作。本较佳实施例中,该一定时间可以为10分钟。若该第一网络4工作正常,则所述获取模块103从历史记录文档12中获取数据,并通过发送模块101将该获取到的数据发送给数据库服务器2进行保存。In addition, the
如图3所示,是本发明数据存储方法较佳实施例的作业流程图。As shown in FIG. 3 , it is a flow chart of a preferred embodiment of the data storage method of the present invention.
步骤S30,发送模块101根据Web服务器1中存储的路由A发送采集指令至量测仪器3,该路由A即为SCADA 10与量测仪器3上次通信的路由。Step S30, the
步骤S31,量测仪器3根据所述采集指令进行数据采集,并将采集得到的数据通过路由A反馈至Web服务器1。Step S31 , the
步骤S32,判断模块102判断第一网络4是否正常工作。若该第一网络4工作正常,则进入步骤S33。若该第一网络4工作异常,则进入步骤S34。In step S32, the
步骤S33,发送模块101将所述量测仪器3所反馈的数据发送至数据库服务器2中进行保存,并结束流程。In step S33, the
步骤S34,存储模块105将量测仪器3所反馈的数据暂存于Web服务器1的历史记录文档12中,然后进入步骤S35。In step S34, the
于步骤S35,所述判断模块102每隔一定时间检测一次该第一网络4是否还会正常工作。本较佳实施例中,该一定时间是指10分钟。In step S35, the
若该第一网络4在上述出现异常后又能够进入正常工作,则步骤S36,获取模块103从所述历史记录文档12中获取数据。If the
步骤S37,发送模块104发送该数据至数据库服务器2中进行保存。In step S37, the
若步骤S35的检测结果为第一网络4仍工作异常,则流程转至步骤S35,继续检测该第一网络4是否还能正常工作。If the detection result of step S35 is that the
另外,本实施例还可实现当Web服务器1没有接收到量测仪器3所反馈的数据时,重新选择数据采集路径,具体作业流程如图4所示。In addition, in this embodiment, when the
步骤S40,判断模块102检测所述第二网络5是否正常工作,即判断Web服务器1与该量测仪器3之间是否可以正常通信。Step S40 , the
当判断模块102判定第二网络5工作正常时,步骤S41,获取模块103从数据库服务器2中获取另外一条路由,如路由B。When the
步骤S42,更新模块104通过该路由B更换Web服务器1中所存储的路由A,并结束流程。In step S42, the
反之,当判断模块102检测出所述第二网络5工作异常时,步骤S43,发送模块101根据所述路由A发送采集指令至另一个量测仪器3,并结束流程。Conversely, when the judging
最后所应说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换,而不脱离本发明技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention without limitation. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be The scheme shall be modified or equivalently replaced without departing from the spirit and scope of the technical scheme of the present invention.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008103067690A CN101771594B (en) | 2008-12-31 | 2008-12-31 | Data storage system and data storage method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008103067690A CN101771594B (en) | 2008-12-31 | 2008-12-31 | Data storage system and data storage method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101771594A CN101771594A (en) | 2010-07-07 |
CN101771594B true CN101771594B (en) | 2012-07-18 |
Family
ID=42504208
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008103067690A Expired - Fee Related CN101771594B (en) | 2008-12-31 | 2008-12-31 | Data storage system and data storage method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101771594B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102546739A (en) * | 2011-05-19 | 2012-07-04 | 广东迅通科技股份有限公司 | Disc managing method and disc managing system of monitoring device |
CN102819464B (en) * | 2012-01-13 | 2015-08-19 | 金蝶软件(中国)有限公司 | The method and apparatus that document stores temporarily |
JP5780217B2 (en) * | 2012-07-03 | 2015-09-16 | コニカミノルタ株式会社 | Image forming apparatus and information processing program |
TWI519149B (en) * | 2013-08-22 | 2016-01-21 | 宇瞻科技股份有限公司 | Set top box, data resetting method thereof and data registration method thereof |
JP6216621B2 (en) * | 2013-11-14 | 2017-10-18 | 株式会社日立製作所 | Plant monitoring and control system |
CN105282189A (en) * | 2014-06-10 | 2016-01-27 | 江苏大泰信息技术有限公司 | Safety data storage method applied to high-concurrence data environment |
CN107094167B (en) * | 2016-12-28 | 2020-02-04 | 北京星选科技有限公司 | Data unloading method and device |
CN116011972A (en) * | 2023-01-10 | 2023-04-25 | 中国民航信息网络股份有限公司 | Data processing system, method, electronic equipment and computer storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6131096A (en) * | 1998-10-05 | 2000-10-10 | Visto Corporation | System and method for updating a remote database in a network |
CN101291259A (en) * | 2007-04-18 | 2008-10-22 | 阿里巴巴集团控股有限公司 | System and method for monitoring geographic position of website visitor and visiting status |
-
2008
- 2008-12-31 CN CN2008103067690A patent/CN101771594B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6131096A (en) * | 1998-10-05 | 2000-10-10 | Visto Corporation | System and method for updating a remote database in a network |
CN101291259A (en) * | 2007-04-18 | 2008-10-22 | 阿里巴巴集团控股有限公司 | System and method for monitoring geographic position of website visitor and visiting status |
Also Published As
Publication number | Publication date |
---|---|
CN101771594A (en) | 2010-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101771594B (en) | Data storage system and data storage method | |
CN113328872B (en) | Fault repairing method, device and storage medium | |
JP5164996B2 (en) | Device management system | |
US11640459B2 (en) | Abnormality detection device | |
CN113542026B (en) | Internet of things equipment fault positioning method, device, equipment and storage medium | |
US20200202236A1 (en) | Risk Assessment Device, Risk Assessment System, Risk Assessment Method, and Risk Assessment Program | |
CN110888776A (en) | Database health state detection method, device and equipment | |
CN113487086B (en) | Method, device, computer equipment and medium for predicting residual service life of equipment | |
CN113835417A (en) | Fault detection and diagnosis method based on 5G communication network | |
US20250181468A1 (en) | Method and system for maintaining process bus communication network | |
US20200192345A1 (en) | Risk Assessment Device, Risk Assessment System, Risk Assessment Method, Risk Assessment Program, and Data Structure | |
KR102386769B1 (en) | Fault diagnosis system and method based on rule and machine learning using public data of building energy | |
CN116381419B (en) | Transmission line fault processing method, device, computer equipment and storage medium | |
CN202632054U (en) | Remote monitoring system for automatic devices | |
JP5653112B2 (en) | Command execution result abnormality detection system and method | |
JP2021144639A (en) | Asset information management system, and asset information management method | |
CN105099734B (en) | A kind of fault cues method and device | |
CN115016976B (en) | Root cause positioning method, device, equipment and storage medium | |
CN117195451A (en) | Bridge monitoring data restoration method based on graph theory | |
CN101512450A (en) | Data recording device | |
CN109743204A (en) | An intelligent operation and maintenance system | |
KR102431865B1 (en) | System and method for monitoring thermal energy equipments based on fault rule | |
CN102546739A (en) | Disc managing method and disc managing system of monitoring device | |
JP5670935B2 (en) | Distributed data management system and operation method thereof | |
JP2011192201A (en) | Remote maintenance system and remote maintenance method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120718 Termination date: 20141231 |
|
EXPY | Termination of patent right or utility model |