How to Determine When PL/SQL Procedures Were Last Re-Compiled

ID 264242.1

Applies To

Oracle Server - Enterprise Edition - Version: 8.0.4.0 to 9.2.0.1
This problem can occur on any platform.

Goal

How to check the last recompile time of a procedure or a function?

Fix

Check the last_ddl time of the user_objects view.

select to_char(created,'hh:mi:ss'),to_char(LAST_DDL_TIME,'hh:mi:ss') from user_objects
where object_name = 'name of procedure';

Replace the string 'name of procedure' with the name of the procedure for which you want to know the last compile time.

The last_ddl_time will get updated once the procedure is recompiled using the alter procedure command.



返回页首返回页首
请使用浏览器的分享功能分享到微信等