Solved

Connect oracle from Excel 2010

Posted on 2012-03-28
2
1,023 Views
Last Modified: 2012-04-21
I want to connect oracle from excel 2010.
My requirement is as below:
My machine has oracle client installed but the excel file needs to be distributed to approx 200 people.Those people does not have oracle client installed.
I want that instead of mentioning service name (which resolves through my tnsnames entry defined in my local machine), connection should use database host name(IP Address) and DB name.
I do not know how to do this.
Pls. give me step by step instruction for doing the same
0
Comment
Question by:surendra_oracle
[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 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 300 total points
ID: 37776585
>>Those people does not have oracle client installed.

To connect to an Oracle database, you need an Oracle client.  Ther is one exception that I do not believe Excel can use and that is the JDBC Thin conneciton.

I suggest the Instant Client with ODBC package:

http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html?ssSourceSiteId=ocomen
0
 
LVL 4

Expert Comment

by:ytarkan
ID: 37780678
First of all as slightwv said you "have to" have an oracle client on your excel machines. using service details instead of tnsnames.ora file does not provide you connection without oracle client.

Once you have proper client installed, you can use ADO connection in VBA code in excel macros

Dim adoc As New ADODB.Connection
adoc.Open "Provider=MSDAORA.1;Data Source=" & DSNName & ";User Id=" & User & ";Password=" & PassWord

etc. this part is beyond the scope of Oracle part...
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This collection of functions covers all the normal rounding methods of just about any numeric value.
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
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.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

729 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