Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
275 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:Michael Sterling
  • 4
  • 2
  • 2
8 Comments
 
LVL 20

Accepted Solution

by:
informaniac earned 2000 total points
ID: 38793763
0
 
LVL 1

Author Comment

by:Michael Sterling
ID: 38794074
@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
ID: 38794274
you have to install the oracle client, the installer is inside ODTwithODAC112030.zip that informaniac linked
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 1

Author Comment

by:Michael Sterling
ID: 38794296
@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
 
LVL 1

Author Comment

by:Michael Sterling
ID: 38794312
@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
ID: 38794323
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:Michael Sterling
ID: 38815648
thank you.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

963 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