-- invalid object statistics: select owner, object_type, status, count(*) from dba_objects where status=‘INVALID‘ group by owner, object_type, status order by owner, object_type; -- select invalid object and compile SQL. select owner, object_name, object_type, status, ‘alter ‘ || object_type || ‘ ‘ || object_name||‘ Compile;‘as sql from dba_objects where status=‘INVALID‘ order by 1, 2,3;
时间: 2024-10-11 11:45:15