Posted on 2004-03-26
I have to access Oracle DB from MS SQL Server 2000.
My OS is Win2k adv server 2000 sp3.
I connect the Oracle Server with Link Server Technology of MS SQL Server.
I use OraOLEDB.Oracle driver.
The code is
SET XACT_ABORT ON
BEGIN DISTRIBUTED TRANSACTION
insert into openquery(kn,'select * from customer_info') values ('cust0005','customer 5')
where kn is Oracle service name and schema name.
When the code is run, following error occurs.
The operation could not be performed because the OLE DB provider 'OraOLEDB.Oracle' was unable to begin a distributed transaction.
OLE DB error trace [OLE/DB Provider 'OraOLEDB.Oracle' ITransactionJoin::JoinTransaction returned 0x8004d00a].
I already start the MSDTC service and RPC service.