ogg mysql表结构发生变化_【OGG-01161】源端表结构发生变化导致replicat进程abend

错误日志如下:

2014-05-21 09:31:34  ERROR   OGG-01161 Oracle GoldenGate Delivery for Oracle, rephh1.prm:  Bad column index (35) specified for tableHH.INFO, max columns = 35.

2014-05-21 09:31:34  ERROR  OGG-01668  Oracle GoldenGateDelivery for Oracle, rephh1.prm:  PROCESSABENDING.

OGG-01161: Bad column index ({2,number,0}) specified for table {0}, max columns = {1,number,0}. Cause: Oracle GoldenGate encountered a reference to a column ordinal that is not within an expected range. Action: Verify that the definitions for the specified table are correct, and verify the correctness of the MAP statement for the specified table.

OGG-01161错误是因为源表结构发生了变化,导致同步出错。

如果源端与目标端同构,则检查两端表的结构是否一致,索引等是否一致。

如果源端与目标端异构,且目标端使用了sourcedefs参数,则需要在源端重新生成def定义文件传送到目标端。

源端生成定义文件:

[oracle@goldengate]$ defgen paramfile dirprm/defgen.prm

[oracle@goldengate]$ scp hh.def 192.168.131.11:/ggs/dirdef/

目标端启动进程:

GGSCI (ggs) 5>start rephh1

Sending START request toMANAGER ...

REPLICAT REPHH1 starting

GGSCI (ggs) 6>info all

Program     Status     Group       Lag           Time Since Chkpt

MANAGER     RUNNING

REPLICAT    RUNNING    REPHH1      00:00:00      00:00:00

Sharon

20140521

-----------------------------------------------------------------------------------------------------

转载须注明出处与链接!!!!

转载须注明出处与链接!!!!

转载须注明出处与链接!!!!

转载须注明出处与链接!!!!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值