I have a cursor in PLSQL procedure to select from DBA_TABLES
and USER_TABLES
.
CURSOR c1 IS
SELECT DISTINCT(DB.TABLE_NAME) FROM DBA_TABLES DB, USER_TABLES UT WHERE DB.TABLE_NAME = UT.TABLE_NAME AND DB.IOT_TYPE IS NOT NULL;
BEGIN
OPEN c1;
FETCH c1 INTO IOT_TABLE;
CLOSE c1;
However the procedure complain
"ORA-00942 Table or View does not exist"
during execute.