.net 2.0网站中一起使用的System.Data.OracleClient和ODP.Net 11g的问题 [英] Issue with System.Data.OracleClient and ODP.Net 11g together used in .net 2.0 web site

查看:90
本文介绍了.net 2.0网站中一起使用的System.Data.OracleClient和ODP.Net 11g的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在基于.net Framework 2.0的应用程序中,我们使用了System.Data.Oracleclient,现在正在迁移到ODP.Net,该项目的规模太大, 因此我们无法一次性完成整个迁移,结果是应用程序使用了2个提供程序System.Data.Oracleclient&截至目前,ODP.Net.

现在,我们正在将操作系统从Windows XP 32bit更改为Windows 7 64bit.这样做时,我们观察到以下情况,

1)查询以<使用System.Data.Oracleclient& 1秒ODP.Net 10g 64位(Oracle.DataAccess.dll版本2.102.2.20). 并且相同的查询在<中执行在Oracle SQL Developer v1.5上为1秒.

2)但是,使用带ODP.Net 11g 64位(Oracle.DataAccess.dll版本2.112.3.0)的System.Data.OracleClient执行相同的查询需要2-3分钟.

我们发现第2点的性能显着下降, 我们必须在Windows 7 64bit OS上将System.Data.OracleClient与ODP.Net 11g 64bit(Oracle.DataAccess.dll版本2.112.3.0)配合使用, 但是我们不能忍受第2点中提到的性能下降, 而且我们不能很快将所有使用System.Data.OracleClient的代码转换为ODP.Net.

所以有人可以帮助我们,为什么我们会看到第2点中提到的如此显着的性能下降,以及我们如何解决这个问题.

问候 Sanjib Harchowdhury

解决方案

请参阅此 link ,或仅将ODP.Net 64bit组件替换为ODP.Net 32​​bit,因为我们使用的是asp.net,因此我们可以轻松地将应用程序配置为使用Windows 7(x64)版本中的32bit组件运行.

In our .net framework 2.0 based application we were using System.Data.Oracleclient and now migrating to ODP.Net, the volume of the project is too high, so we cannot do the entire migration on one go, as a result the application is using 2 providers System.Data.Oracleclient & ODP.Net as of now.

Now we are changing our OS, from Windows xp 32bit to Windows 7 64bit. While doing so we observed the following,

1) A query executes in < 1 sec using System.Data.Oracleclient & ODP.Net 10g 64bit (Oracle.DataAccess.dll version 2.102.2.20). and the same query executes in < 1 sec on Oracle SQL Developer v1.5.

2) However the same query is taking 2-3 mins to execute using System.Data.OracleClient with ODP.Net 11g 64bit (Oracle.DataAccess.dll version 2.112.3.0).

we found a remarkable performance degradation in point 2), we have to use System.Data.OracleClient with ODP.Net 11g 64bit (Oracle.DataAccess.dll version 2.112.3.0) on Windows 7 64bit OS, but we cannot live with the performance degradation as mentioned in point 2), and we cannot convert all code which uses System.Data.OracleClient to ODP.Net very quickly.

So can anyone help us, on why do we see such remarkable performance degradation as mentioned in point 2), and what do we do to resolve this problem.

Regards Sanjib Harchowdhury

解决方案

please refer this link, or just replace ODP.Net 64bit component with ODP.Net 32bit, as we are using asp.net we could easily configure our application to run using the 32bit component in Windows 7 (x64) edition.

这篇关于.net 2.0网站中一起使用的System.Data.OracleClient和ODP.Net 11g的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆