GoldenGate configuration CLOB type synchronization

2024-02-01 09:18

本文主要是介绍GoldenGate configuration CLOB type synchronization,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

在GoldenGate的DML同步中,如果字段类型包含CLOB,必须在源端的extract参数文件中添加以下参数

TRANLOGOPTIONS CONVERTUCS2CLOBS

GGSCI (gg01) 19> VIEW params eorajjEXTRACT EORAJJ
USERID system, PASSWORD oracle
RMTHOST gg02, MGRPORT 7809
RMTTRAIL /u01/app/oracle/goldengate/dirdat/jjDDL INCLUDE ALL
DDLOPTIONS ADDTRANDATA,REPORTTRANLOGOPTIONS CONVERTUCS2CLOBSTABLE scott.*;
SEQUENCE scott.*;

源端操作

SCOTT@gg01:~>create table t_clob(tid integer primary key,c_clob clob);Table created.SCOTT@gg01:~>insert into t_clob values(1,'TEST');1 row created.SCOTT@gg01:~>commit;Commit complete.SCOTT@gg01:~>set linesize 200
SCOTT@gg01:~>select * from t_clob;TID C_CLOB
---------- --------------------------------------------------------------------------------1 TEST

目标端

SCOTT@gg02:~>SELECT tname FROM tab;TNAME
------------------------------
DEPT
EMP
BONUS
SALGRADE
T_ZWC
T_CLOB6 ROWS selected.SCOTT@gg02:~>SELECT * FROM t_clob;TID C_CLOB
---------- --------------------------------------------------------------------------------1 TEST

[oracle@gg02 goldengate]$ logdump Oracle GoldenGate Log File Dump Utility
Version 10.4.0.19 Build 002Copyright (C) 1995, 2009, Oracle AND/OR its affiliates.  ALL rights reserved.Logdump 23 >OPEN /u01/app/oracle/goldengate/dirdat/jj000003
CURRENT LogTrail IS /u01/app/oracle/goldengate/dirdat/jj000003 
Logdump 24 >ghdr ON
Logdump 25 >headertoken ON
Logdump 26 >usertoken ON
Logdump 27 >detail ON
Logdump 28 >detail DATA
Logdump 29 >n
TokenID x46 'F' Record Header    Info xff80  LENGTH  927 
TokenID x30 '0' TrailInfo        Info x00  LENGTH  442 
TokenID x31 '1' MachineInfo      Info x00  LENGTH   85 
TokenID x32 '2' DatabaseInfo     Info x00  LENGTH  283 
TokenID x33 '3' ProducerInfo     Info x00  LENGTH   81 
TokenID x34 '4' ContinunityInfo  Info x00  LENGTH    8 
TokenID x5a 'Z' Record Trailer   Info xff80  LENGTH  927 2012/01/15 16:58:18.278.866 FileHeader           Len   919 RBA 0 
Name: *FileHeader* 3000 01ba 3000 0008 4747 0d0a 544c 0a0d 3100 0002 | 0...0...GG..TL..1...  0002 3200 0004 ffff fffd 3300 0008 02f1 dcc0 c151 | ..2.......3........Q  2fd2 3400 0025 0023 7572 693a 6767 3031 3a3a 7530 | /.4..%.#uri:gg01::u0  313a 6170 703a 6f72 6163 6c65 3a67 6f6c 6465 6e67 | 1:app:oracle:goldeng  6174 6536 0000 2c00 2a2f 7530 312f 6170 702f 6f72 | ate6..,.*/u01/app/OR  6163 6c65 2f67 6f6c 6465 6e67 6174 652f 6469 7264 | acle/goldengate/dird  6174 2f6a 6a30 3030 3030 3337 0000 0101 3800 0004 | at/jj0000037....8...  Logdump 30 >n
TokenID x47 'G' Record Header    Info x01  LENGTH   61 
TokenID x48 'H' GHDR             Info x00  LENGTH   35 
TokenID x54 'T' GGS Tokens       Info x00  LENGTH   10 
TokenID x5a 'Z' Record Trailer   Info x01  LENGTH   61 
___________________________________________________________________ 
Hdr-Ind    :     E  (x45)     Partition  :     .  (x00)  
UndoFlag   :     .  (x00)     BeforeAfter:     A  (x41)  
RecLength  :     0  (x0000)   IO TIME    : 2012/01/15 16:58:25.307.836   
IOType     :   151  (x97)     OrigNode   :     0  (x00) 
TransInd   :     .  (x03)     FormatType :     R  (x52) 
SyskeyLen  :     0  (x00)     Incomplete :     .  (x00) 
AuditRBA   :          0       AuditPos   : 0 
Continued  :     N  (x00)     RecCount   :     0  (x00) 2012/01/15 16:58:25.307.836 RestartOK            Len     0 RBA 927 
Name:  
After  Image:                                             Partition 0   G  s   Logdump 31 >n
TokenID x47 'G' Record Header    Info x01  LENGTH  160 
TokenID x48 'H' GHDR             Info x00  LENGTH   47 
TokenID x44 'D' DATA             Info x00  LENGTH   47 
TokenID x54 'T' GGS Tokens       Info x00  LENGTH   46 
TokenID x5a 'Z' Record Trailer   Info x01  LENGTH  160 
___________________________________________________________________ 
Hdr-Ind    :     E  (x45)     Partition  :     .  (x04)  
UndoFlag   :     .  (x00)     BeforeAfter:     A  (x41)  
RecLength  :    47  (x002f)   IO TIME    : 2012/01/15 17:00:30.032.862   
IOType     :     5  (x05)     OrigNode   :   255  (xff) 
TransInd   :     .  (x03)     FormatType :     R  (x52) 
SyskeyLen  :     0  (x00)     Incomplete :     .  (x00) 
AuditRBA   :          4       AuditPos   : 10869684 
Continued  :     N  (x00)     RecCount   :     1  (x01) 2012/01/15 17:00:30.032.862 INSERT               Len    47 RBA 988 
Name: SCOTT.T_CLOB 
After  Image:                                             Partition 4   G  s   0000 0005 0000 0001 3100 0100 2200 0000 1e3c 4854 | ........1..."....TEST  3c2f 4854 4d4c 3e                                 |   
Column     0 (x0000), Len     5 (x0005)  0000 0001 31                                      | ....1  
Column     1 (x0001), Len    34 (x0022)  0000 001e 3c48 544d 4c3e 3c42 4f44 593e 5445 5354 | ....TEST  3c2f 424f 4459 3e3c 2f48 544d 4c3e                |


这篇关于GoldenGate configuration CLOB type synchronization的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!


原文地址:
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.chinasem.cn/article/666802

相关文章

Pycharm安装报错:Cannot detect a launch configuration解决办法

《Pycharm安装报错:Cannotdetectalaunchconfiguration解决办法》本文主要介绍了Pycharm安装报错:Cannotdetectalaunchconfigur... 本文主要介绍了Pycharm安装报错:Cannot detect a launch configuratio

MyBatis的配置对象Configuration作用及说明

《MyBatis的配置对象Configuration作用及说明》MyBatis的Configuration对象是MyBatis的核心配置对象,它包含了MyBatis运行时所需的几乎所有配置信息,这个对... 目录MyBATis配置对象Configuration作用Configuration 对象的主要作用C

MySQL 中的服务器配置和状态详解(MySQL Server Configuration and Status)

《MySQL中的服务器配置和状态详解(MySQLServerConfigurationandStatus)》MySQL服务器配置和状态设置包括服务器选项、系统变量和状态变量三个方面,可以通过... 目录mysql 之服务器配置和状态1 MySQL 架构和性能优化1.1 服务器配置和状态1.1.1 服务器选项

解决Spring运行时报错:Consider defining a bean of type ‘xxx.xxx.xxx.Xxx‘ in your configuration

《解决Spring运行时报错:Considerdefiningabeanoftype‘xxx.xxx.xxx.Xxx‘inyourconfiguration》该文章主要讲述了在使用S... 目录问题分析解决方案总结问题Description:Parameter 0 of constructor in x

Oracle type (自定义类型的使用)

oracle - type   type定义: oracle中自定义数据类型 oracle中有基本的数据类型,如number,varchar2,date,numeric,float....但有时候我们需要特殊的格式, 如将name定义为(firstname,lastname)的形式,我们想把这个作为一个表的一列看待,这时候就要我们自己定义一个数据类型 格式 :create or repla

Caused by: org.hibernate.MappingException: Could not determine type for: org.cgh.ssh.pojo.GoodsType,

MappingException:这个主要是类映射上的异常,Could not determine type for: org.cgh.ssh.pojo.GoodsType,这句话表示GoodsType这个类没有被映射到

How can I load the openai api configuration through js in html?

题意:怎样在HTML中通过JavaScript加载OpenAI API配置 问题背景: I am trying to send a request through js in my html so that openai analyzes it and sends a response, but if in the js I put the following: 我正在尝试通过HTM

兔子--The method setLatestEventInfo(Context, CharSequence, CharSequence, PendingIntent) from the type

notification.setLatestEventInfo(context, title, message, pendingIntent);     不建议使用 低于API Level 11版本,也就是Android 2.3.3以下的系统中,setLatestEventInfo()函数是唯一的实现方法。  Intent  intent = new Intent(

【oracle CLOB】ORACLE CLOB 类型转换为字符串

在ORACLE 中存储 大量 文本 超过了 3000个汉字 varchar 装不下 迫不得已使用了 : CLOB 类型 写sql 时如果字段是CLOB类型,必须转换为类型。 CLOB 类型转换为字符串: dbms_lob.substr(FILTER_TEXT,100000) select to_char(GMT_CREATE,'yyyy-mm-dd') as M1,dbms_lob.sub

AI模型:追求全能还是专精?-- 之6 语言复杂度类别(Category 0~3 类)和语言功能性类型(Type 0~Ⅲ 型)之2

Q17、我前面说过,语言复杂度的0~3级(Category 0~3)表示了语言的的上下文相关性 : 完全不相关, 单相关的 单词上下文, 双相关的句子上下文 全相关的文章上下文 。我准备翻译为 Context - irrelative /relative/correlative/ full-correlative,显式表达了语言复杂度的0~3级(Category 0~3)区别的上下文相关性是一种关