1SELECT s.SID,
2 s.SERIAL#,
3 pa.VALUE || '/' || lower(sys_context('userenv', 'instance_name')) ||
4 '_ora_' || p.SPID || '.trc' AS TRACE_FILE
5FROM V$SESSION s, V$PROCESS p, V$paRAMETER pa
6WHERE pa.NAME = 'user_dump_dest'
7 AND s.paDDR = p.ADDR
8 AND s.AUDSID = sys_context('USERENV', 'SESSIONID');