Capture DBMS_PROFILER information for the specified script : DBMS_PROFILER « System Packages « Oracle PL/SQL Tutorial






SQL> define script="&1";
Enter value for 1:
SQL> set verify off;
SQL>
SQL> declare
  2
  3  n_run_number                          number;
  4
  5  begin
  6    DBMS_PROFILER.start_profiler('&script'||' on '||to_char(SYSDATE, 'YYYYMMDD HH24MISS'),
  7      ' ',
  8      n_run_number);
  9
 10    DBMS_OUTPUT.PUT_LINE('DBMS_PROFILER run_number = '||to_char(n_run_number));
 11  end;
 12  /



SQL>
SQL>
SQL> execute DBMS_PROFILER.stop_profiler;

PL/SQL procedure successfully completed.

SQL> execute DBMS_PROFILER.flush_data;

PL/SQL procedure successfully completed.

SQL>
SQL> set verify on;
SQL>
SQL>








31.20.DBMS_PROFILER
31.20.1.DBMS_PROFILER.get_version
31.20.2.Capture DBMS_PROFILER information for the specified script
31.20.3.Demonstrate DBMS_PROFILER
31.20.4.dbms_profiler.start_profiler
31.20.5.Use DBMS_PROFILER to compare the performance differences between row-at-a-time processing and bulk processing
31.20.6.Profiler for recursive function
31.20.7.Call dbms_profiler.start_profiler to start profiler