Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How should I use pl/sql profiler?

ronald_2017Jul 5 2022 — edited Jul 5 2022

Hello All,

For Oracle 12.1, how can ı use pl/sql profiler properly?

I use the following code in order to use profiler. However, there are two cases. First, why the total times don't match between plsql_profiler_runs and plsql_profiler_data? Second, why the text column is empty in plsql_profiler_data table?

begin


    DBMS_PROFILER.START_PROFILER('profiler run ' || to_char (sysdate, 'yyyymmddhh24mi'));
    
    proc_test();
    
    DBMS_PROFILER.STOP_PROFILER;


end;
SELECT run_total_time FROM plsql_profiler_runs a where runid= 9013;
>>48670000000

SELECT sum(total_time) FROM plsql_profiler_data where runid = 9013;
>>34403398794

SELECT count(*) FROM plsql_profiler_data where text is not null and runid = 9013;
>>0

Thanks in advance

This post has been answered by user9540031 on Jul 18 2022
Jump to Answer
Comments
Post Details
Added on Jul 5 2022
3 comments
451 views