Ask the Expert

In .NET, how do I use SQL statements to retrieve data from an Oracle database?

For retrieving data from an Oracle database, how is .NET used to retrieve data using SQL statements?
You can either use the OleDb data provider in the System.Data.OleDb namespace, or download an oracle-specific provider. AFAIK, there are a number of such providers, such as the one from MS (, from CoreLab ( and from Oracle itself (

From there on, you use the regular ADO.NET interfaces, which are homogeneous among all providers, such as IDbConnection, IDataReader, etc. A good overview of ADO.NET and its interfaces can be found in the .NET Show about it at .

This was first published in February 2003

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: