Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Unable to begin a distributed transaction

user3514542Jun 9 2011 — edited Jun 9 2011
Hi All,

I have been struggling now for a couple of days with an issue and I am at the end of my tether, can anyone help me with the following issue:

Environment:

This is all being run locally on my laptop with Windows 7 SP1
Oracle 11g (11.1.0.6.0) Enterprise Edition
SQL Server 2008

Problem:

I am trying to transfer data to my SQL database from an Oracle database using a linked server (OraOLEDB.Oracle Provider) using a stored procedure within my application and I get the message:

The operation could not be performed because OLE DB provider "OraOLEDB.Oracle" for linked server "SERVERNAME" was unable to begin a distributed transaction.

Resolutions tried so far:

-I am able to connect to the Oracle database using SQLPLUS and by testing the Linked Server connection
-I can query the Oracle database using a select statement from SQL by referencing the Linked Server
-The SQL Query that is running from my application runs fine if I run it directly from a query within SQL
-MSDTC Service is running (as are my Oracle services)
-Windows Firewall is disabled and I have allowed MSDTC access through it anyway
-I have enabled all the checkboxes under Security in the MSDTC component services to Enable DTC Access, Allow Remote Clients, Allow Remote Admin, Allow Inbound, Allow Outbound, No Authentication, Enable XA Transactions, Enable SNA LU 6.2 Transactions and the DTC Logon account is the NT AUTHORITY\NETWORK SERVICE
-I have checked the registry to ensure the HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\MSDTC\MTxOCI lib dll values are for Oracle 11 (oci.dll, orasql11.dll & oraclient11.dll)
-I have enabled the 'Allow InProcess' under the OraOLEDB.Oracle Provider in SQL Server Objects
-I have tried using the Microsoft Oracle driver just in case but this gives a similar message
-The SQL Query runs an insert into the SQL database by selecting data from an OPENQUERY transaction data set, as previously stated, if I run this statement outside of the distributed transaction on its own, it works. This query also works in another environment so im positive my issue is environment related and not query related.
-I have installed the Oracle Windows Interfaces component of the Oracle 11g application

The sad part of this whole situation is that I previously had this running fine on the same machine but I formatted and reinstalled the OS so this is now occurring in a clean install.

I cannot think of anything else to add to all of that, so any assistance would be greatly appreciated.

Regards

Chris

Comments

Girish Sharma
First Welcome to Oracle Forum with such a good explanation and question. I think all we will help you in future if you continue to ask the question in such a good manner!

If you have not checked below links then
http://support.microsoft.com/kb/280106
http://support.microsoft.com/kb/306212
Else
Try to ask in separate forum :
3150

Regards
Girish Sharma
sb92075
This is all being run locally on my laptop with Windows 7 SP1
which Edition of Windows 7?
user3514542
Hi All,

It is Windows 7 Professional (I knew I missed something in my original post)

I have checked both of those kb articles and my settings all appear to be correct from what I can see within them.

I will post in the other forum as well, thank you for the link.

Edited by: user3514542 on 09-Jun-2011 10:17
Girish Sharma
Ok, Good! Meanwhile you can read this thread:

I believe that I read somewhere that you need to make sure that the "Distributed Transaction Coordinator" is active on the machine hosting the SQL Server.
Source:312653

Regards
Girish Sharma
user3514542
Yes, the DTC service is started and running on my machine (which is the SQL server in this instance)
1 - 5
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 7 2011
Added on Jun 9 2011
5 comments
621 views