Generación dinámica de SELECTs de conteo de registros de todas las tablas de la base de datos a la que se está conectado.
SELECT CASE WHEN ROWNUM > 1 THEN ' union ' ELSE '' END || 'select ''' || OBJECT_NAME || ''' as TABLE_NAME, count(*) from ' || OBJECT_NAME AS XSQL FROM ALL_OBJECTS WHERE owner = USER AND object_type = 'TABLE' AND NOT OBJECT_NAME LIKE '%$';