System.Data.OleDb.OleDbException: ORA-06413: 连接未打开。 在 System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) 在 System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) .........我在网上也搜了一下,说是有括号“()”引起的。可我把VS安装在D:\ProgromFiles下了,还是报错。谁能告诉我怎么解决啊?我用Toad for Oracle 9.6.1可以连接到Oracle。怎么解决啊?急.
除了java其他的语言都需要安装oracle客户端。
你的需要他的驱动程序。
另外,连接方式的设定你也没贴出来啊。
代码是你自己写的吗?
System.Data.OleDb.OleDbConnection cn = new System.Data.OleDb.OleDbConnection("Provider=MSDAORA;Password=abc;User ID=System;Data Source=XHEBD;Persist Security Info=True");
try
{
cn.Open();---- 这里报:ORA-06413: 连接未打开。
cn.Close();
}
catch (SystemException ex)
{
Response.Write(ex.Message);
}
string strSql = "select * from T_YEARS";
string strCn = "Provider=MSDAORA;Data Source=db;Persist Security Info=True;Password=abc;User ID=system";
System.Data.OleDb.OleDbDataAdapter adp = new System.Data.OleDb.OleDbDataAdapter(strSql, strCn);
DataTable t = new DataTable();
adp.Fill(t);
在WinForm程序中运行正常。可在WEB程序中,就不能运行了。
报:ORA-06413: 连接未打开 或
未在本地计算机上注册“MSDAORA”提供程序。
搜了很多资料 说是ORACLE10G需要安装啥插件,下载了很多按上还是不管用,最后只得用11G
用11G安上就能用。