( select 'insert into TMP_GET_ACTURAL_TABLE_COUNT(table_name,table_cnt) select '''||table_name||''' as table_name,count(1) as table_cnt from '||table_name as sqlstr1
from user_tables
where table_name not like 'SREF_CON_%'
)
loop
execute immediate (cursor_sql.sqlstr1);
commit;
end loop;
end;
/
truncate table TMP_GET_ACTURAL_TABLE_COUNT;
/
call GET_ACTURAL_TABLE_COUNT(1);
/
commit;
/
select *from TMP_GET_ACTURAL_TABLE_COUNT order by upper(table_name);