Q5:

After imp data to target, when we start replc process, we find the following error:

2011-11-10 09:02:52  GGS WARNING     218  Oracle GoldenGate Delivery for Oracle, replc.prm:  Aborted grouped transaction on 'IPS2.TI

PS_TRD_UNATTACH', Database error 1 (ORA-00001: unique constraint (IPS2.PK_TIPS_TRD_UNATTACH) violated).

2011-11-10 09:02:52  GGS WARNING     218  Oracle GoldenGate Delivery for Oracle, replc.prm:  Repositioning to rba 38076530 in seqno

4468.

2011-11-10 09:02:52  GGS WARNING     218  Oracle GoldenGate Delivery for Oracle, replc.prm:  SQL error 1 mapping IPS2.TIPS_TRD_UNATT

ACH to IPS2.TIPS_TRD_UNATTACH OCI Error ORA-00001: unique constraint (IPS2.PK_TIPS_TRD_UNATTACH) violated (status = 1), SQL <INSERT

INTO "IPS2"."TIPS_TRD_UNATTACH" ("PAYORDERID","PAYTIME","MERCHANTSID","PARTNERID","GOODSNAME","GOODSDESC","MP","RESERVED1","RESERVED

2","PAYCHANNELTYPE","PAYCHANNELID","NOTIFYID","SERVICETYPE",">.

2011-11-10 09:02:52  GGS WARNING     218  Oracle GoldenGate Delivery for Oracle, replc.prm:  Repositioning to rba 38076530 in seqno

4468.

2011-11-10 09:02:52  GGS ERROR       218  Oracle GoldenGate Delivery for Oracle, replc.prm:  Error mapping from IPS2.TIPS_TRD_UNATTA

CH to IPS2.TIPS_TRD_UNATTACH.

2011-11-10 09:02:52  GGS ERROR       190  Oracle GoldenGate Delivery for Oracle, replc.prm:  PROCESS ABENDING.

2011-11-10 09:09:59  GGS ERROR       190  Oracle GoldenGate Command Interpreter for Oracle:  Received signal: Program termination (1

5).

2011-11-10 09:09:59  GGS ERROR       190  Oracle GoldenGate Command Interpreter for Oracle:  PROCESS ABENDING.

 

 

A5:

Add handlecollisions or enable handlecollisions to replc parameter. When the errors are disappeared, then disable handlecollisions.

The concept of handlecollisions:

Replicat

Use the HANDLECOLLISIONS and NOHANDLECOLLISIONS parameters to control whether or not

Replicat tries to resolve duplicate-record and missing-record errors when applying SQL on

the target. These errors can occur during an initial load, when data from source tables is

being loaded to target tables while GoldenGate is replicating transactional changes that

are being made to those tables. When GoldenGate applies the replicated changes after the

load is finished, HANDLECOLLISIONS causes Replicat to overwrite duplicate records in the

target tables and provides alternate handling of errors for missing records.

You can use HANDLECOLLISIONS and NOHANDLECOLLISIONS in the following ways:

● You can use either HANDLECOLLISIONS or NOHANDLECOLLISIONS at the root level of the

parameter file to affect all MAP statements.

● You can use HANDLECOLLISIONS and NOHANDLECOLLISIONS as on-off switches for groups of

tables to enable or disable error handling as needed. One remains in effect for all

subsequent MAP statements until the other is encountered.

● You can use HANDLECOLLISIONS and NOHANDLECOLLISIONS within a MAP statement to enable

and disable the functionality for a specific table. See page 204.

Any of the preceding methods can be combined. The use within a MAP statement overrides

other settings. The use as a toggle overrides a global setting. For example, you could have

a global NOHANDLECOLLISIONS setting, and then use HANDLECOLLISIONS within MAP statements

to enable it only for certain tables.

 

http://blog.sina.com.cn/s/blog_4d22b9720100zvof.html

转 OGG Troubleshooting-Database error 1 (ORA-00001: unique constraint ...)的更多相关文章

  1. Troubleshooting ORA-30013 Error (Doc ID 1578717.1)

    Troubleshooting ORA-30013 Error (Doc ID 1578717.1) APPLIES TO: Oracle Database - Enterprise Edition ...

  2. zabbix3.2 报错 Database error

    一.Database errorThe frontend does not match Zabbix database. Current database version (mandatory/opt ...

  3. SQL Server database – Error 3743

    Database mirroring must be removed before you drop SQL Server database – Error 3743 If you try to dr ...

  4. zabbix3.2升级3.4报错Database error

    摘要: zabbix3.2版本升级到zabbix3.4版本后打开页面报错,报错内容如下 Database errorThe frontend does not match Zabbix databas ...

  5. Master Note: Troubleshooting ORA-1548 error (Doc ID 1577988.1)

    APPLIES TO: Oracle Database Cloud Schema Service - Version N/A and laterOracle Database Exadata Clou ...

  6. mysql grep database error(cannot rmdir /dbname)

    service mysql stop cd /var/lib/mysql/dbname rm -rf .fmr rm -rf .txt service mysql start srop databas ...

  7. 解决;R语言使用sqldf库是报错"Failed to connect to database: Error: Access denied for user '..'@'localhost' (using password: NO) Error in !dbPreExists : invalid argument type"

    原因:在使用sqldf时,不需要加载RMySQL库 解决方案:在控制台执行释放RMySQL库加载 detach("package:RMySQL", unload=T);

  8. SQLServer -- SQL Server Database Error: 内部 SQL Server 错误

    报表在SQLserver2008运行统计正常,但是在SQLserver2000运行报错,SQL直接执行报:内部 SQL Server 错误. 不断的排查,最终得到的结论是:SQLserver2000似 ...

  9. discuz 访问 Discuz! Database Error(2002) notconnect

    网站四五年了,今天突然访问,提示这个错误,在通过阿里云后台查看 CPU 一直处于100%,通过xshell 登录 OK 先看下数据库 不能重启,原来是数据库日志被写满了. /var/log/httpd ...

随机推荐

  1. putty software caused connection abort

    错误现象:在非常短的时间内就失去连接.并报"Software caused connection abort" 解决的方法:首先得排除是网络不是不通畅.假设在局域网中要确定IP没有 ...

  2. centos笔记-安装特定版本的mysql

    centos6的yum默认安装的mysql是5.1版, 如果要安装5.6.16 版,有三个办法 1.yum方式, 这个方式的好处是通过yum安装卸载都很方便,坏处是版本无法详细制定,比如官方版本yum ...

  3. spark通信原理

    https://github.com/apache/spark/tree/master/core/src/main/scala/org/apache/spark/network https://git ...

  4. SpringMVC+ajaxFileUpload上传图片 IE浏览器弹下载框问题解决方式

    如题,简单记录一下这个问题的解决的方法,导致问题的核心原因是:ajaxfileupload不支持响应头ContentType为application/json的设置.而且IE也不支持这样的格式,而当我 ...

  5. log4j 路径环境变量配置和log4j加载配置

    1.lo4j日志路径从环境变量读取,log4j.xml配置如下: 具体配置如下: log4j.appender.R.Encoding=UTF-8 log4j.appender.R=org.apache ...

  6. 一个简单的servlet

    1.创建一个自己的servlet文件,继承HttpServlet MyServlet.java package com.jmu.ccjoin.controller; import java.io.IO ...

  7. [RK3288][Android6.0] 调试笔记 --- pmu(rk818)寄存器读写【转】

    本文转载自:http://blog.csdn.net/kris_fei/article/details/76919134 Platform: Rockchip OS: Android 6.0 Kern ...

  8. SDUT 周赛 神奇的树(简单题 注意数据类型的溢出 )

    神奇的树 Time Limit: 1000ms   Memory limit: 65536K  有疑问?点这里^_^ 题目描述 SDUT有一颗神奇的苹果树.假如某天早上这树上有x个苹果,那么这树这一天 ...

  9. Java语言基础二

      1.常量的概述和使用 A:什么是常量 B:Java中常量的分类 常量分类为六种:a.”字符串” b.’字符’ c.整数 d.小数 e.boolern(布尔类型) 返回值为 FALSE和TRUE   ...

  10. hdu 1963 Investment 解题报告

    题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1963 题目意思:有 本金 money,还有一些股票的种类,第 i 种股票买入需要 value[i] 这 ...