ITPub博客

首页 > Linux操作系统 > Linux操作系统 > How to Determine When PL/SQL Procedures Were Last Re-Compiled

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

原创 Linux操作系统 作者:spider0283 时间:2012-09-11 22:40:41 0 删除 编辑
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.



来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/38267/viewspace-743197/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-03-29

  • 博文量
    194
  • 访问量
    622759