I just got a weird problem when I try to access oracle database by OCCI in my program:
Everything runs well in my computer;
Environment::createEnvironment returns NULL in another computer;
Attached is my test code, which runs well in my computer. when I try to debug remotely in another computer, i found that Environment::createEnvironment(); returns NULL and throws an exception. but there is no message in the SQLException.
I really appreciate your help.
using namespace oracle::occi;
using namespace std;
void main(int argc, char * argv)
Environment pEnvironment; Connection pConnnection;
Statement *pStatement ;
pConnnection= pEnvironment->createConnection("portfolio", "manager", "db001");
pStatement = pConnnection->createStatement();
}catch (SQLException &ex)
retStr = "ERROR in create connection: ";
if( pEnvironment!=NULL )