首页 > 其他 > 详细

ogg-配置添加新表

时间:2021-01-15 13:07:46      阅读:43      评论:0      收藏:0      [点我收藏+]

源端:192.168.214.145

目标端:192.168.214.139

 

源端

GGSCI (bogon) 1> info all

Program     Status      Group       Lag           Time Since Chkpt

MANAGER     RUNNING                                           
EXTRACT     RUNNING     EXT1        00:00:00      00:00:03    
EXTRACT     RUNNING     PUMP1       00:00:00      00:00:01    


GGSCI (bogon) 2> view params mgr

port 7809


GGSCI (bogon) 3> view params ext1

EXTRACT ext1
SETENV (NLS_LANG="AMERICAN_AMERICA.ZHS16GBK")
--SETENV (ORACLE_SID = "orcl")
SETENV (ORACLE_HOME = /data/oracle/product/11.2.0/db_1)
USERID ogg, PASSWORD ogg
THREADOPTIONS MAXCOMMITPROPAGATIONDELAY 20000
EXTTRAIL ./dirdat/et
DYNAMICRESOLUTION
--DDL INCLUDE ALL
TABLE songhongjun.t;
TABLE songhongjun.k;


GGSCI (bogon) 4> view params pump1

EXTRACT pump1
RMTHOST 192.168.214.139, MGRPORT 7809
RMTTRAIL ./dirdat/et
PASSTHRU
DYNAMICRESOLUTION
TABLE songhongjun.t;
TABLE songhongjun.k;

打开表级附加日志

dblogin userid ogg password ogg

add trandata songhongjun.t

add trandata songhongjun.k

 

目标端:

GGSCI (bogon) 2> info all

Program     Status      Group       Lag           Time Since Chkpt

MANAGER     RUNNING                                           
REPLICAT    RUNNING     REP1        00:00:00      00:00:05    


GGSCI (bogon) 3> view params mgr

port 7809


GGSCI (bogon) 4> view params rep1

REPLICAT rep1
setenv (ORACLE_SID=orcl)
SETENV (ORACLE_HOME = "/data/oracle/product/11.2.0/db_1")
USERID ogg,PASSWORD ogg
ASSUMETARGETDEFS
HANDLECOLLISIONS
REPERROR (DEFAULT, DISCARD)
DDLERROR DEFAULT DISCARD
DDLOPTIONS REPORT
DISCARDFILE ./dirrpt/repr1.dsc,append,megabytes 100
MAP songhongjun.t, TARGET songhongjun.t;
MAP songhongjun.k, TARGET songhongjun.k;


GGSCI (bogon) 5>

 

ogg-配置添加新表

原文:https://www.cnblogs.com/redarmy/p/14280962.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!