CN102622415A - Method for synchronous transmission of power quality monitoring data for multiple platforms - Google Patents

Method for synchronous transmission of power quality monitoring data for multiple platforms Download PDF

Info

Publication number
CN102622415A
CN102622415A CN2012100381428A CN201210038142A CN102622415A CN 102622415 A CN102622415 A CN 102622415A CN 2012100381428 A CN2012100381428 A CN 2012100381428A CN 201210038142 A CN201210038142 A CN 201210038142A CN 102622415 A CN102622415 A CN 102622415A
Authority
CN
China
Prior art keywords
data
quality monitoring
sign
object library
electric energy
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
CN2012100381428A
Other languages
Chinese (zh)
Inventor
丁泽俊
陈波
李果
向阳
邹正华
熊耀明
董旭柱
段卫国
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.)
Lingbu Science And Technology Co Ltd Shenzhen
CSG Electric Power Research Institute
Research Institute of Southern Power Grid Co Ltd
Original Assignee
Lingbu Science And Technology Co Ltd Shenzhen
Research Institute of Southern Power Grid Co Ltd
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 Lingbu Science And Technology Co Ltd Shenzhen, Research Institute of Southern Power Grid Co Ltd filed Critical Lingbu Science And Technology Co Ltd Shenzhen
Priority to CN2012100381428A priority Critical patent/CN102622415A/en
Publication of CN102622415A publication Critical patent/CN102622415A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention discloses a method for synchronous transmission of power quality monitoring data for multiple platforms, which includes the steps: firstly, determining export required data in a synchronous data resource database; secondly, calling a packet function to convert the export required data in the step 1 into data in an appointed format; thirdly, recording and outputting the data in the appointed format; fourthly, receiving the data exported from the data source database, and extracting the data; and fifthly, converting the extracted data into a data sheet, and establishing a chart about mapping relation of identifiers of corresponding data in the data source database to identifiers in an object library. By the method for synchronous transmission of power quality monitoring data for different platforms, the problem of incompatibility of the different platforms in data transmission is solved, higher efficacy and stability are achieved, system flexibility is improved, and the data are more easily understandable to third parties.

Description

A kind ofly be used for multi-platform electric energy quality monitoring data synchronization transmission method
Technical field
The present invention is a kind of multi-platform electric energy quality monitoring data synchronization transmission method that is used for, and specifically referring to derives and introduction method based on the electric energy quality monitoring data of ORACLE storing process and XML file layout, belongs to the power technology field.
Background technology
Become increasingly complex in current software systems; Constantly under the situation of breadth and depth expansion, the data interaction demand of system becomes more and more urgent to service application between the data interaction between the same system disparate modules, the data interaction between the different system, the different manufacturers.The kind and the form of these data are various; The software platform that makes up these systems is also also inequality; And along with constantly the improving of operation flow, the data layout of software systems and classification also can constantly change, thereby have further brought challenge to synchronization of data.
The electric energy quality monitoring data between different platform, carry out data transmission because data volume is big, the degree of coupling is high; Often need be along with interface is constantly revised in the expansion of business; Need do substantive test again after each the modification could stablize, but stable interface has been crossed not the modification of how long need upgrading again usually in actual use.
Therefore, seek a kind of can flexible adaptation business demand change, cross-platform, method of data synchronization that exploitation is simple, efficient, open, guarantee system reliable and stable operation, be easy to system upgrade and safeguard that its essential meaning is arranged.
Summary of the invention
Fundamental purpose of the present invention is to solve existing electric energy quality monitoring data synchronization technology to be unfavorable for that heterogeneous platform uses, development and maintenance is disposed complicated; Synchrodata source end and the too high defective of data destination interface coupling provide a kind of more advanced, simple, open, high-efficiency method realization data sync.
Realize that technical scheme of the present invention is:
A kind ofly be used for multi-platform electric energy quality monitoring data synchronization transmission method, may further comprise the steps:
1) confirms the data that needs are derived in the synchrodata source database;
2) calling the packet function, is the data of specified format with the data-switching that needs in the step 1) to derive;
3) data of record and output specified format;
4) receive the data that derive in the data source data storehouse, extract data;
5) be tables of data with the data conversion of extracting, and set up the sign of corresponding data in the data source data storehouse and the mapping relations table of the sign in the object library.
The The data tables of data or the SQL statement that need in the said step 1) to derive are described.
Said step 2) data of specified format are the character string of XML form in.
The mapping relations table that said step 5) is set up Data Identification in sign and the object library of corresponding data in the data source data storehouse has three kinds of situation:
11) sign of importing data does not exist, and then in object library, inserts and imports data, increases mapping importing Data Identification and the sign mapping relations that import in the object library;
12) there is not sign in the importing data that exist in the mapping relations, then deletes corresponding data in the object library;
13) Data Identification that imports exists, and then upgrades corresponding data in the object library.
Technical scheme of the present invention comprises two aspects; One is to use the derivation of the PL/SQL storing process completion source end data of ORACLE, and the importing of destination data, and PL/SQL is suitable on all platforms; Solved cross-platform problem; Directly move in database server side simultaneously, efficient more and stable, and dispose simpler than other higher level lanquage development and maintenance.The 2nd, the data source end is derived to import with the data destination and is used XML form transmission data, and XML is the data layout of self-described, with platform independence, is easier to third party's understanding, when accomplishing synchronization scenario jointly with third party producer, links up more easily and cooperates.
Comprise two partly from program, some is that synchrodata source end is derived, and another partly is that the synchrodata destination imports.Be described below respectively:
Import and export handled data layout:
{ tables of data A length }, { tables of data B length }, { tables of data C length } ... { XML of the XML}{ tables of data B of tables of data A } { XML of tables of data C } ...
As implied above, the front is the length of tables of data, and the length of each tables of data is with CSV, and length is used with concrete data and separated, and suspension points is represented to repeat once to not limitting number of times.
Said step 2) the packet function that provides in is DBMS_XMLGEN.NEWCONTEXT and DBMS_XMLGEN.GETXML.
The function that provides in the said step 5) is XMLTABLE.
The present invention is because through the abundant function that uses ORACLE itself to provide; Carry out the mutual conversion of XML and tables of data; The PL/SQL that while ORACLE provides is a language efficient, easy to use, has simplified the development amount, has also improved stability simultaneously; The online implementing of customer in response in time, upgrading requirement, and can under any platform, accomplish deployment.Because synchrodata source end and data destination use XML form in return, also can call simultaneously, improve the dirigibility of system for different manufacturers, different platforms.
Description of drawings
The process flow diagram that Fig. 1 derives for data importing of the present invention.
Embodiment
The process flow diagram that Fig. 1 derives for data importing of the present invention is divided into the derivation storing process and imports storing process.Derive storing process; The derivation storing process of beginning data; At first specified data source end needs synchronous concrete data, and describes with tables of data or SELECT statement, then to each type data; Calling DBMS_XMLGEN.NEWCONTEXT and DBMS_XMLGEN.GETXML function respectively one by one and accomplish the conversion of database data to XML format string data, is that storing process is finally exported with all XML data combinations that convert.Import storing process; Receive the data of the XML form of deriving storing process output; Through call XML TABLE function; XML is reduced to the data of database sheet form, and set up corresponding data in the data source data storehouse, identify with object library in the mapping relations table of Data Identification, the mapping relations table of setting up Data Identification in the sign of corresponding data in the data source data storehouse and the object library has three kinds of situation: 11) sign of importing data does not exist; Then in object library, insert and import data, increase mapping and import Data Identification and the sign mapping relations that import in the object library; 12) there is not sign in the importing data that exist in the mapping relations, then deletes corresponding data in the object library; 13) Data Identification that imports exists, and then upgrades corresponding data in the object library.
Power supply administration, transformer station, bus, track data in certain concrete provincial main website of net level main website and subordinate are synchronous, have used this programme, and scene is following:
Newly-built PROC_EXPORT_CELL process in province of subordinate main website database; In realization process; The function DBMS_XMLGEN.NEWCONTEXT of the processing XML that provides through ORACLE itself and DBMS_XMLGEN.GETXML are the XML character string with the data conversion of power supply administration's table (TSUPPLIER), transformer station table (TSTATION), bus table (TMLINE), circuit table (TLINE); Assignment is given the output parameter of PROC_EXPORT_CELL process, thereby uses the data sync receiving end to call the XML form that this process can be obtained synchrodata.
In net level main website database; Newly-built PROC_IMPORT_CELL process, and set up the relation mapping table T_ID_MAP of data source end and destination, mainly comprise TYPE (type; Be used to represent map type; Like power supply administration, transformer station, bus, circuit mapping), TRUNK_ID (host stand ID, be that the data source end data imports the new mark ID that the host stands and forms), BRANCH_ID (ID of province main website is the sign ID of synchrodata in the source goes on foot), BRANCH_SITE fields such as (province main website titles); Output through the PROC_EXPORT_CELL of province of receiving and analyzing subordinate main website process; XMLTABLE through calling ORACLE and providing is a tables of data with the XML data conversion, and through whether having had mapping relations among the T_ID_MAP, determines whether to carry out that data are inserted, upgraded, still original data that import of deletion.

Claims (4)

1. one kind is used for multi-platform electric energy quality monitoring data synchronization transmission method, it is characterized in that may further comprise the steps:
1) confirms the data that needs are derived in the synchrodata source database;
2) calling the packet function, is the data of specified format with the data-switching that needs in the step 1) to derive;
3) data of record and output specified format;
4) receive the data that derive in the data source data storehouse, extract data;
5) be tables of data with the data conversion of extracting, and set up the sign of corresponding data in the data source data storehouse and the mapping relations table of the sign in the object library.
2. according to claim 1ly be used for multi-platform electric energy quality monitoring data synchronization transmission method, it is characterized in that needs are derived in the said step 1) The data tables of data or SQL statement describe.
3. according to claim 1ly be used for multi-platform electric energy quality monitoring data synchronization transmission method, it is characterized in that said step 2) in the data of specified format be the character string of XML form.
4. according to claim 1ly be used for multi-platform electric energy quality monitoring data synchronization transmission method, it is characterized in that said step 5) sets up sign and the mapping relations of sign in object library of corresponding data in the data source data storehouse three kinds of situation are arranged:
11) sign of importing data does not exist, and then in object library, inserts and should import data;
12) importing data that exist in the mapping relations but do not have sign are then deleted corresponding data in the object library;
13) Data Identification that imports exists, and then upgrades corresponding data in the object library.
CN2012100381428A 2012-02-20 2012-02-20 Method for synchronous transmission of power quality monitoring data for multiple platforms Pending CN102622415A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012100381428A CN102622415A (en) 2012-02-20 2012-02-20 Method for synchronous transmission of power quality monitoring data for multiple platforms

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012100381428A CN102622415A (en) 2012-02-20 2012-02-20 Method for synchronous transmission of power quality monitoring data for multiple platforms

Publications (1)

Publication Number Publication Date
CN102622415A true CN102622415A (en) 2012-08-01

Family

ID=46562334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012100381428A Pending CN102622415A (en) 2012-02-20 2012-02-20 Method for synchronous transmission of power quality monitoring data for multiple platforms

Country Status (1)

Country Link
CN (1) CN102622415A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103442029A (en) * 2013-07-29 2013-12-11 广东电网公司电力科学研究院 Method and system for heterogeneous real-time historical database synchronization
CN103488722A (en) * 2013-09-13 2014-01-01 武汉地大信息工程股份有限公司 Multi-source monitoring data integration system and method
CN104657430A (en) * 2015-01-28 2015-05-27 武汉烽火众智数字技术有限责任公司 Method and system for data acquisition
CN105930493A (en) * 2016-05-04 2016-09-07 北京思特奇信息技术股份有限公司 Method and system for data synchronization between different databases
CN109271394A (en) * 2018-08-27 2019-01-25 武汉达梦数据库有限公司 A kind of batch data insertion update implementation method based on ID caching

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050114240A1 (en) * 2003-11-26 2005-05-26 Brett Watson-Luke Bidirectional interfaces for configuring OSS components
CN101452450A (en) * 2007-11-30 2009-06-10 上海市电力公司 Multiple source data conversion service method and apparatus thereof
CN101789021A (en) * 2010-02-24 2010-07-28 浪潮通信信息系统有限公司 Universal configurable database data migration method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050114240A1 (en) * 2003-11-26 2005-05-26 Brett Watson-Luke Bidirectional interfaces for configuring OSS components
CN101452450A (en) * 2007-11-30 2009-06-10 上海市电力公司 Multiple source data conversion service method and apparatus thereof
CN101789021A (en) * 2010-02-24 2010-07-28 浪潮通信信息系统有限公司 Universal configurable database data migration method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103442029A (en) * 2013-07-29 2013-12-11 广东电网公司电力科学研究院 Method and system for heterogeneous real-time historical database synchronization
CN103488722A (en) * 2013-09-13 2014-01-01 武汉地大信息工程股份有限公司 Multi-source monitoring data integration system and method
CN104657430A (en) * 2015-01-28 2015-05-27 武汉烽火众智数字技术有限责任公司 Method and system for data acquisition
CN105930493A (en) * 2016-05-04 2016-09-07 北京思特奇信息技术股份有限公司 Method and system for data synchronization between different databases
CN109271394A (en) * 2018-08-27 2019-01-25 武汉达梦数据库有限公司 A kind of batch data insertion update implementation method based on ID caching
CN109271394B (en) * 2018-08-27 2021-05-07 武汉达梦数据库有限公司 Data batch insertion updating implementation method based on ID cache

Similar Documents

Publication Publication Date Title
CN102622415A (en) Method for synchronous transmission of power quality monitoring data for multiple platforms
CN102608962B (en) A kind of power information collecting device automatic maintenance method from bottom to top
CN104463715A (en) Pattern and model verifying method of distribution automation master station system and geographical information system
CN103927698B (en) A kind of virtual terminals of intelligent substation associate device automatic identifying method
CN103578048A (en) Method for checking and comparing configuration related information of intelligent substation SCL documents
CN104318006B (en) A kind of optimization method of virtual terminals of intelligent substation design
CN103020360A (en) Integration design method of intelligent substation based on three-dimensional design platform and professional software
CN105975502A (en) Method for realizing incremental data extract based on CDC (Change Data Capture) mode
CN106528880A (en) Normalizing method and system for data structure format of multi-source power service data
CN105407138B (en) Configuration file loading method and device, communication equipment
CN108228726B (en) Incremental transaction content acquisition method and storage medium for distribution network red and black images
CN106021393B (en) The grid equipment Standard Information Searching method and system of facing mobile apparatus
CN104317864A (en) Automatic identification method of information model based on IEC61850 logical nodes
CN102693129A (en) Model transformation method of IEC61850 to IEC61970 and apparatus thereof
CN105184011A (en) Automatic transformer substation WEB primary connection diagram forming method and device
CN104484469A (en) Expansion method for supporting non-halt of multi-hash map database cluster system
CN105404757A (en) Intelligent transformer station SCD file standardization degree verification method
CN103632307A (en) Method for checking consistency between SCD and virtual loop table of intelligent substation
CN103699555A (en) Multisource data real-time database data generation method applicable to scheduling and transformer substation integrated system
CN106815392B (en) Intelligent reading method for manufacturer terminal strip
CN103441988B (en) Across GIS platform data migration method
CN104112183B (en) The intelligent scheduling model management system and management method of intelligent substation plug and play
CN110287603A (en) A kind of circuit auxiliary design method and device based on CBB circuit library
CN105868170A (en) Method for generating industrial data report in server
CN102185381B (en) Method for processing SCD (substation configuration description) iteration of SCD model during automatic switching

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120801