Could not execute query against OLE DB provider 'OraOLEDB.Oracle'
2007-11-07 14:22
519 查看
Could not execute query against OLE DB provider 'OraOLEDB.Oracle'
这段错误目前我遇到的状况是在SQL Server上用openquery查询linked server时遇到的,linked server连接的是Oracle DB
但是在linked server上可以看到table 和 view的信息,只是用openquery不能看到,且其他机器上也正常,只是我本机不可以
后来找到一种解决办法,是由于在简历linked server是没有设置 provider option中的 allow in process
将这个设置勾上,openquery就可以了
注:目前现在遇到的状况是,之前建立的linked server 如果一直没有设置这个属性,则就会有这个问题,而一旦设置过某一个linked server,则之后就不必再理会这个了
设置的位置
![](http://images.cnblogs.com/cnblogs_com/forward/LinkedServer1.jpg)
![](http://images.cnblogs.com/cnblogs_com/forward/LinkedServer2.jpg)
这段错误目前我遇到的状况是在SQL Server上用openquery查询linked server时遇到的,linked server连接的是Oracle DB
但是在linked server上可以看到table 和 view的信息,只是用openquery不能看到,且其他机器上也正常,只是我本机不可以
后来找到一种解决办法,是由于在简历linked server是没有设置 provider option中的 allow in process
将这个设置勾上,openquery就可以了
注:目前现在遇到的状况是,之前建立的linked server 如果一直没有设置这个属性,则就会有这个问题,而一旦设置过某一个linked server,则之后就不必再理会这个了
设置的位置
![](http://images.cnblogs.com/cnblogs_com/forward/LinkedServer1.jpg)
![](http://images.cnblogs.com/cnblogs_com/forward/LinkedServer2.jpg)
![](http://images.cnblogs.com/cnblogs_com/forward/LinkedServer3.jpg)
相关文章推荐
- Cannot obtain the required interface ("IID_IDBCreateCommand") from OLE DB provider "OraOLEDB.Oracle" for linked server xxxx
- Cannot create an instance of OLE DB provider "OraOLEDB.Oracle" for linked server "xxxxxxx".
- could not open parameter file '/opt/oracle/product/10.2/db_1/dbs/initorcl.ora
- The 'OraOLEDB.Oracle' provider is not registered on the local machine的原因
- OLE DB provider SQLOLEDB supplied inconsistent metadata. An extra column was supplied during execution that was not found at com
- MS SQL 错误:The operation could not be performed because OLE DB provider "SQLNCLI10" for linked server "test" was unable to begin a distributed transaction.
- C# OraOLEDB.Oracle Provider Not Registered
- pg_restore: [归档 (db)] could not execute query: 错误: 语言 "plpgsql" 已经存在
- could not open parameter file '/opt/oracle/product/10.2/db_1/dbs/initorcl.ora
- Oracle:org.hibernate.exception.JDBCConnectionException: could not execute query
- oracle 64位服务器上报 OraOLEDB.Oracle provider is not registered on thelo cal machine
- The operation could not be performedbecause OLE DB provider "SQLNCLI" for linked serve
- 安装oracle出现Could not execute auto check for display colors using command
- org.hibernate.exception.JDBCConnectionException: could not execute query
- org.hibernate.exception.SQLGrammarException: could not execute query处理方式
- org.hibernate.exception.DataException: could not execute native bulk manipulation query的问题
- Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决!
- Hibernate org.hibernate.exception.ConstraintViolationException: could not execute update query 异常分析
- Error message: OLE DB provider SQLOLEDB was unable to begin a distributed transaction
- org.hibernate.exception.SQLGrammarException: could not execute query