Replicat Unexpectedly Modifying Trigger Code (Doc ID 2190783.1)

Last updated on OCTOBER 06, 2016

Applies to:

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

Symptoms

when replicating a trigger DDL, the replicat adds owner (GGTEST) for a column
that is not correct.

SQL> desc bar
Name Null? Type
----------------------------------------- --------
----------------------------
ID NOT NULL NUMBER(9)
BAR NOT NULL NUMBER(20)  <============== column name is same as table_name

SQL> desc foo
Name Null? Type
----------------------------------------- --------
----------------------------
ID NOT NULL NUMBER(9)

--------------
2016-03-30 15:53:14 INFO OGG-00482 DDL found, operation [create trigger
foo_trg
before insert on foo
for each row
declare
dummy bar.bar%TYPE;
begin
select bar into dummy from bar where id = :new.id;
end; (size 158)].

2016-03-30 15:53:14 INFO OGG-00489 DDL is of mapped scope, after mapping
new operation
[create trigger foo_trg
before insert on foo
for each row
declare
dummy bar.bar%TYPE;
begin
select "GGTEST"."BAR" into dummy from bar where id = :new.id;
end; (size 169)].

---------------

above is from replicat report file.

select bar into dummy from bar where id = :new.id;
gets changed to:
select "GGTEST"."BAR" into dummy from bar where id = :new.id;



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