Resolve ORA-00903 Error Message in Oracle

Learn the purpose and how to resolve the ORA-00903 error message in Oracle.


When you stumble upon an ORA-00903 error, the following error message will appear:

ORA-00903: invalid table name


You tried to execute a SQL declaration that included an invalid desk title or the table name does now not exist.


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

Option #1

Rewrite your SQL to encompass a valid table name. To be a valid desk identify the following criteria should be met:

The desk identify ought to begin with a letter. The desk identify can not be longer than 30 characters. The table title have to be made up of alphanumeric characters or the following exclusive characters: $, _, and #. The table name can not be a reserved word.

You may want to use the ALTER TABLE statement to rename the table in Oracle using the following syntax:

ALTER TABLE table_name
  RENAME TO new_table_name;

For example:

ALTER TABLE customers
  RENAME TO contacts;

This ALTER TABLE statement will rename the clients table to contacts.