Search notes:

Oracle: SQL_EXEC_ID

As Tanel Poder points out, the value of sql_exec_id seems to start with 224 for every sql_id when Oracle is started.
sql_exec_id is found in

Test

create table tq84_dual as select * from dual;

set serveroutput on
declare
    cnt     pls_integer := 0;
    dummy_  char(1);
    end_at  timestamp := systimestamp + interval '5' second;
begin
    while systimestamp < end_at loop
        select dummy
          into dummy_
          from tq84_dual;

        cnt := cnt + 1;
    end loop;

    dbms_output.put_line('Executed statement ' || cnt || ' times.');
end;
/

select
   systimestamp - ash.sample_time          ash_sample_time_ago,
   ash.sql_id,
   ash.sql_exec_id - lead(ash.sql_exec_id) over (partition by ash.session_id, ash.session_serial#, ash.sql_id, ash.sql_child_number order by ash.sample_id desc)  "exec d",
   ash.sql_exec_id - 16*1024*1024                                                                                                                                 "exec 0",
   sql.executions                                                                                                                                                 "exec s",
   ash.sql_exec_id,
   count(*) over (partition by ash.session_id, ash.session_serial#) cnt_,
   ash.session_id     sid,
   ash.session_serial# ser
from
   v$active_session_history ash left join
   v$sqlarea                sql on ash.sql_id = sql.sql_id
where
   ash.sql_id = (select sql_id from v$sql where sql_text = 'SELECT DUMMY FROM TQ84_DUAL')
order by
   ash.sample_time desc;

drop table tq84_dual;

See also

DBA_HIST_ACTIVE_SESS_HISTORY: Query duration of SQL statement executions

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...', 1788469532, '216.73.217.21', 'Mozilla/5.0 App...', NULL) #3 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/SQL/statement/execution/sql_exec_id(88): insert_webrequest() #4 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 51