DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2004

    Monitoring performance of PL/SQL code

    Do either 9i or 10g have any out-of-box mechanisms for monitoring the aggregate performance of blocks of code?

    For example: let's say I want a report of every table trigger in a schema, the total number of times it has executed in the last 24 hours, the average execution time, min and max execution time, and resource consumption (cpu, disk, etc.) per execution.

    Are there any mechanisms to get me close to this?

    I know I can turn on SQL tracing, tkprof the results and maybe get some of the data I'm looking for from the tkprof output, but sql tracing seems to focus on SQL alone, with no facility for rolling statistics up to the trigger/procedure/function/etc level.

    I think I also can use dbms_application_info to label chunks of PL/SQL code by module, and get some of this data from v$sql or v$sqlarea... although that would require changes to every single trigger, wouldn't it?

    Are there any other approaches I've missed?
    Last edited by swiego; 07-12-2004 at 01:53 PM.

  2. #2
    Join Date
    Aug 2002
    Colorado Springs
    Maybe you could look at the supplied package DBMS_PROFILER ...

    Search on http://asktom.oracle.com also for tips on usage.
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.