I need to connect to oracle from my .Net application.
I’m thinking of using ODP.NET
Is there a way to connect to Oracle without any dependency on the tnsnames.ora file? Reason I ask is because I’ll have hundreds of different connections and I wouldnt want to be dependant on that file.
Yes, if you use a connection string that contains the data of
tnsname.ora.Say your tnsname entry looks like this:
instead of using
YourTnsNamein the connection string, you can write it like this:hence no entry in
tnsname.orais needed.