Generate SQL code to compile invalid objects
select 'ALTER ' || OBJECT_TYPE || ' ' || OBJECT_NAME || ' COMPILE;'
from user_objects where status = 'INVALID';
Works without DBA rights but requires ALTER privileges.
Written by Ivo Limmen
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Oracle
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#