Skip to Main Content
  • Questions
  • Process trace not generate output file

Breadcrumb

XMAS_TREE

The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.

Question and Answer

Chris Saxon

Thanks for the question, Eduardo.

Asked: March 10, 2017 - 2:42 pm UTC

Last updated: March 11, 2017 - 1:35 am UTC

Version: 12C

Viewed 1000+ times

You Asked

Hello Tom,

After migrate our database to 12C, the output trace file is not generate, I would like to know if the process to generate the trace is not working for 12c?

Follow the procedure to execute the process trace.

SQL> EXEC DBMS_SYSTEM.SET_SQL_TRACE_IN_SESSION(&SID,&SERIAL,TRUE);
Enter value for sid: 1883
Enter value for serial: 13426

PL/SQL procedure successfully completed.

SQL> EXEC DBMS_SYSTEM.SET_SQL_TRACE_IN_SESSION(&SID,&SERIAL,FALSE);
Enter value for sid: 1883
Enter value for serial: 13426

PL/SQL procedure successfully completed.

####################################

SQL> select value from v$parameter where lower(name) = 'user_dump_dest';

VALUE
--------------------------------------------------------------------------------
D:\ORACLE\PRODUCT\12.1.0\MSAFPRD\RDBMS\TRACE

#####################################

SQL> show parameter USER_DUMP_DEST

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
user_dump_dest                       string      D:\ORACLE\PRODUCT\12.1.0\MSAFP
                                                 RD\RDBMS\TRACE


On the patchs above and in other drivers of the server the trace file was not created, before the upgrade the procedure working fine.

Thank you very much!
Eduardo

and Chris said...

The trace files aren't written to the user_dump_dest anymore!

You find the location of your trace files, alert log, etc. from v$diag_info:

select * from v$diag_info
where  name = 'Diag Trace';


Connor discusses this further in:



We're not taking comments currently, so please try again later if you want to add a comment.

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library