Solved

Oracle ODBC connection for Crystal Reports

Posted on 2009-07-13
13
1,100 Views
Last Modified: 2013-12-19
I need to connect Crystal to an Oracle Database.  I have the DB in the tnsnames file.  I set-up the odbc connection and tested the connection and it is fine,  When I go to connect Crystal I keep getting the following error: ORA12154,  I also noticed that the tnsnames are not populating in the drop-down in the ODBC connection like my other computer.

Please help.
0
Comment
Question by:nobile00
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 5
13 Comments
 

Author Comment

by:nobile00
ID: 24845198
The connection is also fine in SQL Developer
0
 
LVL 40

Expert Comment

by:mrjoltcola
ID: 24845257
Test without ODBC. See below, change ORA1 to the name of your service/database.

1) tnsping ORA1

2) sqlplus user/pass@ORA1



If these fail make sure your tnsnames.ora does not have a syntax error. sample below/

# Replace CAT with your database instance name
# Replace the ip address with your server's ip address
CAT =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.5)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = CAT)
    )
  )

Open in new window

0
 

Author Comment

by:nobile00
ID: 24845312
Tried the above and crystal is still returning a ORA12154

Any reason the tnsnames are not populating in the ODBC connection drop-down.
0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 

Author Comment

by:nobile00
ID: 24845315
The pings came back fine.
0
 

Author Comment

by:nobile00
ID: 24845353
this is the tnsnames entry:

STAGING =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = icolims-dev-db.lab.iconcr.com)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SID = ICOLIMS)
    )
  )
0
 
LVL 40

Expert Comment

by:mrjoltcola
ID: 24845445
Do you have multiple ORACLE HOMEs?
0
 

Author Comment

by:nobile00
ID: 24845487
where would I look to find if I have multiple homes?  As far as I know I only have one.
0
 
LVL 40

Expert Comment

by:mrjoltcola
ID: 24845510
If windows, try your registry:

HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE

You also should make sure the user running .NET has privs. If the user that installed Oracle is a different user, that may cause the 2nd user not to see the Oracle libs and config.
0
 

Author Comment

by:nobile00
ID: 24845543
only one home listed.

Not sure what you mean about the .net
0
 
LVL 40

Expert Comment

by:mrjoltcola
ID: 24845564
Sorry I got the thread confused. I meant Crystal Reports / ODBC. There is another thread open with similar problem from .NET client.

Try setting ORACLE_HOME in the environment prior to starting Crystal reports.

set ORACLE_HOME=C:\oracle\10.2.0\...

Whatever your home is.


0
 

Author Comment

by:nobile00
ID: 24845590
Sorry but how do i do the above?  
0
 
LVL 40

Accepted Solution

by:
mrjoltcola earned 500 total points
ID: 24845619
I was talking about a DOS command prompt, but I don't know Crystal reports.

Check your System environment variables. See that the Oracle bin directory is in the PATH.

Are you using the same user for Crystal Reports as for ODBC
0
 

Author Closing Comment

by:nobile00
ID: 31603084
Thanks
Your info as well as a re-install of the client worked.
0

Featured Post

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Via a live example, show how to take different types of Oracle backups using RMAN.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Suggested Courses

626 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