On 2012-01-26 17:03, Bruno Almeida wrote:
> Hello all,
>
> DB2 v9.5 fixpack 5 LUW.
>
> I need insert values on a federated table using a trigger.
>
> Is that possible?
No, you can't update both systems within the same transaction
>
> Actually, I´ve got this SQL ERROR on my trigger creation:
>
> SQL30090N Operation invalid for application execution environment.
> Reason
> code = "22". LINE NUMBER=8. SQLSTATE=25000
>
> Is there another way to do this?
Some kind of replication would do. Other ways to break up the
transaction would be to have some kind of daemon that periodically
checks if there is something that needs dealing with.
From time to time I have had the same need as you are discussing here,
but I have never figured out a satisfactory solution. If you do come up
with something clever, I'm all ears.
/Lennart