Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4331466
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:06:48+00:00 2026-05-21T10:06:48+00:00

Today is my first day trying to use Oracle databases in Asp.NET so I

  • 0

Today is my first day trying to use Oracle databases in Asp.NET so I have no idea of what I need to do.

I have added this code

Dim oOracleConn As OracleConnection = New OracleConnection()
oOracleConn.ConnectionString = "Data Source=xxxxx;User Id=yyy;Password=psw;"
oOracleConn.Open()
Response.write("Connected to Oracle.")
oOracleConn.Close()
oOracleConn.Dispose()
End Sub

But it gives me the error

Type ‘OracleConnection’ is not defined.

Now i’ve had a look on the internet and it says that it may be the reference to the DLL that is missing?

I know I have got a DLL reference in my page and I don’t think I even have the DLL anywhere on my server.

Where do I get this DLL from?

I’ve downloaded the ODBC .NET data provider but this didn’t seem to help.

I’ve tried to add a reference in Visual Studio but I can’t find the Oracle client reference in the list.

Any ideas?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T10:06:48+00:00Added an answer on May 21, 2026 at 10:06 am

    The Oracle recommended method is to use the Oracle Data Provider for .NET

    You’ll need an Oracle Client that is compatible with the version of the database you are using installed on your dev machine and the web sever machine.

    There are some quirks with how you have to specify the database connection string. Some kind internet soul has documented the database connection strings for the oracle providers.

    The oracle client has a file, called TNSNAMES.ORA, which is typically located in the /NETWORK/ADMIN folder under the oracle home where the client was installed (the installation location varies by version and installation settings).

    This file contains a list of databases with the Port Number, Hostname, and Oracle SID which allows the oracle client to make a connection to a server.

    Once all of this is configured (or you decide to use the “TNS-less” connection string), you should be able to make database connections to oracle.

    The ODP.NET provider documentation also provides some sample code which is very helpful when getting started with it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Today is my first day using ASP.NET MVC, and I'm finding it very intriguing.
Today's my first day with Flex and FlashDevelop. In my ActionScript file, I have
I have a ASP.NET MVC page of Events of a specific day. I'm also
Please excuse me, today is my first day trying to setup a CI environment
I have Java code like that: //first moment of the today Calendar cal =
Today I added DLL in my ASP NET Web Service.I found two ways to
Today is officially my first day with C++ :P I've downloaded Visual C++ 2005
Today I had a coworker suggest I refactor my code to use a label
This is something I would like to see while doing my day today programming
Today is my first day learning java :) I'm having problems running a very

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.