Skip to the content.

DBA Hierarchical Profiler Data – Oracle EBS SQL Report

Oracle E-Business Suite SQL report from the Enginatics Library powered by Blitz Report™. Oracle EBS module: Database Administration · all Database Administration reports

Overview

Excel version of Oracle’s hierarchical profiler dbms_hprof PLSQL performance analysis.

PL/SQL units that have been compiled in NATIVE mode cannot be profiled. To gather information, you must ensure that the PL/SQL code is INTERPRETED.” Before compilation of the profiled code, execute: alter session set plsql_code_type=interpreted;

Create and setup access to profiler tables as sys:

exec dbms_hprof.create_tables(force_it=>true); create public synonym dbmshp_trace_data for sys.dbmshp_trace_data; create public synonym dbmshp_runs for sys.dbmshp_runs; create public synonym dbmshp_function_info for sys.dbmshp_function_info; create public synonym dbmshp_parent_child_info for sys.dbmshp_parent_child_info; create public synonym dbmshp_runnumber for sys.dbmshp_runnumber; create public synonym dbmshp_tracenumber for sys.dbmshp_tracenumber; grant select, insert, update, delete on dbmshp_trace_data to public; grant select, insert, update, delete on dbmshp_runs to public; grant select, insert, update, delete on dbmshp_function_info to public; grant select, insert, update, delete on dbmshp_parent_child_info to public; grant select on dbmshp_runnumber to public; grant select on dbmshp_tracenumber to public;

To start and stop profiling code, use the following commands:

declare l_trace_id pls_integer; l_sqlmonitor_clob clob; l_runid pls_integer; begin l_trace_id:=dbms_hprof.start_profiling; xxen_api.clear; –code to profile l_sqlmonitor_clob:=dbms_hprof.stop_profiling; l_runid:=dbms_hprof.analyze(l_trace_id); end;

To purge and reset the profiler data, execute the following as sys:

truncate table dbmshp_parent_child_info; truncate table dbmshp_function_info; truncate table dbmshp_runs; truncate table dbmshp_trace_data; alter sequence dbmshp_runnumber restart start with 1; alter sequence dbmshp_tracenumber restart start with 1;

Run this report in Excel in seconds: download Blitz Report™ free (your first 30 reports are free) or try it in the online demo.

Report Parameters

Run Id, Module, Time From, Percentage From, Line Text Contains, Line Number From, Line Number To, Time Unit

Oracle EBS Tables Used

dba_source, dbmshp_runs, dbmshp_parent_child_info

Report Categories

Enginatics, R12 only

DBA Profiler Data, FND Concurrent Requests, DBA ORDS Configuration Validation, CAC Inventory Organization Summary

Running This SQL Without Blitz Report

The SQL source can be run in any SQL client. Some Oracle EBS SQL reports in this library use functions from the utility package xxen_util – install it first. Blitz Report™ adds parameters, Excel output with pivots, scheduling and security on top.

Download & Import Options

Resource Link
Excel Example Output DBA Hierarchical Profiler Data 14-Dec-2025 080657.xlsx
Blitz Report™ XML Import DBA_Hierarchical_Profiler_Data.xml
SQL Source DBA Hierarchical Profiler Data.sql
Full Report on Enginatics www.enginatics.com/reports/dba-hierarchical-profiler-data/

Case Study & Technical Analysis: DBA Hierarchical Profiler Data

Executive Summary

The DBA Hierarchical Profiler Data report is an Excel view of the output of Oracle’s hierarchical profiler, the DBMS_HPROF PL/SQL performance analysis package. It is written for database administrators and Oracle EBS technical teams who must find where PL/SQL code spends its time, for example a slow custom concurrent program, a form customisation or an API call. For each function in a profiled run, it shows the elapsed time, the share of total run time, the number of calls, the owning module, the line number and the source text.

Business Challenge

The Solution

Technical Architecture (High Level)

Primary Tables

Logical Relationships

  1. DBMSHP_RUNS joins to DBMSHP_FUNCTION_INFO on the run identifier, giving each function the run date and total time.
  2. The parent-child data is reduced to distinct run and parent symbol identifiers, then joined to the function rows as an outer join, so only functions with children show a subtree time.
  3. The helper function looks up DBA_SOURCE by unit type, owner, name and line number, and returns the text of that line, or null if none is found.
  4. The outer query sorts by run identifier descending and then by time descending, so the most expensive functions of the latest run appear first.

Parameters & Filtering

Performance & Optimization

FAQ

Q: Why does my PL/SQL profile not show any functions? A: The description states that units compiled in NATIVE mode cannot be profiled. The code must be compiled with plsqlcodetype=interpreted before profiling starts.

Q: What is the difference between the time and subtree time columns? A: Time is the elapsed time spent in the function itself, and subtree time is the inclusive time including the functions it calls, shown only where the function has children.

Q: How do I stop the profiler data from accumulating? A: The description gives the purge steps: truncate the four profiler tables and restart the run and trace number sequences, as the SYS user.


© Enginatics GmbH