转 OGG Troubleshooting-Database error 1 (ORA-00001: unique constraint ...)
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 ...)的更多相关文章
- Troubleshooting ORA-30013 Error (Doc ID 1578717.1)
Troubleshooting ORA-30013 Error (Doc ID 1578717.1) APPLIES TO: Oracle Database - Enterprise Edition ...
- zabbix3.2 报错 Database error
一.Database errorThe frontend does not match Zabbix database. Current database version (mandatory/opt ...
- SQL Server database – Error 3743
Database mirroring must be removed before you drop SQL Server database – Error 3743 If you try to dr ...
- zabbix3.2升级3.4报错Database error
摘要: zabbix3.2版本升级到zabbix3.4版本后打开页面报错,报错内容如下 Database errorThe frontend does not match Zabbix databas ...
- 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 ...
- 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 ...
- 解决;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);
- SQLServer -- SQL Server Database Error: 内部 SQL Server 错误
报表在SQLserver2008运行统计正常,但是在SQLserver2000运行报错,SQL直接执行报:内部 SQL Server 错误. 不断的排查,最终得到的结论是:SQLserver2000似 ...
- discuz 访问 Discuz! Database Error(2002) notconnect
网站四五年了,今天突然访问,提示这个错误,在通过阿里云后台查看 CPU 一直处于100%,通过xshell 登录 OK 先看下数据库 不能重启,原来是数据库日志被写满了. /var/log/httpd ...
随机推荐
- chmod|chown|chgrp和用法和区别
1.chgrp(改变文件所属用户组) chgrp 用户组 文件名 ###就是这个格了.如果整个目录下的都改,则加-R参数用于递归. 如:chgrp -R user smb.conf 2.c ...
- xamarin.android Activity之间跳转与传值
前言 由于需要,所以接触到这个新的安卓开发模式,我会把我的学习经历全都记录下来,希望对大家有用. 导读 关于Activity,学习过安卓的人也应该明白什么是Activity,推荐新手去看YZF的这篇文 ...
- Linux下编译安装源码包软件 configure ,make, make install, make test/check, make clean
http://www.360doc7.net/wxarticlenew/541275971.html 一.什么是源码包软件? 顾名思义,源码包就是源代码的可见的软件包,基于Linux和BSD系统的软件 ...
- 20170225-第三件事:FR0002测试
第三件事:FR0002测试 MATNR WERKS BERID 800000217 I010 问题,上for all entrys… 1 ...
- Mysql常见函数
一.单行函数 1.字符函数 concat拼接 substr截取子串 upper转换成大写 lower转换成小写 trim去前后指定的空格和字符 ltrim去左边空格 rtrim去右边空格 replac ...
- date 命令 时间戳到标准格式转换
1. 知道时间戳看标准时间, 时间戳到 秒: Wed Apr :: CST 2. 看到前时间时间戳格式 date +%s 3. 知道某个标准时间, 看时间戳 date -d "Wed Apr ...
- Python作业之购物商城
作业:购物商场 1.商品展示,价格 2.银行卡余额 3.付账 程序流程图如下: 代码如下: ShopDisplay = {'} print(ShopDisplay) ShoppingCartPrice ...
- Ubuntu安装mycli,让mysql命令行可以自动提示
安装mycli 1.确保有安装python 2.确保有安装pip 3.进入su模式,以管理员身份安装 4.安装 pip install -U mycli 5.登录 mycli -u root 很好很强 ...
- phpMVC框架的核心启动类定义
<?php//核心启动类class Framework { //定义一个run方法 public static function run(){ // echo "hello,wrold ...
- [Selenium] waitUntilAllAjaxRequestCompletes
private static final String JQUERY_ACTIVE_CONNECTIONS_QUERY = "return $.active == 0;"; pri ...