GoldenGate REPLICAT abend ORA-00001: unique constraint violated on transient PKUpdate in 11.2.0.4 (Doc ID 1928263.1)

Last updated on JULY 17, 2017

Applies to:

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

Symptoms

When doing transient PKUpdate, customer uses the suggested HANDLETPKUPDATE parameter.
the replicat also contains parameter: DBOPTIONS DEFERREFCONST
the replicat hits ora-1.

first test shows that this could be reproduced at sql level:

Following is the test case to reproduce this issue in SQL*Plus:
============
drop user tgt cascade;
grant connect, resource, unlimited tablespace, dba to tgt identified by tgt;
alter system set enable_goldengate_replication=true;
exec dbms_goldengate_auth.grant_admin_privilege('TGT');

connect tgt/tgt
alter session set constraints=immediate;
alter session set events '26743 trace name context forever, level 2';
exec dbms_xstream_gg.set_gg_session_flags(1);

create table t1 (i int primary key deferrable);
insert into t1 values (1);
insert into t1 values (2);
insert into t1 values (3);
commit;
update /*+ RESTRICT_ALL_REF_CONS */ t1 set i = i + 1 where i = 1;
===================

Please note that, following test case works as expected in v11204.
Only difference is that, we didn't specify the hint in UPDATE dml.
=========
drop user tgt cascade;
grant connect, resource, unlimited tablespace, dba to tgt identified by tgt;
alter system set enable_goldengate_replication=true;
exec dbms_goldengate_auth.grant_admin_privilege('TGT');

connect tgt/tgt
alter session set constraints=immediate;
alter session set events '26743 trace name context forever, level 2';
exec dbms_xstream_gg.set_gg_session_flags(1);

create table t1 (i int primary key deferrable);
insert into t1 values (1);
insert into t1 values (2);
insert into t1 values (3);
commit;
update t1 set i = i + 1 where i = 1;
========= 

 



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