Oracle事务无法正常工作 [英] Oracle transaction not working properly
问题描述
我的应用程序开始了oracle这样的调用。我正在测试一组有意创建错误以测试事务功能的调用。一组记录工作并回滚另一组没有创建孤立记录。什么
我做错了什么,我需要看什么?
<跨度>使用跨度>&NBSP;(<跨度>的TransactionScope 跨度>&NBSP; transScope&NBSP; =&NBSP; <跨度>新跨度>&NBSP; <跨度>的TransactionScope 跨度>())&NBSP; // BEGIN TransScope
{
OracleDBMethod1(parm1);
OracleDBMethod2(parm2);
OracleDBMethod3(parm3);
transScope.Complete ();
} //结束 TransScope
如果您使用的是ODP.NET,请确保以下内容已到位。
1.
While安装ODP.NET选择Ora MTS与ODP.NET Dll一起安装
2.   ;
以下服务Up&正在运行
a。
OracleMTSRecoveryService
b。
分布式交易协调员
< p style ="text-indent:-0.25in"> 4 。
启用这些服务的防火墙排除
a。
获取来自寄存器的端口信息(HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\OracleMTSRecoveryService\Protid_0)
b。
默认是2030
My app is kicking off a set of oracle calls like so. I am testing a set of calls that intentionally creates an error to test the transactional capabilities. One set of records worked and rolledback the other set did not and created orphaned records. What am I doing wrong and what do I need to look at?
using (TransactionScope transScope = new TransactionScope()) //BEGIN TransScope {
OracleDBMethod1(parm1);
OracleDBMethod2(parm2);
OracleDBMethod3(parm3);
transScope.Complete();
}//End TransScope
Hi,
If you are using ODP.NET make sure the below things are in place.
1. While installing ODP.NET Select Ora MTS to install along with ODP.NET Dlls
2. Below services Up & Running
a. OracleMTSRecoveryService
b. Distributed Transaction Coordinator
4. Enable Firewall Exclusions for these services
a. Get the port information from register (HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\OracleMTSRecoveryService\Protid_0)
b. Default is 2030
这篇关于Oracle事务无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!