开发者

Oracle 10g Express .NET Connector

I was wondering if I could get any advice on connecting to Oracle 10g Exp开发者_如何转开发ress to .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.

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

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

Listener.ora file LISTENER = (DESCRIPTION_LIST = (DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = [machinename])(PORT = 1521))
) )

And finally check if the listener is up via cmd

lsnrctl status

This should show you connecting to the XE instance mentioned above.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜