Moon and Dish

Database Answers SQL Scripts



Step 1. SQL Script to Check Table Owners

  1. Check Table Owners ...
    SELECT owner,COUNT(*) FROM all_tables GROUP BY owner ;
  2. Check Table Names by Owner ...
    (HINT : Select only those for the Application)
    SELECT owner,Table_name FROM all_tables ORDER BY owner,Table_name ;
  3. Generate SQL to check Row Counts for all Tables ...
    SELECT owner,Table_name FROM all_tables WHERE owner='identified above' ORDER BY owner,Table_name ;