- 论坛徽章:
- 0
|
首先谢谢楼上的各位给与宝贵意见
现在有个问题,在vs2008下用OCCI连接oracle 10时,建立连接抛出异常ORA-24960: the attribute OCI_ATTR_USERNAME is greater than the maximum allowable length of 255
代码:
try{
m_pEnv = Environment::createEnvironment(Environment::THREADED_MUTEXED);
m_pConn = m_pEnv->createConnection("bomc","bomc","openview");
}catch(SQLException& sqlex){
cout<<"Connect Oracle:"<<sqlex.what()<<endl;
cout<<"Error Code:"<<sqlex.getErrorCode()<<endl;
Environment::terminateEnvironment(m_pEnv);
return false;
}
在网上翻了半天没找出办法,高手指教下如何解决 |
|