Database Error Messages

Release
toggle
  • 23ai
  • 21c
  • 19c
Updated
Apr 29, 2024

ORA-00942

table or viewobject_name does not exist
  • object_name: The table or view name specified as SCHEMA.OBJECT_NAME, if one is provided. Otherwise, it is blank.

Cause

The specified table or view did not exist, or a synonym pointed to a table or view that did not exist. To find existing user tables and views, query the ALL_TABLES and ALL_VIEWS data dictionary views. Certain privileges may be required to access the table. If an application returned this message, then the table that the application tried to access did not exist in the database, or the application did not have access to it.


Action

Check each of the following:

  • The spelling of the table or view name is correct.
  • The referenced table or view name does exist.
  • The synonym points to an existing table or view.

If the table or view does exist, ensure that the correct access privileges are granted to the database user requiring access to the table. Otherwise, create the table.

Also, if you are attempting to access a table or view in another schema, make sure that the correct schema is referenced and that access to the object is granted.