Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Hi, What is the reason behind below error? How can I fix it?

DimpyMar 3 2022

create or replace procedure pr_error_table_chk as
v_count number;
cursor c1 is select table_name from all_tab where table_name like 'ERR$_%';
r_tab c1%rowtype;
begin
loop
fetch c1 into r_tab;
exit when c1%notfound;
select count(*) into v_count from r_tab.table_name;
if v_count > 0 then
dbms_output.put_line ('Table_Name' || ' ' || r_tab.table_name );
end if;
end loop;
end;

image.png

This post has been answered by Frank Kulash on Mar 3 2022
Jump to Answer
Comments
Post Details
Added on Mar 3 2022
6 comments
251 views