One-Step Compilation of Oracle Packages, Functions and Procedures

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:


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.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


Recent Articles: