解决OGG-01163的故障

在源端用defgen生成定义文件,然后再传到目标端,并在复制进程指定,并去掉assumetargetdefs参数,具体操作步骤如下:

1、在源端数据库OGG安装目录下创建配置文件source.prm
$ cd /ogg/goldengate
$ vi source.prm
defsfile ./dirdef/source.def,purge
userid ogg, PASSWORD oracle
table eciq_lob.;
table eciq_support.
;
table eciq_operation.*;

注意:文件中把所有的要复制的表都加上

2、在源端生成数据库表的定义文件
$ cd /ogg/goldengate
$ ./defgen paramfile source.prm

3、将源端的/ogg/goldengate/dirdef/source.def上传到目标端./dirdef目录下

4、把目标端的复制进程参数文件备份
$ cd /ogg/goldengate/dirprm
$ cp qrep.prm qrep.prm_20180629

5、在目标端复制进程中注释掉ASSUMETARGETDEFS,加上如下参数:SOURCEDEFS ./dirdef/source.def和HANDLECOLLISIONS


**
SOURCEDEFS ./dirdef/source.def
HANDLECOLLISIONS

**


6、在目标端查extseqno和extrba(找Sequence #和RBA:)

GGSCI (p750qu1) 2> info qrep,showch

REPLICAT QREP Last Started 2018-06-29 10:49 Status ABENDED
INTEGRATED
Checkpoint Lag 03:20:46 (updated 03:49:06 ago)
Log Read Checkpoint File ./dirdat/qu050209
2018-06-29 05:30:39.121159 RBA 60041982

Current Checkpoint Detail:

Read Checkpoint #1

GGS Log Trail

Startup Checkpoint (starting position in the data source):
Sequence #: 50209
RBA: 60041982
Timestamp: 2018-06-29 05:30:39.121159
Extract Trail: ./dirdat/qu

Current Checkpoint (position of last record read in the data source):
Sequence #: 50209
RBA: 60041982
Timestamp: 2018-06-29 05:30:39.121159
Extract Trail: ./dirdat/qu

Header:
Version = 2
Record Source = A
Type = 14

Input Checkpoints = 1

Output Checkpoints = 0

File Information:
Block Size = 2048
Max Blocks = 100
Record Length = 2048
Current Offset = 0

Configuration:
Data Source = 0
Transaction Integrity = -1
Task Type = 0

Status:
Start Time = 2018-06-29 10:49:02
Last Update Time = 2018-06-29 08:51:25
Stop Status = A
Last Result = 0

7、在目标端执行以下语句
GGSCI (p750qu1) 3>alter qrep extseqno 50209, extrba 60041982;

8、启动目标端的OGG
GGSCI (p750qu1) 4>start qrep

你可能感兴趣的:(故障处理)