ogg在启动应用进程时报错OGG-00412

问题描述:ogg在启动应用进程时报错OGG-00412,如下所示:
源 端:IP 192.168.133.108 数据库oracle 10.2.0.4 64位,实例名:orcl 主机名:leo-10g-ogg + oel5.11 64位
目 标 端:IP 192.168.133.109 数据库oracle 19.16.0.0 64位,实例名:simdb 主机名:leo-19c-ogg + centos 7.9 64位
ogg 软件:
源 端:fbo_ggs_Linux_x64_ora10g_64bit.tar
目 标 端:191004_fbo_ggs_Linux_x64_shiphome.zip
异常重现:
GGSCI (leo-10g-ogg) 26> start rep1

Sending START request to MANAGER ...
REPLICAT REP1 starting


GGSCI (leo-10g-ogg) 27> info all

Program Status Group Lag Time Since Chkpt

MANAGER RUNNING
EXTRACT RUNNING DP1 00:00:00 00:00:07
EXTRACT RUNNING EXTA 00:00:00 00:00:03
REPLICAT STOPPED REP1 00:00:00 00:03:15
告警日志:
DISCARDFILE ./dirrpt/rep.dsc format release 12.2, APPEND, MEGABYTES 1024

Source Context :
SourceModule : [er.main]
SourceID : [/scratch/sganti/view_storage/sganti_core_lin64/oggcore/OpenSys/src/app/er/rep.c]
SourceFunction : [create_discard_file]
SourceLine : [9352]
ThreadBacktrace : [7] elements
: [/u01/app/ogg/replicat(CMessageContext::AddThreadContext()+0x26) [0x5ec2e6]]
: [/u01/app/ogg/replicat(CMessageFactory::CreateMessage(CSourceContext*, unsigned int, ...)+0x7b2) [0x5e2db2]]
: [/u01/app/ogg/replicat(_MSG_ERR_STARTUP_BADARG_DISCARDFILE_INVALID_OPENMODE(CSourceContext*, CMessageFactory::MessageDisposition)+0x87) [0x58c4a7]]
: [/u01/app/ogg/replicat [0x5021fe]]
: [/u01/app/ogg/replicat(main+0x194) [0x506374]]
: [/lib64/libc.so.6(__libc_start_main+0xf4) [0x3c4701d9f4]]
: [/u01/app/ogg/replicat(__gxx_personality_v0+0x1da) [0x4e31ba]]

2022-12-14 16:30:11 ERROR OGG-00412 Must be PURGE, APPEND, MAXBYTES, or MEGABYTES.

2022-12-14 16:30:11 ERROR OGG-01668 PROCESS ABENDING.
解决方案:
此处直接将应用进程中的discardfile参数屏蔽.
GGSCI (leo-10g-ogg) 31> view param rep1

REPLICAT rep1
setenv (NLS_LANG=AMERICAN_AMERICA.AL32UTF8)
--setenv (ORACLE_SID=)
userid ogg@ORCL,password ogg
REPORT AT 08:59
REPORTCOUNT EVERY 30 MINUTES, RATE
CACHEMGR CACHESIZE 2048MB,CACHEDIRECTORY ./dirtmp
REPERROR DEFAULT, ABEND
--DISCARDFILE ./dirrpt/rep1.dsc format release 12.2, APPEND, MEGABYTES 1024
DISCARDROLLOVER AT 3:00
GETTRUNCATES
ALLOWNOOPUPDATES
APPLYNOOPUPDATES
ASSUMETARGETDEFS
DBOPTIONS DEFERREFCONST
--DBOPTIONS SUPPRESSTRIGGERS
DDL INCLUDE MAPPED
DDLOPTIONS REPORT
DDLERROR DEFAULT IGNORE RETRYOP
MAP SCOTT.*, TARGET SCOTT.*;
--开启应用进程
GGSCI (leo-10g-ogg) 29> start rep1

Sending START request to MANAGER ...
REPLICAT REP1 starting

GGSCI (leo-10g-ogg) 30> info all

Program Status Group Lag Time Since Chkpt

MANAGER RUNNING
EXTRACT RUNNING DP1 00:00:00 00:00:02
EXTRACT RUNNING EXTA 00:00:00 00:00:05
REPLICAT RUNNING REP1 00:00:00 00:00:01

参考文档:
MOS:Doc ID 1609701.1