Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Connection string and DSN

643400Jun 5 2008 — edited Jul 31 2008
Some of the document provided by Oracle seems to imply that something other than a DSN entry can be used to identify the DB in connection string:

OracleConnection conn = new OracleConnection
("DataDirectory=\\orace;Database=polite;DSN=*;uid=system;pwd=manager");
conn.Open();

The above is taken directly from Oracle documentation. However I've been unable to use this connect string (or variant) to connect to an existing DB. So my question is, is there a way to provide the DB path in place of the DSN entry in the connection string?

We have an application that dynamically creates multiple DBs. I prefer that it not have to create ODBC entries for each if it is only accessing the DB through the .Net provider.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 28 2008
Added on Jun 5 2008
3 comments
2,624 views