Home » RDBMS Server » Networking and Gateways » Insert record to non-Oracle database from Trigger
Insert record to non-Oracle database from Trigger [message #66421] |
Tue, 04 June 2002 00:50  |
Marko Sirovnik
Messages: 1 Registered: June 2002
|
Junior Member |
|
|
There are two databases Oracle 8i and IBM DB2 (Ver. 7.02). The goal is making almost on-line synchronisation between these two databases. If you have any suggestion how to this I will be greatly appreciated.
My approach and problem:
On Oracle side I made Oracle Generic Connectivity in order to link DB2 database to Oracle. I have used DB2 ODBC driver and Oracle Heterogeneous Services. I made this succesfully.
Then I have used the SQLPlus Worksheet tool and typed the INSERT SQL syntax in order to add new record to linked database (DB2). It was working:-)))
But the problem comes when I make a trigger on Oracle tabel (trigger AFTER INSERT) which triggers the INSERT SQL syntax to linked database. The INSERT syntax inside the trigger is totally the same as this one which I typed in SQLPlus Worksheet, but it doesn't work from the trigger. Why!?
The following errors are generated:
ERROR at line 1:
ORA-02047: cannot join the distributed transaction in progress
ORA-06512: at "FND.TRG_TEST", line 4
ORA-04088: error during execution of trigger 'FND.TRG_TEST'
Anyone knows what could be wrong?
Thanks and Regards,
Marko
|
|
|
|
|
|
|
Goto Forum:
Current Time: Thu May 01 21:11:04 CDT 2025
|