G
Guest
Hi
I am calling an Oracle stored procedure which has no input or output parameters, and only does an insert to a table on a remote Oracle server, like this
PROCEDURE Joe_test I
BEGI
insert into leslie@acc_db2 values ('insert')
commit
END
When I call it from C# using System.Data.OracleClient, I get the exception
ORA-02041: client database did not begin a transactio
ORA-06512: at "OPS$JOE.JOE_TEST", line
ORA-06512: at line
If I change it to insert into a local table instead of a remote one, it works. If I run it as is from SQL/Plus, it works. It only fails when I run it from .NET with System.Data.OracleCommand.ExecuteNonQuery()
I have tried using "enlist=false" in the database connect string. This actually seems to solve the problem if I use ODP instead of System.Data.OracleClient, but has no effect with the latter. I don't have a good understanding of what it does other than changing the default handling of distributed transactions. System.Data.OracleClient is supposed to handle distributed transactions
I would appreciate any help or suggestions!
I am calling an Oracle stored procedure which has no input or output parameters, and only does an insert to a table on a remote Oracle server, like this
PROCEDURE Joe_test I
BEGI
insert into leslie@acc_db2 values ('insert')
commit
END
When I call it from C# using System.Data.OracleClient, I get the exception
ORA-02041: client database did not begin a transactio
ORA-06512: at "OPS$JOE.JOE_TEST", line
ORA-06512: at line
If I change it to insert into a local table instead of a remote one, it works. If I run it as is from SQL/Plus, it works. It only fails when I run it from .NET with System.Data.OracleCommand.ExecuteNonQuery()
I have tried using "enlist=false" in the database connect string. This actually seems to solve the problem if I use ODP instead of System.Data.OracleClient, but has no effect with the latter. I don't have a good understanding of what it does other than changing the default handling of distributed transactions. System.Data.OracleClient is supposed to handle distributed transactions
I would appreciate any help or suggestions!