Search notes:

Oracle: Init parameter _KGL_DEBUG

_kgl_debug can be used to enable library cache related debug options.
Identify an SQL statement's full hash value:
select
    ob.kglnahsv
--, ob.*
from
   x$kglob ob
where
   ob.kglnaobj = 'select * from tq84_a';
Start tracing:
alter system set "_kgl_debug" = "hash='c28c1d80fe6d4cffb5ebcf6bd7c3c0be' debug=33552";
Execute statement (likely in another session).
Stop tracing:
alter system set "_kgl_debug" = "hash='c28c1d80fe6d4cffb5ebcf6bd7c3c0be' debug=0";
As per MOS Note 2745080.1, from 18c forward, the debug level can be set to 99088 (= 33552 + 65536) which causes an invalidation of the specified cursor to be reported to the alert.log file (including the full trace file path name) so that an invalidation does not need to be grepped in all trace files:
alter system set "_kgl_debug"="hash= '552d9e82bf86a695a136485b680d47a7' debug=99088";

See also

MOS Notes 2745080.1 and 1388197.1

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:51 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(51): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(66): id_of(Object(PDO), 'uri', '/notes/developm...') #2 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758198862, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #3 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/adminstration/init-parameters/kgl/debug(61): insert_webrequest() #4 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 51