約定用戶提交的查詢如下:
Define [server1.db1.info=a][server2.db2.infomation=b]
Select [a.*][b.*] from [a][b]
Where [a.destination=北京] And [a.begintime=2004-9-7]
And [b.destination=北京] And [b.begintime=2004-9-7]
And [a.endtime
說明:server1.db1.info=a 川航中間件所連接的數據
server2.db2.infomation=b南航中間件所連接的數據
該查詢被分解為
1> Define [ Select a.* from [server1.db1.info=a]
Where [a.destination=北京] And [a.begintime=2004-9-7]
=c]
2> Define [ Select b.* from [server2.db2.info=b]
Where [b.destination=北京] And [b.begintime=2004-9-7]
=d]
3> 取1中的數據和2中的數據進行匹配子查詢
Select [c.*][d.*] from[c][d] where [c.endtime
由中間件構成了數據共享網絡具有極高的靈活性,其它航空公司只需安裝集成中間件,配置和共享網絡的連接就可以很方便的擴充數據共享網絡。
4 結束語
數據的集成對于實現EAI,進行企業內部整合具有極其重要的意義,本文提出了一種基于WEB服務的異構數據庫集成中間件解決方案。該中間件解決方案具有一定的可行性,和實用性,能夠勝任異構數據庫的集成工作。
文章來源于領測軟件測試網 http://www.kjueaiud.com/