SQL Performance (MOSC)

MOSC Banner

dbms_sqldiag.dump_trace

edited Oct 31, 2017 4:51PM in SQL Performance (MOSC) 3 commentsAnswered

Hello !

I am trying to use dbms_sqldiag.dump_trace, I can use it directly like

SQL> exec dbms_sqldiag.dump_trace(p_sql_id=>'fzcgyvrqshjjq',p_child_number=>0,p_component=>'Compiler',p_file_id=>'mytrcfile');

PL/SQL procedure successfully completed.

but as soon I try to call it from a procedure i created I get an confusing (to me) error

SQL> exec my_dump_10053('fzcgyvrqshjjq',0,'TRACING');

BEGIN my_dump_10053('fzcgyvrqshjjq',0,'TRACING'); END;

*

ERROR at line 1:

ORA-00942: table or view does not exist

ORA-06512: at "SYS.DBMS_SQLDIAG", line 1555

ORA-06512: at "V074617.MY_DUMP_10053", line 4

ORA-06512: at line 1

My procedure looks like this...

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center