This content has been marked as final. Show 3 replies
Probably, you need to declare Environment variable before you do the connection, and give it the lServerName as well.
See if you could connect on your oracle with:
lpEnv = Environment::createEnvironment(EnvMode);
m_lpConnect = lpEnv->createConnection(lUserName, lPassword, lServerName);
std::cout << "DataBase::Connect - SQLException - failed with: " << e.getMessage().c_str() <<" , error code " <<"(" << e.getErrorCode() << ")\n";
catch (std::exception& e)
std::cout << "DataBase::Connect - exception - failed with: " << e.what() << std::endl;
std::cout << "DataBase::Connect - unknown exception" << std::endl;
actually, it should work your code.
You need to verify which version of VS was used to build oraccci11.dll and ensure you use the same version to build your application.
I have seen similar error message if you end up using a version different of VS than what was used to build oraccci11.dll to build your application.
BTW look at the below site to download occi dlls built using different version of Visual Studio.