Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8031469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:06:36+00:00 2026-06-05T01:06:36+00:00

I am working in .Net Windows Application. In App.Config i had given the connection

  • 0

I am working in .Net Windows Application. In App.Config i had given the connection string like this…

<add connectionString="Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.101)(PORT=1521)))(CONNECT_DATA=(SID=PROD)(SERVER=DEDICATED)));User Id=TEST;Password=TEST;" providerName="System.Data.OracleClient" name="ConnectionString" />

I am doing a update process. Once the breakpoint reaches the update method, i am getting the message like this..

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

What should i do for this…

My tnsnames.ora is,

PROD =  (DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
  (SERVER = DEDICATED)
  (SERVICE_NAME = Prod)
)

)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:06:37+00:00Added an answer on June 5, 2026 at 1:06 am

    As I remember when we want to specify a connection string for an Oracle connection, the service name should be provided and the rest of information will be loaded from that service name. As Romil said in the comment, you have to make a Service Name in tnsnames.ora. There is a GUI tool for creating the service names. A Service Name is a connection specifier conceptually that everything needed for the connection will be provided in it.
    Use this to get more info :
    Quick Start to Oracle Net Connections

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a mobile application in .NET. This is a windows mobile
I am working on a VB.Net Windows application. I am trying to use MaskedTextBox
I am working on an old .NET 1.1 windows application. In the debugging configuration
hello i have created one windows application in c# .net and its working fine
I am working on a Windows Forms application in C#/.Net. I want to use
I'm working on ASP.net MVC3 Web application on a dedicated Windows Server 2k8 running
I'm working on some scripted GUI test for a windows C# .net app. I'm
I'm working on a Windows Forms (.NET 3.5) application that has a built-in exception
I'm working on an Windows application(created in .NET) which one of its functions is
I am working on a Windows application in C# (.NET 4.0) and need something

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.