none
Is required to install Oracle client software to connect Oracle DB? RRS feed

  • Question

  • Hi!

    Is required to install Oracle client software to connect Oracle DB?  

    As following code will generate exception, prompt:"System.Data.OracleClient requires Oracle client software version 8.1.7 or greater."

     

    using System.Data.OracleClient;

    string dataSource ="(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=addr)(PORT=pt))(CONNECT_DATA=(SERVICE_NAME=svc)))";

    string connectionString=string.Format("Data Source={0};User Id={1};Password={2};",dataSource,"id","pwd");

    using (OracleConnection connection=new OracleConnection(connectionString))

    {

    connection.Open();

    }

    Thursday, July 8, 2010 7:47 AM

Answers