ITPub博客

首页 > 数据库 > Oracle > goldengate同步中文表名列名的测试

goldengate同步中文表名列名的测试

原创 Oracle 作者:msdnchina 时间:2011-10-25 09:12:07 0 删除 编辑

注意:

1.scott.TESTTAB 是table,此表的表结构跟scott.测试表1一致,只是scott.testtab表不含有中文列,不含有中文表名。

2.ALTID 58716; 后边的数字是scott.测试表1的object_id


3.scott2.testv 是view,此视图的视图结构跟scott2.测试表1一致,只是scott2.testv中不含有中文列,不含有中文表名。



ext的参数文件:


extract scottext
setenv ( ORACLE_SID = LEI )
setenv ( NLS_LANG = "AMERICAN_AMERICA.ZHS16GBK" )
tranlogoptions asmuser sys@ASM, asmpassword aaaaaa
userid LC0049999@lei, password aaaaaa
ddl include objname "SCOTT.*" exclude objname "scott.测试表1"
ddloptions addtrandata
exttrail e:ggggv11oradirdatxx
WILDCARDRESOLVE DYNAMIC
table scott.测试表1;
table scott.bonus;
MAP scott.TESTTAB, ALTID 58716;



dp的参数文件:
extract scottdp
passthru
rmthost 192.168.0.19, mgrport 7809
rmttrail e:ggxx
gettruncates
table scott.TESTTAB;
table scott.bonus;
--MAP scott.TESTTAB, ALTID 58716;



rep的参数文件:

replicat scottrep
setenv ( ORACLE_SID = LEI )
setenv ( NLS_LANG = "AMERICAN_AMERICA.ZHS16GBK" )
assumetargetdefs
DBOPTIONS DEFERREFCONST
ddl include objname "SCOTT2.*"
gettruncates
applynoopupdates
userid goldengate, password oracle
map scott.testtab, target scott2.testv;
map scott.bonus, target scott2.bonus;




[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/161195/viewspace-1055925/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: linux nfs实践
请登录后发表评论 登录
全部评论

注册时间:2008-07-30

  • 博文量
    498
  • 访问量
    1542055