OCIEnvCreate returned -1

  • Thread starter Thread starter Rui
  • Start date Start date
R

Rui

Hi everyone!!!
Can enybody help me??
When i try to connecto to an Oracle DataBase using the Oracle Client obejct
i get an erro rmessage that says:

"The connection could not be opened becaise of the following error: Could
not create an environment: OCIEnvCreate returned -1.."

Thanks for your help.

Best regards
 
Do you have the Oracle client libraries (from Oracle Corp) installed on your
machine? Are they version 8 or above? If so, does your program have access
to them (NTFS access to the location [Oracle Home] where the libraries
reside)?

Bob Beauchemin
http://staff.develop.com/bobb
 
Hi there!!!
I assume so, because when i can connect to my oracle server by using an ODBC
driver.
Do you think that is the same thing or can be any kind of problem anyway?
Thanks!

Bob Beauchemin said:
Do you have the Oracle client libraries (from Oracle Corp) installed on your
machine? Are they version 8 or above? If so, does your program have access
to them (NTFS access to the location [Oracle Home] where the libraries
reside)?

Bob Beauchemin
http://staff.develop.com/bobb


Rui said:
Hi everyone!!!
Can enybody help me??
When i try to connecto to an Oracle DataBase using the Oracle Client obejct
i get an erro rmessage that says:

"The connection could not be opened becaise of the following error: Could
not create an environment: OCIEnvCreate returned -1.."

Thanks for your help.

Best regards
 
Rui,
This error can be caused by ACLs that the Oracle Installer places on the
ORACLE_HOME directory, which prevents us from loading DLLs from it. There is
a KB article on this on the works but I don't think it is available yet. Try
using filemon from http://www.systeminternals.com/ to make sure,

Hope this helped,
--
Angel Saenz-Badillos [MS] Managed Providers
This posting is provided "AS IS", with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.


Rui said:
Hi there!!!
I assume so, because when i can connect to my oracle server by using an ODBC
driver.
Do you think that is the same thing or can be any kind of problem anyway?
Thanks!

Bob Beauchemin said:
Do you have the Oracle client libraries (from Oracle Corp) installed on your
machine? Are they version 8 or above? If so, does your program have access
to them (NTFS access to the location [Oracle Home] where the libraries
reside)?

Bob Beauchemin
http://staff.develop.com/bobb


Rui said:
Hi everyone!!!
Can enybody help me??
When i try to connecto to an Oracle DataBase using the Oracle Client obejct
i get an erro rmessage that says:

"The connection could not be opened becaise of the following error: Could
not create an environment: OCIEnvCreate returned -1.."

Thanks for your help.

Best regards
 
Back
Top