Oracle技術:使用goldengate同步oracle

來源:互聯網
上載者:User

一、source端

add extract extl,tranlog,begin now

ADD EXTTRAIL /u01/ogg/dirdat/lr, EXTRACT EXTL

ADD TRANDATA chf.objce_t

edit params extl

extract extl

userid ogg,password xifenfei

exttrail /u01/ogg/dirdat/lr

dynamicresolution

gettruncates

table chf.objce_t;

ADD EXTRACT pump1, EXTTRAILSOURCE /u01/ogg/dirdat/lr, BEGIN now

add rmttrail /u01/ogg/dirdat/rl extract pump1

edit params pump1

extract pump1

userid ogg, password xifenfei

rmthost 192.168.1.111, mgrport 7809

rmttrail /u01/ogg/dirdat/rl

PASSTHRU

gettruncates

table chf.objce_t;

二、target端

edit params ./GLOBALS

CHECKPOINTTABLE ogg.chkpoint

dblogin userid ogg,password xifenfei

ADD CHECKPOINTTABLE ogg.chkpoint

更多精彩內容:http://www.bianceng.cnhttp://www.bianceng.cn/database/Oracle/

add replicat repl exttrail /u01/ogg/dirdat/rl,begin now,checkpointtable ogg.chkpoint

edit  params repl

replicat repl

userid ogg,password xifenfei

assumetargetdefs

reperror default,discard

discardfile /tmp/repsz.dsc,append,megabytes 100

gettruncates

map chf.objce_t, target chf.objce_t;

作者:51cto Oracle小混子

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.