Skip to Main Content

Oracle Database Discussions

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Configuration to refer TNSNAMES.ora File

RameshSagarJan 28 2022

Hi Team,
I have an ASP.NET application that refers resource.config file to connect to Database. The resource.config file contains Database connection string as shown below-
<ConnectionString>Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.11.11.13)(PORT=9119)))(CONNECT_DATA=(SERVICE_NAME=DEVDB)));</ConnectionString>
But I want this connection string to be in tnsnames.ora file and in my resource.config file I just want to put a reference to that tnsnames.ora file, so that my ASP.NET application when refer to resource.config file for Database connection string, it just get the connection string from tnsnames.ora.
Oracle details as below:-
Oracle 19c
Any guidance is highly appreciated.

Thanks in advance!
Ramesh

Comments
Post Details
Added on Jan 28 2022
0 comments
185 views