Could not allocate new OCI Handle of type Statement
我在unix下使用mono部署一个.net做的系统,执行SQL时出现“Could not allocate new OCI Handle of type Statement”异常
请问怎么解决?谢谢!
using (OracleConnection connection = new OracleConnection(connectionstring))
{
DataSet ds = new DataSet();
try
{
connection.Open();
OracleDataAdapter command = new OracleDataAdapter(SQLstring,connection);
command.Fill(ds);//这里出错
}
catch(System.Data.OracleClient.OracleException ex)
{
throw new Exception(ex.Message);
}
return ds;
}
请问怎么解决?谢谢!
using (OracleConnection connection = new OracleConnection(connectionstring))
{
DataSet ds = new DataSet();
try
{
connection.Open();
OracleDataAdapter command = new OracleDataAdapter(SQLstring,connection);
command.Fill(ds);//这里出错
}
catch(System.Data.OracleClient.OracleException ex)
{
throw new Exception(ex.Message);
}
return ds;
}
...全文
相关推荐
Plsql Developer连接Oracle时出现Could not initialize oci.dll解决方案
主要介绍了Plsql Developer连接Oracle时出现Could not initialize oci.dll解决方案,需要的朋友可以参考下
Idea 解决 Could not autowire. No beans of 'xxxx' type found 的错误提示
主要介绍了Idea 解决 Could not autowire. No beans of 'xxxx' type found 的错误提示,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
oracle library oci.dll could not be loaded-附件资源
oracle library oci.dll could not be loaded-附件资源
MybatisPlus BaseMapper 中的方法全部 Invalid bound statement (not found Error处理)
主要介绍了MybatisPlus BaseMapper 中的方法全部 Invalid bound statement (not found)的Error处理方法,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下
OCI接口说明
Oracle OCI详细接口说明,编码时应该会用到


