从 Visual Studio 2010 中使用 Oracle 需要什么?

发布于 2024-10-06 14:05:37 字数 722 浏览 2 评论 0原文

从 Visual Studio 2010 中使用 Oracle 需要什么?

环境: 1 - 在开发电脑上:

Windows 7 Ultimate 64 位(4 GB 内存,双核 2.6 GHz)

  • Windows 7 Ultimate 64 位(4 GB 内存,双核 2.6 GHz)
  • Visual Studio 2010 Ultimate
  • ODAC(来自 ODTwithODAC112012.zip 包) (ODAC10203x64.zip 也不会安装在 Windows 7 64 上)

2 - 在服务器上:

  • Windows 2003
  • Oracle 11g (11.2.0.1.0)
  • .NET (2.0、3.0、3.5、4.0)(已安装 SP)

问题: (简单)如果我在 vs 中创建一个控制台应用程序,并将 .NET 版本设置为 3.5,平台设置为 x86,它可以在开发电脑上运行,但不能在服务器上运行。如果我将平台设置为 x64 或 Any CPU,则不起作用;既不在开发电脑上,也不在服务器(已部署)上。

我搜索了一下,发现 12 月份将会有对 ODP.NET (64) 的 .NET 4 支持。但我没有编译为.NET 4.0!但是.NET 3.5(内部只是.NET 2.0)。其他教程和“如何做”会忽略这个地狱的 32-64 方面的任何问题!

非常感谢!

What is needed for working with Oracle from Visual Studio 2010?

Environment:
1 - On development pc:

Windows 7 Ultimate 64 bit (4 GB ram, Dual-Core 2.6 GHz)

  • Windows 7 Ultimate 64 bit (4 GB ram, Dual-Core 2.6 GHz)
  • Visual Studio 2010 Ultimate
  • ODAC (from package ODTwithODAC112012.zip) (also ODAC10203x64.zip does not install on Windows 7 64)

2 - On server:

  • Windows 2003
  • Oracle 11g (11.2.0.1.0)
  • .NET (2.0, 3.0, 3.5, 4.0) (SPs are installed)

Problem:
(Simple) If i create a console app in vs and set .NET version to 3.5 and plateform to x86, it works on development pc but not on the server. If I set plateform to x64 or Any CPU, it does not work; neither on development pc nor on the server (deployed).

I have searched and found there will be .NET 4 support for ODP.NET (64) on December. But I am not compiling to .NET 4.0! But .NET 3.5 (Wich is internally just .NET 2.0). Other tutorials and 'how to's do ignore any problems with 32-64 aspect of this hell!

Many thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

慢慢从新开始 2024-10-13 14:05:37

服务器上是否安装了ODP客户端软件?

这可以是 32 位或 64 位。编译到 ANYCPU 应该没有关系(如果您使用 4.0,您现在必须使用 32 位,因为它似乎还没有准备好 64 位)。

但由于您运行的是 ODTwithODAC112012,您正在运行最新、最好的 ODP(本地),因此您应该设置为 32 位运行。只要确保它安装在服务器上就可以了。如果安装了,您收到什么错误?

以下是 Oracle 网站上的一些论坛帮助:
线程:oracle.dataaccess.dll 的中间语言版本
&
如何确定我的 Web 服务器是否已针对 ODP.Net 正确配置?

验证 ODP 是否已安装 (%ora_home%\11.2.0\client_1\odp.net)。

Does the server have the ODP client software installed?

This can be 32 or 64 bit. Compile to ANYCPU and it should not matter (if you were using 4.0 you would have to use 32bit for now since it doesn't seem to have the 64bit ready).

But since you are running ODTwithODAC112012 you are running the latest and greatest ODP (locally) so you should be set for a 32 bit run. Just make sure it installed on the server and you should be set. if it is installed, what errors are you receiving?

here are some forum help on the oracle site:
Thread: Intermediate Language version of oracle.dataaccess.dll
&
How do I determine if my web server is correctly configured for ODP.Net?

Verify that ODP is installed (%ora_home%\11.2.0\client_1\odp.net).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文