Discussion:
[soci-users] ORACLE: Cannot create environment
isoul zi
2013-07-31 07:53:34 UTC
Permalink
ЎеМь ЎПбрый.
ИспПльзую SOCI 3.0.0 бОблОПтеку Ўля ЎПступа к ОРАКЛЕ.
Все ПтлОчМП рабПтает.
ППМаЎПбОлПсь "разЌМПжОть" ЎаММПе прОлПжеМОе. Т.к. "рабПчОе" ПК, МахПЎятся в разМых гПрПЎах, былО выслаМП прОлПжеМОе, все МеПбхПЎОЌые бОблОПтекО О клОеМт ОРАКЛЕ. ПК ОМЎеМтОчМы, ОС устаМПвлеМа у всех ПЎМа, Оракле клОеМт еЎОМый, переЌеММые среЎы ПЎОМакПвые! ВППбщеЌ Ма Ўвух Оз трех ПК, прОлПжеМОе запускается, Ма третьеЌ ПК Мет!
ПОшет "Cannot create environment"
Я пПМОЌаю, чтП SOCI Ме ЌПжет,  "сПзЎать" переЌеММые OCI среЎы, МП еще раз пПвтПрю - все ОЎеМтОчМП(Ўаже ЌатерОМскОе платы О т.ÐŽ.)
ППЎскажОте в чтП ЌПжет быть Ме так?



Good day .
SOCI 3.0.0 use the library to access Oracle .
Everything works fine .
It took a " multiply " the application. Since "working" PC are in different cities , have been sent to the application , all the necessary libraries and Oracle client . PCs are identical , the OS is installed at all one , Orakle single client , environment variables are the same! Generally two of the three PCs, the application runs in the third PC is not!
Writes "Cannot create environment"
I understand that the SOCI can not "create" OCI environment variables , but I repeat - all identical (even motherboards , etc.)
Prompt in what could be wrong?
--
isoul zi
Mateusz Loskot
2013-07-31 09:10:19 UTC
Permalink
SOCI 3.0.0 use the library to access Oracle.
Everything works fine.
It took a "multiply" the application. Since "working" PC are in different
cities, have been sent to the application, all the necessary libraries and
Oracle client. PCs are identical, the OS is installed at all one, Orakle
single client, environment variables are the same! Generally two of the
three PCs, the application runs in the third PC is not!
Writes "Cannot create environment"
I understand that the SOCI can not "create" OCI environment variables, but I
repeat - all identical (even motherboards, etc.)
Prompt in what could be wrong?
This exception is thrown on error of the following OCI function call:

res = OCIEnvCreate(&envhp_, OCI_THREADED | OCI_ENV_NO_MUTEX, 0, 0, 0, 0, 0, 0);

I have no idea what may be the reason it's failing for you.
You may try to compile and run the simple example
presented here:
http://docs.oracle.com/cd/B28359_01/appdev.111/b28395/oci02bas.htm#autoId35

For your information, our tests build and run fine against Oracle, on Linux:

https://travis-ci.org/SOCI/soci/builds/9598833

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
"Participation in this whole process is a form of torture" ~~ Szalony,
wspinanie.pl
Loading...