My Oracle Support Banner

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

Last updated on AUGUST 14, 2018

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

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
Changes
Cause
Solution
References


This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.
My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.