ERROR OGG-01028解决方法

今天测试goldengate时报如下错误:

2012-05-09 18:24:13 ERROR OGG-01028 Oracle GoldenGate Capture for Oracle, ext1.prm: Formatting error on: table name MIBON..TEST, rowid AAAS14AAGAAAAI3AAA, XID 3.26.946, position (Seqno 49, RBA 29818560). Error converting timestamp with timezone from Oracle to ASCII format for column START_TIME.

这个问题主要是因为MIBON..TEST表的START_TIME列,使用了类型TIMESTAMP(6) WITH TIME ZONE导致。
Oracle GoldenGate supports the capture and replication of TIMESTAMP WITH TIME ZONE as a UTC offset (TIMESTAMP '2011-01-01 8:00:00 -8:00') but abends on TIMESTAMP WITH TIME ZONE as TZR (TIMESTAMP '2011-01-01 8:00:00 US/Pacific') by default。
要想支持 TIMESTAMP WITH TIME ZONE as TZR, 得在Extract parameter 文件里使用选项TRANLOGOPTIONS 如下两个选项:
INCLUDEREGIONID 从 oracle到同版本oracle或更高版本
INCLUDEREGIONIDWITHOFFSET 从 oracle到低版本或者非oracle
例如:
GGSCI (bj1db01) 1> view params ext1
 
extract ext1
userid ogg, password ogg
exttrail ./dirdat/lt
ddl include all
TRANLOGOPTIONS INCLUDEREGIONID
table mibon.*;

 

你可能感兴趣的:(with,Timestamp,time,goldengate,Zone,OGG-01028,INCLUDEREGIONID)