ORA-00942 ORA-2063 When Running A Query On View Using a DBLink (Doc ID 2028712.1)

Last updated on NOVEMBER 22, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 and later
Information in this document applies to any platform.

Symptoms



When attempting to query a view which selects from a remote table via a database link  the following errors occur:



Testcase:

 


1. connect MARC
2. CREATE DATABASE LINK "DB_LINK_1" CONNECT TO MARC IDENTIFIED BY <Password> USING 'DB_LINK_1';
3. CREATE OR REPLACE FORCE VIEW SIEBEL.EMP as select * FROM EMP@DB_LINK_1;
4. grant  select on siebel.EMP to MARC;
5. connect MARC
6. select count(*) from siebel.EMP where rownum<4
ORA-00942: table or view does not exist
ORA-02063: preceding line from DB_LINK_1



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms