Solved

Setting up ODBC connection to 11g database

Posted on 2012-03-27
7
514 Views
Last Modified: 2012-03-28
Hi - My co-workers and I use an Excel spreadsheet that connects to an Oracle 11g database.  We are all running Oracle 8 client versions (plan to upgrade in the near future).   In the meantime, we have a new employee who had the version 11 client installed on his notebook (no prior versions existed on his computer).  I need to set him up to use the Excel tool and would like to confirm that I have to follow the same steps I did for setting up access from my own Oracle 8 client:  (1) Set up entry in TNSNAMES.ORA file and (2) create ODBC data source.   I can't seem to locate a TNSNAMES.ORA file on his notebook - if I do need to add an entry, can someone steer me in the right direction?  Thank you!
0
Comment
Question by:jolodali
7 Comments
 
LVL 23

Expert Comment

by:OP_Zaharin
Comment Utility
-you can follow the following steps:

1- install Oracle client
2- copy tnsnames.ora from your machine/server to the user notebook and place it in the <oracle client folder>\network\admin
3- go to properties of My Computer. then select Environment Variables. create a new system variable call TNS_ADMIN and specify to the path of #2. you can also create another system variable call ORACLE_HOME and point it to your Oracle client folder.
4- create ODBC and test

-just a suggestion, you can download for FREE the latest Oracle client since you are connecting to 11g to take advantage of the latest client feature at Oracle site. (registration is required and its free registration). or install a light version of client called Instant Client. the installation can be found if you search here in EE.

11g client: http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-win32soft-098987.html

instant client: http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
0
 

Author Comment

by:jolodali
Comment Utility
Thank you for your post.  I have to wait until tomorrow to access his computer again, but I didn't notice the network/admin path in his client folder.  Is it definitely part of the 11 installation? (I do have it in my own 8)
0
 
LVL 23

Assisted Solution

by:OP_Zaharin
OP_Zaharin earned 150 total points
Comment Utility
-network\admin path is created during client installation regardless of the versions. can't remember if its there for oracle 7 client. if its not there in the user notebook, you can create that folder in the oracle client folder then create the TNS_ADMIN entry in the environment variable.
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.

 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 200 total points
Comment Utility
The Instant Client does not create the network/admin folder.  You need to create it manually or use the TNS_ADMIN environment variable.

There is not really a "then create the TNS_ADMIN entry".  It is one or the other.  Typically not both.
0
 

Author Comment

by:jolodali
Comment Utility
It sounds like if he doesn't have a network/admin folder, I can create one and put a copy of my TNSNAMES.ORA in it.  On my own notebook (old 8 client), network/admin is in C:\Oracle\ora81, so I'm assuming I would put it in the analogous level on his computer.  I also see I have sqlnet.ora in the admin folder - should I copy that to his directory too?
0
 
LVL 12

Assisted Solution

by:praveencpk
praveencpk earned 150 total points
Comment Utility
Yes you have to copy sqlnet.ora and the TNSNAMES.ORA files and paste it in network/admin folder of your new employee notebook.
0
 

Author Closing Comment

by:jolodali
Comment Utility
Thanks for your help - it's working fine.  I split the points because I learned something from each of you.
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

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
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 …
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.

772 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