暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

ogg报错汇总

在路上 2025-01-09
160

1.ogg-01296 error mapping from scott.test to scott.test

原因:同步的源和目标表结构不一致,包括表字段和索引。还有数据不一致也会导致mapping错误,如源库要delete或update时,gg库找不到该条数据等。

处理:表字段不一致,修改表字段,异构数据库还需要重新生成表结构定义文件,然后重启进程。

索引不一致:重建索引,异构数据库还需要重新生成表结构定义文件,然后重启进程。

数据问题:先跳过该表的同步,然后重新同步该表

2.ogg-01403 no data found delete from xx where

原因:目标端复制进程abend,错误提示没有发现数据,说明目标端没有这条数据,导致delete无法执行

处理:从源端找到该条sql语句反插入目标库中,重启复制进程;或者配置参数增加handlecollisions,追平后取消掉

3.ogg-14402 updating partition key column would cause a partition change

原因:update操作更改了分区表的分区键的值导致该行迁移到其他分区中,而表的row movement默认情况禁用

处理:alter table xxx enable row movement; 重启复制进程。

4.ogg-01163 bad column length(36) specified for column xx in table xx,maximum allowable is 30;

原因:源端扩展了表字段,目标端没有同步进行,导致目标端报错

处理:目标端调整表结构和源端一致,重启复制进程

5.ogg-00730 no minimum supplemental logging is enabled

原因:要同步的表或数据库没有开启补充日志

处理:alter database add supplemental log data;

6.ogg-00396command "MAP' not terminated by semi-colon

原因:语法问题

处理:目标服务器edit params rep1 修改map命令,最后添加一个分号。

7.ogg-01194 table xxx does not exist in target database

原因:目标端未有同样表结构的表存在,导致无法进行数据同步

处理:源端获取建表ddl,然后再目标数据库创建空表。

8.ogg-00041 data source not specified

原因:未指定数据源

处理:edit params ext1 添加参数 extract ext1

9.ogg-02091 operation not supported because enable_goldengate_replication is not set to true

原因:复制未设置为true

处理:数据库操作:alter system set enable_godengate_replication=true

10.ogg-00868 the number of oracle redo threads2 is not the same as the number of checkpoint threads1

原因:oracle重做线程数2与检查点线程数1不同

处理:delete extract ext1 重新添加抽取进程:add extract ext1,tranlog,threads 2,begin now

11.ogg-00446 no valid log files for current redo sequence 22,thread1

原因:无法访问到asm上的日志

处理:抽取文件要加上参数 tranlogoptions dblogreader

12.ogg-01154 mapping xx to xx error unique constraint(pk)violated

原因:因为目标端insert的记录存在,并且有唯一性约束,导致插入重复

处理:1)跳过当前事务 2)目标端复制进程加入handlecollisions参数解决该问题。3)尝试手动修复目标端上的数据

补充中。。。。

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论