Oracle Connection Error - ORA-12514: TNSlistener does nto currently know of service requestedon connect description

Hoping someone can explain what this error means and how to resolve.  Have a windows C# application that is trying to connect to a Oracle database.  Can connect fine through SQL Developer.  

Oracle Connection Error - ORA-12514: TNSlistener does nto currently know of service requestedon connect description
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
Check the tnsnames.ora file under the NETWORK/ADMIN folder where you installed the Oracle data providers for C#.

SQL Developer doesn't have to use it and likely uses a different ORACLE_HOME if it does.

If you aren't using ODP.Net, I strongly suggest you start.  The 12c Managed driver seems pretty decent in my initial testing and doesn't require an Oracle Client install.

In a nutshell the error means the Oracle service/sid you are trying to connect to isn't known by the listener you are talking to.

If the server/port is correct in your connect string then the database may be down or not registered with the listener.  Since you can connect through SQL Developer, it is likely a config issue in the C# Oracle client.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Check the listener service if it is running, try pinging the listener or check the listener status using lsnrctl,
Also check for open ports 1521 by using "netstat" or "nmap" commands
It's also possible the database is down so it hasn't self-registered to the listener, or the database has the local listener parameter set to a listener other than the one you're connecting to.

ask your dba to check the server

This asssumes the database was up previously while using sql developer but has gone down since then while using the .net app
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.