Quantcast
Channel: Pavan DBA's Blog » Scripts
Viewing all articles
Browse latest Browse all 10

script to get row count of all tables in a schema

$
0
0
*************************************************** script to get row count of all tables in a schema *************************************************** #!/bin/csh             sqlplus -s <<EOF username/password   spool tablecount.log select       table_name,       to_number(         extractvalue(           xmltype(dbms_xmlgen.getxml(‘select count(*) c from ‘||table_name))           ,’/ROWSET/ROW/C’)           )           count     from user_tables order by table_name; spool off         exit EOF Note: This script is […]

Viewing all articles
Browse latest Browse all 10

Trending Articles