Solved

ODBC Oracle 8i TNSNAMES error

Posted on 2000-03-27
2
931 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

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

Suggested Solutions

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.
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.

863 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

25 Experts available now in Live!

Get 1:1 Help Now