Company has sprung an April surprize upon me & it's CRUNCH-time & I've no time to invent a wheel here... What I need is a pl/sql script to list table name, owner & rows counted, for all tables in a database.
We're undertaking purging tables of older data & need these counts in order to know which tables to target within 5 seperate databases (about 35,000 total tables)... Can anyone help me with this?
I realize how simple it is to get count(*) from a given table but I need it to go against the ALL_TABLES then preceed to get the counts and report the results back into a flat file & print.
These particular datases are Oracle DBs and we use ANSI std PL/SQL here running in a UNIX environment on HPs & IBM AIX boxes.
Many thanks & a signed autograph picture of my pet cats to anyone who can help!!!
We're undertaking purging tables of older data & need these counts in order to know which tables to target within 5 seperate databases (about 35,000 total tables)... Can anyone help me with this?
I realize how simple it is to get count(*) from a given table but I need it to go against the ALL_TABLES then preceed to get the counts and report the results back into a flat file & print.
These particular datases are Oracle DBs and we use ANSI std PL/SQL here running in a UNIX environment on HPs & IBM AIX boxes.
Many thanks & a signed autograph picture of my pet cats to anyone who can help!!!