Skip to Main Content

GoldenGate

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Exclude delete transactions for a user in golden gate

bs5891Mar 4 2015 — edited Mar 6 2015

All;

I need to exclude deletes transactions as part of a purge from propagating to another system. I can not use IGNOREDELETES because normal processing will include deletes.

I have tried the following but it is not working. Any ideas are greatly appreciated.

CREATE TABLE DUMMYSCHEMA.DUMMY_TEST(COL1 VARCHAR(20), COL2 VARCHAR(20);

-- extract

TABLE DUMMYSCHEMA.DUMMY_TEST, TOKEN(TK_DBUSER = @GETENV ('TRANSACTION', 'USERNAME'));

-- pump

TABLE DUMMYSCHEMA.DUMMY_TEST, FILTER ( @STREQ ( @TOKEN ('TK_DBUSER') , 'TEST_DEL_ACCOUNT' ) = 0 ) ;

-- replicat

MAP DUMMYSCHEMA.DUMMY_TEST, TARGET DUMMYSCHEMA.DUMMY_TEST, FILTER ( @STREQ ( @TOKEN ('TK_DBUSER') , 'TEST_DEL_ACCOUNT' ) = 0 );

Updated parameter files. Stopped / started each piece.

sqlplus TEST_DEL_ACCOUNT/TEST_DEL_ACCOUNT

-- source

INSERT INTO DUMMYSCHEMA.DUMMY_TEST(COL1, COL2) VALUES ('DEL_TEST','DEL_TEST');

COMMIT;

SELECT * on both sides. -- new row present on both.

-- source

DELTE FROM DUMMYSCHEMA.DUMMY_TEST WHERE COL1 = 'DEL_TEST';

COMMIT;

SELECT * on both sides. -- row deleted on both.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 3 2015
Added on Mar 4 2015
3 comments
1,796 views