Solved

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

Posted on 2003-11-05
10
4,276 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 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

18 Experts available now in Live!

Get 1:1 Help Now