1.启动复制时报

"ERROR OGG-15050 Oracle GoldenGate Delivery, l***.prm: Error loading Java VM runtime library: (2 No such file or directory)."

设置环境变量LD_LIBRARY_PATH,然后重启mgr,再启动rhdfs.如果不重启mgr直接启动rhdfs,则会报这个错


2. 对主键的修改无法更新,但是通过在复制上加
ERROR 2016-07-30 14:47:40,180 [main] The Delimited Text Formatter encountered a update including a primary key. The behavior is configured to ABEND in this scenario.
ERROR 2016-07-30 14:47:40,181 [main] The Delimited Text Formatter formatOp operation failed.
java.lang.RuntimeException: The Delimited Text Formatter encountered a update including a primary key. The behavior is configured to ABEND in this scenario.
at oracle.goldengate.format.text.DelimitedTextFormatter.formatOp(DelimitedTextFormatter.java:427)
at oracle.goldengate.handler.flume.FlumeHandler.formatOp(FlumeHandler.java:275)
at oracle.goldengate.handler.flume.FlumeHandler.operationAdded(FlumeHandler.java:136)
at oracle.goldengate.datasource.DsEventManager$3.send(DsEventManager.java:439)
at oracle.goldengate.datasource.DsEventManager$EventDispatcher.distributeEvent(DsEventManager.java:231)
at oracle.goldengate.datasource.DsEventManager.fireOperationAdded(DsEventManager.java:447)
at oracle.goldengate.datasource.AbstractDataSource.fireOperationAdded(AbstractDataSource.java:464)
at oracle.goldengate.datasource.UserExitDataSource.addOperationToTransactionAndFireEvent(UserExitDataSource.java:1337)
at oracle.goldengate.datasource.UserExitDataSource.createOperation(UserExitDataSource.java:1305)
at oracle.goldengate.datasource.UserExitDataSource.createOperation(UserExitDataSource.java:1096)
xxxxxxxxxx
13
 
1
ERROR 2016-07-30 14:47:40,180 [main] The Delimited Text Formatter encountered a update including a primary key.  The behavior is configured to ABEND in this scenario.
2
ERROR 2016-07-30 14:47:40,181 [main] The Delimited Text Formatter formatOp operation failed.
3
java.lang.RuntimeException: The Delimited Text Formatter encountered a update including a primary key.  The behavior is configured to ABEND in this scenario.
4
        at oracle.goldengate.format.text.DelimitedTextFormatter.formatOp(DelimitedTextFormatter.java:427)
5
        at oracle.goldengate.handler.flume.FlumeHandler.formatOp(FlumeHandler.java:275)
6
        at oracle.goldengate.handler.flume.FlumeHandler.operationAdded(FlumeHandler.java:136)
7
        at oracle.goldengate.datasource.DsEventManager$3.send(DsEventManager.java:439)
8
        at oracle.goldengate.datasource.DsEventManager$EventDispatcher.distributeEvent(DsEventManager.java:231)
9
        at oracle.goldengate.datasource.DsEventManager.fireOperationAdded(DsEventManager.java:447)
10
        at oracle.goldengate.datasource.AbstractDataSource.fireOperationAdded(AbstractDataSource.java:464)
11
        at oracle.goldengate.datasource.UserExitDataSource.addOperationToTransactionAndFireEvent(UserExitDataSource.java:1337)
12
        at oracle.goldengate.datasource.UserExitDataSource.createOperation(UserExitDataSource.java:1305)
13
        at oracle.goldengate.datasource.UserExitDataSource.createOperation(UserExitDataSource.java:1096)
Logdump 25 >pos 14848654
Reading forward from RBA 14848654
Logdump 26 >n
___________________________________________________________________
Hdr-Ind : E (x45) Partition : . (x04)
UndoFlag : . (x00) BeforeAfter: A (x41)
RecLength : 147 (x0093) IO Time : 2016/07/30 13:34:23.006.490
IOType : 115 (x73) OrigNode : 255 (xff)
TransInd : . (x03) FormatType : R (x52)
SyskeyLen : 0 (x00) Incomplete : . (x00)
AuditRBA : 13456 AuditPos : 525723664
Continued : N (x00) RecCount : 1 (x01)

2016/07/30 13:34:23.006.490 GGSPKUpdate Len 147 RBA 14848654

xxxxxxxxxx
14
 
1
Logdump 25 >pos 14848654
2
Reading forward from RBA 14848654 
3
Logdump 26 >n
4
___________________________________________________________________ 
5
Hdr-Ind    :     E  (x45)     Partition  :     .  (x04)  
6
UndoFlag   :     .  (x00)     BeforeAfter:     A  (x41)  
7
RecLength  :   147  (x0093)   IO Time    : 2016/07/30 13:34:23.006.490   
8
IOType     :   115  (x73)     OrigNode   :   255  (xff) 
9
TransInd   :     .  (x03)     FormatType :     R  (x52) 
10
SyskeyLen  :     0  (x00)     Incomplete :     .  (x00) 
11
AuditRBA   :      13456       AuditPos   : 525723664 
12
Continued  :     N  (x00)     RecCount   :     1  (x01) 
13

14
2016/07/30 13:34:23.006.490 GGSPKUpdate          Len   147 RBA 14848654 
REPLICAT RFLUME Last Started 2016-07-30 14:47 Status ABENDED
Checkpoint Lag 00:00:00 (updated 02:12:47 ago)
Log Read Checkpoint File /opt/ogg/dirdat/nn000000268
2016-07-30 13:34:20.005220 RBA 14732512
x
 
1

2
REPLICAT   RFLUME    Last Started 2016-07-30 14:47   Status ABENDED
3
Checkpoint Lag       00:00:00 (updated 02:12:47 ago)
4
Log Read Checkpoint  File /opt/ogg/dirdat/nn000000268
5
                     2016-07-30 13:34:20.005220  RBA 14732512

IOTPY:
捕获主键更新:


3.源表更新主键的问题
默认是会abend,可以配置为:

gg.handler.name.format.pkUpdateHandling

Optional

abend | update | delete-insert

abend

Provides configuration for how the formatter should handle update operations that change a primary key. Primary key operations can be problematic for the text formatter and require special consideration by you.


4.ERROR   OGG-01875  Classic Extract doesn't support RAC parallel direct load of table.
这个问题没弄清楚,抽取是DBA那边弄的.
参考这个:
https://community.oracle.com/thread/3942758

5.kafka handler
当使用tx模式时,如果做了partition,数据会随机的发送到某个partition中,而不是按表hash,导致数据丢失.
op模式时不会,数据按表进入特定的partition





























OGG 问题的更多相关文章

  1. 3.使用OGG进程进行初始化数据

    开始初始化数据的时候要满足下面的条件: 1.disable掉目标段表的外键约束 2.disable掉目标端表的触发器 3.删除目标段表的索引,加快初始化速度 4.目标端表结构创建完成 源端配置初始化抽 ...

  2. PostgreSQL的OGG -- bucardo

    bucardo是PostgreSQL数据库中实现双向同步的软件,可以实现PostgreSQL数据库的双master的方案,不过bucardo中的同步都是异步的,它是通过触发器记录变化,程序是perl写 ...

  3. OGG for DB2 z/OS 12.2版本发布

    2016-04-15 Oracle发布了GoldenGate for DB2 z/OS  12.2.0.1.2.可以从OTN或eDelivery下载,该版本是ogg for DB2 z/OS的第一个1 ...

  4. OGG for DB2 i 12.2发布

    2016-04-15 Oracle发布了GoldenGate for DB2 i 12.2.0.1.2,软件可以从OTN 或 eDelivery下载.这是第一个针对DB2 for i的12.2版本.此 ...

  5. Unity3D ogg下载并播放

    那天说了c#不好弄ogg和mp3的解码,然后就发现打脸了. 找到了一些开源的解码器,由于ogg的音质容量比要明显好于mp3,主要弄ogg的播放. 由于自带解码器,可以实现全平台下载并播放,甚至可以实现 ...

  6. 配置ogg目录索引-oracle与mysql的双向同步步骤

    以下几篇文章描述了利用ogg对oracle与mysql进行双向同步的配置过程以及注意事项,欢迎参考. 配置ogg异构oracle-mysql(1)基础环境配置 http://www.cnblogs.c ...

  7. 配置ogg异构mysql-oracle 单向同步

    从mysql到oracle和oracle到mysql差不多.大致步骤如下: 环境是:192.168.0.165 (Mysql ) —> 192.168.0.164 ( Oracle )想将mys ...

  8. 配置ogg异构oracle-mysql 双向同步注意事项

    双向同步需要考虑的是怎么解决循环复制,以及同时更新一张表以谁为基准. 配置过程就不写了,大致和oracle到mysql的单向+mysql到oracle的单向差不多. 需要注意的有如下几点: 1.ora ...

  9. 配置ogg异构oracle-mysql(3)目的端配置

    目的端配置大致分为如下三个步骤:配置mgr,配置checkpoint table,配置应用进程 在目的端先创建一张表,记得带主键: mysql> create database hr;Query ...

  10. 配置ogg异构oracle-mysql(2)源端配置

    源端配置大致分为如下三个步骤:配置mgr,配置抽取进程,配置投递进程 在源端先创建一张表,记得带主键: SQL> create table ah4(id int ,name varchar(10 ...

随机推荐

  1. jenkins -Djava.awt.headless=true Linux下java.awt.HeadlessException的解决办法

    修改 linux  apache-tomcat-7.0.56/bin \catalina.sh文件 在所有类似以下代码大约有七八处具体自己去看:    "$_RUNJAVA" $J ...

  2. Spring源码分析(七)bean标签的解析及注册

    摘要:本文结合<Spring源码深度解析>来分析Spring 5.0.6版本的源代码.若有描述错误之处,欢迎指正. 在上一篇中提到过Spring中的标签包括默认标签和自定义标签两种,而两种 ...

  3. P2854 [USACO06DEC]牛的过山车Cow Roller Coaster

    题目描述 The cows are building a roller coaster! They want your help to design as fun a roller coaster a ...

  4. SSH免密码登录远程linux服务器

    Linux下实现SSH无密码验证登陆 ssh配置 主机A:10.0.5.199 主机B:10.0.5.198 需要配置主机A无密码登录主机A,主机B 先确保所有主机的防火墙处于关闭状态. 在主机A上执 ...

  5. class和object_getClass方法区别

    一.概述 如上图: 1.内存创建一个instance实例对象(Person *per),同时会创建一个与之对应的类对象(Class perClass)和元类对象(Class perMeta); 注:实 ...

  6. POJ 1151 Atlantis 矩形面积求交/线段树扫描线

    Atlantis 题目连接 http://poj.org/problem?id=1151 Description here are several ancient Greek texts that c ...

  7. 使用Android studio搭建Android环境

    最近安装Android studio遇到了很多问题,现在总结一下安装过程 因为我的电脑是AMD的cpu,好像不能使用虚拟机(具体原因不知道),所以我使用 软件+手机  去开发APP 先说一下使用And ...

  8. 使用MATLAB工具deploytool打包不成功的解决办法

    下面解决方法是来自百度贴吧一抹伊静的解决办法,很好用,非常感谢,现记录下来以便后续查看: 这个问题是2014a 需要破解:下载一个破解文件,原因是matlab未完全破解,2014a的破解办法:http ...

  9. inux下进程的最大线程数、进程最大数、进程打开的文件数

    inux下进程的最大线程数.进程最大数.进程打开的文件数 2008-12-07 23:48 =========================    如下转载自这里. linux 系统中单个进程的最大 ...

  10. c++ goto语句

    #include <stdio.h> #include <math.h> int main(void) //main是程序入口 { int num; printf(" ...