.NET中访问Oracle中带有DB_LINK时对象时,会抛出一下异常
ORA-02041: client database did not begin a transaction
解决方案:
1.
To resolve the issue with Oracle's ODP.NET, you'd specify "enlist=false" in your connect string.
Microsoft's ODP.net has the same connection string attribute, but it does something different. I think what you want to use with system.data.oracleclient is .
See also
2.
To Resolve this problem, you only have to include "Omit Oracle Connection Name=True;" in your connection string, for example:
"User Id=MyUser;Password=MyPassword;Data Source=MyDB;Omit Oracle Connection Name=True;"