Solved

Connect to Oracle Database Using C# Without Installing Oracle on the Computer

Posted on 2013-01-31
11
640 Views
Last Modified: 2013-02-14
Hello friends,

I would like to connect to an Oracle database sitting on a server, and I really do not want to install Oracle XE in my computer, since I don't need the Oracle DB in my computer anyway.  I just need to connect from my C# code.  I downloaded this from Oracle and put it in my C: drive:

http://www.oracle.com/technetwork/topics/winx64soft-089540.html

I'm not sure what to do next after this.  I'm pretty slick with using SQL Server with C#, but I haven't done this for an Oracle database before.

Thanks in advance for your assistance.

Jazon
0
Comment
Question by:piratepatrol
  • 5
  • 3
  • 2
  • +1
11 Comments
 
LVL 21

Assisted Solution

by:oleggold
oleggold earned 167 total points
ID: 38842151
You'll need one of the following,either Oracle thin client from downloads.oracle.com or built in msdora driver from microsoft
0
 
LVL 21

Expert Comment

by:oleggold
ID: 38842152
depending on Your vs installation You may already have the later and some sort of ado.net
0
 
LVL 3

Author Comment

by:piratepatrol
ID: 38842160
Hi oleggold,

How do I find out if I already have the prerequisites?

Thanks,

Jazon
0
 
LVL 7

Assisted Solution

by:Rahul_Gade
Rahul_Gade earned 166 total points
ID: 38842543
Oracle Instant client should solve your problem, you don't need any installation, you can just extract these libraries. See the article for more details : http://www.codeproject.com/Articles/18692/Instant-Oracle-Using-C
0
 
LVL 12

Expert Comment

by:praveencpk
ID: 38843237
download the proper version of oracle ODBC client or ODP.Net package from the oracle site mention in your post and then follow steps mention in the below site.

http://stackoverflow.com/questions/1626636/connecting-c-sharp-to-oracle
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 3

Author Comment

by:piratepatrol
ID: 38845544
Hey guys,

I downloaded the "Client Package - Basic Lite" from http://www.oracle.com/technetwork/topics/winx64soft-089540.html

How do I get my Visual Studio to know how to access the DLLs in this client package?  I see code samples online that says I need to do this...

using System.Data.OracleClient;

or this...

using Oracle.DataAccess.Client;

but my Visual Studio doesn't even know what OracleClient or Oracle is?  

Thanks in advance for your help.
0
 
LVL 3

Author Comment

by:piratepatrol
ID: 38853343
Help.  :)
0
 
LVL 12

Expert Comment

by:praveencpk
ID: 38854102
0
 
LVL 3

Author Comment

by:piratepatrol
ID: 38869959
Hi praveencpk,

It seems that the above requires that I install ODC.NET on my computer.  I was really hoping not to have to install anything.  :(  Isn't there an approach where I just refer Visual Studio to a folder with all the Oracle DLLs instead of actually installing ODC.NET?

Thanks again.


Jazon
0
 
LVL 12

Accepted Solution

by:
praveencpk earned 167 total points
ID: 38876031
it will only install the required .dll files in your computer like oracle.dataaccess which will be used for oracle connection.

Or

you can copy these .dll files and point it to your application but i'm not sure how efficient it is.

You can also go thouruugh this oracle doc on configuring ODP.net

http://www.oracle.com/technetwork/issue-archive/2008/08-nov/o68odpnet-101744.html
0
 
LVL 3

Author Closing Comment

by:piratepatrol
ID: 38889872
Thank you, guys.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

747 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

9 Experts available now in Live!

Get 1:1 Help Now