Search notes:

Oracle Event 10051: Trace OPI calls

alter session set events '10051 trace name context forever, level 1';

alter session set cursor_sharing = exact;

create table tq84_xyz (a number);
insert into tq84_xyz values(42);
drop t able tq84_xyz;

alter session set events '10051 trace name context off';
Read the produced trace file:
select
   trc.payload,
   cal.top_level_call_name
from
   v$diag_info                 inf                                                                              join
   v$diag_trace_file_contents  trc on regexp_replace(inf.value, '.*[\\/]', '') = trc.trace_filename        left join
   v$toplevelcall              cal on to_number( case when trc.payload like 'OPI CALL: %' then
                                      regexp_replace(trc.payload, '.*type= *(\d+).*' || chr(10), '\1')
                                      end )                                    = cal.top_level_call#
where
   inf.name = 'Default Trace File'
order by
   trc.line_number
;
The following three OPI calls are often seen:
select * from v$toplevelcall where top_level_call# in (105, 147,94);
--
-- 94   V8 Bundled Exec
-- 105  Cursor close all
-- 147  PING

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...', 1740457927, '3.145.38.77', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/adminstration/init-parameters/event/list/10051(63): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78