Fri 8 Dec 2006
关于数æ®åº“ä¸æ— 效对象是å¦éœ€è¦é‡æ–°ç¼–译(欢迎讨论)
Posted by mimi under I.T.Girl![3] Comments
UT派,都说è¦ã€‚
Â
用以下命令检查。
select ‘alter ‘||decode(substr(object_type,1,7),’PACKAGE’,’PACKAGE’, object_type)||’ ‘||object_name ||’ compile ‘|| decode(substr(object_type,1,7),’PACKAGE’,’body;’,’;’) from user_objects where status=’INVALID’ and object_type<>’TYPE BODY’
å†ç”¨è¾“出结果recompile.
Â
Â
OP派,说ä¸ç”¨ï¼Œoracle自己会æžå®šã€‚
Â
The views in question reference PL/SQL functions, which are loaded the last by the IMP utility.
It won’t hurt to recompile the invalid objects, though it’s not strictly necessary (as Oracle always attempts recompilation of an invalid object on first access). There is a standard Oracle script for that purpose (%oracle_home%\rdbms\admin\utlrp.sql on the database server).
It won’t hurt to recompile the invalid objects, though it’s not strictly necessary (as Oracle always attempts recompilation of an invalid object on first access). There is a standard Oracle script for that purpose (%oracle_home%\rdbms\admin\utlrp.sql on the database server).
Â
Â
3 Responses to “关于数æ®åº“ä¸æ— 效对象是å¦éœ€è¦é‡æ–°ç¼–译(欢迎讨论)”
Leave a Reply
You must be logged in to post a comment.
December 8th, 2006 at 3:37 pm
December 8th, 2006 at 3:37 pm
December 10th, 2006 at 3:37 pm