日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Oracle goldengate通用配置

發布時間:2025/3/17 编程问答 20 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Oracle goldengate通用配置 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

一、理論


source


ADD EXTRACT <ext>, TRANLOG, BEGIN <time>, [, THREADS]


ADD EXTTRAIL <local_trail>, EXTRACT <ext>



EDIT PARAMS <ext>


-- Identify the Extract group:


EXTRACT <ext>


-- Specify database login information as needed for the database:


[SOURCEDB <dsn_1>,][USERID <user>[, PASSWORD <pw>]]


-- Specify the local trail that this Extract writes to:


EXTTRAIL <local_trail>


-- Specify tables to be captured:


TABLE <owner>.<table>;



ADD EXTRACT <pump_1>, EXTTRAILSOURCE <local_trail>, BEGIN <time>


ADD RMTTRAIL <remote_trail_1>, EXTRACT <pump_1>



EDIT PARAMS <pump_1>


-- Identify the data pump group:


EXTRACT <pump_1>


-- Specify database login information as needed for the database:


[SOURCEDB <dsn_1>,][USERID <user>[, PASSWORD <pw>]]


-- Specify the name or IP address of the first target system:


RMTHOST <target_1>, MGRPORT <portnumber>


-- Specify the remote trail on the first target system:


RMTTRAIL <remote_trail_1>


-- Allow mapping, filtering, conversion or pass data through as-is:


[PASSTHRU | NOPASSTHRU]


-- Specify tables to be captured:


TABLE <owner>.<table>;


target


edit params ./GLOBALS


CHECKPOINTTABLE <owner>.<tablename>



ADD REPLICAT <rep_1>, EXTTRAIL <remote_trail_1>, BEGIN <time> checkpointtable <owner>.<tablename>



edit params <rep_1>


-- Identify the Replicat group:


REPLICAT <rep_1>


-- State whether or not source and target definitions are identical:


SOURCEDEFS <full_pathname> | ASSUMETARGETDEFS


-- Specify database login information as needed for the database:


[TARGETDB <dsn_3>,] [USERID <user id>[, PASSWORD <pw>]]


-- Specify error handling rules:


REPERROR (<error>, <response>)


-- Specify tables for delivery:


MAP <owner>.<table>, TARGET <owner>.<table>[, DEF <template name>];


二、配置實例


source


add extract extl,tranlog,begin now


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


ADD TRANDATA chf.objce_t



edit params extl


extract extl


SETENV (NLS_LANG = "AMERICAN_AMERICA.ZHS16GBK")


userid ogg,password xifenfei


exttrail /u01/ogg/dirdat/rl


dynamicresolution


gettruncates


table chf.objce_t;



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


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



edit params pump1


extract pump1


SETENV (NLS_LANG = "AMERICAN_AMERICA.ZHS16GBK")


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



ADD CHECKPOINTTABLE ogg.chkpoint



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



edit repl


replicat repl


SETENV (NLS_LANG = "AMERICAN_AMERICA.ZHS16GBK")


userid ogg,password xifenfei


assumetargetdefs


reperror default,discard


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


gettruncates


map chf.objce_t, target chf.objce_t;


oracle視頻教程請關注:http://u.youku.com/user_video/id_UMzAzMjkxMjE2.html

轉載于:https://blog.51cto.com/19880614/1276230

新人創作打卡挑戰賽發博客就能抽獎!定制產品紅包拿不停!

總結

以上是生活随笔為你收集整理的Oracle goldengate通用配置的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。