Solved

Connect oracle from Excel 2010

Posted on 2012-03-28
2
1,000 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
2 Comments
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 300 total points
Comment Utility
>>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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

771 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

14 Experts available now in Live!

Get 1:1 Help Now