Search notes:

SQLPATH - find-trace-file.sql

Note: the following SQL script is quite old. When I originially wrote it, possibly more than 15 years ago, it was supposed to find the location of a «my» trace file. Yet, I just found out today, that it does not correctly work. Better seems to be tracefile.sql.
select 
  u_dump.value   || '/'     || 
  db_name.value  || '_ora_' || 
  v$process.spid || 
  nvl2(v$process.traceid,  '_' || v$process.traceid, null ) || 
  '.trc'  "Trace File"
from 
             v$parameter u_dump 
  cross join v$parameter db_name
  cross join v$process 
        join v$session 
          on v$process.addr = v$session.paddr
where 
  u_dump.name   = 'user_dump_dest' and 
  db_name.name  = 'db_name'        and
  v$session.audsid=sys_context('userenv','sessionid');
Github repository Oracle-SQLPATH, path: /find-trace-file.sql

See also

Oracle: files for ORACLE_PATH / SQLPATH
Trace files

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1741097086, '18.118.186.225', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/SQL-Plus/sqlpath/find-trace-file(59): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78