Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ODBC Oracle 8i TNSNAMES error

Posted on 2000-03-27
2
Medium Priority
?
942 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
[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
2 Comments
 
LVL 4

Accepted Solution

by:
tbcox earned 1500 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
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, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
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.

705 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