Solved

Connect oracle from Excel 2010

Posted on 2012-03-28
2
1,013 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
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

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 …
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
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…
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.

803 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