Solved

ODBC Oracle 8i TNSNAMES error

Posted on 2000-03-27
2
934 Views
Last Modified: 2008-03-10
How does the microsoft ODBC driver for oracle know where to look for the tnsnames entry so it can find the database and what influence does installing 7.3 and 8i versions of clients at the same time have on the equation???
0
Comment
Question by:che
2 Comments
 
LVL 4

Accepted Solution

by:
tbcox earned 500 total points
ID: 2662460
It looks in the Windows registry for certain keys under the CURRENT_MACHINE - SOFTWARE - ORACLE key.

If you want to specify a place for it to look, you can add under ORACLE the key-value pair TNS_ADMIN,"C:\ORAWIN95\NET80\ADMIN" (or whatever).

Installing two clients may have no effect (if they both went into the same Oracle Home) or may break things (if a new Oracle Home got activated during the install).  Only one home can be active at one time.  Try using the Oracle Home Selector to switch between them and see if this helps.

 -Tom
0
 

Expert Comment

by:aultowskis
ID: 2662540
The Oracle Open Database Connectivity (ODBC) driver allows third-party applications that support ODBC to connect to an Oracle database.  
The ODBC knows where to find the Oracle database because after the ODBC driver is installed it has to be configured with the Oracle "Service Name" you are trying to connect too.
For a NT computer, click on Start button and select Settings/Control Panel.  Dbl-click on the ODBC icon; the ODBC Data Source Administrator window will appear. Verify that the Oracle ODBC driver is installed. Now click on the ODBC drivers tab; the window should display "Oracle ODBC Driver".
Click on the User DSN tab to list the to list the ODBC data sources that can be used from the current machine; click on Add buttin. The create New Data Source window will appear.
Click on Oracle ODBC driver, then click finish. The Oracle ODBC Driver Setup window will appear. Type in a meaningful Data Source Name and description is the space provided. Type in a valid Service Name, as it appears in the %OracleHome%\Admin\TNSnames.ora file. Click on Ok to finish the setup.

As for installing Oracle 7.3 and 8i on the same client you would be wise to ensure that they have different Oracle homes, but I heard that if you install 8i on the client that it knows how to communicate with a 7.3 server.

good luck...steve
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

815 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

12 Experts available now in Live!

Get 1:1 Help Now