B
ben
Below is the error message I am receiving on a production server with the
Oracle 9.2 client installed. However, on a Oracle 9.0 client installation on
the development server the problem does not occur.
System.Exception: Could not create an environment: OCIEnvCreate returned -1.
This occurs when trying to connect.
using System.Data.OracleClient
this.connection = new OracleConnection("Data Source=" +
ConfigurationSettings.AppSettings["db_orac"] + ";User ID=" +
ConfigurationSettings.AppSettings["db_user"] + ";Password=" +
ConfigurationSettings.AppSettings["db_pass"] + ";");
this.connection.Open();
this.command = new OracleCommand();
this.command.Connection = this.connection;
ds = new DataSet();
command.Parameters.Clear();
command.CommandText = "MyTableSpace.MyPackage.get_list";
command.CommandType = CommandType.StoredProcedure;
command.Parameters.Add(new OracleParameter("io_cursor",
OracleType.Cursor)).Direction = ParameterDirection.Output;
this.da = new OracleDataAdapter(this.command);
this.da.Fill(ds,"List");
this.connection.Close();
I am desperately trying to find a solution. Any help would be much
appreciated!!
Regards,
Ben
Oracle 9.2 client installed. However, on a Oracle 9.0 client installation on
the development server the problem does not occur.
System.Exception: Could not create an environment: OCIEnvCreate returned -1.
This occurs when trying to connect.
using System.Data.OracleClient
this.connection = new OracleConnection("Data Source=" +
ConfigurationSettings.AppSettings["db_orac"] + ";User ID=" +
ConfigurationSettings.AppSettings["db_user"] + ";Password=" +
ConfigurationSettings.AppSettings["db_pass"] + ";");
this.connection.Open();
this.command = new OracleCommand();
this.command.Connection = this.connection;
ds = new DataSet();
command.Parameters.Clear();
command.CommandText = "MyTableSpace.MyPackage.get_list";
command.CommandType = CommandType.StoredProcedure;
command.Parameters.Add(new OracleParameter("io_cursor",
OracleType.Cursor)).Direction = ParameterDirection.Output;
this.da = new OracleDataAdapter(this.command);
this.da.Fill(ds,"List");
this.connection.Close();
I am desperately trying to find a solution. Any help would be much
appreciated!!
Regards,
Ben