alternative oracle drivers for net

alternative oracle drivers for net  using -'c#,oracle,database-connection'

I have to develop a tool in C# that retrieves some data from an Oracle DB. Since our IT support is having some trouble with installing the Oracle client, I want to be able to connect to the database without the client installed.
The idea is to just install (and maybe register) an additional library together with the app.

Which alternatives to the Oracle client exist, and what are their pros and cons?

This is for a small application (1 form, 2 or 3 queries, the result displayed in a DataGrid, probably no more than 10-20 data sets), but I am also interested in scalability issues, since we may also move away from the Oracle client with bigger future projects.

Of course a freeware solution would be nice, but we are not limited to that.

asked Sep 16, 2015 by loknath.ganji
0 votes

4 Answers

0 votes

There are a couple different flavors of the Oracle ODP.Net driver. Which version are you trying to use?

It sounds like you want the Oracle 11g ODAC with Xcopy Deployment, which allows you to deploy the Oracle Instant Client and the ODP.Net driver just by copying a few DLLs over and registering them. That doesn't require a full-blown Oracle client installation.

answered Sep 16, 2015 by mca.agarwal
0 votes

Your task can be achieved without the need of any third party software:

  1. Install Oracle Data Access Components 11g in your development box. ODAC 11g is backwards compatible with 9i and 10g
  2. Add a reference to the ODAC library in your .NET projects (Oracle.DataAccess.dll).
  3. Allow your application to connect without the use of TNSNAMES.ORA. To do so, you have to include the connect descriptor in the connection string:

    "user id=scott;password=tiger;data source=" + "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)" + "(HOST=sales-server)(PORT=1521))(CONNECT_DATA="+ "("

Since you are including the connect descriptor in the connection string, the thin client is not required in the targeted computers.

Happy deployment.

answered Sep 16, 2015 by abhi
0 votes

Oracle currently has a version of ODP.NET that is fully managed, allowing developers to connect to Oracle databases while referencing only a single DLL. There's more information here.

Current releases can be found here.

answered Sep 16, 2015 by deven.bendale
0 votes

The enterprise library client System.Data.OracleClient is a viable alternative to the ODP.NET provider from Oracle. There are severla caveats you should know though, using the Microsoft client will make it extremely difficult to work with any type of large objects whether they are XML strings, CLOBs, LOBs or BLOBs. Also the Oracle XmlType column is not supported and must be casted to a CLOB to be returned into the OracleClient.

answered Sep 16, 2015 by sachin wagh