'Dual' Synonym was Dropped by Mistake and Cannot Recreate it (Doc ID 973260.1)

Last updated on DECEMBER 06, 2016

Applies to:

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

Symptoms

-- Problem Statement:
Dropped the 'dual' synonym by mistake.  As a result, when trying to access dual, an error is given:

SQL> select sysdate from dual;
select sysdate from dual
*
ERROR at line 1:
ORA-00942: table or view does not exist

The 'dual' table dual exist:

SQL> show user
USER is "SYS"

SQL> select table_name from dba_tables where table_name='DUAL';

TABLE_NAME
------------------------------
DUAL


However, cannot create the synonym for dual:

SQL> create public synonym dual for dual
2 ;
create public synonym dual for dual
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-00942: table or view does not exist

Also receiving the same errors if try to create any table for any user including SYS.

Changes

Dropped 'dual' synonym by mistake.

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