【发布时间】:2015-06-29 09:24:01
【问题描述】:
我试过下面的代码
bool Database::initializePool()
{
connPool_ = env_->createConnectionPool(userName_, password_, connectString_, minConn_, maxConn_, incrConn_);
if (!connPool_)
return false;
else
return true;
}
它报告了以下错误: 在抛出 'oracle::occi::SQLException' 的实例后调用终止 what(): ORA-00001: 违反了唯一约束 (%s.%s)
我想这可能是因为我的笔记本电脑断电并异常关机。我该怎么做才能使它正确?
谢谢。
【问题讨论】: