【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



 

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

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

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

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

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





你可能感兴趣的:(Oracle,GoldenGate,oracle错误,oracle,troubleshooting)