BUG: DBLink: ORA-01453: SET TRANSACTION be first statement
Posted: Mon 23 Feb 2009 10:33
When we use the dotConnect for Oracle with views connected via db link, we get the error:"ORA-01453: SET TRANSACTION must be first statement of transaction when we fire 2 statements, first a SELECT and then a INSERT"
In pseude code >>>>>>
SELECT * FROM {VIEW_TABLE_VIA_DBLINK}
----------------------------------
Timestamp: 10:26:14.965
SET TRANSACTION ISOLATION LEVEL READ COMMITTED
----------------------------------
Timestamp: 10:26:15.417
insert into {TABLE_LOCAL}(COLUMN)
values (:p)
p0 = 'lorum'
----------------------------------
Timestamp: 10:26:15.485
If we change the DBLINK into a local TABLE the statements work correctly, with a DBLINK we get an ORA-01453 error.
The same problem is also described in:
http://www.mydatabasesupport.com/forums/oracle-server/
52354-when-using-dblink-ora-01453-set-transaction-must-first-statement-transaction.html
What is the solution to this problem?
In pseude code >>>>>>
SELECT * FROM {VIEW_TABLE_VIA_DBLINK}
----------------------------------
Timestamp: 10:26:14.965
SET TRANSACTION ISOLATION LEVEL READ COMMITTED
----------------------------------
Timestamp: 10:26:15.417
insert into {TABLE_LOCAL}(COLUMN)
values (:p)
p0 = 'lorum'
----------------------------------
Timestamp: 10:26:15.485
If we change the DBLINK into a local TABLE the statements work correctly, with a DBLINK we get an ORA-01453 error.
The same problem is also described in:
http://www.mydatabasesupport.com/forums/oracle-server/
52354-when-using-dblink-ora-01453-set-transaction-must-first-statement-transaction.html
What is the solution to this problem?