I have a two databases: oracle & postgres. SymmetricDS is syncing the tables in two way directions. It seems that everything is working. But I need a logic based on triggers that corrects the inserted/updated rows "on the fly". This triggers must be located in the oracle DB.
The algorithm should be as follows:
- User inserts new line to the PostgreSQL.
- SymmetricsDS replicate this line to the Oracle.
- Oracle's triggers converts some columns "on the fly" to the new one.
- This converted line must be returned from oracle to postgres back.
- I'm creating last AFTER trigger (based on the FOLLOWS statement) on oracle that inserts into SYM_DATA table this renewed line.
- I'm waiting that SymmetricsDS will be replicate this corrected line to the postgres back. But nothing happened. Postgres line is old style, such as inserted by user, without oracle's trigger logic.
What am I doing wrong? What else can I do to implement my algorithm?