Skip to Main Content

ODP.NET

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!

Not able to connect remote oracle database from C#.net windows application, I am getting ORA-12545.

RishipjNov 16 2021

Hi,
I am not able to connect to remote oracle database from C# dot net windows application. I am getting following error: "ORA-12545: Network Transport: Unable to resolve connect hostname".
I have tried with both oracle managed access dll & oracle Data Access dll.
I am successfully able to connect to same database from oracle developer tool and C# dot net web application.
I am using complete oracle connection string:
Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=<hostname>)(PORT=<port>))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=<service_name>)));User ID=<...>;Password=<...>;

Kindly help.

Comments
Post Details
Added on Nov 16 2021
5 comments
744 views