Unix Technical Forum

weird ORA-12514 error

This is a discussion on weird ORA-12514 error within the Oracle Database forums, part of the Database Server Software category; --> Hi, I am having a puzzling problem with connection to Oracle 9i. I developed a code in C# but ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-24-2008, 01:09 PM
sunny076@yahoo.com
 
Posts: n/a
Default weird ORA-12514 error

Hi,

I am having a puzzling problem with connection to Oracle 9i. I
developed a code in C# but when I tried to connect to a database, it
gave me error "ORA-12514: TNS: listener could not resove SERVICE_NAME
given in connect descriptor" But on the same machine I can connect and
execute Oracle SQL without any error.

I don't know what is wrong?

Sunny

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-24-2008, 01:09 PM
DA Morgan
 
Posts: n/a
Default Re: weird ORA-12514 error

sunny076@yahoo.com wrote:

> Hi,
>
> I am having a puzzling problem with connection to Oracle 9i. I
> developed a code in C# but when I tried to connect to a database, it
> gave me error "ORA-12514: TNS: listener could not resove SERVICE_NAME
> given in connect descriptor" But on the same machine I can connect and
> execute Oracle SQL without any error.
>
> I don't know what is wrong?
>
> Sunny


Believe the error message and track down the problem in your code.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-24-2008, 01:09 PM
Giovanni Azua
 
Posts: n/a
Default Re: weird ORA-12514 error

Hi,

Do you have Oracle Client installed in your PC?

This error happens more often when:

1-. Your TNSNAMES.ORA file does not contain the appropriate
SID configured. Find this file in %ORACLE_HOME%\network\admin.

2-. You have more than one Oracle home in your PC and the one
(default) being activated by your app happens #1 above.

3-. The listener service of the server is indeed down ... try
tnsping <SERVICE_NAME> in command line it will
tell you even which Oracle home and parameter file
TNSNAMES.ORA is being used.

If you get this kind of error means your application most likely uses
the OCI driver and not the Thin driver which has less deployment
requirements ... but don't know if Thin driver is available for C# as
it is for java (classes12.jar).

HTH,
Best Regards,
Giovanni

<sunny076@yahoo.com> wrote in message
news:1115159227.291469.178750@o13g2000cwo.googlegr oups.com...
> Hi,
>
> I am having a puzzling problem with connection to Oracle 9i. I
> developed a code in C# but when I tried to connect to a database, it
> gave me error "ORA-12514: TNS: listener could not resove SERVICE_NAME
> given in connect descriptor" But on the same machine I can connect and
> execute Oracle SQL without any error.
>
> I don't know what is wrong?
>
> Sunny
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-24-2008, 01:09 PM
Sybrand Bakker
 
Posts: n/a
Default Re: weird ORA-12514 error

On Tue, 3 May 2005 19:45:38 +0100, "Giovanni Azua"
<bravegag@hotmail.com> wrote:

>Hi,
>
>Do you have Oracle Client installed in your PC?


Please do not top post and include the entire message.


--
Sybrand Bakker, Senior Oracle DBA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-24-2008, 01:10 PM
Giovanni Azua
 
Posts: n/a
Default Re: weird ORA-12514 error

> Believe the error message and track down the problem in your code.
>

Extremelly helpful!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:41 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com