PL/SQL: ORA-00942: table or view does not exist
단순한 프로시져를 만드는데 오류가 생긴다.
PL/SQL: ORA-00942: table or view does not exist 에러내용은 이것이지만
실제로 테이블이 존재한다.
sqlplus / as sysdba
grant dba to TDBA;
CREATE OR REPLACE PROCEDURE TDBA.test
(v_str_dt IN date, v_end_dt IN date)
IS
aa varchar2(20) :=null;
BEGIN
select OWNER into aa
from dba_objects
where created between to_date(v_str_dt,'yyyymmdd') and to_date(v_end_dt,'yyyymmdd')
and owner not like 'SYS%';
END test;
/
Warning: Procedure created with compilation errors.
SQL> SHOW ERROR
Errors for PROCEDURE TDBA.TEST:
LINE/COL ERROR
-------- -----------------------------------------------------------------
6/9 PL/SQL: SQL Statement ignored
7/14 PL/SQL: ORA-00942: table or view does not exist