SQL> show parameter sql_trace
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
sql_trace boolean FALSE
指定跟踪文件名
SQL> alter session set tracefile_identifier='wangjia';
Session altered
开启跟踪
SQL> alter session set sql_trace=true;
Session altered
SQL> show parameter user_dump_dest
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
user_dump_dest string /u01/app/oracle/diag/rdbms/orcl/orcl/trace