You can identify invalid Objects in your schema by using below query.
select * from user_objects where status='INVALID'
You can compile invalid objects in a schema one by one.
select
'ALTER ' || OBJECT_TYPE || ' ' ||
OBJECT_NAME || ' COMPILE;'
from
user_objects
where
status = 'INVALID';
Otherwise you can Compile all the objects in a schema
EXEC DBMS_UTILITY.compile_schema('Username');
No comments:
Post a Comment