Solved

ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA

Posted on 2009-06-30
2
7,513 Views
Last Modified: 2012-05-07
Hi
I have an ASP.NET website which works on a server but not on my machine. (I just copied the code from the server to my machine)

I get the error "ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA"

It seems to happen on the line
Dim myConnection As New OleDbConnection(ConnectionString)

where connectionstring is
"Provider=MSDAORA;User ID=INV_ROUT;password=xxx;Data Source=B733"

Any ideas?
Thanks
0
Comment
Question by:hmcgeehan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 22

Accepted Solution

by:
prairiedog earned 50 total points
ID: 24745718
In order to connect to an Oracle database, you will need a file called "tnsnames.ora" which contains the necessary settings for the Oracle database. It seems that you don't have the file on your local machine. You should be able to copy the one from server and pasted on your machine.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question