ASP.NET website connecting to Oracle

Posted on 2011-10-11
Medium Priority
Last Modified: 2012-05-12
How to build the asp.net website from 32 bit machine (Windows XP prof) and deploy it to windows 2003  ( 64 bit) server.

Connecting to Oracle works fine from devlopment machine (windiows 32) but it doesn't work under windows 2003 server (64 bit server)

Just want to grab table simple table data and display on webgrid.
Question by:Bharat Guru
  • 2
LVL 11

Expert Comment

ID: 36951646
Is oracle client (32 bits) installed on the server, are you using the right provider?
On 32 bits there are 2 providers for Oracle one built by Microsoft and one built by Oracle. For 64 bits the is only one, from Oracle as Microsoft didn't develop his one for this platform.

Author Comment

by:Bharat Guru
ID: 36953290
can you please provide any sample code to display the table from oracle using asp.net
LVL 11

Accepted Solution

madgino earned 500 total points
ID: 36954014
So you are looking for Oracle Provider for OLE DB.

From here you install it on the server:

Here it is how to create connection string (the one with OraOLEDB.Oracle):

Here is how to use it in .NET:

My connection string in my .NET application running on 64-bit is:
Provider=OraOLEDB.Oracle.1;Password=pass;Persist Security Info=True;User ID=user;Data Source=data_source

Where data_source is defined in tnsnames.ora

Featured Post

Independent Software Vendors: 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!

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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 …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

864 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