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
273 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 20

Accepted Solution

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

Author Comment

by:mikesExpertExchange
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:mikesExpertExchange
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:mikesExpertExchange
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:mikesExpertExchange
ID: 38815648
thank you.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses

615 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