1

I have developed a windows forms Application which talks to an Oracle Server. I am using ODP.net and deploying using the bare minimum dlls, as given in the solution to this Question

I wish to connect using teh connection string in EZCONNECT format, but I can't use it unless the method is present in sqlnet.ora file(As documented here) But given my deployment, I don't have the oracle client installed, or an Oracle home. How do I enable EZCONNECT format?

Or is there some other way to connect when deploying ODP.net applcations?

1
  • Seems like I was mistaken in assuming that it doesn't work. The documentation I had linked to was incorrect. It does work, when you use the EZCONNECT format, out of the box!! Commented Jun 23, 2011 at 15:17

2 Answers 2

1

Specify the directory location of your sqlnet.ora file in an environment variable named TNS_ADMIN. The location does not have to be in an "oracle home" per se.

Sign up to request clarification or add additional context in comments.

Comments

0

The doc isn't exactly wrong, it just does not specify that it means "the SQLNET.ORA in the Database Oracle Home". It is not referring to the ODP.NET oracle home on the client side.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.