My Oracle Support Banner

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

Last updated on MARCH 01, 2019

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 USER1
2. CREATE DATABASE LINK "DB_LINK_1" CONNECT TO USER1 IDENTIFIED BY <Password> USING 'DB_LINK_1';
3. CREATE OR REPLACE FORCE VIEW USER2.V1 as select * FROM T1@DB_LINK_1;
4. grant  select on USER2.V1 to USER1;
5. connect USER1
6. select count(*) from USER2.V1 where rownum<4
ORA-00942: table or view does not exist
ORA-02063: preceding line from DB_LINK_1



Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.