CN103809946A - Method for integrating heterogeneous database based on XML (extensible markup language) and middleware - Google Patents

Method for integrating heterogeneous database based on XML (extensible markup language) and middleware Download PDF

Info

Publication number
CN103809946A
CN103809946A CN201210446237.3A CN201210446237A CN103809946A CN 103809946 A CN103809946 A CN 103809946A CN 201210446237 A CN201210446237 A CN 201210446237A CN 103809946 A CN103809946 A CN 103809946A
Authority
CN
China
Prior art keywords
data
xml
message
database
converted
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
CN201210446237.3A
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.)
ZHENJIANG HUAYANG INFORMATION TECHNOLOGY CO LTD
Original Assignee
ZHENJIANG HUAYANG INFORMATION TECHNOLOGY 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 ZHENJIANG HUAYANG INFORMATION TECHNOLOGY CO LTD filed Critical ZHENJIANG HUAYANG INFORMATION TECHNOLOGY CO LTD
Priority to CN201210446237.3A priority Critical patent/CN103809946A/en
Publication of CN103809946A publication Critical patent/CN103809946A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

The invention discloses a method for integrating a heterogeneous database based on an XML (extensible markup language) and middleware, and provides a new solution for realizing integration of the heterogeneous database based on the XML and the middleware. The method comprises the following steps: establishing a central database, and integrating all data, needing to be shared, in the heterogeneous database; adopting the XML as a data transmission format; constructing a communication framework between the heterogeneous database and the central database by using a Web application server (a BEA Web Logic Server) so as to ensure the safety and reliability of communication.

Description

A kind of integrated method of heterogeneous database based on XML and middleware
Technical field
A kind of integrated method of heterogeneous database based on XML and middleware mainly relates to the data storage technology in computer realm.
Background technology
Heterogeneous database is integrated is one had both had close ties with various databases, was different from again the new field of various databases.Its goal in research is the database of the multiple different structures to physically distributing, at the base that affects as few as possible local autonomy
On plinth, structure has the global data base of the needed transparency of user, to realize sharing and transparent access of data.
Summary of the invention
Retrieve and there is no to find the application materials about this system aspects by national patent.
Heterogeneous database integrated model based on XML and middleware, by existing each dispersion of enterprise or unit, independently, heterogeneous system couples together by middleware, forms an organic whole, generates a central database.Between them, realize the exchange of data and sharing of resource by be used as unified data layout with XML.Separate between original each system of enterprise, interface is different, and data layout is different.Model extracts the delta data in each subsystem, delta data in tables of data is converted to unified data layout XML file by client-side program, be transferred to server by JMS, then by serve end program receipt message, by data integration in central database.
(1) subsystem database
Under the different operating system platform that enterprise is existing, applying, different relational database management systems, it is all protected
Holding each contented relative independentability and autonomy, as Oracle, SQLServer, MySql, Access etc., access by JDBC, is the information source that we want integrated data.By trigger at any time record data change and write in the respective table of establishment.
(2) client tier
The function of this level is: access subdata base system by JDBC, and the data that change with Java timer timing extraction,
By XML analytical tool, the data of the renewal of each database are converted to XML document, and XML document is packaged into and is applicable to the message that JMS transmits, send to the queue of JMS theme by JMS client transmission program.
Because JMS does not define XML type of message, transmit XML message by JMS, at present general way is using LXM as a TextMessage or XML sequence is turned to a DOM object transmits.Experimental results show that, the former transmission efficiency is higher, therefore the model proposing is herein also that XML is encapsulated in TextMessage and is transmitted, so say above and eight L document package is dressed up and is applicable to message that JIIS transmits and is actually XML document is converted to text message TextMessage.The time of timer can be set according to actual conditions.Such as: if can be upgraded in time for central database, can be decided to be to update status the above operation of execution that each minute checks database the time, so the concrete function that this level is realized can be summarized as follows: delta data in timing extraction subdata base system: the XML document that is converted to consolidation form with XML analytical tool; XML document is converted to the text message transmission of going forward side by side.
(3) middleware layer
This level mainly, by the JMS server that configures in application server middleware BEA WebLogic and message subject or to row, is realized the message transmission of client application and central server end application program.The concrete function of this layer of realization is exactly the communication complexity of shielding bottom, maintain message subject or the queue of foundation, completes] function of the sending and receiving message of MS server.JMS server is the core of whole model, is the medium of each application system swap data, and it guarantees asynchronism, persistence and the reliability of message communicating.
(4) central database client
Whether the major function of this level is: message queue or the theme of JMS server just monitored in the operation of this client-side program always, have message to arrive.If do not have message just to monitor always, if there is message to arrive, carry out mutually deserved processing.Because we communicate by text message TextMessage, thus after receiving text message, be just converted to XML document, by XMI.Document is converted to the XML document corresponding to central data base system according to the data pattern mapped file between central database and subdata base, and this XML document is write in central database.Its specific implementation content can be described below: monitoring information; Receive message and be converted to XML document; The XML document obtaining is converted to the XML document corresponding to central data base system data by mapped file; XML document after conversion is write in central database by analytical tool.
(5) central database
Central database is to need shared unified information platform, needs shared information to be all stored in this.It is further to count
Provide unified basis according to excavation, information sharing etc.
Model flow process:
(1) subdata base system changes, and the trigger of establishment is recorded in the data that change in corresponding table;
(2) client-side program timing arrives, and reads the table that record data change, and has data to exist, and extracts delta data, is converted into XML document;
(3) XML document is converted to TextMessage, sends to] in the theme or queue of MS server;
(4) server end of monitoring this theme or queue receives this message, by corresponding crossover tool, the TextMessage message parse receiving is become to XML document or DOM object;
(5) XML document obtaining is converted to the XML document corresponding to central data base system data by mapped file;
(6) analyzing XML file, utilizes XML file data information updating central authorities shared data bank, finally realizes the integrated shared and synchronous refresh of heterogeneous database.
In implementation model, data layout is changed mutually:
Data between heterogeneous database management system can not direct interaction, in order to address this problem, we adopt XML as the data layout that represents data and transmission data, shielding isomerism, easily realize cross-platform integration: although adopted the form of XML, but how the delta data in database is converted to XML form, just becomes the emphasis of model realization.Because JMS does not define XML type of message, transmit XML message by JMS, conventionally transmit with TextMessage, so the conversion of XML form and text message format is also most important.Meanwhile, between each heterogeneous database distributing and between central shared data bank, certainly there is the inconsistency of data structure and data type, how to complete data structure and close the conversion of data type, also become the key of model realization.In a word, the relevant difficult point that is converted into this model realization of relevant a series of data layout in implementation model how.
This adopts Jdom technology to complete the format conversion between tables of data and XML form, by the outputString method of utilizing xmloutputterl311 class, dom is set to document, becomes text message.
Between central database and each subdata base, synchronize:
Realize heterogeneous database integrated, be exactly at the Cong Chushang that keeps each subdata base system relative independentability and autonomy, baby data transmission shared needs to central database, so how to realize between central database and each subdata base, synchronize most important.Briefly, be exactly after central Database, after in the subdata base of distribution, data change, the corresponding data of central database should change thereupon.
Realize this point, conventionally can adopt in two ways: be one, update all, in the time that synchronizing cycle, (what in model realization, we used is timer) arrived, subdata base data message is all sent to central database end by we, upgrade central database according to it, synchronous to realize; Because early stage database adopts Access more, and Access does not exist storage hair device, so in integrated early stage database, we adopt timing update all.In the time that timing arrives, we all data update alls in original database to central database.Two, be that we only send to central database to realize synchronously by the incremental data that has occurred to change.Obviously, the second way is less to the pressure of the network bandwidth and server, and performance is far superior to first kind of way.So realizing between central database and each subdata base, the second way that in the model realization below, we adopt synchronizes.Utilize the increment information of database trigger database of record.Then complete the work such as transmission and data-switching of the amount of giving information, realize between central database and each subdata base and synchronizeing.Itself have stronger function for resembling the database such as Oracle, SQLServer, Mysql (Mysql 5.0 also provides trigger function), trigger function can be provided, we just adopt the renewal of the second incremental data.
Realize the asynchronous transmission of data security:
The accesses definition that Java messenger service (JMS) standard is messaging system the interface of one group of standard.WebLogicServer provides a kind of enterprise-level messaging system of supporting JMS API completely.This problem utilizes the JMS function in BEAWebLogic to realize the safe asynchronous transmission of message.In the point-to-point and distribution subscription model of two kinds of different Message-Passing Models of JMS, the safe and reliable transmission that JMS guarantees that by maintaining message queue or theme message is transmitted.
Feature:
(I) be the standard that cross-platform data represents and exchanges across, 1f platform: XML; JMS is based on Java language, thereby is also platform independence.JMS rain I XML has realized the behavior of platform independence and the data of platform independence together jointly.
(2) loose coupling: it is seamless between feasible system that each application system externally provides an interface based on XML data layout
Integrated.
(3) asynchronism: the application system of request msg does not need to be connected with the application system that sends data simultaneously.
(4) the asynchronous message mechanism of reliability: JMS the reliability of data transmission between application system.
(5) easily expansion: be all standard interface due to what use between system, so can increase with comparalive ease and reduce participation
Integrated subsystem.

Claims (6)

1. the integrated method of the heterogeneous database based on XML and middleware is characterized in that subdata base system to change, and the trigger of establishment is recorded in the data that change in corresponding table.
2. client-side program timing arrives, and reads the table that record data change, and has data to exist, and extracts delta data, is converted into XML document.
3. XML document is converted to TextMessage, sends to] in the theme or queue of MS server.
4. the server end of monitoring this theme or queue receives this message, by corresponding crossover tool, the TextMessage message parse receiving is become to X letter document or DOM object.
5. the XML document obtaining is converted to the XML document corresponding to central data base system data by mapped file.
6. analyzing XML file, utilizes XML file data information updating central authorities shared data bank, finally realizes the integrated shared and synchronous refresh of heterogeneous database.
CN201210446237.3A 2012-11-09 2012-11-09 Method for integrating heterogeneous database based on XML (extensible markup language) and middleware Pending CN103809946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210446237.3A CN103809946A (en) 2012-11-09 2012-11-09 Method for integrating heterogeneous database based on XML (extensible markup language) and middleware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210446237.3A CN103809946A (en) 2012-11-09 2012-11-09 Method for integrating heterogeneous database based on XML (extensible markup language) and middleware

Publications (1)

Publication Number Publication Date
CN103809946A true CN103809946A (en) 2014-05-21

Family

ID=50706782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210446237.3A Pending CN103809946A (en) 2012-11-09 2012-11-09 Method for integrating heterogeneous database based on XML (extensible markup language) and middleware

Country Status (1)

Country Link
CN (1) CN103809946A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363291A (en) * 2014-11-19 2015-02-18 中国航天科工集团第二研究院七〇六所 Network communication middleware implementation method
CN104615630A (en) * 2014-10-27 2015-05-13 武汉钢铁(集团)公司 Data format conversion method between isomerous database systems
CN105049255A (en) * 2015-08-05 2015-11-11 大唐移动通信设备有限公司 Net element data synchronization method and device thereof
CN105577808A (en) * 2015-12-29 2016-05-11 中国建设银行股份有限公司 Supervision reporting method and system
CN107710190A (en) * 2015-06-29 2018-02-16 微软技术许可有限责任公司 Carry out presentation content using the presentation resource of uncoupling
CN108416568A (en) * 2018-02-09 2018-08-17 深圳太极云软技术股份有限公司 Government affairs business data processing method, device and terminal device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101290570A (en) * 2007-04-17 2008-10-22 高丹 Heterogeneous database data integration middleware in different language environment
US20120198416A1 (en) * 2011-02-02 2012-08-02 Microsoft Corporation Support for heterogeneous database artifacts in a single project

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101290570A (en) * 2007-04-17 2008-10-22 高丹 Heterogeneous database data integration middleware in different language environment
US20120198416A1 (en) * 2011-02-02 2012-08-02 Microsoft Corporation Support for heterogeneous database artifacts in a single project

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘明: "基于XML和中间件的异构数据库集成", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104615630A (en) * 2014-10-27 2015-05-13 武汉钢铁(集团)公司 Data format conversion method between isomerous database systems
CN104615630B (en) * 2014-10-27 2018-03-27 武汉钢铁(集团)公司 The method of Data Format Transform between heterogeneous database system
CN104363291A (en) * 2014-11-19 2015-02-18 中国航天科工集团第二研究院七〇六所 Network communication middleware implementation method
CN107710190A (en) * 2015-06-29 2018-02-16 微软技术许可有限责任公司 Carry out presentation content using the presentation resource of uncoupling
CN105049255A (en) * 2015-08-05 2015-11-11 大唐移动通信设备有限公司 Net element data synchronization method and device thereof
CN105049255B (en) * 2015-08-05 2019-03-12 大唐移动通信设备有限公司 A kind of method and device thereof of network element data synchronization
CN105577808A (en) * 2015-12-29 2016-05-11 中国建设银行股份有限公司 Supervision reporting method and system
CN108416568A (en) * 2018-02-09 2018-08-17 深圳太极云软技术股份有限公司 Government affairs business data processing method, device and terminal device

Similar Documents

Publication Publication Date Title
US10944628B2 (en) Network operation support system and network device management method
CN103809946A (en) Method for integrating heterogeneous database based on XML (extensible markup language) and middleware
CN103747060B (en) A kind of distributed monitoring system and method based on streaming media service cluster
CN101902473B (en) Method for synchronously updating data based on grid GIS (Geographic Information System)
CN102541721B (en) Integrating external and cluster heat map data
CN103024060B (en) Open type cloud computing monitoring system for large scale cluster and method thereof
CN103414579A (en) Cross-platform monitoring system applicable to cloud computing and monitoring method thereof
CN105138615A (en) Method and system for building big data distributed log
CN110175213A (en) A kind of oracle database synchronization system and method based on SCN mode
CN102866998A (en) Centralized password management method and centralized password management system in synchronous system
CN110377666A (en) Based on the synchronous method of data between CMSP message-oriented middleware progress different source data library
CN102164184A (en) Computer entity access and management method for cloud computing network and cloud computing network
CN102291416A (en) Two-way synchronizing method and system of client-side and server-side
CN104735098A (en) Session information control method and system
CN102081611A (en) Method and device for synchronizing databases of master network management system and standby network management system
CN101661494A (en) Data interactive method for distributed middleware and database
CN104506625A (en) Method for improving reliability of metadata nodes of cloud databases
CN105554123B (en) Large capacity perceives cloud computing platform system
CN105577446B (en) Lightweight embedded network management system and method
CN101188566A (en) A method and system data buffering and synchronization under cluster environment
CN111541599B (en) Cluster software system and method based on data bus
CN103581332A (en) HDFS framework and pressure decomposition method for NameNodes in HDFS framework
CN101398857B (en) Data synchronization method in embedded distribution system and embedded distribution system
CN109739640A (en) A kind of container resource management system based on Shen prestige framework
CN103166964A (en) Front end and back end real time communication method for super computer system monitoring

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140521