【正文】
I 摘要 隨著 分布式數據庫系統(tǒng)應用 的 日漸廣泛 , 數據庫中各個節(jié)點的數據如何保持一致顯得 越來越 重要,數據庫同步技 術即是 為解決這類問題而誕生的。本文首先 研究了Oracle GoldenGate 的歷史、基本原理及應用場景, 然后 以重離子治癌項目中磁鐵實時溫度監(jiān)測系統(tǒng)為基礎,進行了數據采集方案設計、數據庫設計以及數據同步設計。通過 數據同步性能 測試,采集方案能夠滿足實時溫度數據采集的精度要求,數據庫設計能夠滿足監(jiān)測系統(tǒng)的要求, 并 實現了各個節(jié)點數據到中央數據庫的同步以及中央數據庫對各個節(jié)點的實時監(jiān)測。底層數據采集由 PHOENIX 公司的 PT100 傳感器和 PLC 完成,再利用 LabVIEW將實時溫度數據寫入本地數據庫。數據同步模塊通過配置 Oracle GoldenGate 中的提取進程、投遞進程以及復制進程實現。最后,對 GoldenGate 同步性能做了初步探究。 關鍵字 : GoldenGate , 異構數據庫, 數據同步,分布式系統(tǒng) II Abstract Application of distributed database system is increasingly widely, And how to keep the data of each node unanimous is particularly important, Database synchronization technology are mitted to solve this kind of problem. This article describes the history, the basic principles and the application scenarios of Oracle GoldenGate. And then, we design and implement the data collection scheme, Database design and data synchronization design in the system of HIMM mag temperature monitor. According to the test of database synchronization, The solution of data collection meet the accuracy of realtime temperature data collection, the database design meet the requirements of monitoring system, Realized the data synchronization between Each node and the central database. Data collection rely on the PT100 sensors and PLC to plete, And then, we use LabVIEW to write the realtime data to the local database. Data synchronization module using Oracle GoldenGate replication software implementation, The module of Data synchronization by configuring the extraction process, the data pump process , the replicate process to achieve. Finally, we explored the performance of GoldenGate in data synchronization. Keywords: GoldenGate, Heterogeneous databases, Data Synchronization, Distributed System i 畢業(yè)設計(論文)原創(chuàng)性聲明和使用授權說明 原創(chuàng)性聲明 本人鄭重承諾:所呈交的畢業(yè)設計(論文),是我個人在指導教師的指導下進行的研究工作及取得的成果。盡我所知,除文中特別加以標注和致謝的地方外,不包含其他人或組織已經發(fā)表或公布過的研究成果,也不包含我為獲得 及其它教育機構的學位或學歷而使用過的材料。對本研究提供過幫助和做出過貢獻的個人或集體,均已在文中作了明確的說明并表示了謝意。 作 者 簽 名: 日 期: 指導教師簽名: 日 期: 使用授權說明 本人完全了解 大學關于收集、保存、使用畢業(yè)設計(論文)的規(guī)定,即:按照學校要求提交畢業(yè)設計(論文)的印刷本和電子版本;學校有權保存畢業(yè)設計(論文)的印刷本和電子版,并提供目錄檢索與閱覽服務;學校可以采用影印、縮印、數字化或其它復制手段保存論文;在不以贏利為目的前提下,學??梢怨颊撐牡牟糠只蛉績热?。 作者簽名: 日 期: ii iii 學位論文原創(chuàng)性聲明 本人鄭重聲明:所呈交的論文是本人在導師的指導下獨立進行研究所取得的研究成果。除了文中特別加以標注引用的內容外,本論文不包含任何其他個人或集體已經發(fā)表或撰寫的成果作品。對本文的研究做出重要貢獻的個人和集體,均已在文中以明確方式標明。本人完全意識到本聲明的法律后果由本人承擔。 作者簽名: 日期: 年 月 日 學位論文版權使用授權書 本學位論文作者完全了解學校有關保留、使用學位論文的規(guī)定,同意學校保留并向國家有關部門或機構送交論文的復印件和電子版,允許論文被查閱和借閱。本人授權 大學可以將本學位論文的全部或部分內容編入有關數據庫進行檢索,可以采用影印、縮印或掃描等復制手段保存和匯編本學位論文。 涉密論文按學校規(guī)定處理。 作者簽名: 日期: 年 月 日 導師簽名: 日期: 年 月 日 iv 目錄 摘 要 ............................................................................................................................................................................. I Abstract......................................................................................................................................................................... II 第 1 章 Oracle GoldenGate ....................................................................................................................................1 Oracle GoldenGate 介紹 .............................................................................................................................1 GoldenGate TDM 的數據復制原理 ..........................................................................................................1 GoldenGate TDM 可以提供可靠的數據復制 ..........................................................................................2 保證事務一致性 .....................................................................................................................................2 檢查點機制保障數據無丟失 ................................................................................................................2 可靠的數據傳輸機制 .............................................................................................................................2 GoldenGate TDM 支持多種拓撲結構和多種數據庫 .............................................................................3 GoldenGate 支持的拓撲結構 ................................................................................................................3 GoldenGate 支持的數據庫 ....................................................................................................................3 第 2 章 數據同步的應用場景 .................................................................................................................................4 高可用性與容災 ..........................................................................................................................................4 雙業(yè)務中心 .............................................................................................................................................4 消除計劃內停機 .....................................................................................................................................5 容災與應急備份 .....................................................................................................................................6 實時數據集成 ..............................................................................................................................................6 數據倉庫實時數據供給 ........................................................................................................................6 實時報表 .................................................................................................................................................7 部門內部多層數據同步 ........................................................................................................................7 第 3 章 總體 設計 .......................................