Site icon IT Tutorial

ORA-01434: private synonym to be dropped does not exist

Hi,

Sometimes You can get ”  ORA-01434: private synonym to be dropped does not exist ” error.

 

Details of error are as follows.

ORA-01434: private synonym to be dropped does not exist 

SQL> drop synonym ASH;
drop synonym ASH
             *
ERROR at line 1:
ORA-01434: private synonym to be dropped does not exist

 

 

This error is related with the Private synonym that does not exist, or this synonym may be Public.

Check if it is public or not.

SELECT *
FROM all_synonyms
WHERE owner <> 'PUBLIC';

SELECT *
FROM all_synonyms
WHERE owner = 'PUBLIC';


You can check it from its name also.

SELECT *
FROM all_synonyms
WHERE owner = 'PUBLIC'
AND synonym_name = 'SYNONYM_NAME';

 

If this Synonym is public, then drop it as follows.

SQL> DROP PUBLIC SYNONYM ASH;

Synonym dropped.

SQL>

 

You can drop private synonym as follows.

SQL> drop synonym MEHMET.TABLES;

Synonym dropped.

SQL>

 

Do you want to learn more details about Synonym, then read the following post.

Create and Drop Synonym Tips in Oracle with Examples

 

Exit mobile version