一種基于雙歷史站的數據庫存儲結構的設計與實現
2023年電子技術應用第5期
荊俊峰,房志奇,劉凱,靳書云
(中國電子信息產業集團有限公司第六研究所,北京100083)
摘要: 在DCS系統中,歷史站承擔著歷史數據的收集、存儲以及查詢功能,而實時和歷史數據庫存儲結構的設計則是組態軟件的核心技術。設計了一種基于雙歷史站的實時和歷史數據庫存儲結構的設計和實現方法,分別介紹了系統體系設計、數據采集、實時數據數據庫設計、歷史數據庫設計、數據同步策略、歷史數據庫對外接口等。該系統實時性高、存儲空間節約、查詢速度快,已經廣泛應用于多個領域的工業控制系統。
中圖分類號:TP392
文獻標志碼:A
DOI: 10.16157/j.issn.0258-7998.222771
中文引用格式: 荊俊峰,房志奇,劉凱,等. 一種基于雙歷史站的數據庫存儲結構的設計與實現[J]. 電子技術應用,2023,49(5):82-87.
英文引用格式: Jing Junfeng,Fang Zhiqi,Liu Kai,et al. The design and implementation on the data storage structure based on the double history station[J]. Application of Electronic Technique,2023,49(5):82-87.
文獻標志碼:A
DOI: 10.16157/j.issn.0258-7998.222771
中文引用格式: 荊俊峰,房志奇,劉凱,等. 一種基于雙歷史站的數據庫存儲結構的設計與實現[J]. 電子技術應用,2023,49(5):82-87.
英文引用格式: Jing Junfeng,Fang Zhiqi,Liu Kai,et al. The design and implementation on the data storage structure based on the double history station[J]. Application of Electronic Technique,2023,49(5):82-87.
The design and implementation on the data storage structure based on the double history station
Jing Junfeng,Fang Zhiqi,Liu Kai,Jin Shuyun
(The 6th Research institute of China Electronics Corporation, Beijing 100083, China)
Abstract: The history station undertake a task of collecting,storing and querying in the DCS(distributed control system),moreover the real time database and history database are key technology in the configuration software. In this paper, a design way of the real time database and the history database based on the double history station is studied. It introduces the general structure of the distributed control system, the data acquisition,the memory structure design of the real time database, the design of the history database, the synchronization policy, and the extern interface of the database. The database system has been widely applied to the multiple fields of the industrial control, which has the characteristics of high real-time performance, less storage space and fast query.
Key words : the history station;DCS(distributed control system);Tag;synchronization;configuration software
0 引言
在控制系統的運行過程中,面臨著大量的現場數據的采集和存儲問題,一般情況下要求存儲5年以上的歷史數據。因此,歷史站是DCS系統的必要配置,考慮到歷史數據的冗余存儲,一般情況下,DCS廠家都配置兩臺歷史站,但這兩臺歷史站各自采集歷史數據,缺乏雙機備份策略,造成兩臺歷史站各自為戰,有時候會造成兩臺歷史站的數據不一致。因此,實時和歷史數據庫作為DCS組態軟件的關鍵技術,很有必要對其進行研究和設計。
通常的歷史數據一般存儲于關系型的商用數據庫中,如Oracle、SQLServer等,但采用商用數據庫存在產品成本高,且數據實時采集量受限等局限性。因此,有必要設計一種實時性好、數據吞吐量大、存儲空間節省的工業型數據庫。本文從實時數據的角度出發,設計出一種基于雙歷史站的實時和歷史數據庫,它的實時數據庫通過內存存儲的方式來實現,采用內存設計具有讀寫、查詢速度快的優勢,同時它也相當于一個數據處理中心,起到公用數據交換區的作用,并維護大量共享數據的完整性和一致性,并且它也是歷史數據庫的數據來源。
本文詳細內容請下載:http://m.viuna.cn/resource/share/2000005315
作者信息:
荊俊峰,房志奇,劉凱,靳書云
(中國電子信息產業集團有限公司第六研究所,北京100083)
此內容為AET網站原創,未經授權禁止轉載。