set pages 500; set lines 200; set trims on; set heading off; spool /tmp/1.sql; select 'alter 'object_type' 'object_name'; compile' from user_objects where status='INVALID'; spool off; @/tmp/1.sql;
drop view EXU9SYNU; create view EXU9SYNU as SELECT "SYNNAM","SYNNAM2","SYNTAB", "TABOWN","TABNODE","PUBLIC___FCKpd___6quot;,"SYNOWN", "SYNOWNID","TABOWNID","SYNOBJNO","SYNTIME" FROM sys.exu9syn -- WHERE synownid = UID; (原来的视图创建方法) WHERE 0=1; grant select on sys.EXU9SYNU to public;