Solved

Error connecting to Oracle database from .Net windows forms

Posted on 2007-12-04
3
2,326 Views
Last Modified: 2013-12-18
I am trying to connect to Oracle database from .Net Windows forms and I get "OCIEnvCreate failed with return code -1 but error message text was not available".

OracleConnection _oraConnection = new OracleConnection();

string connectionString = "Data Source=mydatabase.co.karu.com;User ID=tempuser;Unicode=True; password=pass123";

 _oraConnection.ConnectionString = connectionString;

_oraConnection.Open();

System.Windows.Forms.MessageBox.Show("Login Success");

Open in new window

0
Comment
Question by:Karuppaiah
  • 2
3 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 250 total points
ID: 20525103
hi,

This is most likely caused by one of:
1. Not having the .net Oracle client library installed
2. Not having the correct version of .net Oracle client library installed
3. Not having the Oracle Client installed/configured at all

is this happening in development, or on an installed client?
0
 

Author Comment

by:Karuppaiah
ID: 20794156
Need to install Oracle client for vista
0
 

Author Comment

by:Karuppaiah
ID: 20794174
thanks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now