Oracle Goldengate 介紹

來源:互聯網
上載者:User

標籤:goldengate

 

 GoldenGate軟體是一種基於日誌的結構化資料複製軟體。GoldenGate 能夠實現大量交易資料的即時捕捉、變換和投遞,實現來源資料庫與目標資料庫的資料同步,保持亞秒級的資料延遲。 

GoldenGate能夠支援多種拓撲結構,包括一對一,一對多,多對一,層疊和雙向複製等等


資料複製的拓撲結構有如下幾種

   650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/73/26/wKioL1X2orPgktQFAAGjiRdjeoI136.jpg" title="gg1.PNG" alt="wKioL1X2orPgktQFAAGjiRdjeoI136.jpg" />

Goldegate的應用情境


  • A static extraction of data records from one database and the loading of those records

    to another database.

  • Continuous extraction and replication of transactional DML operations and DDL

    changes (for supported databases) to keep source and target data consistent.

  • Extraction from a database and replication to a file outside the database.


架構概覽


Oracle Goldengate由以下組件組成

  • Extract

  • Data pump

  • Replicat

  • Trails or extract files

  • Checkpoints

  • Manager

  • Collector

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/73/26/wKioL1X2pqOxeya7AAER5169rw0662.gif" title="20111116032004930.gif" alt="wKioL1X2pqOxeya7AAER5169rw0662.gif" />

Extract 進程用來捕獲資料來源,有三種類型

  1. 配置為INITIAL LOAD模式時,資料來源為表。

  2. 資料庫的恢複日誌(有的資料庫也稱為交易記錄)。

  3. 第三方的捕獲模型,通過調用Extact API將資料庫變更的資料發送給Extract進程。

Data pump 是Extract的輔助可選組件,如果不配置Data pump,Extract將捕獲的資料直接發給目標機器上的Collector進程。


使用Data pump能提供如下優點

  1. 防止網路或者目標端的Collector發生故障,保護資料丟失。

  2. data pump可以用來過慮,轉換資料,或配置成Pass-through模式,即不做任何的動作,只是投遞資料。

  3. 啟動多個Data pump實現一對多的資料分發(或者是一張表的資料,根據資料類型發往不同的目的系統)

Replicat 運行在目的伺服器上,從Trail檔案中讀取資料,重構DML、DDL語句,並應用到目的資料庫上。你可以配置多個Replicat,並發的工作以提高系統的輸送量。


Trail 為了支援持續的捕獲、複製資料庫的變更,Oracle將捕獲來的資料庫變更臨時的記錄到一系列的磁碟檔案上。這些磁碟檔案被稱為Trail file。

一個Trail檔案只能被一個Extract進行寫。每個Extract進程必須連結到一個Trail檔案上。


Checkpoints 當Goldengate的進程宕掉後,可以恢複Goldengate執行個體。

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/73/27/wKioL1X2wp_itMO5AAL1uHQvHkI145.jpg" title="gg2.PNG" alt="wKioL1X2wp_itMO5AAL1uHQvHkI145.jpg" />



Manager 是Goldengate的管理進程。

Extract和Replicat啟動之前,必須先在每個節點上啟動Manager進程。

Manager有如下功能

  • Start Oracle GoldenGate processes

  • Start dynamic processes

  • Maintain port numbers for processes

  • Perform trail management

  • Create event, error, and threshold reports


Collector ,接收遠端系統傳輸的資料,並將其寫到Trail檔案中 。


group 概覽

  為了區分系統中多個Extract或者Replicat進程,需要定義處理組

一個組包括如下內容

  • 一個進程,Extract 或者Replicat 

  • 它的參數檔案

  • 它的checkpoint檔案

  • 任何與這個進程相關聯的其他檔案。

本文出自 “叮咚” 部落格,請務必保留此出處http://lqding.blog.51cto.com/9123978/1694724

Oracle Goldengate 介紹

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.