OGG Replicat hits ora-1400 with sqlexec on before record after upgrading from ogg 11g to 12c (Doc ID 2249485.1)

Last updated on MARCH 29, 2017

Applies to:

Oracle GoldenGate - Version 12.1.2.0.0 and later
Information in this document applies to any platform.

Symptoms

we have following setup:

source: create table s1 (a number primary key, b number);
target: create table t1 (id number not null, a number, b number);
create sequence ss;
replicat

map s1, target t1,
sqlexec ( id tt, query 'select ss.NEXTVAL AS P_SEQ from dual',
NOPARAMS,ERROR FATAL),
COLMAP (
id = tt.p_seq,
a=a,
b=b
);

insert into s1 values (1,1);
commit;
update s1 set b=2;
commit;

when replicating the update, the replicat abended with ora-1400 error, as it cannot insert NULL into ID column.
the same set worked fine in ogg 11g, but abends with ogg 12c.



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms