We help IT Professionals succeed at work.

VB.NET and Oracle ora-02074

qaziasif
qaziasif asked
on
907 Views
Last Modified: 2007-12-19
Hi ALL

I am trying to Call a Oracle (8.1.7) Stroed procedure from Vb.Net. The stored procedure has transaction. After sucessful completion of one Insert statement a record is inserted into a second table else rollback everyting. I am using OracleClient (   Dim OraClientCon As New OracleClient.OracleConnection). Whenever transaction rollback, I get ora-02074. I never initiated Distributed Transaction. From where it is comming from????

I have alternativly used OLEDB (Dim OleCon As New OleDb.OleDbConnection). I got the same result, but when I disabled Distributed Transaction by setting distribtx=0 in connectionstring, all gets well.

I am unable to find equilevant parameter for OracleClient. I have tried Enlist=False but no luck!!!

Please help.
 
Comment
Watch Question

Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.