Solved

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

Posted on 2009-06-30
2
7,482 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
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now