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!

Filter rows based on a different table using SQLEXEC

User_F78YSApr 18 2020 — edited May 16 2020

Hi,

Am using GG on 12c DBs . Both source and target.

Am trying to do an initial load, where am trying to filter data based on two tables from source side.

Am trying to filter on source side and send it on to target.

The requirement is If any insert/update/delete happens on App_table1, it should first check whether the columns exist onĀ  KEY_DRIVER table and if exists, the row should move to the target.

My load file on source looks like.

EXTRACT PLOAD

userid ggsource1, password xxxx

RMTHOST 10.193.xxx.xx, MGRPORT 7810

RMTTASK REPLICAT, GROUP PLOAD2

TABLE SCOTT.KEY_DRIVER;

TABLE SCOTT.APP_TABLE1, &

SQLEXEC (ID lookup, &

QUERY "SELECT * FROM SCOTT.APP_TABLE1 A, SCOTT.KEY_DRIVER B WHERE A.KEYFIELD_A=B.KEYFIELD_A AND A.KEYFIEL

D_B=B.KEYFIELD_B AND A.KEYFIELD_C=B.KEYFIELD_C", NOPARAMS);

But all the rows from source are sent to the target. They are not getting filtered.

This post has been answered by Vikas Panwar on Apr 20 2020
Jump to Answer
Comments
Post Details
Added on Apr 18 2020
8 comments
764 views