Hello, i'm working with DB2 9.1 over AIX and have an instance called db2inst1. In this instance have two database created (MERCA and TRAMITES). I need to update some tables of the TRAMITES database if a table in MERCA database receive an insert. I'm trying to do this with a trigger in the table of MERCA database, I federate the databases and create the nicknames objects from TRAMITES database in the MERCA database.
When I create the trigger the UPDATE event inside the trigger don't work and DB2 said that this is not a valid SQL call in the trigger.
Now I'm trying to implement a trigger in the table of the MERCA database in order to call a Stored Procedure (Java) that connects to the TRAMITES database and update the table that fires the triggers in the TRAMITES database.
Is this correct??? there is another way to do that I want to realize???
I will apreciate all the help and guide that you can give me....
Best regards