Solved

[Oracle][ODBC][Ora]Error while trying to retrieve text for error ORA-12154

Posted on 2003-11-05
10
4,343 Views
Last Modified: 2012-08-14
I am trying to connect to an Oracle database and keep getting this error:  [Oracle][ODBC][Ora]Error while trying to retrieve text for error ORA-12154.  Can anyone help?
0
Comment
Question by:dick3677
10 Comments
 
LVL 3

Expert Comment

by:AnnetteHarper
ID: 9687384
ORA-12154 TNS is "Could not resolve service name" and indicates that the Oracle client is not properly installed or configured. Have you verified that you can access your Oracle database from SQL*Plus? Probably the service name does not exist in your TNSNames.ORA file.
0
 

Author Comment

by:dick3677
ID: 9688089
tnsnames.ora is OK.  SQLPlus is OK.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 9688811
What version of CR?  What version of Oracle?

I read somewhere that there are some incompatibilities between Oracle and CR which are version dependent.

mlmcc
0
 
LVL 3

Expert Comment

by:AnnetteHarper
ID: 9688813
Hhmm, seems unlikely that you would get this particular error if you can connect OK using SQL*Plus. You don't by any chance have multiple Oracle Homes, do you? In that case, you may have multiple tnsnames files.

Also, can you verify that the DSN is OK using some other tool? Maybe Microsoft Query or Access or something? This is a lower level error than the ODBC layer, but this check might tell you something.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:dick3677
ID: 9688874
I tried MS Query and got the same error.
0
 
LVL 3

Accepted Solution

by:
AnnetteHarper earned 168 total points
ID: 9689978
Well, at least you know its not Crystal then!

This situation seems a little odd to me. The error is saying that it can't resolve the service name, which means that it can't find a tnsnames file, or the name you've listed is not in the tnsnames file. (unless you use Oracle names instead of a tnsnames file)

Which ODBC driver are you using? The CR Oracle ODBC or Oracle's or some other one? Each one calls the service name something different, but verify that the name you're typing into the ODBC DSN setup matches the tnsname.

If you will post your tnsnames entry and tell me which ODBC driver you're using, I can verify the proper configuration for you.
0
 
LVL 6

Assisted Solution

by:PWinter
PWinter earned 166 total points
ID: 9706183
Hi.

Do you have any subreports? If yes, you have to verify each of them same way as you did for the main report.

Good Luck.
PW
0
 

Assisted Solution

by:JimGoeben
JimGoeben earned 166 total points
ID: 10291458
Did you find an answer to this? I had the same issue; however, I was able to see the query results, but other's were not. I added everyone with view rights to the security of the C:\oracle\ora92\ directory and that fixed it.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

910 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

22 Experts available now in Live!

Get 1:1 Help Now