oracle GoldenGate 安裝

來源:互聯網
上載者:User

標籤:goldengate 安裝簡介

GoldenGate是業內成熟的資料容災與複製產品,1995GoldenGate公司成立於1995年美國加州舊金山。2009年被Oracle公司收購。

優點:零宕機時間資料庫升級和遷移、快速即時資料同步、實現資料高可用性、減小故障恢複應急風險。

GG和DG區別:GG是邏輯層級上的資料同步,支援不同平台資料庫軟體,DG是塊層級上的資料同步,不支援不同資料庫軟體平台。


GoldenGate技術架構:

源端:抓取進程(extract)初始資料裝載階段,直接從資料表中抽取資料,同步階段從redolog日誌中抓取變更資訊並產生trail檔案,通過DataPump將變更資訊(DDL和DML)傳輸到目標端。

目標端:收集進程(Collector)將傳輸過來的資料庫重新組裝成trail檔案,然後應用進程(Relicat)負載讀取trail檔案,並將其解析為DML或DDL語句,應用到目標資料庫上。

源端進程和目標端進程都是通過Manager進程管理的。


複製模式:單向複製、雙向複製、點對點、廣播複製等


安裝軟體:

1:http://www.oracle.com/technetwork/cn/middleware/goldengate/downloads/index.html 

   下載合適平台版本的GG軟體。

2:oracle開啟歸檔模式:select log_mode from v$database;

                       shutdown immediate

                       startup mount

                       alter database archivelog

                       alter database open;

(最好修改歸檔模式 alter database set log_archive_format=‘%t_%s_%r.arc‘)

3: 建立相應檔案夾 : mkdir /u01/app/goldengate

                    chmod oracle.oinstall /u01/app/goldengate

4: 解壓軟體 cd /u01/app/goldengate

            unzip ogg.zip

            mkdir 112101

            tar xvf ....

5: 設定環境變數  vi /home/oracle/.bash_profile

                 export GG_HOME=/u01/app/goldengate/112101

                 export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$GG_HOME:$LD_LIBRART_PATH

                 . ~/.bash_profile

6: 初始化 $GG_HOME/ggsci

          GGSCI>crate subdirs

          GGSCI>exit

7: 建立gg系統管理使用者 create tablespace ggdate datafile ‘.....‘ size 200m;

                  create user ggm identified by oracle default tablespace ggdate;

                  grant dba to ggm;

8: 組態管理進程: GGSCI> edit params mgr

                          info  mgr

                          start mgr

9: 添加附加日誌:select supplementa...  from v$database

                 alter database add supplemental log date;

                GGSCI> dblogin useid ggm

                       list tables scott.*

                       info trandata scott.*

                       add trandata scott.*


本文出自 “dba” 部落格,請務必保留此出處http://duancr123.blog.51cto.com/7644884/1744229

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.