Adsense Ad

Tuesday 23 May 2017

Oracle: ORA-01434 Error Message

ORA-01434 Error Message

Learn the cause and how to resolve the ORA-01434 error message in Oracle.

Description

When you encounter an ORA-01434 error, the following error message will appear:
  • ORA-01434: private synonym to be dropped does not exist

Cause

You tried to drop a private synonym that does not exist.

Resolution

The option(s) to resolve this Oracle error are:

Option #1

Check to make sure that you specified the private synonym name correctly.

Option #2

Your synonym may be a public synonym, not a private synonym.
You can find a listing of all private synonyms with the following SQL statement:
SELECT *
FROM all_synonyms
WHERE owner <> 'PUBLIC';
To find out if your synonym was created as a public synonym, run the following SQL statement:
SELECT *
FROM all_synonyms
WHERE owner = 'PUBLIC'
AND synonym_name = 'SYNONYM_NAME';
where SYNONYM_NAME is the name of the synonym that you are searching for.
If your synonym was created as a public synonym, you can drop it with the following command:
DROP PUBLIC SYNONYM synonym_name;
where synonym_name is the name of the public synonym that you wish to drop.

No comments: