web analytics
OCIEnvCreate failed with return code -1 but error message text was not available. Options
codeling
Posted: Monday, May 8, 2017 10:38:26 AM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 919
Points: 3861

I have an C# application that connects to an Oracle database. When I run this application, I am getting the following error:

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

Sponsor
Posted: Monday, May 8, 2017 10:38:26 AM
 
codeling
Posted: Monday, May 8, 2017 10:40:41 AM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 919
Points: 3861

When trying to connect to an Oracle database you receive the following error: "OCIEnvCreate failed with return code -1 but error message text was not available"

The causes is you have multiple version of  the Oracle Client installed in your local computerw which are causing a conflict.

The solutions:

1) Install a supported version of the Oracle Client.

2) Perform a search for "OCI.DLL" on the local machine. If you find any instances of this file in any location other than your ORACLE_HOME rename or delete it. If in doubt, uninstall the Oracle Client, then perform the search again. Anything that is leftover is the culprit.

Users browsing this topic
Guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.


© 2017 Digcode.com. All rights reserved.