본문 바로가기
공부(TIL)/Error

ORA-00942: table or view does not exist

by 하루지오 2024. 4. 29.
오류 보고 -
ORA-00942: table or view does not exist
00942. 00000 -  "table or view%s does not exist"
*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.

 

Create로 dept 테이블 생성 후에 emp 테이블을 생성하고 있고 있었는 데, 이런 오류가 발생했다.

테이블이 존재하지 않는 오류라니...

 

그래서 현재 사용중인 오라클에 들어가서 테이블 생성여부를 확인해보니, dept 테이블이 없었다.

실습하던 도중에 삭제한 것으로 추정된다.

 

dept 테이블을 다시 생성하고 나서 emp 테이블을 생성하니 오류 없이 emp 테이블이 잘 생성되었다.

Mission Clear.