My Oracle Support Banner

OLEDBException: ORA-12154: TNS Could Not Resolve Service Name (Doc ID 256936.1)

Last updated on MARCH 04, 2022

Applies to:

Oracle Provider for OLE DB - Version to [Release 10.2 to 11.2]
Microsoft Windows (32-bit)


While using ASP.NET with Oracle Provider for OLEDB you encounter:

OLEDBException: TNS-12154: TNS could not resolve service name

The same connection string is successfully used outside of IIS with a simple OLE DB test application so the alias is valid.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.