SQL Profiling- Oracle Only

From RapidSQL
Jump to: navigation, search

Go Up to Session 9: SQL Debugging and Profiling

The SQL Profiler within Rapid SQL provides the ability to capture the metrics of various PL/SQL programmable objects as they are executed in the database. It quickly identifies performance bottlenecks by first calculating the overall runtimes of objects like Oracle packages, and then computing the amount of time each line of PL/SQL code spends executing. Information is presented in an easily viewed, drill-down format.

  1. To start a profiling session, use the Tools menu option and select SQL Profiler > Start.
  2. Enter a name for the profiling session or select an existing name from the dropdown. Press OK. The Profile session is now active.
    af0f5d76.jpg
  3. Execute the programmable object (i.e. Stored Procedure) you wish to capture metrics on.
  4. When finished, select Tools > SQL Profiler > Stop. The SQL Profiler – Stop dialog window prompts you to select an option.
    af0f5d7c.jpg
  5. Press Stop.
  6. On the Navigator, expand the PL/SQL Code Profiling node.
    af0f5d82.jpg
  7. Right-click on the profile session and select Run Summary. The Run Summary window opens.
    af0f5d87.jpg
  8. Select a session and select Run Detail from the right-click menu. The Run Detail screen appears allowing you to view the metrics for this execution in both a graphical and text format.
    af0f5d8c.jpg
  9. To drill down further into the data, highlight a unit and select Unit Detail from the right-click menu. Scroll through the Source window to view the times for each statement.
  10. To compare 2 cases, select the 2 cases you wish to compare (shift-click to select the second case) from the Run Summary screen and select Compare from the right-click menu. The SQL Profiler Run Comparison screen appears.

See the relevant online Help topics for more information on profiling.