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.





    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:

    //my port:1521

    //sid = abc

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







    Thursday, August 23, 2007 6:15 PM

All replies

  • Can u specify version of the oracle

    Thanks and Regards
    Friday, August 24, 2007 5:21 AM