declare
i integer;
begin
dbms_output.put_line('Table Name,Row Count,' || TO_CHAR(SYSDATE, 'DD-MON-YYYY HH24:MI:SS'));
for v_table in (select ut.table_name from user_tables ut) loop
execute immediate
'select count(*) from ' || v_Table.Table_Name
into i;
dbms_output.put_line(v_Table.Table_Name || ',' || TO_CHAR(i));
end loop;
end;
Very useful for doing before/ after migration comparisons.
No comments:
Post a Comment