当前位置:  数据库>oracle

GoldenGate双向复制配置

    来源: 互联网  发布时间:2017-05-17

    本文导语: 一、双向复制节点2配置:1)添加附加的redolog信息 DBLOGIN USERID ogg, PASSWORD ogg ADD TRANDATA scott.* 2)配置extractGGSCI (cuug97) 11> EDIT PARAMS EORA_1 EXTRACT EORA_1SETENV (NLS_LANG=AMERICAN_AMERICA.ZHS16GBK)USERID ogg, PASSWORD oggTRANLOGOPTIONS EXCLUDEUSER ogg (双向...

一、双向复制节点2配置:
1)添加附加的redolog信息
 DBLOGIN USERID ogg, PASSWORD ogg
 
ADD TRANDATA scott.*
 
2)配置extract
GGSCI (cuug97) 11> EDIT PARAMS EORA_1

EXTRACT EORA_1
SETENV (NLS_LANG=AMERICAN_AMERICA.ZHS16GBK)
USERID ogg, PASSWORD ogg
TRANLOGOPTIONS EXCLUDEUSER ogg (双向复制的配置关键)
EXTTRAIL ./dirdat/aa
TABLE scott.*;


GGSCI (cuug97) 11> ADD EXTRACT EORA_1, TRANLOG, BEGIN NOW
EXTRACT added.

GGSCI (cuug97) 12> ADD EXTTRAIL ./dirdat/aa, EXTRACT EORA_1, MEGABYTES 5
EXTTRAIL added.

GGSCI (cuug97) 13> START EXTRACT EORA_1

3)配置pump进程
GGSCI (cuug97) 15> EDIT PARAMS PORA_1

EXTRACT PORA_1
SETENV (NLS_LANG=AMERICAN_AMERICA.ZHS16GBK)
PASSTHRU
RMTHOST cuug95, MGRPORT 7809
RMTTRAIL ./dirdat/pa
TABLE scott.*;


GGSCI (cuug97) 16> ADD EXTRACT PORA_1, EXTTRAILSOURCE ./dirdat/aa
EXTRACT added.

GGSCI (cuug97) 17> ADD RMTTRAIL ./dirdat/pa, EXTRACT PORA_1, MEGABYTES 5
RMTTRAIL added.


GGSCI (cuug97) 18> START EXTRACT PORA_1


4、第一节点(原来的源数据库)
1、配置checkpoint

GGSCI (cuug95) 1> EDIT PARAMS ./GLOBALS
CHECKPOINTTABLE ogg.ggschkpt

GGSCI (cuug95) 1> exit

GGSCI (cuug95) 1> DBLOGIN USERID ogg, PASSWORD ogg
Successfully logged into database.

GGSCI (cuug95) 2> ADD CHECKPOINTTABLE

2、配置replicate
GGSCI (cuug95) 4> EDIT PARAM RORA_1

REPLICAT RORA_1
SETENV (NLS_LANG=AMERICAN_AMERICA.ZHS16GBK)
USERID ogg, PASSWORD Ogg
HANDLECOLLISIONS
ASSUMETARGETDEFS
DISCARDFILE ./dirrpt/RORA_aa.DSC, PURGE
MAP scott.*, TARGET scott.*;

GGSCI (cuug95) 4> ADD REPLICAT RORA_1, EXTTRAIL ./dirdat/pa

GGSCI (cuug95) 6> START REPLICAT RORA_1


    
 
 

您可能感兴趣的文章:

 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,