Solved

ODBC Oracle 8i TNSNAMES error

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

Join & Write a Comment

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows how to recover a database from a user managed backup
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

757 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

19 Experts available now in Live!

Get 1:1 Help Now