DBMS_PROFILER - only anonymous

Viewed 708

I am trying to get over with DBMS_PROFILER, but I face a problem, that I can't get through.

I followed the tutorial on this page: http://www.oracleflash.com/44/Write-fast-and-efficient-PLSQL---DBMS_PROFILER.html

and everything was fine till I did not change the user. When I run the profiler as the owner of the code, all the statistics are fine, but when I run those procedures as a different user (that of course has EXECUTE permissions) I can see only "ANONYMOUS" in profiler tables.

I found something looking around in the internet, and performed these actions:

  • I granted execute permissions for user calling procedures,
  • I also granted DEBUG permissions,
  • I compiled procedures for DEBUG,
  • I have checked that code is "INTERPRETED" and not "NATIVE",
  • finally, calling user also have CREATE PROCEDURE privilege.

Nevertheless, it still doesn't work. The problem is I want to profile application, that is running code as a different user, so I cannot change that. Any ideas what should I do, and why it is not working?

2 Answers
Related