[英]Query works in SQL Developer but not in a pass through query in Access
I want to extract data from an Oracle 11g R2 database and import it in a table in Ms Access 2007. 我想从Oracle 11g R2数据库中提取数据并将其导入Ms Access 2007中的表中。
I have a query that looks like : 我有一个查询,看起来像:
SELECT * FROM aPublicSynonym
on the Oracle db using a READONLY user and it works fine in Oracle SQL Developer.But when I execute it as a pass-through query in ms Access I get: 使用READONLY用户在Oracle数据库上运行,并且在Oracle SQL Developer中运行良好。但是当我在ms Access中将它作为传递查询执行时,我得到:
[Oracle][ODBC][Ora] Ora-00942: table/view does not exist(#942)
I use the same ODBC data source with both sql developer and access and when I query in access : 当我在access中查询时,我将同一个ODBC数据源与sql开发人员和access一起使用:
select sys_context( 'userenv', 'current_schema' ) from dual;
It works and returns the same user schema as in sql developer. 它可以工作并返回与sql developer中相同的用户架构。 Can someone give me a hint about why i don't seem to have the privilege to access the public synonym when connecting with Access?
有人可以给我一个提示,为什么与Access连接时为什么我似乎没有特权访问公共同义词? Thanks
谢谢
I have the exact same issue. 我有完全一样的问题。 Query works fine in SQL developer but shows the same error
查询在SQL Developer中工作正常,但显示相同的错误
when running using pass through Access. 使用通过Access运行时。 I'm explicitly mentioning all the schema for the tables and using same credentials.
我明确提到了表的所有架构并使用相同的凭据。 Also using all caps in the query.
还使用查询中的所有大写字母。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.