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. C#版谷歌地图下载器设计与实现

    关于如何将地球经纬度坐标系统转换成程序中常用到的平面2D坐标系统,网上的文章很多,参考http://www.cnblogs.com/beniao/archive/2010/04/18/1714544. ...

  2. 中国气象网 气象数据开放平台 API用法 (Android)

    因为要做个天气应用.须要找个天气的API.上网上搜了下都是那几个,并且基本都过时了.百度有个天气API,只是貌似仅仅能提供当天的.网上提到的中国气象接口的文章,大都用的时旧API,有的被封了,有的永远 ...

  3. 【jq】插件—缓存jquery.cookie.js

    jquery.cookie.js插件   轻量级cookie管理 1°下载地址:http://plugins.jquery.com/cookie/ 2°引入方式:(基于jquery) <scri ...

  4. dategate的用法

    菜鸟教程上的说法是这样: delegate() 方法为指定的元素(属于被选元素的子元素)添加一个或多个事件处理程序,并规定当这些事件发生时运行的函数. 使用 delegate() 方法的事件处理程序适 ...

  5. windows下beautifulsoup使用lxml解析使用报错

    s4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need ...

  6. spark 基础开发 Tips总结

    本篇博客主要是 sparksql 从初始开发注意的一些基本点以及力所能及的可优化部分的介绍: 所使用spark版本:2.0.0       scala版本:2.11.8 1. SparkSession ...

  7. 【转载】WCF 客户端识别认证之UserName认证

    原文地址: http://blog.csdn.net/zxz414644665/article/details/9308055 过程:用户调用service,服务端验证用户传来的用户名和密码(传输过程 ...

  8. 大数据入门第八天——MapReduce详解(四)本地模式运行与join实例

    一.本地模式调试MR程序 1.准备 参考之前随笔的windows开发说明处:http://www.cnblogs.com/jiangbei/p/8366238.html 2.流程 最重要的是设置Loc ...

  9. c# multi-ply download ui

    first neet add an user control "DownloadBar": /* Created by SharpDevelop. User: gwang Date ...

  10. webservice的 发布

    webservice的 发布一般都是使用WSDL(web service descriptive language)文件的样式来发布的,在WSDL文件里面,包含这个webservice暴露在外面可供使 ...