Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think you need to be dividing by 100, not 1000(dbms_utility.get_time gives time in centiseconds). That should give you 100 seconds, which is about 2 minutes.</p> <p>However, if you're interested in finding out where the 2 minutes of execution time went, and depending on the complexity of the procedure, you may want to either:</p> <ul> <li>collect a statspack report by taking snapshots before and after the procedure runs </li> <li>use the PL/SQL Hierarchical Profiler(<a href="http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28424/adfns_profiler.htm#CHDCIGIB" rel="nofollow noreferrer">http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28424/adfns_profiler.htm#CHDCIGIB</a>). </li> </ul> <p>The profiler may be better if you have a lot of chained PL/SQL procedure calls. The statspack report will be better if you have mostly sql statements inside the stored procedure.</p> <p>Here's what the Profiler output looks like:</p> <pre><code>Sample Report Function Elapsed Time (microsecs) Data sorted by Total Subtree Elapsed Time (microsecs) 2831 microsecs (elapsed time) &amp; 12 function calls Subtree Ind% Function Descendant Ind% Calls Ind% Function Name 2831 100% 93 2738 96.7% 2 16.7% __plsq_vm 2738 96.7% 310 2428 85.8% 2 16.7% __anonymous_block 2428 85.8% 15 2413 85.2% 1 8.3% HR.TEST.TEST (Line 1) 2413 85.2% 435 1978 69.9% 3 25.0% HR.TEST.TEST.FOO (Line 3) 1978 69.9% 1978 0 0.0% 3 25.0% HR.TEST.__static_sql_exec_line5 (Line 5) 0 0.0% 0 0 0.0% 1 8.3% SYS.DBMS_HPROF.STOP_PROFILING (Line 53) </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload