Solved

Oracle ODBC connection for Crystal Reports

Posted on 2009-07-13
13
1,098 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
  • 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

790 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