Skip to Main Content
  • Questions
  • How to know when a procedure/function was last called

Breadcrumb

Question and Answer

Tom Kyte

Thanks for the question, Pinaki.

Asked: February 13, 2007 - 10:15 am UTC

Last updated: February 13, 2007 - 4:22 pm UTC

Version: 9.2.0

Viewed 1000+ times

You Asked

Hi,
Is there a way know when a stored procedure/function was last called .

Regards,
Pinaki Das

and Tom said...

if you utilize auditing - sure

if not, no.

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

A reader, February 13, 2007 - 3:39 pm UTC

Does that info show up in V$sql, until the SQL is flushed out ?
Tom Kyte
February 13, 2007 - 4:22 pm UTC

plsql functions and procedures are not just invoked via SQL.

procedure P calls function F

you execute "begin p; end;"

F does not, will not show up in v$sql

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library