I got ” ORA-00942: table or view does not exist ” error in Oracle.
Details of error are as follows.
ORA-00942: table or view does not exist
This error is related with the existing of table, check if the related table exists or not using the following script.
SELECT * FROM all_objects WHERE object_type IN ('TABLE','VIEW') AND object_name = 'OBJECT_NAME';
Mostly ORA-00942 error is seen because of incorrect spelling of the table or view name.
Sometimes you may get ORA-00942 error because of Using an unauthorized synonym or missing synonym name. Check the synonym name using the following script.
SELECT * FROM DBA_SYNONYM WHERE SYNONYM_NAME = 'SYNONYM_NAME';
Or You may don’t have proper permission or privilege for the related table or view.
Sometimes you may get ORA-00942 error because of the incorrect schema name. So check Schema name if it is correct or not.
Do you want to learn Oracle SQL, then read the following articles.
2,501 views last month, 2 views today