简体   繁体   English

是否可以通过 C# 连接到不同的 oracle 数据库版本?

[英]Is it possible to connect through C# to different oracle database versions?

I need to develop a C# application that reads data from database A (oracle versione 10) and writes to database B (oracle version 19).我需要开发一个 C# 应用程序,从数据库 A(oracle versione 10)读取数据并写入数据库 B(oracle version 19)。

So both oracle client 10 and oracle client 19 must be installed on the server.所以oracle客户端10和oracle客户端19都必须安装在服务器上。

Is it possibile to perform such installation?是否可以执行此类安装? And how do I specify that one connection string must use the first oracle client and the other must use the second?以及如何指定一个连接字符串必须使用第一个 oracle 客户端,另一个必须使用第二个?

Do you have Version 10.1 or 10. 2?你有 10.1 版还是 10.2 版? Check https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=552435627823737&id=207303.1&_afrWindowMode=0&_adf.ctrl-state=q2a2ahgzg_53 if you have 10.1 then it looks bad because no driver can connect to 19 and 10.1.If you have 10.2 then Oracle Client 11 can connect to either versions.检查https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=552435627823737&id=207303.1&_afrWindowMode=0&_adf.ctrl-state=q2a2ahgzg_53如果你有 10.1 那么它看起来很糟糕,因为没有驱动程序可以连接 110。您有 10.2,然后 Oracle Client 11 可以连接到任一版本。

It is possible go install more than one Oracle Client but I don't think you can use several versions weithin one process because it relies in PATH which you cannot chance within a process.可能会安装多个 Oracle 客户端,但我认为您不能在一个进程中使用多个版本,因为它依赖于 PATH,而您不能在一个进程中使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM