简体   繁体   English

Oracle 10g Express .NET连接器

[英]Oracle 10g Express .NET Connector

I was wondering if I could get any advice on connecting to Oracle 10g Express to .NET? 我想知道是否可以得到有关将Oracle 10g Express连接到.NET的任何建议? I saw a solution in one of the threads here, but could not seem to find a download link. 我在这里的一个线程中看到了一个解决方案,但似乎找不到下载链接。

my intention is to use Visual Studio 2010 (.NET 4.0) to connect to a Oracle 10g Express database. 我的意图是使用Visual Studio 2010(.NET 4.0)连接到Oracle 10g Express数据库。

Appreciate any advice. 感谢任何建议。

Check out the files under server/network/admin You need to setup the TNSNAMES.ora file which would have the credentials for the Express 签出server / network / admin下的文件您需要设置TNSNAMES.ora文件,该文件将具有Express的凭据

XE =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = [machinename])(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = XE)
    )
  )

Listener.ora file LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = Listener.ora文件LISTENER =(DESCRIPTION_LIST =(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = [machinename])(PORT = 1521)) (地址=(协议= TCP)(主机= [计算机名称])(端口= 1521))
) ) ))

And finally check if the listener is up via cmd 最后检查监听器是否通过cmd启动

lsnrctl status

This should show you connecting to the XE instance mentioned above. 这应该显示您已连接到上述XE实例。

You will need Oracle.DataAccess dll to communicate with the instance, add a reference of it and with the query string you should be good to start off 您将需要Oracle.DataAccess dll与实例进行通信,添加实例的引用,并与查询字符串一起开始使用

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

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