重新编译PLSQL中的无效对象或者指定的对象 的方法

时间:2021-11-12 07:12:56

OracleTips,Tricks&Scripts

1.Topic:CompilingInvalidObjects:

Oracle8iandOracle9iprovidesascriptcalledutlrp.sqllocatedin$ORACLE_HOME/rdbms/adminwhichcanbeusedanytimetorecompileallexisitingPL/SQLmodules(procedure,functions,packages,triggers,types,andviews)inadatabase.

编译无效的对象:

$ORACLE_HOME/rdbms/admin/utlrp.sql

或者

编译指定的对象:

过程:

alterprocedureprocedure_namecompile;

函数:

alterfunctionfunction_namecompile;

包:

alterpackagepackage_namecompile;

包体:

alterpackagepackage_namecompilebody;