473,396 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Oracle Connection Error

Dim oOracleConn As OracleConnection = New OracleConnection
()
oOracleConn.ConnectionString = "Data
Source=FTEST920;uid=master_schedule;pwd=dragons1;"
oOracleConn.Open()

This is an ASP.Net application and the build goes fine
with no errors, but when I try to run from the development
environment I get the following. I am using Visual Studio
2002 with 1.1 framework.

System.Exception: Could not create an environment:
OCIEnvCreate returned -1.

Any help would be appreciated.

Thanks
Jack

Nov 17 '05 #1
8 2563
Hi

Try the following connection string:
Standard:
"Data Source=Oracle8i;Integrated Security=yes";

This one works only with Oracle 8i release 3 or later
Declare the OracleConnection:

C#:
using System.Data.OracleClient;
OracleConnection oOracleConn = new OracleConnection();
oOracleConn.ConnectionString = "my connectionstring";
oOracleConn.Open();

VB.NET:
Imports System.Data.OracleClient
Dim oOracleConn As OracleConnection = New OracleConnection
()
oOracleConn.ConnectionString = "my connectionstring"
oOracleConn.Open()

HTH
Ravikanth[MVP]

-----Original Message-----
Dim oOracleConn As OracleConnection = New OracleConnection()
oOracleConn.ConnectionString = "Data
Source=FTEST920;uid=master_schedule;pwd=dragons1; "
oOracleConn.Open()

This is an ASP.Net application and the build goes fine
with no errors, but when I try to run from the developmentenvironment I get the following. I am using Visual Studio2002 with 1.1 framework.

System.Exception: Could not create an environment:
OCIEnvCreate returned -1.

Any help would be appreciated.

Thanks
Jack

.

Nov 17 '05 #2
Hi

Try the following connection string:
Standard:
"Data Source=Oracle8i;Integrated Security=yes";

This one works only with Oracle 8i release 3 or later
Declare the OracleConnection:

C#:
using System.Data.OracleClient;
OracleConnection oOracleConn = new OracleConnection();
oOracleConn.ConnectionString = "my connectionstring";
oOracleConn.Open();

VB.NET:
Imports System.Data.OracleClient
Dim oOracleConn As OracleConnection = New OracleConnection
()
oOracleConn.ConnectionString = "my connectionstring"
oOracleConn.Open()

HTH
Ravikanth[MVP]

-----Original Message-----
Dim oOracleConn As OracleConnection = New OracleConnection()
oOracleConn.ConnectionString = "Data
Source=FTEST920;uid=master_schedule;pwd=dragons1; "
oOracleConn.Open()

This is an ASP.Net application and the build goes fine
with no errors, but when I try to run from the developmentenvironment I get the following. I am using Visual Studio2002 with 1.1 framework.

System.Exception: Could not create an environment:
OCIEnvCreate returned -1.

Any help would be appreciated.

Thanks
Jack

.

Nov 17 '05 #3
Thanks for the suggestion, but I am getting the same error.
-----Original Message-----
Hi

Try the following connection string:
Standard:
"Data Source=Oracle8i;Integrated Security=yes";

This one works only with Oracle 8i release 3 or later
Declare the OracleConnection:

C#:
using System.Data.OracleClient;
OracleConnection oOracleConn = new OracleConnection();
oOracleConn.ConnectionString = "my connectionstring";
oOracleConn.Open();

VB.NET:
Imports System.Data.OracleClient
Dim oOracleConn As OracleConnection = New OracleConnection
()
oOracleConn.ConnectionString = "my connectionstring"
oOracleConn.Open()

HTH
Ravikanth[MVP]

-----Original Message-----
Dim oOracleConn As OracleConnection = New

OracleConnection
()
oOracleConn.ConnectionString = "Data
Source=FTEST920;uid=master_schedule;pwd=dragons1 ;"
oOracleConn.Open()

This is an ASP.Net application and the build goes fine
with no errors, but when I try to run from the

development
environment I get the following. I am using Visual

Studio
2002 with 1.1 framework.

System.Exception: Could not create an environment:
OCIEnvCreate returned -1.

Any help would be appreciated.

Thanks
Jack

.

.

Nov 17 '05 #4
Thanks for the suggestion, but I am getting the same error.
-----Original Message-----
Hi

Try the following connection string:
Standard:
"Data Source=Oracle8i;Integrated Security=yes";

This one works only with Oracle 8i release 3 or later
Declare the OracleConnection:

C#:
using System.Data.OracleClient;
OracleConnection oOracleConn = new OracleConnection();
oOracleConn.ConnectionString = "my connectionstring";
oOracleConn.Open();

VB.NET:
Imports System.Data.OracleClient
Dim oOracleConn As OracleConnection = New OracleConnection
()
oOracleConn.ConnectionString = "my connectionstring"
oOracleConn.Open()

HTH
Ravikanth[MVP]

-----Original Message-----
Dim oOracleConn As OracleConnection = New

OracleConnection
()
oOracleConn.ConnectionString = "Data
Source=FTEST920;uid=master_schedule;pwd=dragons1 ;"
oOracleConn.Open()

This is an ASP.Net application and the build goes fine
with no errors, but when I try to run from the

development
environment I get the following. I am using Visual

Studio
2002 with 1.1 framework.

System.Exception: Could not create an environment:
OCIEnvCreate returned -1.

Any help would be appreciated.

Thanks
Jack

.

.

Nov 17 '05 #5
Jack:

It could be a permissions problem. Did you grant the account at least read
access to the ORACLE_HOME directory?
"Jack" <ja**********@lmberry.com> wrote in message
news:0a****************************@phx.gbl...
Thanks for the suggestion, but I am getting the same error.
-----Original Message-----
Hi

Try the following connection string:
Standard:
"Data Source=Oracle8i;Integrated Security=yes";

This one works only with Oracle 8i release 3 or later
Declare the OracleConnection:

C#:
using System.Data.OracleClient;
OracleConnection oOracleConn = new OracleConnection();
oOracleConn.ConnectionString = "my connectionstring";
oOracleConn.Open();

VB.NET:
Imports System.Data.OracleClient
Dim oOracleConn As OracleConnection = New OracleConnection
()
oOracleConn.ConnectionString = "my connectionstring"
oOracleConn.Open()

HTH
Ravikanth[MVP]

-----Original Message-----
Dim oOracleConn As OracleConnection = New

OracleConnection
()
oOracleConn.ConnectionString = "Data
Source=FTEST920;uid=master_schedule;pwd=dragons1 ;"
oOracleConn.Open()

This is an ASP.Net application and the build goes fine
with no errors, but when I try to run from the

development
environment I get the following. I am using Visual

Studio
2002 with 1.1 framework.

System.Exception: Could not create an environment:
OCIEnvCreate returned -1.

Any help would be appreciated.

Thanks
Jack

.

.

Nov 17 '05 #6
Jack:

It could be a permissions problem. Did you grant the account at least read
access to the ORACLE_HOME directory?
"Jack" <ja**********@lmberry.com> wrote in message
news:0a****************************@phx.gbl...
Thanks for the suggestion, but I am getting the same error.
-----Original Message-----
Hi

Try the following connection string:
Standard:
"Data Source=Oracle8i;Integrated Security=yes";

This one works only with Oracle 8i release 3 or later
Declare the OracleConnection:

C#:
using System.Data.OracleClient;
OracleConnection oOracleConn = new OracleConnection();
oOracleConn.ConnectionString = "my connectionstring";
oOracleConn.Open();

VB.NET:
Imports System.Data.OracleClient
Dim oOracleConn As OracleConnection = New OracleConnection
()
oOracleConn.ConnectionString = "my connectionstring"
oOracleConn.Open()

HTH
Ravikanth[MVP]

-----Original Message-----
Dim oOracleConn As OracleConnection = New

OracleConnection
()
oOracleConn.ConnectionString = "Data
Source=FTEST920;uid=master_schedule;pwd=dragons1 ;"
oOracleConn.Open()

This is an ASP.Net application and the build goes fine
with no errors, but when I try to run from the

development
environment I get the following. I am using Visual

Studio
2002 with 1.1 framework.

System.Exception: Could not create an environment:
OCIEnvCreate returned -1.

Any help would be appreciated.

Thanks
Jack

.

.

Nov 17 '05 #7
Yes, actually the tables are on a development box and the
account is a administrator.
-----Original Message-----
Jack:

It could be a permissions problem. Did you grant the account at least readaccess to the ORACLE_HOME directory?
"Jack" <ja**********@lmberry.com> wrote in message
news:0a****************************@phx.gbl...
Thanks for the suggestion, but I am getting the same error.
>-----Original Message-----
>Hi
>
>Try the following connection string:
> Standard:
>"Data Source=Oracle8i;Integrated Security=yes";
>
>This one works only with Oracle 8i release 3 or later
> Declare the OracleConnection:
>
>C#:
>using System.Data.OracleClient;
>OracleConnection oOracleConn = new OracleConnection();
>oOracleConn.ConnectionString = "my connectionstring";
>oOracleConn.Open();
>
>VB.NET:
>Imports System.Data.OracleClient
>Dim oOracleConn As OracleConnection = New OracleConnection >()
>oOracleConn.ConnectionString = "my connectionstring"
>oOracleConn.Open()
>
>
>
>HTH
>Ravikanth[MVP]
>
>
>>-----Original Message-----
>>Dim oOracleConn As OracleConnection = New
>OracleConnection
>>()
>> oOracleConn.ConnectionString = "Data
>>Source=FTEST920;uid=master_schedule;pwd=dragons1 ;"
>> oOracleConn.Open()
>>
>>This is an ASP.Net application and the build goes fine
>>with no errors, but when I try to run from the
>development
>>environment I get the following. I am using Visual
>Studio
>>2002 with 1.1 framework.
>>
>>System.Exception: Could not create an environment:
>>OCIEnvCreate returned -1.
>>
>>Any help would be appreciated.
>>
>>Thanks
>>Jack
>>
>>.
>>
>.
>

.

Nov 17 '05 #8
Yes, actually the tables are on a development box and the
account is a administrator.
-----Original Message-----
Jack:

It could be a permissions problem. Did you grant the account at least readaccess to the ORACLE_HOME directory?
"Jack" <ja**********@lmberry.com> wrote in message
news:0a****************************@phx.gbl...
Thanks for the suggestion, but I am getting the same error.
>-----Original Message-----
>Hi
>
>Try the following connection string:
> Standard:
>"Data Source=Oracle8i;Integrated Security=yes";
>
>This one works only with Oracle 8i release 3 or later
> Declare the OracleConnection:
>
>C#:
>using System.Data.OracleClient;
>OracleConnection oOracleConn = new OracleConnection();
>oOracleConn.ConnectionString = "my connectionstring";
>oOracleConn.Open();
>
>VB.NET:
>Imports System.Data.OracleClient
>Dim oOracleConn As OracleConnection = New OracleConnection >()
>oOracleConn.ConnectionString = "my connectionstring"
>oOracleConn.Open()
>
>
>
>HTH
>Ravikanth[MVP]
>
>
>>-----Original Message-----
>>Dim oOracleConn As OracleConnection = New
>OracleConnection
>>()
>> oOracleConn.ConnectionString = "Data
>>Source=FTEST920;uid=master_schedule;pwd=dragons1 ;"
>> oOracleConn.Open()
>>
>>This is an ASP.Net application and the build goes fine
>>with no errors, but when I try to run from the
>development
>>environment I get the following. I am using Visual
>Studio
>>2002 with 1.1 framework.
>>
>>System.Exception: Could not create an environment:
>>OCIEnvCreate returned -1.
>>
>>Any help would be appreciated.
>>
>>Thanks
>>Jack
>>
>>.
>>
>.
>

.

Nov 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: JWM | last post by:
I am trying to implement Oracle connection pooling for the following code, which was written by someone else. Here is my main question -- this java file creates code that is executed every hour,...
4
by: Tig | last post by:
Hi all. I have a need to connect to an Oracle 7.3.3.5 database. I have a user who successfully connects to it with her Oracle 7.3 client. I have an Oracle 9.2 client installed on my machine....
1
by: Cliff Cooley | last post by:
Can anybody suggest what may be causing the following problem ? I have an ASP script that opens a connection to an Oracle database using a DSN connection string, such as : Set dbConn=...
1
by: Andrew Arace | last post by:
I scoured the groups for some hands on code to perform the menial task of exporting table data from an Access 2000 database to Oracle database (in this case, it was oracle 8i but i'm assuming this...
9
by: mcbill20 | last post by:
Hello all. I just installed Oracle 10g developer tools on a machine running XP Pro and Office XP. Before this I had just the Oracle 9 client installed. I the previous configuration, I was able to...
0
by: ʹÃûÑï | last post by:
ORA-03114: not connected to ORACLE && MS's Bug?? DataBase:Oracle 817 using OracleClient,net framework 1.1 I'm using ADO.Net in C# with Oracle 817. and following is my public data access...
5
by: petro | last post by:
Hello all, My asp.net web application works on my machine but I get the following error on our test web server, There is only one oracle home on the test server. Does anyone know how to resolve...
2
by: Ben | last post by:
Hi, I have a problem connecting to Oracle using and ODBC connection in a ASP.Net web page. The TNS Names works fine because when I create a DSN it works, and it works in SQL Plus. Here are...
1
by: Magnus Flisberg | last post by:
Best programmer, My mission is to execute a sql statement in vb.net and retrive the data into a file. I have managed to detect som issues with my code: queryString = "SELECT ...." ...
0
by: | last post by:
Hi All, I have a client connection problem with Oracle. The exe which i did with C# (vs.net 2005) and Oracle XE , works well on my developer machine but i am getting a connection string error on...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.