My Oracle Support Banner

How to compile a PUBLIC SYNONYM and avoid ORA-00942 and ORA-00995 (Doc ID 759770.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.
***Checked for relevance on 20-Sep-2016***


When you need to compile a synonym with the type PUBLIC SYNONYM and you use the common format for compiling the synonym, like the following examples, you will receive ORA-00942 or ORA-00995 errors :

SQL> alter SYNONYM "oracle/xml/xslt/XSLBuilder" compile;
alter SYNONYM "oracle/xml/xslt/XSLBuilder" compile
ERROR at line 1:
ORA-00942: table or view does not exist

-- OR

SQL> alter SYNONYM compile
ERROR at line 1:
ORA-00995: missing or invalid synonym identifier



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

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