Adsense Ad

Thursday 25 May 2017

Oracle: ORA-00955 Error Message

ORA-00955 Error Message

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

Description

When you encounter an ORA-00955 error, the following error message will appear:
  • ORA-00955: name is already used by an existing object

Cause

You tried to create a table, VIEW, index, synonym or other object with a name that is already in use.

Resolution

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

Option #1

Rename your object that you are trying to create so that it is unique.

Option #2

Drop the existing object and create the new object.
For a listing of objects with a particular name, you can run the following query:
SELECT *
FROM all_objects
WHERE object_name = 'NAME';
For example, if you wanted to find the objects whose name is SUPPLIERS, you could run the following SQL:
SELECT *
FROM all_objects
WHERE object_name = 'SUPPLIERS';
Please note that object_name's are stored in the all_objects table in uppercase.

No comments: