I'm preferably looking for a SQL query to accomplish this, but other options might be useful too.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
SELECT LAST_DDL_TIME, TIMESTAMP
FROM USER_OBJECTS
WHERE OBJECT_TYPE = 'PROCEDURE'
AND OBJECT_NAME = 'MY_PROC';
LAST_DDL_TIME
is the last time it was compiled.
TIMESTAMP
is the last time it was changed.
Procedures may need to be recompiled even if they have not changed when a dependency changes.
回答2:
SELECT name, create_date, modify_date
FROM sys.procedures order by modify_date desc
回答3:
Following query will do in Oracle
SELECT * FROM ALL_OBJECTS WHERE OBJECT_NAME = 'OBJ_NAME' ;