Compile Schema statement takes a long time
646879Jul 11 2008 — edited Jul 17 2008Hi,
When we call DBMS_UTILITY.COMPILE_SCHEMA('schema name') or DBMS_UTILITY.COMPILE_SCHEMA('schema name', FALSE), from TOAD or SQL Plus directly, it gets over so quickly, say in a minute.
Whereas when we include the same in a Procedure and invoke this before executing other
process just to re-compile the invalid objects. It takes 40 minutes, please tell me
why it takes such an unreasonable time, can it be reduced in any way?
Regards,
Sarathy