简体   繁体   中英

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.

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:

[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 :

select sys_context( 'userenv', 'current_schema' ) from dual;

It works and returns the same user schema as in 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? Thanks

I have the exact same issue. Query works fine in SQL developer but shows the same error

  • [Oracle][ODBC][Ora] Ora-00942: table/view does not exist(#942)

when running using pass through Access. I'm explicitly mentioning all the schema for the tables and using same credentials. Also using all caps in the query.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM