The DBMS_UTILITY.COMPILE_SCHEMA procedure compiles all procedures, functions and packages in the specified schema. DBAs now don’t have to generate the dynamic scripts to recompile the invalid objects in the schema and then recompile them. The built-in package can be called from a SQL*Plus as shown below:
exec DBMS_UTILITY.COMPILE_SCHEMA('USER')
The ‘USER’ parameter is a valid schema user and must be in uppercase. A drawback of this utility is it compiles in alphabetical order instead of dependency order.