Friday, 4 July 2014

Table to check Invalids / Compiling

PROMPT Find Invalids:-

select object_name, object_type, owner, status
from dba_objects
where status = 'INVALID';

PROMPT Compile Packages:-


select 'alter package '|| object_name || ' compile '|| decode(object_type, 'PACKAGE', '', 'PACKAGE BODY', 'body')|| ';'
from dba_objects
where status = 'INVALID'
and object_type like 'PACK%';

No comments:

Post a Comment