Solved

How do I connect to an oracle db in my ASP .NET web application, and what do I need to make this work?

Posted on 2013-01-18
8
259 Views
Last Modified: 2013-01-24
This is my first time connecting to an Oracle DB in a web application. What all do I need to make this work? Which using statement do I need? Do I need to add a reference to my Bin folder? If so which one? Are there any clear examples of this (links to them)? Where can I find / download the Oracle Client for .NET?
0
Comment
Question by:mikesExpertExchange
  • 4
  • 2
  • 2
8 Comments
 
LVL 20

Accepted Solution

by:
informaniac earned 500 total points
Comment Utility
0
 
LVL 1

Author Comment

by:mikesExpertExchange
Comment Utility
@infomaniac: thank you. I downloaded that and wrote some code. all is well with the exception of me getting this error message:

{System.Exception: System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.}

when I attempt to open my connection. how do I upgrade to the correct version? Or, where do I go to get the download that contains the correct version?
0
 
LVL 9

Expert Comment

by:sognoct
Comment Utility
you have to install the oracle client, the installer is inside ODTwithODAC112030.zip that informaniac linked
0
 
LVL 1

Author Comment

by:mikesExpertExchange
Comment Utility
@sognoct: ok. I'm having trouble with being for certain which file that is within the zip. i think that's what I need help locating / specifying. I followed the instrctions in the read me html file and opened a command line and did:

install.bat all c:\oracle oda

i thought that would do it. no?
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 20

Expert Comment

by:informaniac
Comment Utility
0
 
LVL 1

Author Comment

by:mikesExpertExchange
Comment Utility
@informaniace: in the statment below, where do I find this at? (this being: "the reference to the ODP.NET).

"In the reference to the ODP.Net make sure "require specific version" = False.  You may also want to set Copy Local to True.  If you aren't using ODP.Net then you may want to look into doing that."

Also how do (or where do) i check which version of Oracle Client I'm running? Sorry about the "newbie" questions but i am new to this.
.
0
 
LVL 9

Expert Comment

by:sognoct
Comment Utility
I used ODTwithODAC112030.zip

in :
http://www.oracle.com/technetwork/topics/dotnet/utilsoft-086879.html

and there is
ODTwithODAC112030.zip

this contains a working
setup.exe run it as administrator and will work

for the new version, I've not installed yet ...
0
 
LVL 1

Author Closing Comment

by:mikesExpertExchange
Comment Utility
thank you.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 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

10 Experts available now in Live!

Get 1:1 Help Now