When logging in as a user with DBA privileges, and trying to create the following prodecure:
create or replace procedure myuser as
cursor mycur is
select username from dba_users;
begin
for myrec in mycur
loop
dbms_output.put_line(myrec.username);
end loop;
end;
The following errors are displayed:
[Error] ORA-00942 (3: 22): PL/SQL: ORA-00942: table or view does not exist
[Error] PLS-00364 (8: 26): PLS-00364: loop index variable 'MYREC' use is invalid
You need to be signed in and under a current maintenance contract to view premium knowledge articles.
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center