Recompile invalid objects
This script should be run from SQL*plus prompt. This can also be placed in a file and ran from the SQL*plus prompt. This script can be run multiple times. Many objects in a database may depend on other objects. Therefore, this script may have to be run multiple times for all the object are valid.
|
set head off set
spool recompile_invalid_ojects.sql AND
OBJECT_TYPE in ('FUNCTION','VIEW', 'TRIGGER','PROCEDURE') FROM
user_objects AND
OBJECT_TYPE = 'PACKAGE BODY'; FROM
user_objects AND
OBJECT_TYPE = 'PACKAGE'; spool off @recompile_invalid_ojects.sql / exit / |