none
OracleConnection - OCIEnvCreate failed RRS feed

  • Question

  •  

    My oracle server is sitting on a server...its sid is ABC  I try the following and I get  an oci exception, can anyone help.

     

    OCIEnvCreate failed with return code -1 but error message text was not available.

     

    Thanks

     

     

    Code Snippet

    using System;

    using System.Collections.Generic;

    using System.Text;

    using System.Data.OracleClient;

    namespace oracleConnection

    {

    class Program

    {

    static void Main(string[] args)

    {

    //my server's ip is: 1.1.1.10

    //my port:1521

    //sid = abc

    OracleConnection con = new OracleConnection(@"data source=1.1.1.10;uid=me;pwd=some");

    con.Open();

    }

    }

    }

     

     

    Thursday, August 23, 2007 6:15 PM

All replies