1 2 3
SELECT COUNT (*) FROM dba_objects WHERE status = 'INVALID';
SELECT COUNT (*) FROM user_objects WHERE status = 'INVALID';